Phoenix-Protocol-Group / phoenix-contracts

Source code of the smart contracts of the Phoenix DeFi hub DEX protocol
GNU General Public License v3.0
10 stars 6 forks source link

Multihop: Unify the swap interface for pool and pool stable #290

Closed ueco-jb closed 4 months ago

ueco-jb commented 5 months ago

For example using a multihop or the nominated trader, we accept only the XYK pools for now. We need to unify the interfaces between the pool stable and then modify those call into invoke_contract. https://docs.rs/soroban-sdk/latest/soroban_sdk/struct.Env.html#method.invoke_contract

_Originally posted by @ueco-jb in https://github.com/Phoenix-Protocol-Group/phoenix-contracts/pull/288#discussion_r1587193513_