Source Code
Content Out of Date
This content is not maintained and refers to an out-of-date version of Perpetual Protocol.
For the latest documentation, see https://docs.perp.com
Curie Smart Contracts
The source code Curie smart contracts now appear on GitHub as well as Etherscan and are now more structured and easier to read. For the core smart contracts that underlie Perp v2, the full audit reports can be found here.
The Curie, Curie Periphery and Oracle contracts are all now publicly available on GitHub. If you are a smart contract developer, check out the repository links below to get started with building on top of Perp v2:
Note: the Curie contract is subject to the bug bounty program with ImmuneFi.
For more details about implementation, check out the docs here. All of the contracts above are licensed under GPL-3.0, meaning that any changes must be documented and ensure that the entire ecosystem benefits from any re-use of the code.
You’ll be able to closely follow every change made by our team in these different repositories. We invite anyone to review our code, provide feedback through the issues tracker, submit pull requests and start building on top of our highly composable on-chain derivatives protocol.
Perp Frontend SDK
By open sourcing the software development kit for Perp v2’s frontend, it’s now easier for BUIDLers to create alternative front ends!
The Perp Frontend SDK is publicly available on GitHub: https://github.com/perpetual-protocol/perp-sdk
We invite anyone to review our code, provide feedback through the issues tracker, submit pull requests and start building alternative frontends.
Perp Subgraph
Open sourcing the Perp subgraph provides more transparency and enables anyone to query historical data, especially those that are difficult to fetch from the contract.
The Perp Curie Subgraph is publicly available on GitHub: https://github.com/perpetual-protocol/perp-curie-subgraph
If you want to start BUIDLing using the materials linked above, you may be interested in our grants program, where any project or idea that builds on Perpetual Protocol and benefits our ecosystem can apply for funding.
Collateral Liquidator
Anyone can become a collateral liquidator to earn collateral liquidation profits in USDC without any upfront capital needed.
Access Control
Contract owner can withdraw funds (USDC) from the contract and perform liquidations,
Whitelisted EOA can directly interact with the contract to liquidate more efficiently.
The Collateral Liquidator is publicly available on GitHub: https://github.com/perpetual-protocol/perp-collateral-liquidator
Last updated