From b3d4e240f9fd17c3c3208aaaec97dda74d4b2cbc Mon Sep 17 00:00:00 2001 From: dd Date: Wed, 24 Feb 2021 21:14:23 -0500 Subject: [PATCH] changed makeSettleBorrowInstruction --- src/client.ts | 1 - src/instruction.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client.ts b/src/client.ts index d11331d..30203b5 100644 --- a/src/client.ts +++ b/src/client.ts @@ -73,7 +73,6 @@ export class MangoGroup { // const oracleAccs = await getMultipleAccounts(connection, this.oracles); // return oracleAccs.map((oa) => decodeAggregatorInfo(oa.accountInfo).submissionValue).concat(1.0) - } getMarketIndex(spotMarket: Market): number { diff --git a/src/instruction.ts b/src/instruction.ts index 3572223..162e6ff 100644 --- a/src/instruction.ts +++ b/src/instruction.ts @@ -130,7 +130,7 @@ export function makeSettleBorrowInstruction( { isSigner: false, isWritable: false, pubkey: SYSVAR_CLOCK_PUBKEY }, ]; const data = encodeMangoInstruction({ - SettleBorrow: { tokenIndex: new BN(tokenIndex), nativeQuantity }, + SettleBorrow: { tokenIndex: new BN(tokenIndex), quantity: nativeQuantity }, }); return new TransactionInstruction({ keys, data, programId }); }