Skip to content

Commit

Permalink
revert repo token holding value
Browse files Browse the repository at this point in the history
  • Loading branch information
aazhou1 committed Sep 10, 2024
1 parent 1e6e4d2 commit 9dc10e4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Strategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9dc10e4

Please sign in to comment.