mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
added incentives emission for a / v /s tokens
This commit is contained in:
parent
f9cf541be1
commit
83a499f299
|
@ -130,8 +130,16 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
|
||||||
);
|
);
|
||||||
|
|
||||||
// incentives
|
// incentives
|
||||||
reserveData.emissionPerSecond = incentivesController
|
reserveData.aEmissionPerSecond = incentivesController
|
||||||
.assets(reserveData.underlyingAsset)
|
.assets(reserveData.aTokenAddress)
|
||||||
|
.emissionPerSecond;
|
||||||
|
|
||||||
|
reserveData.vEmissionPerSecond = incentivesController
|
||||||
|
.assets(reserveData.variableDebtTokenAddress)
|
||||||
|
.emissionPerSecond;
|
||||||
|
|
||||||
|
reserveData.sEmissionPerSecond = incentivesController
|
||||||
|
.assets(reserveData.stableDebtTokenAddress)
|
||||||
.emissionPerSecond;
|
.emissionPerSecond;
|
||||||
|
|
||||||
if (user != address(0)) {
|
if (user != address(0)) {
|
||||||
|
|
|
@ -43,7 +43,9 @@ interface IUiPoolDataProvider {
|
||||||
uint256 stableRateSlope1;
|
uint256 stableRateSlope1;
|
||||||
uint256 stableRateSlope2;
|
uint256 stableRateSlope2;
|
||||||
// incentives
|
// incentives
|
||||||
uint128 emissionPerSecond;
|
uint128 aEmissionPerSecond;
|
||||||
|
uint128 vEmissionPerSecond;
|
||||||
|
uint128 sEmissionPerSecond;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct IncentivesDataUser {
|
struct IncentivesDataUser {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user