changed makeSettleBorrowInstruction
This commit is contained in:
parent
db4ae6f666
commit
b3d4e240f9
|
@ -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 {
|
||||
|
|
|
@ -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 });
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue