This repository contains examples of how to deposit liquidity, open orders, batch cancel orders, and withdraw liquidity from Spark.
On using fuel's multicall functionality it is possible to open and close multiple orders in a single transaction.
Check deployment addresses here: https://github.com/compolabs/orderbook-contract/releases
maker | taker | Volume of quote asset |
---|---|---|
0.1% | 0.15% | 10000_000000 |
0.08% | 0.13% | 50000_000000 |
0.06% | 0.09% | 100000_000000 |
0.02% | 0.07% | 500000_000000 |
0.01% | 0.05% | 1000000_000000 |
On the contract side, the protocol fee units are in base 1e4 (10_000)
$0.001 USD On the contract side, the matcher fee is in the base unit of the quote asset. If the quote asset is USDC, this will be in base 1e6
To mint testnet tokens via the UI: Spark Testnet Faucet
rustup target add wasm32-unknown-unknown
cargo build