@synthetixio/perps-market
v3.13.0
Published
Perps Market implementation
Readme
Perpetual Futures Market
This system generates markets that allow traders to open positions (ERC-721 tokens) that are long or short with leverage after depositing collateral as margin.
Developer Get Started
- Ensure you have IPFS Desktop running
- Run
yarnat the root directory:/synthetix-v3. - Run
yarn cannon setupto configure cannon
- Run
cat ~/.local/share/cannon/settings.jsonand ensure youripfsUrlis configured tohttp://localhost:5001. If it's still unable to find your IPFS local node, try usinghttp://0.0.0.0:5001.
- Run
yarn buildat the root directory:/synthetix-v3. - Run
yarn testin the synthetix protocol directory:/protocol/synthetix.
- This will create
synthetix-testableversion and throw it into your local IPFS cluster.
- Run
yarn testin the spot market directory:/markets/spot-market.
- This will create a
spot-market-testableversion and throw it into your local IPFS cluster.
- Run
yarn testin the perps market directory:/markets/perps-market.
- The perps market is composed of both the synthetix core and spot market contracts and uses the testable versions to create a testable perps market environment.
If you have passing tests at this point, congrats, you are all set for development.
Troubleshooting
If you experience any unexpected errors try running:
yarn clean
