Skip to content

Commit

Permalink
lte > eq
Browse files Browse the repository at this point in the history
  • Loading branch information
brucedonovan authored Mar 28, 2023
1 parent 78dd72f commit b76bdd0
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 @@ -79,7 +79,7 @@ export const useRepayDebt = () => {
const cleanInput = cleanValue(input, base.decimals);
const _input = input ? ethers.utils.parseUnits(cleanInput, base.decimals) : ethers.constants.Zero;

const _maxSharesIn = series.sharesReserves.lte(ZERO_BN) ? ZERO_BN
const _maxSharesIn = series.sharesReserves.eq(ZERO_BN) ? ZERO_BN
: maxBaseIn(
series.sharesReserves,
series.fyTokenReserves,
Expand Down

0 comments on commit b76bdd0

Please sign in to comment.