⬅️ Contracts
Mainnet implementations
IAaveIncentivesController, Tribe, FeiDAOTimelock, ProxyAdmin
Events
AssetConfigUpdated
event AssetConfigUpdated(address,uint256)
Params
Param |
Type |
Notes |
asset |
address indexed |
|
emission |
uint256 |
|
AssetIndexUpdated
event AssetIndexUpdated(address,uint256)
Params
Param |
Type |
Notes |
asset |
address indexed |
|
index |
uint256 |
|
ClaimerSet
event ClaimerSet(address,address)
Params
Param |
Type |
Notes |
user |
address indexed |
|
claimer |
address indexed |
|
DistributionEndUpdated
event DistributionEndUpdated(uint256)
Params
Param |
Type |
Notes |
newDistributionEnd |
uint256 |
|
RewardsAccrued
event RewardsAccrued(address,uint256)
Params
Param |
Type |
Notes |
user |
address indexed |
|
amount |
uint256 |
|
RewardsClaimed
event RewardsClaimed(address,address,address,uint256)
Params
Param |
Type |
Notes |
user |
address indexed |
|
to |
address indexed |
|
claimer |
address indexed |
|
amount |
uint256 |
|
UserIndexUpdated
event UserIndexUpdated(address,address,uint256)
Params
Param |
Type |
Notes |
user |
address indexed |
|
asset |
address indexed |
|
index |
uint256 |
|
Methods
DISTRIBUTION_END
function DISTRIBUTION_END() view returns(uint256)
for backwards compatibility with the previous DistributionManager used
Returns
Param |
Type |
Notes |
|
uint256 |
The end of the distribution* |
REWARD_TOKEN
function REWARD_TOKEN() view returns(address)
for backward compatibility with previous implementation of the Incentives controller
Returns
claimRewards
function claimRewards(address[],uint256,address) nonpayable returns(uint256)
Claims reward for an user, on all the assets of the lending pool, accumulating the pending rewards
Params
Param |
Type |
Notes |
assets |
address[] |
|
amount |
uint256 |
Amount of rewards to claim |
to |
address |
Address that will be receiving the rewards |
Returns
Param |
Type |
Notes |
|
uint256 |
Rewards claimed* |
claimRewardsOnBehalf
function claimRewardsOnBehalf(address[],uint256,address,address) nonpayable returns(uint256)
Claims reward for an user on behalf, on all the assets of the lending pool, accumulating the pending rewards. The caller must be whitelisted via "allowClaimOnBehalf" function by the RewardsAdmin role manager
Params
Param |
Type |
Notes |
assets |
address[] |
|
amount |
uint256 |
Amount of rewards to claim |
user |
address |
Address to check and claim rewards |
to |
address |
Address that will be receiving the rewards |
Returns
Param |
Type |
Notes |
|
uint256 |
Rewards claimed* |
function configureAssets(address[],uint256[]) nonpayable
Configure assets for a certain rewards emission
Params
Param |
Type |
Notes |
assets |
address[] |
The assets to incentivize |
emissionsPerSecond |
uint256[] |
The emission for each asset |
getAssetData
function getAssetData(address) view returns(uint256,uint256,uint256)
Returns the configuration of the distribution for a certain asset
Params
Param |
Type |
Notes |
asset |
address |
The address of the reference asset of the distribution |
Returns
Param |
Type |
Notes |
|
uint256 |
The asset index, the emission per second and the last updated timestamp* |
|
uint256 |
|
|
uint256 |
|
getClaimer
function getClaimer(address) view returns(address)
Returns the whitelisted claimer for a certain address (0x0 if not set)
Params
Param |
Type |
Notes |
user |
address |
The address of the user |
Returns
Param |
Type |
Notes |
|
address |
The claimer address |
getDistributionEnd
function getDistributionEnd() view returns(uint256)
Gets the end date for the distribution
Returns
Param |
Type |
Notes |
|
uint256 |
The end of the distribution* |
getRewardsBalance
function getRewardsBalance(address[],address) view returns(uint256)
Returns the total of rewards of an user, already accrued + not yet accrued
Params
Param |
Type |
Notes |
assets |
address[] |
|
user |
address |
The address of the user |
Returns
Param |
Type |
Notes |
|
uint256 |
The rewards* |
getUserAssetData
function getUserAssetData(address,address) view returns(uint256)
Returns the data of an user on a distribution
Params
Param |
Type |
Notes |
user |
address |
Address of the user |
asset |
address |
The address of the reference asset of the distribution |
Returns
Param |
Type |
Notes |
|
uint256 |
The new index* |
getUserUnclaimedRewards
function getUserUnclaimedRewards(address) view returns(uint256)
returns the unclaimed rewards of the user
Params
Param |
Type |
Notes |
user |
address |
the address of the user |
Returns
Param |
Type |
Notes |
|
uint256 |
the unclaimed user rewards |
handleAction
function handleAction(address,uint256,uint256) nonpayable
Called by the corresponding asset on any update that affects the rewards distribution
Params
Param |
Type |
Notes |
asset |
address |
The address of the user |
userBalance |
uint256 |
The balance of the user of the asset in the lending pool |
totalSupply |
uint256 |
The total supply of the asset in the lending pool* |
setClaimer
function setClaimer(address,address) nonpayable
Whitelists an address to claim the rewards on behalf of another address
Params
Param |
Type |
Notes |
user |
address |
The address of the user |
claimer |
address |
The address of the claimer |
setDistributionEnd
function setDistributionEnd(uint256) nonpayable
Sets the end date for the distribution
Params
Param |
Type |
Notes |
distributionEnd |
uint256 |
The end date timestamp* |
⬅️ Contracts