

StaticBit.io
175 posts

@StaticBit_io
#XRPL #wallet 🇧🇷 Next-generation crypto wallet — decentralized, seamless 📈 🚧 https://t.co/kGbYoA0WlN https://t.co/qmVnGwU7ZE








StaticBit continues working on new DEX features, and during debugging we ran into an old XRPL behavior that I reported quite a long time ago. Most XRPL methods support pagination via marker, which allows clients to reliably iterate through all objects. However, when requesting the order book using book_offers, pagination does not behave the same way as in other XRPL methods. Example: request book_offers with limit = 5 response returns 5 offers, but no marker is provided. This means the client is forced to use a large limit (50–100+), otherwise it cannot guarantee traversal of the full order book. There is another problem here: the order book may contain unfunded offers (owner_funds < TakerGets), and with a small limit, the client may receive only such offers and never reach the actual liquidity. Someone might suggest using a private node or increasing server limits, and yes — this is partly related to public node limits. But this does not solve the underlying behavior of the method itself. In theory, this behavior can be abused by creating a large number of unfunded offers, for example buy orders, to occupy the beginning of the book. In this case, a client using a small limit will only see those offers and may assume that liquidity is very low. For example, it is possible to create a visual gap in the RLUSD order book where the UI shows that buy liquidity is only ~100 XRP, while in reality it is much higher. As a result, it becomes impossible to reliably load the full order book through the API without special workarounds. Question to XRPL developers: Is this expected behavior of book_offers, or a known limitation of the method? And why does it not use a standard marker field in both request and response like other paginated methods? For DEXs and wallets this can lead to incorrect liquidity display. #XRPL #DEX #XRPLDev #StaticBit @midnightfdn @vjkhannaripple P.S. We first noticed this problem when @xpmarket issuing its token, do you remember this @Kirjakulov ?























