Files
rippled/src/test/jtx
seelabs 3f7ce939c8 fix amendment: AMM swap should honor invariants: (#5002)
The AMM has an invariant for swaps where:
new_balance_1*new_balance_2 >= old_balance_1*old_balance_2

Due to rounding, this invariant could sometimes be violated (although by
very small amounts).

This patch introduces an amendment `fixAMMRounding` that changes the
rounding to always favor the AMM. Doing this should maintain the
invariant.

Co-authored-by: Bronek Kozicki
Co-authored-by: thejohnfreeman
2024-04-25 21:15:19 -04:00
..
2024-04-19 11:32:15 -05:00
2022-04-06 13:29:48 -07:00
2023-07-12 13:52:50 -04:00
2023-06-26 14:07:20 -07:00