Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Tick size amendment #1922
Add an amendment to allow gateways to set a "tick size" for assets they issue. There are no changes unless the amendment is enabled (since the tick size option cannot be set).
Unit tests are include both for Quality::round itself and the use of the tick size through the AccountSet and OfferCreate transactors.
With the amendment enabled:
AccountSet transactions may set a "TickSize" parameter. Legal values are 0 and 3-15 inclusive. Zero removes the setting. 3-15 allow that many decimal digits of precision in the pricing of offers for assets issued by this account.
For asset pairs with XRP, the tick size imposed, if any, is the tick size of the issuer of the non-XRP
The tick size is imposed by rounding the offer quality down to nearest tick and recomputing the
Gateways must enable a TickSize on their account for this feature to benefit them.
The primary expected benefit is the elimination of bots fighting over the tip of the order book. This means:
Current coverage is 65.51% (diff: 94.00%)
@@ develop #1922 diff @@ ========================================== Files 698 698 Lines 49745 49797 +52 Methods 0 0 Messages 0 0 Branches 0 0 ========================================== + Hits 32568 32625 +57 + Misses 17177 17172 -5 Partials 0 0