Skip to main content

IAaveDistributionManager

Functions

setDistributionEnd

function setDistributionEnd(
uint256 distributionEnd
) external

Sets the end date for the distribution

Parameters

NameTypeDescription
distributionEnduint256The end date timestamp

getDistributionEnd

function getDistributionEnd() external returns (uint256)

Gets the end date for the distribution

Return Values

NameTypeDescription
[0]uint256The end of the distribution

DISTRIBUTION_END

function DISTRIBUTION_END() external returns (uint256)

for backwards compatibility with the previous DistributionManager used

Return Values

NameTypeDescription
[0]uint256The end of the distribution

getUserAssetData

function getUserAssetData(
address user,
address asset
) external returns (uint256)

Returns the data of an user on a distribution

Parameters

NameTypeDescription
useraddressAddress of the user
assetaddressThe address of the reference asset of the distribution

Return Values

NameTypeDescription
[0]uint256The new index

getAssetData

function getAssetData(
address asset
) external returns (uint256, uint256, uint256)

Returns the configuration of the distribution for a certain asset

Parameters

NameTypeDescription
assetaddressThe address of the reference asset of the distribution

Return Values

NameTypeDescription
[0]uint256The asset index, the emission per second and the last updated timestamp
[1]uint256
[2]uint256

Events

AssetConfigUpdated

event AssetConfigUpdated(
address asset,
uint256 emission
)

Parameters

NameTypeDescription
assetaddress
emissionuint256

AssetIndexUpdated

event AssetIndexUpdated(
address asset,
uint256 index
)

Parameters

NameTypeDescription
assetaddress
indexuint256

UserIndexUpdated

event UserIndexUpdated(
address user,
address asset,
uint256 index
)

Parameters

NameTypeDescription
useraddress
assetaddress
indexuint256

DistributionEndUpdated

event DistributionEndUpdated(
uint256 newDistributionEnd
)

Parameters

NameTypeDescription
newDistributionEnduint256