getRewardsBalance()method, passing in the relevant token addresses (aTokens and/or debtTokens) as an array.
claimRewards()method, passing in the relevant token addresses (aTokens and/or debtTokens) as an array. The
msg.sendermust match the user's address that has accrued the rewards.
withdraw()on the WMATIC contract.
APY = normalizedEmissionPerSecond * rewardTokenPriceInEth * SECONDS_PER_YEAR / normalizedTotalTokenSupply
normalizedEmissionPerSecond = emissionPerSecond/RWARD_TOKEN_DECIMALS
normalizedTotalTokenSupply = tokenTotalSupplyNormalized * tokenPriceInEth,where token is the incentivized a/s/v token and token price is same as underlying asset's price.
function claimRewards(address calldata assets, uint256 amount, address to)
assets, accumulating any pending rewards.
function claimRewardsOnBehalf(address calldata assets, uint256 amount, address user, address to)
assets, accumulating any pending rewards, on behalf of
function setClaimer(address user, address caller)
callerto claim all rewards on behalf of the
user. This can only be set via Governance.
function getAssetData(address asset)
function getClaimer(address user)
function getRewardsBalance(address assets, address user)
function getUserAssetData(address user, address asset)
useron a distribution from
function getUserUnclaimedRewards(address user)
userfor their last action in the protocol.