Skip to content

Commit 53a98a4

Browse files
authored
Merge pull request #13 from solendprotocol/clean_instructions
clean instructions account numbering
2 parents c30897f + b0f1d10 commit 53a98a4

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

token-lending/program/src/instruction.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pub enum LendingInstruction {
6262
/// This will be used as the reserve liquidity oracle account.
6363
/// 8. `[]` Switchboard price feed account. used as a backup oracle
6464
/// 9. `[writable]` Reserve collateral SPL Token mint - uninitialized.
65-
/// 10`[writable]` Reserve collateral token supply - uninitialized.
65+
/// 10 `[writable]` Reserve collateral token supply - uninitialized.
6666
/// 11 `[]` Lending market account.
6767
/// 12 `[]` Derived lending market authority.
6868
/// 13 `[signer]` Lending market owner.
@@ -85,9 +85,9 @@ pub enum LendingInstruction {
8585
/// 0. `[writable]` Reserve account.
8686
/// 1. `[]` Pyth Reserve liquidity oracle account.
8787
/// Must be the Pyth price account specified at InitReserve.
88-
/// 1. `[]` Switchboard Reserve liquidity oracle account.
88+
/// 2. `[]` Switchboard Reserve liquidity oracle account.
8989
/// Must be the Switchboard price feed account specified at InitReserve.
90-
/// 2. `[]` Clock sysvar.
90+
/// 3. `[]` Clock sysvar.
9191
RefreshReserve,
9292

9393
// 4
@@ -105,8 +105,8 @@ pub enum LendingInstruction {
105105
/// 5. `[]` Lending market account.
106106
/// 6. `[]` Derived lending market authority.
107107
/// 7. `[signer]` User transfer authority ($authority).
108-
/// 8 `[]` Clock sysvar.
109-
/// 9 `[]` Token program id.
108+
/// 8. `[]` Clock sysvar.
109+
/// 9. `[]` Token program id.
110110
DepositReserveLiquidity {
111111
/// Amount of liquidity to deposit in exchange for collateral tokens
112112
liquidity_amount: u64,
@@ -329,11 +329,11 @@ pub enum LendingInstruction {
329329
/// 7. `[writable]` Destination deposit reserve collateral supply SPL Token account.
330330
/// 8. `[writable]` Obligation account.
331331
/// 9. `[signer]` Obligation owner.
332-
/// 10. `[]` Pyth price oracle account.
333-
/// 11. `[]` Switchboard price feed oracle account.
334-
/// 12. `[signer]` User transfer authority ($authority).
335-
/// 13. `[]` Clock sysvar.
336-
/// 14. `[]` Token program id.
332+
/// 10 `[]` Pyth price oracle account.
333+
/// 11 `[]` Switchboard price feed oracle account.
334+
/// 12 `[signer]` User transfer authority ($authority).
335+
/// 13 `[]` Clock sysvar.
336+
/// 14 `[]` Token program id.
337337
DepositReserveLiquidityAndObligationCollateral {
338338
/// Amount of liquidity to deposit in exchange
339339
liquidity_amount: u64,

0 commit comments

Comments
 (0)