Astroport Liquidity Manager
The Astroport Liquidity Manager is a contract that allows users to provide and withdraw liquidity from the Astroport xyk and stable pools with additional slippage limit enforcement. This contract is meant to be non-upgradable and standalone. It depends only on the actual Astroport factory address. Liquidity Manager also exposes provide/withdraw simulation queries for xyk and stable pools.
InstantiateMsg
Initializes the contract with the Astroport factory contract address.
ExecuteMsg
receive
CW20 receive msg. Handles only withdraw messages which should come from Astroport LP tokens.
where <base64_encoded_json_string> is a base64 encoded json string of the following format:
min_assets_to_receive
enforces after-withdraw check that the user receives at least the specified amount of assets.
provide_liquidity
Provides liquidity through Liquidity Manager with slippage limit enforcement. Handles XYK pair imbalanced provide and returns excess assets to the user.
pair_msg
is equal to original Astroport provide message for all pools. min_lp_to_receive
enforces after-provide check that the user receives at least the specified amount of LP tokens.
QueryMsg
simulate
Simulates liquidity provide or withdraw.
Provide simulation example:
Withdraw simulation example: