Skip to content

Commit

Permalink
fix input field disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
borcherd committed Feb 3, 2025
1 parent 1420820 commit 3283887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mrgn-utils/src/actions/flashloans/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export async function calculateMaxRepayableCollateral(

if (amount !== 0) {
const quoteParams = {
amount: uiToNative(amount, repayBank.info.state.mintDecimals).toNumber(),
amount: uiToNative(maxRepayAmount, repayBank.info.state.mintDecimals).toNumber(),
inputMint: repayBank.info.state.mint.toBase58(),
outputMint: bank.info.state.mint.toBase58(),
slippageBps: slippageMode === "FIXED" ? slippageBps : undefined,
Expand Down

0 comments on commit 3283887

Please sign in to comment.