From 9dc10e49d4c180c8c6f09010b32c7a05e95eb724 Mon Sep 17 00:00:00 2001 From: Andrew Zhou Date: Mon, 9 Sep 2024 17:55:33 -0700 Subject: [PATCH] revert repo token holding value --- src/Strategy.sol | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Strategy.sol b/src/Strategy.sol index 50187b4d..fa65baf7 100644 --- a/src/Strategy.sol +++ b/src/Strategy.sol @@ -428,10 +428,12 @@ contract Strategy is BaseStrategy, Pausable, ReentrancyGuard { function getRepoTokenHoldingValue( address repoToken ) public view returns (uint256) { - uint256 repoTokenBalance = ITermRepoToken(repoToken).balanceOf(address(this)); - uint256 repoTokenPresentValue = calculateRepoTokenPresentValue(repoToken, discountRateAdapter.getDiscountRate(repoToken), repoTokenBalance); - return - repoTokenPresentValue + + return + repoTokenListData.getPresentValue( + discountRateAdapter, + PURCHASE_TOKEN_PRECISION, + repoToken + ) + termAuctionListData.getPresentValue( repoTokenListData, discountRateAdapter,