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

[pool-manager] Implement AddSwapRoutes and RemoveSwapRoutes

Closed this issue · 0 comments

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??