mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
33 lines
857 B
Solidity
33 lines
857 B
Solidity
// SPDX-License-Identifier: agpl-3.0
|
|
pragma solidity 0.6.12;
|
|
pragma experimental ABIEncoderV2;
|
|
|
|
interface IAaveIncentivesController {
|
|
struct AssetData {
|
|
uint128 emissionPerSecond;
|
|
uint128 lastUpdateTimestamp;
|
|
uint256 index;
|
|
}
|
|
|
|
function REWARD_TOKEN() external view returns (address rewardToken);
|
|
|
|
function PRECISION() external view returns (uint8);
|
|
|
|
function assets(address underlying) external view returns (AssetData memory assets);
|
|
|
|
function handleAction(
|
|
address user,
|
|
uint256 userBalance,
|
|
uint256 totalSupply
|
|
) external;
|
|
|
|
function getRewardsBalance(address[] calldata assets, address user)
|
|
external
|
|
view
|
|
returns (uint256);
|
|
|
|
function getUserUnclaimedRewards(address _user) external view returns (uint256);
|
|
|
|
function getUserAssetData(address user, address asset) external view returns (uint256);
|
|
}
|