RewardsManager
Manages distribution of POP rewards to Popcorn Treasury, DAO Staking, and Beneficiaries
Functions:
Events:
Graphs:
Function Definitions:
constructor()
getRewardSplits()
receive()
swapTokenForRewards()
Path specification requires at least source token as first in path and POP address as last Token swap internals implemented as described at https://uniswap.org/docs/v2/smart-contracts/router02/#swapexacttokensfortokens
Parameter Name | Type | Description |
---|---|---|
| address[] | Uniswap path specification for source token to POP |
| uint256 | Minimum desired amount (>0) of POP tokens to be received from swap |
Return Values:
Return Name | Type | Description |
---|---|---|
swapped | address[] | in/out amounts uint256 tuple |
distributeRewards()
Contract must have POP balance in order to distribute according to rewardSplits ratio
setRewardSplits()
Values must be within rewardsLimit range, specified in percent to 18 decimal place precision
Parameter Name | Type | Description |
---|---|---|
| uint256[4] | Array of RewardTargets enumerated uint256 values within rewardLimits range |
Events
StakingDeposited
TreasuryDeposited
InsuranceDeposited
BeneficiaryVaultsDeposited
RewardsDistributed
RewardSplitsUpdated
TokenSwapped
RegionChanged
Graphs
Dependency Graph
Inheritance Graph
Last updated