anchor/examples/swap
Armani Ferrante a1464d14d5
examples: Swap on the serum orderbook (#224)
2021-04-28 14:08:53 -07:00
..
deps examples: Swap on the serum orderbook (#224) 2021-04-28 14:08:53 -07:00
migrations examples: Swap on the serum orderbook (#224) 2021-04-28 14:08:53 -07:00
programs/swap examples: Swap on the serum orderbook (#224) 2021-04-28 14:08:53 -07:00
tests examples: Swap on the serum orderbook (#224) 2021-04-28 14:08:53 -07:00
Anchor.toml examples: Swap on the serum orderbook (#224) 2021-04-28 14:08:53 -07:00
Cargo.toml examples: Swap on the serum orderbook (#224) 2021-04-28 14:08:53 -07:00
README.md examples: Swap on the serum orderbook (#224) 2021-04-28 14:08:53 -07:00

README.md

Swap

An example swap program that provides a convenient API to the Serum orderbook for performing instantly settled token swaps.

Usage

This example requires building the Serum DEX from source, which is done using git submodules.

Install Submodules

Pull the source

git submodule init
git submodule update

Build the DEX

Build it

cd deps/serum-dex/dex/ && cargo build-bpf && cd ../../../

Run the Test

Run the test

anchor test