Module astroport_pair_stable::contract
source · Constants§
- Tokenfactory LP token subdenom
Functions§
- If
belief_price
andmax_spread
are both specified, we compute a new spread, otherwise we just use the swap spread to checkmax_spread
. - Exposes all the execute functions available in the contract.
- Creates a new contract with the specified parameters in
InstantiateMsg
. - Manages the contract migration.
- Returns the total amount of assets in the pool as well as the total amount of LP tokens currently minted.
- Provides liquidity with the specified input parameters.
- Exposes all the queries available in the contract.
- Returns the pair contract configuration in a
ConfigResponse
object. - Returns information about cumulative prices for the assets in the pool using a
CumulativePricesResponse
object. - Returns the amounts of assets in the pair contract as well as the amount of LP tokens currently minted in an object of type
PoolResponse
. - Returns information about a reverse swap simulation in a
ReverseSimulationResponse
object. - Returns the amount of assets that could be withdrawn from the pool using a specific amount of LP tokens. The result is returned in a vector that contains objects of type
Asset
. - Returns information about a swap simulation in a
SimulationResponse
object. - Receives a message of type
Cw20ReceiveMsg
and processes it depending on the received template. - The entry point to the contract for processing replies from submessages.
- Performs an swap operation with the specified parameters.
- Updates the pool configuration with the specified parameters in the
params
variable. - Withdraw liquidity from the pool.