Skip to content

Commit

Permalink
Merge pull request #1373 from InverseFinance/misc-20240827
Browse files Browse the repository at this point in the history
Firm: fix custom approval for wbtc
  • Loading branch information
webmass authored Aug 27, 2024
2 parents 988c3eb + 536be9b commit 2c1fb1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/F2/forms/F2CombinedForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ export const F2CombinedForm = ({
destination={useLeverageInMode ? F2_ALE : isAutoDBR || isUseNativeCoin ? F2_HELPER : market.address}
needApprove={(!isDeleverageCase || (isDeleverageCase && debtAmountNum > 0)) && !(useLeverageInMode && isDeposit && !collateralAmountNum)}
signer={signer}
decimals={colDecimals}
decimals={isRepayCase ? 18 : colDecimals}
maxAmountFrom={isDeposit ? [bnInputBalance] : [bnDeposits, bnWithdrawalLimit]}
onAction={({ bnAmount }) => handleAction()}
onMaxAction={({ bnAmount }) => handleWithdrawMax()}
Expand Down

0 comments on commit 2c1fb1a

Please sign in to comment.