dagger-contracts/contracts/TestStakes.sol

34 lines
716 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 {
constructor(IERC20 token) Stakes(token) {}
2022-02-09 13:17:23 +00:00
function stake(address account) public view returns (uint256) {
return _stake(account);
}
2022-02-09 13:17:23 +00: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 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);
}
}