apollodao / cw-dex

CosmWasm abstractions for decentralized exchanges.
Mozilla Public License 2.0
5 stars 4 forks source link

Unify `AstroportXykPool` and `AstroportStableSwapPool` into one struct #45

Closed pacmanifold closed 2 years ago

pacmanifold commented 2 years ago

Keep a PairType object in struct and implement different functionality in simulate_provide_liquidity using match. This gets rid of the need to use feature flags or have two separate contracts when implementing the vault contracts