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

Liquidation protocol fee #71

Closed
wants to merge 22 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
pr comments
  • Loading branch information
nope-finance committed Feb 17, 2022
commit 17ac101980fea6219d7c25bf663006d58c03e8aa
13 changes: 7 additions & 6 deletions token-lending/program/src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,13 @@ pub enum LendingInstruction {
/// 3. `[writable]` Repay reserve liquidity supply SPL Token account.
/// 4. `[]` Withdraw reserve account - refreshed.
/// 5. `[writable]` Withdraw reserve collateral supply SPL Token account.
/// 6. `[writable]` Obligation account - refreshed.
/// 7. `[]` Lending market account.
/// 8. `[]` Derived lending market authority.
/// 9. `[signer]` User transfer authority ($authority).
/// 10 `[]` Clock sysvar.
/// 11 `[]` Token program id.
/// 6. `[writable]` Withdraw reserve collateral mint
/// 7. `[writable]` Obligation account - refreshed.
/// 8. `[]` Lending market account.
/// 9. `[]` Derived lending market authority.
/// 10 `[signer]` User transfer authority ($authority).
/// 11 `[]` Clock sysvar.
/// 12 `[]` Token program id.
LiquidateObligation {
/// Amount of liquidity to repay - u64::MAX for up to 100% of borrowed amount
liquidity_amount: u64,
Expand Down