anchor/examples/swap
Armani Ferrante a9179600cd
cli: Add provider section to Anchor.toml (#305)
2021-05-23 10:00:24 -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 ts: Replace deprecated web3.Account with web3.Keypair (#274) 2021-05-15 14:43:25 -07:00
Anchor.toml cli: Add provider section to Anchor.toml (#305) 2021-05-23 10:00: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