OmniLayer / omnicore

OmniCore staging tree
http://www.omnilayer.org/
MIT License
759 stars 230 forks source link

Transitive order execution #309

Open dexX7 opened 8 years ago

dexX7 commented 8 years ago

Just some brainstorming:

Consider there are the following open orders:

Say Alice wants to buy Silver, and only has Gold, and no Omni, then she could still satisfy her goal by trading Gold for Omni, then Omnifor Silver.

I'm wondering, whether we could or should help for cases like this, e.g. in form of new RPCs.

On the other hand, it seems pretty risky, given that the path Gold -> Omni -> Silver isn't guaranteed to be available, once the transactions confirm.

zathras-crypto commented 8 years ago

Isn't this directly covered in the next phase of MetaDEx (ie direct token to token trading)? Alice would directly trade Gold Token for Silver Token...

dexX7 commented 8 years ago

Not directly. Say it's possible to trade Silver/Gold, then it doesn't imply there are also Silver/Gold offers. Maybe another path is cheaper, say via Silver -> CheapCoin -> OtherCoin -> Gold.

zathras-crypto commented 8 years ago

Ahhh I see... Well, this is interesting because I'd been thinking about the possibility of "conditional actions" basically actions that only happen if/when some other condition is met.

The use case you describe above is one potential use (if trade X is matched, execute action Y (which could be another trade for example).

It's only an early idea at this stage but thought it might open a lot of potential use cases...