1 unstable release

new 0.2.0 Mar 24, 2025

#24 in #order-book

50 downloads per month

GPL-2.0-or-later

1MB
19K SLoC

Manifest Client

This module implements the Amm trait defined here.

There are 2 versions - one to swap against global and one that will not. If global accounts are not needed, then the user should not need to acquire excess locks and can avoid locking global ahead of time. To enforce this, the quoted price for global is artificially penalized by 1 atom to always be worse than the non-global quote when both are the same.

Testing

cargo test -- --nocapture

Dependencies

~36–48MB
~755K SLoC