Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit 5776da6

Browse files
committed
update debug page
1 parent 5589c9d commit 5776da6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/stake.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ export async function notATAWithdraw(
535535
signers
536536
)
537537

538-
if (farmInfo.version === 5 || farmInfo.version === 4) {
538+
if (farmInfo.version === 5) {
539539
const userRewardTokenAccountB = await createTokenAccountIfNotExist(
540540
connection,
541541
walletAccount[farmInfo.rewardB?.mintAddress ?? '']?.tokenAccountAddress,
@@ -592,7 +592,7 @@ export async function notATAWithdraw(
592592
getBigNumber(depositInfo.depositBalance.wei)
593593
)
594594
)
595-
} else if (farmInfo.version === 3) {
595+
} else if (farmInfo.version === 3 || farmInfo.version === 2) {
596596
transaction.add(
597597
withdrawInstruction(
598598
new PublicKey(farmInfo.programId),

0 commit comments

Comments
 (0)