Skip to content

Commit

Permalink
fix: Fix ghoReserveData helper in UiGhoDataProvider (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmtzinf authored Jun 22, 2023
1 parent 0e504cf commit 64fc936
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/contracts/facilitators/aave/misc/UiGhoDataProvider.sol
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ contract UiGhoDataProvider is IUiGhoDataProvider {
ghoBaseVariableBorrowRate: baseData.currentVariableBorrowRate,
ghoDiscountedPerToken: discountRateStrategy.GHO_DISCOUNTED_PER_DISCOUNT_TOKEN(),
ghoDiscountRate: discountRateStrategy.DISCOUNT_RATE(),
ghoMinDebtTokenBalanceForDiscount: discountRateStrategy.MIN_DISCOUNT_TOKEN_BALANCE(),
ghoMinDiscountTokenBalanceForDiscount: discountRateStrategy.MIN_DEBT_TOKEN_BALANCE(),
ghoMinDebtTokenBalanceForDiscount: discountRateStrategy.MIN_DEBT_TOKEN_BALANCE(),
ghoMinDiscountTokenBalanceForDiscount: discountRateStrategy.MIN_DISCOUNT_TOKEN_BALANCE(),
ghoReserveLastUpdateTimestamp: baseData.lastUpdateTimestamp,
ghoCurrentBorrowIndex: baseData.variableBorrowIndex,
aaveFacilitatorBucketLevel: bucketLevel,
Expand Down
4 changes: 2 additions & 2 deletions src/test/TestUiGhoDataProvider.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ contract TestUiGhoDataProvider is TestGhoBase {
'Unexpected discount rate'
);
assertEq(
result.ghoMinDebtTokenBalanceForDiscount,
result.ghoMinDiscountTokenBalanceForDiscount,
GHO_DISCOUNT_STRATEGY.MIN_DISCOUNT_TOKEN_BALANCE(),
'Unexpected minimum discount token balance'
);
assertEq(
result.ghoMinDiscountTokenBalanceForDiscount,
result.ghoMinDebtTokenBalanceForDiscount,
GHO_DISCOUNT_STRATEGY.MIN_DEBT_TOKEN_BALANCE(),
'Unexpected minimum debt token balance'
);
Expand Down

0 comments on commit 64fc936

Please sign in to comment.