fix: borrow instruction inputs
This commit is contained in:
parent
84ec142c15
commit
4231fedeef
|
@ -22,7 +22,7 @@ import { LendingInstruction } from "./lending";
|
||||||
/// 6. `[writable]` Obligation - uninitialized
|
/// 6. `[writable]` Obligation - uninitialized
|
||||||
/// 7. `[writable]` Obligation token mint - uninitialized
|
/// 7. `[writable]` Obligation token mint - uninitialized
|
||||||
/// 8. `[writable]` Obligation token output - uninitialized
|
/// 8. `[writable]` Obligation token output - uninitialized
|
||||||
/// 9. `[]` Obligation token owner - uninitialized
|
/// 9. `[]` Obligation token owner
|
||||||
/// 10 `[]` Derived lending market authority ($authority).
|
/// 10 `[]` Derived lending market authority ($authority).
|
||||||
/// 11 `[]` Dex market
|
/// 11 `[]` Dex market
|
||||||
/// 12 `[]` Dex order book side // could be bid/ask
|
/// 12 `[]` Dex order book side // could be bid/ask
|
||||||
|
@ -78,16 +78,16 @@ export const borrowInstruction = (
|
||||||
{
|
{
|
||||||
pubkey: borrowReserveLiquiditySupply,
|
pubkey: borrowReserveLiquiditySupply,
|
||||||
isSigner: false,
|
isSigner: false,
|
||||||
isWritable: false,
|
isWritable: true,
|
||||||
},
|
},
|
||||||
{ pubkey: obligation, isSigner: false, isWritable: true },
|
{ pubkey: obligation, isSigner: false, isWritable: true },
|
||||||
{ pubkey: obligationMint, isSigner: false, isWritable: true },
|
{ pubkey: obligationMint, isSigner: false, isWritable: true },
|
||||||
{ pubkey: obligationTokenOutput, isSigner: false, isWritable: true },
|
{ pubkey: obligationTokenOutput, isSigner: false, isWritable: true },
|
||||||
{ pubkey: obligationTokenOwner, isSigner: false, isWritable: false },
|
{ pubkey: obligationTokenOwner, isSigner: false, isWritable: false },
|
||||||
{ pubkey: lendingMarketAuthority, isSigner: false, isWritable: true },
|
{ pubkey: lendingMarketAuthority, isSigner: false, isWritable: false },
|
||||||
{ pubkey: dexMarket, isSigner: false, isWritable: true },
|
{ pubkey: dexMarket, isSigner: false, isWritable: false },
|
||||||
{ pubkey: dexOrderBookSide, isSigner: false, isWritable: false },
|
{ pubkey: dexOrderBookSide, isSigner: false, isWritable: false },
|
||||||
{ pubkey: memory, isSigner: false, isWritable: true },
|
{ pubkey: memory, isSigner: false, isWritable: false },
|
||||||
{ pubkey: SYSVAR_CLOCK_PUBKEY, isSigner: false, isWritable: false },
|
{ pubkey: SYSVAR_CLOCK_PUBKEY, isSigner: false, isWritable: false },
|
||||||
{ pubkey: SYSVAR_RENT_PUBKEY, isSigner: false, isWritable: false },
|
{ pubkey: SYSVAR_RENT_PUBKEY, isSigner: false, isWritable: false },
|
||||||
{ pubkey: TOKEN_PROGRAM_ID, isSigner: false, isWritable: false },
|
{ pubkey: TOKEN_PROGRAM_ID, isSigner: false, isWritable: false },
|
||||||
|
|
Loading…
Reference in New Issue