2021-10-21 12:06:30 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8.0;
|
|
|
|
|
|
|
|
import "./Stakes.sol";
|
|
|
|
|
|
|
|
// exposes internal functions of Stakes for testing
|
|
|
|
contract TestStakes is Stakes {
|
|
|
|
constructor(IERC20 token) Stakes(token) {}
|
|
|
|
|
2022-02-09 13:17:23 +00:00
|
|
|
function stake(address account) public view returns (uint256) {
|
2021-11-01 14:17:19 +00:00
|
|
|
return _stake(account);
|
2021-10-21 12:06:30 +00:00
|
|
|
}
|
|
|
|
|
2022-02-09 13:17:23 +00:00
|
|
|
function increaseStake(uint256 amount) public {
|
2021-11-01 14:17:19 +00:00
|
|
|
_increaseStake(amount);
|
|
|
|
}
|
|
|
|
|
|
|
|
function withdrawStake() public {
|
|
|
|
_withdrawStake();
|
|
|
|
}
|
|
|
|
|
|
|
|
function lockStake(address account) public {
|
|
|
|
_lockStake(account);
|
|
|
|
}
|
|
|
|
|
|
|
|
function unlockStake(address account) public {
|
|
|
|
_unlockStake(account);
|
2021-10-21 12:06:30 +00:00
|
|
|
}
|
2021-11-04 12:16:11 +00:00
|
|
|
|
2022-02-09 13:17:23 +00:00
|
|
|
function slash(address account, uint256 percentage) public {
|
2021-11-04 12:16:11 +00:00
|
|
|
_slash(account, percentage);
|
|
|
|
}
|
2021-10-21 12:06:30 +00:00
|
|
|
}
|