interledger-rs icon indicating copy to clipboard operation
interledger-rs copied to clipboard

Allow connectors to plug on exchange APIs

Open gakonst opened this issue 6 years ago • 2 comments

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

gakonst avatar Nov 18 '19 00:11 gakonst

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?

omertoast avatar Dec 20 '20 06:12 omertoast

I haven't worked on ILP for a while, so no! Go ahead :)

gakonst avatar Dec 20 '20 09:12 gakonst