List of all items
Structs
- Mango
- accounts::AccountBuybackFeesWithMngo
- accounts::AccountClose
- accounts::AccountCreate
- accounts::AccountEdit
- accounts::AccountExpand
- accounts::AccountToggleFreeze
- accounts::AltExtend
- accounts::AltSet
- accounts::Benchmark
- accounts::ComputeAccountData
- accounts::FlashLoanBegin
- accounts::FlashLoanEnd
- accounts::GroupClose
- accounts::GroupCreate
- accounts::GroupEdit
- accounts::GroupWithdrawInsuranceFund
- accounts::HealthRegionBegin
- accounts::HealthRegionEnd
- accounts::IxGateSet
- accounts::PerpCancelAllOrders
- accounts::PerpCancelAllOrdersBySide
- accounts::PerpCancelOrder
- accounts::PerpCancelOrderByClientOrderId
- accounts::PerpCloseMarket
- accounts::PerpConsumeEvents
- accounts::PerpCreateMarket
- accounts::PerpDeactivatePosition
- accounts::PerpEditMarket
- accounts::PerpForceClosePosition
- accounts::PerpLiqBaseOrPositivePnl
- accounts::PerpLiqForceCancelOrders
- accounts::PerpLiqNegativePnlOrBankruptcy
- accounts::PerpPlaceOrder
- accounts::PerpSettleFees
- accounts::PerpSettlePnl
- accounts::PerpUpdateFunding
- accounts::Serum3CancelAllOrders
- accounts::Serum3CancelOrder
- accounts::Serum3CloseOpenOrders
- accounts::Serum3CreateOpenOrders
- accounts::Serum3DeregisterMarket
- accounts::Serum3EditMarket
- accounts::Serum3LiqForceCancelOrders
- accounts::Serum3PlaceOrder
- accounts::Serum3RegisterMarket
- accounts::Serum3SettleFunds
- accounts::Serum3SettleFundsV2
- accounts::Serum3SettleFundsV2Extra
- accounts::StubOracleClose
- accounts::StubOracleCreate
- accounts::StubOracleSet
- accounts::TokenAddBank
- accounts::TokenDeposit
- accounts::TokenDepositIntoExisting
- accounts::TokenDeregister
- accounts::TokenEdit
- accounts::TokenForceCloseBorrowsWithToken
- accounts::TokenLiqBankruptcy
- accounts::TokenLiqWithToken
- accounts::TokenRegister
- accounts::TokenRegisterTrustless
- accounts::TokenUpdateIndexAndRate
- accounts::TokenWithdraw
- accounts_ix::AccountBuybackFeesWithMngo
- accounts_ix::AccountClose
- accounts_ix::AccountCreate
- accounts_ix::AccountEdit
- accounts_ix::AccountExpand
- accounts_ix::AccountToggleFreeze
- accounts_ix::AltExtend
- accounts_ix::AltSet
- accounts_ix::Benchmark
- accounts_ix::ComputeAccountData
- accounts_ix::FlashLoanBegin
- accounts_ix::FlashLoanEnd
- accounts_ix::GroupClose
- accounts_ix::GroupCreate
- accounts_ix::GroupEdit
- accounts_ix::GroupWithdrawInsuranceFund
- accounts_ix::HealthRegionBegin
- accounts_ix::HealthRegionEnd
- accounts_ix::InterestRateParams
- accounts_ix::IxGateSet
- accounts_ix::PerpCancelAllOrders
- accounts_ix::PerpCancelAllOrdersBySide
- accounts_ix::PerpCancelOrder
- accounts_ix::PerpCancelOrderByClientOrderId
- accounts_ix::PerpCloseMarket
- accounts_ix::PerpConsumeEvents
- accounts_ix::PerpCreateMarket
- accounts_ix::PerpDeactivatePosition
- accounts_ix::PerpEditMarket
- accounts_ix::PerpForceClosePosition
- accounts_ix::PerpLiqBaseOrPositivePnl
- accounts_ix::PerpLiqForceCancelOrders
- accounts_ix::PerpLiqNegativePnlOrBankruptcy
- accounts_ix::PerpPlaceOrder
- accounts_ix::PerpSettleFees
- accounts_ix::PerpSettlePnl
- accounts_ix::PerpUpdateFunding
- accounts_ix::Serum3CancelAllOrders
- accounts_ix::Serum3CancelOrder
- accounts_ix::Serum3CloseOpenOrders
- accounts_ix::Serum3CreateOpenOrders
- accounts_ix::Serum3DeregisterMarket
- accounts_ix::Serum3EditMarket
- accounts_ix::Serum3LiqForceCancelOrders
- accounts_ix::Serum3PlaceOrder
- accounts_ix::Serum3RegisterMarket
- accounts_ix::Serum3SettleFunds
- accounts_ix::Serum3SettleFundsV2
- accounts_ix::Serum3SettleFundsV2Extra
- accounts_ix::StubOracleClose
- accounts_ix::StubOracleCreate
- accounts_ix::StubOracleSet
- accounts_ix::TokenAddBank
- accounts_ix::TokenDeposit
- accounts_ix::TokenDepositIntoExisting
- accounts_ix::TokenDeregister
- accounts_ix::TokenEdit
- accounts_ix::TokenForceCloseBorrowsWithToken
- accounts_ix::TokenLiqBankruptcy
- accounts_ix::TokenLiqWithToken
- accounts_ix::TokenRegister
- accounts_ix::TokenRegisterTrustless
- accounts_ix::TokenUpdateIndexAndRate
- accounts_ix::TokenWithdraw
- accounts_zerocopy::AccountInfoRef
- accounts_zerocopy::AccountInfoRefMut
- accounts_zerocopy::KeyedAccount
- accounts_zerocopy::KeyedAccountSharedData
- events::Equity
- events::MangoAccountData
- events::PerpEquity
- events::TokenEquity
- health::FixedOrderAccountRetriever
- health::HealthCache
- health::PerpInfo
- health::Prices
- health::ScanningAccountRetriever
- health::Serum3Info
- health::TokenInfo
- instruction::AccountBuybackFeesWithMngo
- instruction::AccountClose
- instruction::AccountCreate
- instruction::AccountEdit
- instruction::AccountExpand
- instruction::AccountToggleFreeze
- instruction::AltExtend
- instruction::AltSet
- instruction::Benchmark
- instruction::ComputeAccountData
- instruction::FlashLoanBegin
- instruction::FlashLoanEnd
- instruction::FlashLoanEndV2
- instruction::GroupClose
- instruction::GroupCreate
- instruction::GroupEdit
- instruction::GroupWithdrawInsuranceFund
- instruction::HealthRegionBegin
- instruction::HealthRegionEnd
- instruction::IxGateSet
- instruction::LiqTokenBankruptcy
- instruction::LiqTokenWithToken
- instruction::PerpCancelAllOrders
- instruction::PerpCancelAllOrdersBySide
- instruction::PerpCancelOrder
- instruction::PerpCancelOrderByClientOrderId
- instruction::PerpCloseMarket
- instruction::PerpConsumeEvents
- instruction::PerpCreateMarket
- instruction::PerpDeactivatePosition
- instruction::PerpEditMarket
- instruction::PerpForceClosePosition
- instruction::PerpLiqBaseOrPositivePnl
- instruction::PerpLiqForceCancelOrders
- instruction::PerpLiqNegativePnlOrBankruptcy
- instruction::PerpPlaceOrder
- instruction::PerpPlaceOrderPegged
- instruction::PerpSettleFees
- instruction::PerpSettlePnl
- instruction::PerpUpdateFunding
- instruction::Serum3CancelAllOrders
- instruction::Serum3CancelOrder
- instruction::Serum3CloseOpenOrders
- instruction::Serum3CreateOpenOrders
- instruction::Serum3DeregisterMarket
- instruction::Serum3EditMarket
- instruction::Serum3LiqForceCancelOrders
- instruction::Serum3PlaceOrder
- instruction::Serum3RegisterMarket
- instruction::Serum3SettleFunds
- instruction::Serum3SettleFundsV2
- instruction::StubOracleClose
- instruction::StubOracleCreate
- instruction::StubOracleSet
- instruction::TokenAddBank
- instruction::TokenDeposit
- instruction::TokenDepositIntoExisting
- instruction::TokenDeregister
- instruction::TokenEdit
- instruction::TokenForceCloseBorrowsWithToken
- instruction::TokenLiqBankruptcy
- instruction::TokenLiqWithToken
- instruction::TokenRegister
- instruction::TokenRegisterTrustless
- instruction::TokenUpdateIndexAndRate
- instruction::TokenWithdraw
- logs::AccountBuybackFeesWithMngoLog
- logs::DeactivatePerpPositionLog
- logs::DeactivateTokenPositionLog
- logs::DepositLog
- logs::FillLog
- logs::FillLogV2
- logs::FilledPerpOrderLog
- logs::FlashLoanLog
- logs::FlashLoanTokenDetail
- logs::PerpBalanceLog
- logs::PerpForceClosePositionLog
- logs::PerpLiqBankruptcyLog
- logs::PerpLiqBaseOrPositivePnlLog
- logs::PerpLiqNegativePnlOrBankruptcyLog
- logs::PerpMarketMetaDataLog
- logs::PerpSettleFeesLog
- logs::PerpSettlePnlLog
- logs::PerpTakerTradeLog
- logs::PerpUpdateFundingLog
- logs::PerpUpdateFundingLogV2
- logs::Serum3OpenOrdersBalanceLog
- logs::Serum3OpenOrdersBalanceLogV2
- logs::Serum3RegisterMarketLog
- logs::TokenBalanceLog
- logs::TokenForceCloseBorrowsWithTokenLog
- logs::TokenLiqBankruptcyLog
- logs::TokenLiqWithTokenLog
- logs::TokenMetaDataLog
- logs::UpdateIndexLog
- logs::UpdateRateLog
- logs::WithdrawLoanOriginationFeeLog
- logs::WithdrawLog
- program::MangoV4
- serum3_cpi::CancelOrder
- serum3_cpi::CloseOpenOrders
- serum3_cpi::InitOpenOrders
- serum3_cpi::OrderBookStateHeader
- serum3_cpi::PlaceOrder
- serum3_cpi::SettleFunds
- state::AnyEvent
- state::AnyNode
- state::Bank
- state::BookSide
- state::BookSideIter
- state::BookSideIterItem
- state::BookSideOrderHandle
- state::DynamicAccount
- state::EventQueue
- state::EventQueueHeader
- state::FillEvent
- state::FreeNode
- state::Group
- state::InnerNode
- state::LeafNode
- state::MangoAccount
- state::MangoAccountDynamicHeader
- state::MangoAccountFixed
- state::MintInfo
- state::OracleConfig
- state::OracleConfigParams
- state::OracleState
- state::Order
- state::OrderTreeIter
- state::OrderTreeNodes
- state::OrderTreeRoot
- state::Orderbook
- state::OutEvent
- state::PerpMarket
- state::PerpOpenOrder
- state::PerpPosition
- state::Serum3Market
- state::Serum3MarketIndexReservation
- state::Serum3Orders
- state::StablePriceModel
- state::StubOracle
- state::TokenPosition
- types::I80F48
- types::PerpMarketIndex
- types::Serum3MarketIndex
- types::TokenIndex
Enums
- accounts_ix::FlashLoanType
- accounts_ix::Serum3OrderType
- accounts_ix::Serum3SelfTradeBehavior
- accounts_ix::Serum3Side
- error::MangoError
- health::HealthType
- logs::LoanOriginationFeeInstruction
- state::BookSideOrderTree
- state::CheckLiquidatable
- state::EventType
- state::IxGate
- state::NodeTag
- state::OracleType
- state::OrderParams
- state::OrderState
- state::OrderTreeType
- state::PlaceOrderType
- state::PostOrderType
- state::Side
- state::SideAndOrderTree
Traits
- accounts_zerocopy::AccountReader
- accounts_zerocopy::KeyedAccountReader
- accounts_zerocopy::LoadMutZeroCopy
- accounts_zerocopy::LoadMutZeroCopyRef
- accounts_zerocopy::LoadZeroCopy
- accounts_zerocopy::LoadZeroCopyRef
- error::Contextable
- error::IsAnchorErrorWithCode
- health::AccountRetriever
- i80f48::ClampToInt
- i80f48::LowPrecisionDivision
- state::DerefOrBorrow
- state::DerefOrBorrowMut
- state::DynamicHeader
- state::MangoAccountLoader
- state::QueueHeader
Macros
- account_seeds
- bank_seeds
- error_msg
- error_msg_typed
- group_seeds
- require_msg
- require_msg_typed
- serum_market_seeds
- state::account_seeds
- state::bank_seeds
- state::group_seeds
- state::serum_market_seeds
- zip
Functions
- accounts_ix::compute_budget::check_id
- accounts_ix::compute_budget::id
- accounts_ix::jupiter_mainnet_3::check_id
- accounts_ix::jupiter_mainnet_3::id
- accounts_ix::jupiter_mainnet_4::check_id
- accounts_ix::jupiter_mainnet_4::id
- address_lookup_table_program::addresses
- address_lookup_table_program::contains
- address_lookup_table_program::cpi_extend
- check_id
- entry
- health::compute_health
- health::compute_health_from_fixed_accounts
- health::new_fixed_order_account_retriever
- health::new_health_cache
- id
- logs::emit_perp_balances
- mango_v4::account_buyback_fees_with_mngo
- mango_v4::account_close
- mango_v4::account_create
- mango_v4::account_edit
- mango_v4::account_expand
- mango_v4::account_toggle_freeze
- mango_v4::alt_extend
- mango_v4::alt_set
- mango_v4::benchmark
- mango_v4::compute_account_data
- mango_v4::flash_loan_begin
- mango_v4::flash_loan_end
- mango_v4::flash_loan_end_v2
- mango_v4::group_close
- mango_v4::group_create
- mango_v4::group_edit
- mango_v4::group_withdraw_insurance_fund
- mango_v4::health_region_begin
- mango_v4::health_region_end
- mango_v4::ix_gate_set
- mango_v4::liq_token_bankruptcy
- mango_v4::liq_token_with_token
- mango_v4::perp_cancel_all_orders
- mango_v4::perp_cancel_all_orders_by_side
- mango_v4::perp_cancel_order
- mango_v4::perp_cancel_order_by_client_order_id
- mango_v4::perp_close_market
- mango_v4::perp_consume_events
- mango_v4::perp_create_market
- mango_v4::perp_deactivate_position
- mango_v4::perp_edit_market
- mango_v4::perp_force_close_position
- mango_v4::perp_liq_base_or_positive_pnl
- mango_v4::perp_liq_force_cancel_orders
- mango_v4::perp_liq_negative_pnl_or_bankruptcy
- mango_v4::perp_place_order
- mango_v4::perp_place_order_pegged
- mango_v4::perp_settle_fees
- mango_v4::perp_settle_pnl
- mango_v4::perp_update_funding
- mango_v4::serum3_cancel_all_orders
- mango_v4::serum3_cancel_order
- mango_v4::serum3_close_open_orders
- mango_v4::serum3_create_open_orders
- mango_v4::serum3_deregister_market
- mango_v4::serum3_edit_market
- mango_v4::serum3_liq_force_cancel_orders
- mango_v4::serum3_place_order
- mango_v4::serum3_register_market
- mango_v4::serum3_settle_funds
- mango_v4::serum3_settle_funds_v2
- mango_v4::stub_oracle_close
- mango_v4::stub_oracle_create
- mango_v4::stub_oracle_set
- mango_v4::token_add_bank
- mango_v4::token_deposit
- mango_v4::token_deposit_into_existing
- mango_v4::token_deregister
- mango_v4::token_edit
- mango_v4::token_force_close_borrows_with_token
- mango_v4::token_liq_bankruptcy
- mango_v4::token_liq_with_token
- mango_v4::token_register
- mango_v4::token_register_trustless
- mango_v4::token_update_index_and_rate
- mango_v4::token_withdraw
- serum3_cpi::load_asks_mut
- serum3_cpi::load_bids_mut
- serum3_cpi::load_market_state
- serum3_cpi::load_open_orders
- serum3_cpi::load_open_orders_bytes
- serum3_cpi::load_open_orders_ref
- serum3_cpi::pubkey_from_u64_array
- serum3_cpi::remove_slop_mut
- state::compute_equity
- state::determine_oracle_type
- state::fixed_price_data
- state::fixed_price_lots
- state::new_node_key
- state::oracle_pegged_price_data
- state::oracle_pegged_price_offset
- state::oracle_price_and_state
- state::power_of_ten
- state::rank_orders
- state::switchboard_v1_devnet_oracle::check_id
- state::switchboard_v1_devnet_oracle::id
- state::switchboard_v2_mainnet_oracle::check_id
- state::switchboard_v2_mainnet_oracle::id
- util::fill_from_str
- util::format_zero_terminated_utf8_bytes
Typedefs
- state::MangoAccountLoadedRef
- state::MangoAccountLoadedRefCell
- state::MangoAccountLoadedRefCellMut
- state::MangoAccountRef
- state::MangoAccountRefMut
- state::MangoAccountValue
- state::NodeHandle
- state::PerpMarketIndex
- state::Serum3MarketIndex
- state::TokenIndex
Statics
- ID
- accounts_ix::compute_budget::ID
- accounts_ix::jupiter_mainnet_3::ID
- accounts_ix::jupiter_mainnet_4::ID
- state::switchboard_v1_devnet_oracle::ID
- state::switchboard_v2_mainnet_oracle::ID
Constants
- state::DAY
- state::DAY_I80F48
- state::FEE_BUYBACK_QUOTE_TOKEN_INDEX
- state::FREE_ORDER_SLOT
- state::HOUR
- state::INSURANCE_TOKEN_INDEX
- state::MAX_BANKS
- state::MAX_NUM_EVENTS
- state::MAX_ORDERTREE_NODES
- state::MINIMUM_MAX_RATE
- state::PERP_SETTLE_TOKEN_INDEX
- state::QUOTE_DECIMALS
- state::QUOTE_NATIVE_TO_UI
- state::QUOTE_TOKEN_INDEX
- state::YEAR_I80F48