From 7e7aa20b996d17ff083de77257dbfd42f69c83fe Mon Sep 17 00:00:00 2001 From: lsqrl Date: Wed, 3 Jan 2024 15:54:17 +0100 Subject: [PATCH] fix post i3 --- src/services/debit/GmxService.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/debit/GmxService.sol b/src/services/debit/GmxService.sol index 44122dd..06de5fa 100644 --- a/src/services/debit/GmxService.sol +++ b/src/services/debit/GmxService.sol @@ -146,7 +146,7 @@ contract GmxService is AuctionRateModel, DebitService { if (glpSupply == 0) revert ZeroGlpSupply(); uint256 usdgAmount = (agreement.collaterals[0].amount * aumInUsdg) / glpSupply; - uint256 usdgDelta = usdgVault.getRedemptionAmount(agreement.loans[0].token, usdgAmount); + uint256 redemptionAmount = usdgVault.getRedemptionAmount(agreement.loans[0].token, usdgAmount); uint256 feeBasisPoints = usdgVault.getFeeBasisPoints( agreement.loans[0].token, @@ -155,7 +155,7 @@ contract GmxService is AuctionRateModel, DebitService { usdgVault.taxBasisPoints(), false ); - results[0] = (usdgDelta * (BASIS_POINTS_DIVISOR - feeBasisPoints)) / BASIS_POINTS_DIVISOR; + results[0] = (redemptionAmount * (BASIS_POINTS_DIVISOR - feeBasisPoints)) / BASIS_POINTS_DIVISOR; return results; }