anchor/examples/swap
Kirill Fomichev f9184d6b73
deps: Unpin zeroize (#580)
2021-08-05 11:04:57 -07:00
..
deps deps: Unpin zeroize (#580) 2021-08-05 11:04:57 -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 example: Fix typo in test (#416) 2021-06-24 15:02:18 -07:00
Anchor.toml cli: Allow custom test commands (#550) 2021-07-29 14:38:24 -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