skip-mev / skip-go-cosmwasm-contracts

CosmWasm Contracts for Skip Go
Apache License 2.0
27 stars 25 forks source link

Support multiple routes in astroport adapter #99

Closed thal0x closed 6 months ago

thal0x commented 6 months ago

Updates the Astroport adapter contract to support multiple routes.

The main change is to add an optional offer_asset to AstroportPoolSwap to allow manually setting the swap amount of an operation. With this we can set the offer_asset of a swap operation to the offer_asset of the route if it is the first operation in the route.

Most validation we will have to do regarding multiple routes appears to be done in the entry point contract, but correct me if I'm wrong.

NotJeremyLiu commented 6 months ago

approved. left some comments in response to your PRE_SWAP_OUT_ASSET_AMOUNT comment