To run the simulation you need to local Laminar node
Using docker
:
docker run --rm -p 9944:9944 laminar/laminar-node:latest \
--dev --ws-external --rpc-methods=unsafe \
-levm=trace --tmp
To build the project without docker
use the guidelines here:
laminar-protocol/laminar-chain
Run the node with:
cargo run -- --dev --tmp
Install dependencies:
yarn
Run simulation:
yarn dev:simulate-liquidate-synthetic-pool
To use simulation you need to clone the repository and run the simulation script:
Install dependencies:
yarn
Run simulation:
yarn dev:simulate-margin-position