We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f77205 commit cb27f25Copy full SHA for cb27f25
1 file changed
src/routes/mayan/MayanRouteBase.ts
@@ -14,7 +14,7 @@ import type { SuiClient } from '@mysten/sui/client';
14
import { Transaction } from '@mysten/sui/transactions';
15
import {
16
createAssociatedTokenAccountIdempotentInstruction,
17
- createTransferInstruction,
+ createTransferCheckedInstruction,
18
getAssociatedTokenAddressSync,
19
} from '@solana/spl-token';
20
import type { Connection, TransactionInstruction } from '@solana/web3.js';
@@ -301,11 +301,13 @@ export class MayanRouteBase<N extends Network> extends routes.AutomaticRoute<
301
}
302
303
instructions.push(
304
- createTransferInstruction(
+ createTransferCheckedInstruction(
305
senderAta,
306
+ mint,
307
referrerAta,
308
sender,
309
referralFee,
310
+ source.decimals,
311
undefined,
312
tokenProgramId,
313
),
0 commit comments