Module dexter_vault::contract
source · Functions§
- Description - Adds a new pool with a new
PoolType
Key. Returns anContractError
on failure or - Description - Creates a new pool with the specified parameters in the
asset_infos
variable. Returns anContractError
on failure or - Description - Entry point for a user to Exit a pool supported by the Vault. User can exit by providing the pool id and either the number of assets to be returned or the LP tokens to be burnt.
- Description - Entry point for a user to Join a pool supported by the Vault. User can join by providing the pool id and either the number of assets to be provided or the LP tokens to be minted to the user.
- Description - Entry point for a swap tx between offer and ask assets. The swap request details are passed in
SingleSwapRequest
Type parameter. - Description - Updates general settings. Returns an
ContractError
on failure or the followingConfig
- Description - Updates pool configuration. Returns an
ContractError
on failure or - Description
- Description - Used for migration of contract. Returns the default object of type
Response
. - Description - Available the query messages of the contract.
- Description - Returns the stored Vault Configuration settings in custom
ConfigResponse
structure - Description - Returns the current stored state of the Pool in custom
PoolInfoResponse
structure - Description - Returns the current stored state of the Pool in custom
PoolInfoResponse
structure - Description - Returns the current stored state of the Pool in custom
PoolInfoResponse
structure - Description - Returns the current stored state of the queried pools
- Description - Returns the
PoolType
’s Configuration settings in custom [PoolConfigResponse
] structure - Description
- Description