This project serves as a demonstration of utilizing decimal arithmetic in Decentralized Finance (DeFi), focusing on the example of an Automated Market Maker (AMM) with a constant product model.
- Rust & Cargo (rustup)
- cargo-contract (cargo-contract)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup component add rust-src && cargo install --force --locked cargo-contract
git clone git@github.com:invariant-labs/amm-decimal.git
cargo contract build
cargo test