From 18d75bc9b5bbb45e11de9ba3eb40cb4bc017c9ec Mon Sep 17 00:00:00 2001 From: Bruce Donovan Date: Thu, 21 Apr 2022 09:09:23 +0100 Subject: [PATCH] Update useRepayDebt.ts add decimal to repay after maturity --- src/hooks/actionHooks/useRepayDebt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/actionHooks/useRepayDebt.ts b/src/hooks/actionHooks/useRepayDebt.ts index d0bd3255b..ddbc0b17b 100644 --- a/src/hooks/actionHooks/useRepayDebt.ts +++ b/src/hooks/actionHooks/useRepayDebt.ts @@ -104,7 +104,7 @@ export const useRepayDebt = () => { const _inputCappedAtArt = vault.art.gt(ZERO_BN) && vault.art.lte(_input) ? vault.art : _input; /* Set the amount to transfer ( + 0.1% after maturity ) */ - const amountToTransfer = series.seriesIsMature ? _input.mul(1001).div(1000) : _input; // After maturity + 0.1% for increases during tx time + const amountToTransfer = series.seriesIsMature ? _input.mul(10001).div(10000) : _input; // After maturity + 0.1% for increases during tx time /* In low liq situations/or mature, send repay funds to join not pool */ const transferToAddress = tradeIsNotPossible || series.seriesIsMature ? base.joinAddress : series.poolAddress;