changed makeSettleBorrowInstruction

This commit is contained in:
dd 2021-02-24 21:14:23 -05:00
parent db4ae6f666
commit b3d4e240f9
2 changed files with 1 additions and 2 deletions

View File

@ -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 {

View File

@ -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 });
}