Documentation
    Preparing search index...

    Class MarginMaintainerContract

    DeepBookMaintainerContract class for managing maintainer actions.

    Index

    Constructors

    Methods

    • Parameters

      • coinKey: string

        The key to identify the coin

      • poolConfig: TransactionArgument

        The configuration for the pool

      Returns (tx: Transaction) => void

      A function that takes a Transaction object

      Create a new margin pool

    • Parameters

      • deepbookPoolKey: string

        The key to identify the deepbook pool

      • coinKey: string

        The key to identify the margin pool

      • marginPoolCap: TransactionObjectArgument

        The margin pool cap

      Returns (tx: Transaction) => void

      A function that takes a Transaction object

      Disable a deepbook pool for loan

    • Parameters

      • deepbookPoolKey: string

        The key to identify the deepbook pool

      • coinKey: string

        The key to identify the margin pool

      • marginPoolCap: TransactionObjectArgument

        The margin pool cap

      Returns (tx: Transaction) => void

      A function that takes a Transaction object

      Enable a deepbook pool for loan

    • Parameters

      • coinKey: string

        The key to identify the coin

      • marginPoolConfig: Required<
            Pick<
                MarginPoolConfigParams,
                "rateLimitCapacity"
                | "rateLimitRefillRatePerMs"
                | "rateLimitEnabled",
            >,
        > & MarginPoolConfigParams

        The configuration for the margin pool with rate limit

      Returns (tx: Transaction) => TransactionResult

      A function that takes a Transaction object

      Create a new margin pool config with rate limit

    • Parameters

      Returns (tx: Transaction) => void

      A function that takes a Transaction object

      Update the margin pool config