Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 960 Bytes

README.md

File metadata and controls

46 lines (30 loc) · 960 Bytes

⚡DeFi Decimal Demo: AMM Constant Product Example⚡

Overview

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.

🔨 Getting Started

Prerequisites

Rust & Cargo

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

cargo-contract

rustup component add rust-src && cargo install --force --locked cargo-contract

Installation

Clone the repository:

git clone [email protected]:invariant-labs/amm-decimal.git

Build project

cargo contract build

Run tests

cargo test