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: string

        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: string

        The margin pool cap

      Returns (tx: Transaction) => void

      A function that takes a Transaction object

      Enable a deepbook pool for loan

    • Parameters

      Returns (tx: Transaction) => TransactionResult

      A function that takes a Transaction object

      Create a new interest config

    • Parameters

      • coinKey: string

        The key to identify the coin

      • marginPoolConfig: MarginPoolConfigParams

        The configuration for the margin pool

      Returns (tx: Transaction) => TransactionResult

      A function that takes a Transaction object

      Create a new margin pool config

    • Parameters

      Returns (tx: Transaction) => TransactionResult

      A function that takes a Transaction object

      Create a new protocol config

    • Parameters

      • coinKey: string

        The key to identify the margin pool

      • marginPoolCap: string

        The margin pool cap

      • interestConfig: InterestConfigParams

        The configuration for the interest

      Returns (tx: Transaction) => void

      A function that takes a Transaction object

      Update the interest params

    • Parameters

      • coinKey: string

        The key to identify the margin pool

      • marginPoolCap: string

        The margin pool cap

      • marginPoolConfig: MarginPoolConfigParams

        The configuration for the margin pool

      Returns (tx: Transaction) => void

      A function that takes a Transaction object

      Update the margin pool config