Skip to content

Commit

Permalink
Merge pull request #967 from yieldprotocol/fix/repay-buffer
Browse files Browse the repository at this point in the history
fix: a more generous buffer when repaying vault
  • Loading branch information
brucedonovan authored Sep 5, 2022
2 parents 9d51fcd + 0d7b57a commit 0afe3d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/viewHelperHooks/useBorrowHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export const useBorrowHelpers = (

const _debtInBase = isMature(vaultSeries.maturity) ? vault.accruedArt : _baseRequired;
// add buffer to handle moving interest accumulation
const _debtInBaseWithBuffer = _debtInBase.mul(10000).div(9999);
const _debtInBaseWithBuffer = _debtInBase.mul(1000).div(999);
setDebtInBase(_debtInBaseWithBuffer);
setDebtInBase_(ethers.utils.formatUnits(_debtInBaseWithBuffer, vaultBase.decimals));

Expand Down

0 comments on commit 0afe3d3

Please sign in to comment.