Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean instructions account numbering #13

Merged
merged 1 commit into from
Jul 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions token-lending/program/src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub enum LendingInstruction {
/// This will be used as the reserve liquidity oracle account.
/// 8. `[]` Switchboard price feed account. used as a backup oracle
/// 9. `[writable]` Reserve collateral SPL Token mint - uninitialized.
/// 10`[writable]` Reserve collateral token supply - uninitialized.
/// 10 `[writable]` Reserve collateral token supply - uninitialized.
/// 11 `[]` Lending market account.
/// 12 `[]` Derived lending market authority.
/// 13 `[signer]` Lending market owner.
Expand All @@ -85,9 +85,9 @@ pub enum LendingInstruction {
/// 0. `[writable]` Reserve account.
/// 1. `[]` Pyth Reserve liquidity oracle account.
/// Must be the Pyth price account specified at InitReserve.
/// 1. `[]` Switchboard Reserve liquidity oracle account.
/// 2. `[]` Switchboard Reserve liquidity oracle account.
/// Must be the Switchboard price feed account specified at InitReserve.
/// 2. `[]` Clock sysvar.
/// 3. `[]` Clock sysvar.
RefreshReserve,

// 4
Expand All @@ -105,8 +105,8 @@ pub enum LendingInstruction {
/// 5. `[]` Lending market account.
/// 6. `[]` Derived lending market authority.
/// 7. `[signer]` User transfer authority ($authority).
/// 8 `[]` Clock sysvar.
/// 9 `[]` Token program id.
/// 8. `[]` Clock sysvar.
/// 9. `[]` Token program id.
DepositReserveLiquidity {
/// Amount of liquidity to deposit in exchange for collateral tokens
liquidity_amount: u64,
Expand Down Expand Up @@ -329,11 +329,11 @@ pub enum LendingInstruction {
/// 7. `[writable]` Destination deposit reserve collateral supply SPL Token account.
/// 8. `[writable]` Obligation account.
/// 9. `[signer]` Obligation owner.
/// 10. `[]` Pyth price oracle account.
/// 11. `[]` Switchboard price feed oracle account.
/// 12. `[signer]` User transfer authority ($authority).
/// 13. `[]` Clock sysvar.
/// 14. `[]` Token program id.
/// 10 `[]` Pyth price oracle account.
/// 11 `[]` Switchboard price feed oracle account.
/// 12 `[signer]` User transfer authority ($authority).
/// 13 `[]` Clock sysvar.
/// 14 `[]` Token program id.
DepositReserveLiquidityAndObligationCollateral {
/// Amount of liquidity to deposit in exchange
liquidity_amount: u64,
Expand Down