Skip to content

Commit

Permalink
Update useRepayDebt.ts
Browse files Browse the repository at this point in the history
add decimal to repay after maturity
  • Loading branch information
brucedonovan authored Apr 21, 2022
1 parent 4294eb4 commit 18d75bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/actionHooks/useRepayDebt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 18d75bc

Please sign in to comment.