Document the cap on the number of offers that can be matched by a single transaction #2606
Labels
content updates
Updating, cleaning up, or rewriting existing content for better usability or new contexts
defi
Relating to the DEX, currency/asset trading, market-making/AMM, and other on-chain financial tools
The payment engine has a limit of 1000 offers that can be crossed (matched) by any single transaction. If any transaction attempts to process over 1000 offers, the transaction consumes the liquidity from the first 1000 offers, and then continues with processing the transaction without considering any other offers in that particular order book. This is a remarkable behavior which has potential implications that traders must consider when trying to understand what their offers may do, especially since a trader generally has no control over the number of counterparties' offers that may be matched.
See: https://github.com/XRPLF/rippled/blob/40b4adc9cc296a7e3c6e8c94b5a977a54c835613/src/ripple/app/tx/impl/CreateOffer.h#L41
The text was updated successfully, but these errors were encountered: