@primitivefi/contracts
v0.6.0
Published
Primitive options protocol contracts.
Downloads
235
Readme
Primitive Protocol
Documentation
The database of Primitive protocol contracts and documentation is hosted on notion here: Primitive Protocol HQ
Contracts
Primitive is a decentralized protocol for options that is focused on security and simplicity. Users and developers will tap into the protocol to offer and underwrite tokenized options on any ERC-20 token. The protocol operates without any centralized control, enabling an immutable set of smart contracts to work in perpetuity on Ethereum.
This repository has the core contracts for the Option primitives.
The live contract addresses are here.
We use Hardhat as a development environment for compiling, testing, and deploying the contracts.
Testing
Run Tests
yarn test
Run Coverage
yarn coverage
Deployments
yarn deploy:mainnet
yarn deploy:rinkeby
Verify Deployments
yarn verify:rinkeby
yarn verify:mainnet
Reports
Coverage
The coverage report is available here.
Gas
The gas report is available here.
Contributing
Join the developers and team in the Primitive discord: Discord
Security
The disclosure of security vulnerabilities helps us ensure the security of our users.
How to report a security vulnerability?
If you believe you’ve found a security vulnerability in one of our contracts or platforms, send it to us by emailing [email protected]. Please include the following details with your report:
- A description of the location and potential impact of the vulnerability.
- A detailed description of the steps required to reproduce the vulnerability.