Functionsβ listPoolsβ function listPools( ) external returns (uint256[])
Copy List of avialable pools
Return Values:β Name Type Description pids
pids of pools
setFeeManagerβ function setFeeManager( address _feeM ) external
Copy Parameters:β Name Type Description _feeM
address new fee manager
setFeesβ function setFees( uint256 _ecdLockedIncentive, uint256 _callerFees, uint256 _platform ) external
Copy Total fees are capped to 20%.
Parameters:β Name Type Description _ecdLockedIncentive
uint256 Amount of incentives to distribute to veECD holders _callerFees
uint256 Amount of incentives to disitribute to function caller. _platform
uint256 Amount of incentives to disitribute to the platform.
setVeEcdRewardPoolβ function setVeEcdRewardPool( address _veEcdRewardPool ) external
Copy Parameters:β Name Type Description _veEcdRewardPool
address The VeEcdRewardPool contract address
setEcdPtpRewardPoolβ function setEcdPtpRewardPool( address _ecdPtpRewardPool ) external
Copy Parameters:β setTreasuryβ function setTreasury( address _treasury ) external
Copy Parameters:β Name Type Description _treasury
address address of treasury
setRewardFactoryβ function setRewardFactory( address _rewardFactory ) external
Copy Parameters:β Name Type Description _rewardFactory
address RewardFactory contract address
depositβ function deposit( uint256 _pid, uint256 _amount ) external
Copy Deposits _amount
tokens into a pool _pid
.
Parameters:β Name Type Description _pid
uint256 Platypus pool id _amount
uint256 Amount of LP to deposit
depositForβ function depositFor( uint256 _pid, uint256 _amount, address account ) external
Copy Deposit _amount
of tokens into a pool _pid
, issuing shares to account
.
Parameters:β Name Type Description _pid
uint256 Platypus pool id _amount
uint256 Amount of LP to deposit account
address Beneficiary
withdrawβ function withdraw( uint256 _pid, uint256 _amount, bool _claim ) external
Copy Withdraw LPs from platypus to the user.
Parameters:β Name Type Description _pid
uint256 Platypus pool id _amount
uint256 Amount of LP to deposit _claim
bool claim benefits with the call
withdrawAllβ function withdrawAll( uint256 _pid, bool _claim ) external
Copy Withdraw all LPs from platypus to the user.
Parameters:β Name Type Description _pid
uint256 Platypus pool id _claim
bool claim benefits with the call
claimRewardsβ function claimRewards( uint256[] _pids ) external
Copy claimRewards on multiple pools at once.
This function claim rewards for the system.
Rewards are then sent to multiple reward pools.
This call is incentives, it will distribute some of the rewards to the caller.
Parameters:β Name Type Description _pids
uint256[] pool ids
setAllowanceβ function setAllowance( address token ) external
Copy Increase allowance of booster on PlatypusProxy
Parameters:β Name Type Description token
address Token to increase allowance
addNewPoolβ function addNewPool( uint256 _pid ) external
Copy Add a new pool into the system.
It will create a new RewardPool associated with the pid of the MasterPlatypus pool.
Parameters:β Name Type Description _pid
uint256 Platypus pool id.
shutdownPoolβ function shutdownPool( uint256 _pid, bool distributeRewards ) external returns (bool)
Copy Shutdown a pool, funds are transfered from platypus to Booster for user to withdraw.
Parameters:β Name Type Description _pid
uint256 Platypus pool id. distributeRewards
bool Distribute earned rewards.
function setExtraRewardPool( uint256 _pid, uint256 amount ) external
Copy Add extra reward to a pool that already exists.
Parameters:β Name Type Description _pid
uint256 Platypus pool id. amount
uint256 Send an amount of extra rewards to the extra reward pool.
function removeExtraRewardPool( uint256 _pid ) external
Copy Remove extra reward pool when removed from platypus.
Parameters:β Name Type Description _pid
uint256 Platypus pool id.
function clearExtraRewards( address rewardPool ) external
Copy Clear extra rewardPool on a RewardPool
Parameters:β Name Type Description rewardPool
address the reward pool address.
createTokenRewardsβ function createTokenRewards( address _tokenRewards, address _mainRewards ) external returns (address)
Copy Add extra rewards to a pool, it doesn't have to be platypus rewards.
Parameters:β Name Type Description _tokenRewards
address token to be distributed. _mainRewards
address the rewardPool that recive aditional rewards