35 lines
763 B
Solidity
Raw Normal View History

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