Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: use createTransferCheckedInstruction
  • Loading branch information
priyajeet committed Sep 18, 2025
commit ed0532a7bcab030af695c0860c2d798b0a5a18ca
6 changes: 4 additions & 2 deletions src/routes/mayan/MayanRouteBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type { SuiClient } from '@mysten/sui/client';
import { Transaction } from '@mysten/sui/transactions';
import {
createAssociatedTokenAccountIdempotentInstruction,
createTransferInstruction,
createTransferCheckedInstruction,
getAssociatedTokenAddressSync,
} from '@solana/spl-token';
import type { Connection, TransactionInstruction } from '@solana/web3.js';
Expand Down Expand Up @@ -301,11 +301,13 @@ export class MayanRouteBase<N extends Network> extends routes.AutomaticRoute<
}

instructions.push(
createTransferInstruction(
createTransferCheckedInstruction(
senderAta,
mint,
referrerAta,
sender,
referralFee,
source.decimals,
undefined,
tokenProgramId,
),
Expand Down