Skip to main content

MockAaveIncentivesController

MockAaveIncentivesController​

REWARD_TOKEN​

contract MockStkAave REWARD_TOKEN

constructor​

constructor(address _reward_token) public

setRewardsBalance​

function setRewardsBalance(address user, uint256 amount) external

getRewardsBalance​

function getRewardsBalance(address[] assets, address user) external view returns (uint256)

Returns the total of rewards of an user, already accrued + not yet accrued

Parameters​

NameTypeDescription
assetsaddress[]
useraddressThe address of the user

Return Values​

NameTypeDescription
[0]uint256The rewards

claimRewards​

function claimRewards(address[] assets, uint256 amount, address to) external returns (uint256)

Claims reward for an user, on all the assets of the lending pool, accumulating the pending rewards

Parameters​

NameTypeDescription
assetsaddress[]
amountuint256Amount of rewards to claim
toaddressAddress that will be receiving the rewards

Return Values​

NameTypeDescription
[0]uint256Rewards claimed