White-Whale-Defi-Platform / white-whale-core

Core contracts for White Whale, The Interchain Liquidity Protocol for the Cosmos.
https://whitewhale.money
MIT License
36 stars 22 forks source link

[pool-manager] Implement AddSwapRoutes and RemoveSwapRoutes #315

Closed kerber0x closed 5 months ago

kerber0x commented 6 months ago

It is important there are swaproutes added so that the whale lair knows how to swap things back to WHALE when performing the buybacks.

Make it permissionless, but make it so that once a route is added it cannot be overriden. It needs to be removed, and added again.

Only the user who added a route and the owner of the contract can remove a route.

Think about the implications of this. Maybe there could be a method that scans the pools and changes the routes based on deepest liquidity??