Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic re-balancing of cryptocurrency #414

Open
ghost opened this issue Jan 31, 2018 · 6 comments
Open

Automatic re-balancing of cryptocurrency #414

ghost opened this issue Jan 31, 2018 · 6 comments

Comments

@ghost
Copy link

ghost commented Jan 31, 2018

Could have an integration to a decentralized exchange such as Shapeshift for automatic re-balancing of funds, once we have some multi-currency connectors.
Additionally as a feature, a recipient of a settlement may be owed currency X but prefer to receive currency Z instead; some exchange API can provide your multi-currency rates and pull in their order books so you can trade immediately to re-balance.
https://info.shapeshift.io/api

@michielbdejong
Copy link
Contributor

I think currently ilp-connector does not have a concept of 'user' that would link that user's multiple accounts?

@ghost ghost added the enhancement label Feb 4, 2018
@ghost
Copy link
Author

ghost commented Feb 6, 2018

@emschwartz
Copy link
Member

Could have an integration to a decentralized exchange such as Shapeshift for automatic re-balancing of funds

I think this is a great idea. I think it would make sense to implement that as a "connector backend".

Additionally as a feature, a recipient of a settlement may be owed currency X but prefer to receive currency Z instead

I don't think that makes as much sense. If you're sending and receiving your payments through a particular currency, all of your payouts (or payment channel updates) should be in that currency. If you want to start using a different currency, you can send an ILP payment to yourself at the address of your account in the other currency.

@michielbdejong
Copy link
Contributor

If we wanted to implement this, a hurdle for this would be #413; currently, the multi-plugins act as mini-connectors, and only they know about individual accounts and their balances. The ilp-connector only serves to provide the "plugin-plugins" like Store and Logger, and to deal with cross-currency payments. So implementing something like this would probably require changing the ledger plugin interface.

@sharafian
Copy link

Currently no multi-plugins are multicurrency, so I don’t see how that preventa this from being implemented. From your connector’s perspective, having an XRP-asym-server is the same as being peered with another connector over XRP

@michielbdejong
Copy link
Contributor

ah ok, I was thinking of rebalancing a user's balance, but probably this issue is more about the connector rebalancing its own hot wallets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants