GLAMIDL Reference

sell_ledger

Sell a loan ledger from one strategy to another.

Accounts

AccountRoleDescription
glam_statewritable`glam_state` account required by the `sell_ledger` instruction (see program source for the full constraint).
glam_vaultwritable`glam_vault` account required by the `sell_ledger` instruction (see program source for the full constraint).
glam_signersigner, writable`glam_signer` account required by the `sell_ledger` instruction (see program source for the full constraint).
integration_authorityread-only`integration_authority` account required by the `sell_ledger` instruction (see program source for the full constraint).
cpi_programread-only`cpi_program` account required by the `sell_ledger` instruction (see program source for the full constraint).
glam_protocol_programread-only`glam_protocol_program` account required by the `sell_ledger` instruction (see program source for the full constraint).
system_programread-only`system_program` account required by the `sell_ledger` instruction (see program source for the full constraint).
bs_authsigner`bs_auth` account required by the `sell_ledger` instruction (see program source for the full constraint).
loanwritable`loan` account required by the `sell_ledger` instruction (see program source for the full constraint).
new_strategy_tawritable`new_strategy_ta` account required by the `sell_ledger` instruction (see program source for the full constraint).
lender_auth_tawritable`lender_auth_ta` account required by the `sell_ledger` instruction (see program source for the full constraint).
old_strategywritable`old_strategy` account required by the `sell_ledger` instruction (see program source for the full constraint).
new_strategywritable`new_strategy` account required by the `sell_ledger` instruction (see program source for the full constraint).
old_strategy_market_informationwritable`old_strategy_market_information` account required by the `sell_ledger` instruction (see program source for the full constraint).
new_strategy_market_informationwritable`new_strategy_market_information` account required by the `sell_ledger` instruction (see program source for the full constraint).
principal_mintread-only`principal_mint` account required by the `sell_ledger` instruction (see program source for the full constraint).
token_programread-only`token_program` account required by the `sell_ledger` instruction (see program source for the full constraint).
associated_token_programread-only`associated_token_program` account required by the `sell_ledger` instruction (see program source for the full constraint).
user_vaultread-only`user_vault` account required by the `sell_ledger` instruction (see program source for the full constraint).
old_strategy_taread-only`old_strategy_ta` account required by the `sell_ledger` instruction (see program source for the full constraint).
protocol_admin_stateread-only`protocol_admin_state` account required by the `sell_ledger` instruction (see program source for the full constraint).
event_authorityread-only`event_authority` account required by the `sell_ledger` instruction (see program source for the full constraint).

Arguments

ArgumentTypeNotes
paramsSellLedgerParams

Policy & permissions

  • Permission: LendingPermissions::SellLedger.