added first attempt for `withdraws` vec. try it out and see if it breaks
This commit is contained in:
parent
33a5e7d50a
commit
382059cb42
|
@ -850,9 +850,9 @@ export class MangoClient {
|
|||
amountIn, // todo: convert to u64?
|
||||
minimumAmountOut, // todo: convert to u64?
|
||||
);
|
||||
const targetRemainingAccounts = instruction.keys;
|
||||
const targetRemainingAccounts = instruction.keys; // todo: verify this does not contain programId
|
||||
|
||||
const withdraws = []; // todo:
|
||||
const withdraws = [{ index: 3, amount: amountIn }];
|
||||
const cpiData = instruction.data; // todo: is it just instruction.data?
|
||||
|
||||
return await this.program.methods
|
||||
|
|
Loading…
Reference in New Issue