added incentives emission for a / v /s tokens

This commit is contained in:
sendra 2021-03-26 11:08:07 +01:00
parent f9cf541be1
commit 83a499f299
2 changed files with 13 additions and 3 deletions

View File

@ -130,8 +130,16 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
);
// incentives
reserveData.emissionPerSecond = incentivesController
.assets(reserveData.underlyingAsset)
reserveData.aEmissionPerSecond = incentivesController
.assets(reserveData.aTokenAddress)
.emissionPerSecond;
reserveData.vEmissionPerSecond = incentivesController
.assets(reserveData.variableDebtTokenAddress)
.emissionPerSecond;
reserveData.sEmissionPerSecond = incentivesController
.assets(reserveData.stableDebtTokenAddress)
.emissionPerSecond;
if (user != address(0)) {

View File

@ -43,7 +43,9 @@ interface IUiPoolDataProvider {
uint256 stableRateSlope1;
uint256 stableRateSlope2;
// incentives
uint128 emissionPerSecond;
uint128 aEmissionPerSecond;
uint128 vEmissionPerSecond;
uint128 sEmissionPerSecond;
}
struct IncentivesDataUser {