Welcome to perps-risk-control-module!
This repository houses the contracts needed to enable risk control module as proposed in SIP-2048: MaxMarketValue Risk Control Module.
git clone [email protected]:leomassazza/perps-risk-control-module.git
cd ./perps-risk-control-module
# Install all dependencies.
yarn
# Compile contracts via Hardhat
yarn run compile
There's a script to verify the module functionality. In order to use it, fork optimism network with hardhat (i.e. in a Synthetix repo, npm run fork:ovm
) and execute.
npx hardhat run ./scripts/testRiskControlModule.js
xxxx TBD