MockBooster
MockBooster
PoolInfo
struct PoolInfo {
address lptoken;
address token;
address crvRewards;
}
minter
address minter
crv
address crv
cvx
address cvx
poolInfo
mapping(uint256 => struct MockBooster.PoolInfo) poolInfo
constructor
constructor(address _rewardsMinter, address _crv, address _cvx) public
setPool
function setPool(uint256 pid, address _lpToken) external returns (address rewards)
deposit
function deposit(uint256 _pid, uint256 _amount, bool _stake) public returns (bool)
depositAll
function depositAll(uint256 _pid, bool _stake) external returns (bool)
_withdraw
function _withdraw(uint256 _pid, uint256 _amount, address _from, address _to) internal
withdraw
function withdraw(uint256 _pid, uint256 _amount) public returns (bool)
withdrawAll
function withdrawAll(uint256 _pid) public returns (bool)
withdrawTo
function withdrawTo(uint256 _pid, uint256 _amount, address _to) external returns (bool)
rewardClaimed
function rewardClaimed(uint256 _pid, address _address, uint256 _amount) external returns (bool)