diff --git a/src/actions/borrow.tsx b/src/actions/borrow.tsx index 195b04f..3e12405 100644 --- a/src/actions/borrow.tsx +++ b/src/actions/borrow.tsx @@ -125,7 +125,7 @@ export const borrow = async ( signers ) : undefined; - + let amountLamports: number = 0; let fromLamports: number = 0; if (amountType === BorrowAmountType.LiquidityBorrowAmount) { @@ -152,6 +152,7 @@ export const borrow = async ( fromLamports = amountLamports; } + const fromAccount = ensureSplAccount( instructions, finalCleanupInstructions, @@ -201,7 +202,7 @@ export const borrow = async ( fromAccount, wallet.publicKey, fromLamports, - false + false, ); signers.push(transferAuthority);