Allow connectors to plug on exchange APIs
If a connector is plugged on an exchange API (or on DEXs like Uniswap for ETH/ERC20 trades), it may be able to avoid having to run multiple settlement engines.
Say Alice has ETH and wants to pay Bob in BTC. She makes a payment via the intermediary connector, once settlement to Bob is required, the connector makes a call to an exchange's API, deposits the ETH, makes a ETH/BTC trade, and issues a withdrawal to Bob's address.
For ETH/ERC20s, the same logic applies, but the connector could also query a DEX
I'm also working on this and I'll probably implement the trading part into the intermediary's ETH settlement engine in this scenario. Do you have developed a better method?
I haven't worked on ILP for a while, so no! Go ahead :)