All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Removed
implementations
module in favor of new cratescw-dex-astroport
andcw-dex-osmosis
. - Added two variants to
CwDexError
that are needed incw-dex-astroport
.
- Deprecated
implemenations
module in favor of new cratescw-dex-astroport
andcw-dex-osmosis
.- This is to avoid breaking changes in
cw-dex
when one of the implementations change.
- This is to avoid breaking changes in
- Added support in
AstroportPool
for custom pool typeastroport-pair-xyk-sale-tax
.
- Added support for Astroport's passive concentrated liquidity pool type.
- Changed
AstroportPool
to use the new Astroport liquidity manager contract which supports directly passing a min_out for provide and withdraw liquidity.- This is a breaking change as
AstroportPool::new
now takes an argumentliquidity_manager: Addr
.
- This is a breaking change as
- Changed fn
get_pool_for_lp_token
inPool
to take an argumentastroport_liquidity_manager: Option<Addr>
. This is needed to support using the new liquidity manager contract. - Bump
cw-it
to0.2.2
- fn
claim_rewards
onAstroportStaking
now unwraps any CW20-wrapped native tokens claimed from the staking contract.- See the astroport native-coin-wrapper contract.
- Changed field
astro_addr: Addr
toastro_token: AssetInfo
on structAstroportStaking
.- This is a breaking change.
- This is to support chains where ASTRO is a native token.
- Implemented
Pool::get_pool_for_lp_token
for Astroport. - Upgraded dependencies
- Upgraded osmosis-std to 0.19.2
- Upgraded cw-it to 0.2.1
Use StdError::generic_err
instead of constructing a literal StdError
in cw-dex/src/error.rs
,
so that we don't have to fill the backtraces field.
Note: This relase contains breaking API changes.
- Upgraded dependencies
- Upgraded osmosis-std to 0.16.0
- Upgraded astroport to 2.8.0
- Removed argument
sender
of functionsimulate_swap
of traitPool
.- This is no longer needed with the new API of Osmosis v16.
- Add argument
min_out: AssetList,
to functionwithdraw_liquidity
of traitPool
.- Note: This is a breaking change.
- Note: This argument is currently ignored for Astroport as they do not support minimum output amounts for withdrawal liquidity. Support will be added in a future release.
- Use
min_out
argument in functionwithdraw_liquidity
of implementation of traitPool
forOsmosisPool
.