/amm-near

AMM Swap in NEAR

Primary LanguageRust

amm-near

Rust CI Super Linter

A simple AMM swap contract in NEAR.

Usage

make help # get command list

Build all contracts

make build

Deploy

brew install direnv
direnv allow # enable .env vars, modify .envrc to your requirements
make accounts
make deploy_fta
make deploy_ftb
make deploy_amm

Tests

Contract unit test

make test

E2E test

# 1. make build
# 2. make accounts
# 3. make deploy_all
# 4. make e2e
make e2e

Docs