Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.

Commit b3fc866

Browse files
adjusted userInterestApr calcs
1 parent 3520eea commit b3fc866

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contracts/ionic/strategies/flywheel/IonicFlywheelLensRouter.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ contract IonicFlywheelLensRouter {
197197
IonicComptroller comptroller = market.comptroller();
198198
BasePriceOracle oracle = comptroller.oracle();
199199
uint256 assetPrice = oracle.getUnderlyingPrice(market);
200-
uint256 collateralValue = (supplied * assetPrice) / 1e18;
201-
uint256 borrowsValue = (borrows * assetPrice) / 1e18;
200+
uint256 collateralValue = supplied * assetPrice;
201+
uint256 borrowsValue = borrows * assetPrice;
202202

203203
uint256 yieldValuePerBlock = (collateralValue * supplyRatePerBlock) / 1e18;
204204
uint256 interestOwedValuePerBlock = (borrowsValue * borrowRatePerBlock) / 1e18;

0 commit comments

Comments
 (0)