Take the 2-minute tour ×
Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It's 100% free, no registration required.

If two offers have the same exchange rate, how does Ripple decide which one to fulfil first?

share|improve this question
1  
I guess, since it makes most sense to me, to fulfil the older one, but that's just a guess: I'd like to know for sure. –  Lohoris Mar 4 '13 at 14:23
    
It is possible that this hasn't been decided yet. –  jtimon Mar 11 '13 at 14:47
add comment

1 Answer 1

up vote 2 down vote accepted

If they're in the same order book (same currency/issuer pairs), it's the one that was placed first.

If they're in different order books (say because the source holds balances from more than one issuer) it's a bit more complex. Even if the offer rates are the same, the effective rate might not be the same. For example, if one issuer has a higher transfer fee, that can make the effective rate higher even if the offer rate is the same.

If the effective rate is the same, then it's the one specified first in the transaction's path set. Currently, the server sorts the path set when the transaction is formed based on an attempt to provide the most liquidity and any benefits that can be achieved. So, for example, if one path reduces a balance that's over its limit, that will be preferred.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.