Skip to content

derivexyz/v2-core

Repository files navigation

Derive V2

foundry-rs - foundry CI codecov



lyra

The framework to trade all derivatives

Build

# installs git dependencies pinned in foundry.toml (into ./lib)
# (this repo does not use git submodules)
forge install

forge build

Tests

forge test

Go to test folder for more details on how to run different tests.

Documentation

Go to docs to understand the high-level design, transaction flow, and how different Derive V2 components work together.

Static Analysis - Slither

Please go to the link above for detail to install. To run the analysis:

slither src

Deployment

Got to scripts to understand how to deploy Derive v2 to different networks.

Finding addresses

Mainnet: 957 Testnet: 901

Within each chain, the structure is:

  • <TOKEN_NAME>.json -> feed contracts / asset addresses / currency specific managers (e.g. PMRM2)
  • core.json -> Standard Manager / Cash Asset / Liquidations / main account deployment / helpers
  • shared.json -> underlying erc20s / feed signers

About

Core smart contracts for the Lyra V2 Protocol

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors