Perp v2
Perp v2
  • About Perpetual Protocol
    • Social Links
    • Governance
    • v2 Era Ecosystem
    • PERP Token
  • Terms of Service
  • General
    • Wallets
    • Transfering Assets
    • Deposit & Withdrawal
    • Perpetual + Uniswap
    • FAQs
    • Guides
    • Legacy Reward Programs
    • Security
  • Hot Tub
  • Trading on Perp v2
    • How It Works
    • UI Overview
    • Perpetual Futures Basics
    • Trading Quick-start
    • Opening and Closing Positions
    • Account Value & More
    • Funding Payments
    • Order Types
    • Trading Fees and Gas Fees
    • Managing Risk
    • Multi-collateral
    • More docs
  • Providing Liquidity
    • Basics
    • Introduction to Maker UI
    • Add / Remove Liquidity
    • Estimated Fees and Rewards APR
    • More on LPing
    • Tools for LPs
  • Perp v2 Specs
  • Developer Docs
    • Developer FAQs
    • Source Code
    • Protocol Attributes
    • Contract guide
      • AccountBalance
      • BaseToken
      • ClearingHouse
      • CollateralManager
      • DelegateApproval
      • Exchange
      • InsuranceFund
      • MarketRegistry
      • OrderBook
      • QuoteToken
      • Vault
      • VirtualToken
    • Interface Contracts
      • IAccountBalance
      • IBaseToken
      • IClearingHouse
      • IClearingHouseConfig
      • IClearingHouseConfigEvent
      • ICollateralManager
      • IDelegateApproval
      • IERC20Metadata
      • IExchange
      • IIndexPrice
      • IInsuranceFund
      • IMarketRegistry
      • IOrderBook
      • IVault
      • IVirtualToken
    • Integration guide
    • Dev tools
Powered by GitBook
On this page
  • Curie Smart Contracts
  • Perp Frontend SDK
  • Perp Subgraph
  • Collateral Liquidator

Was this helpful?

  1. Developer Docs

Source Code

Last updated 1 year ago

Was this helpful?

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

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 .

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 .

For more details about implementation, check out the docs . 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!

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.

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 Perp Frontend SDK is publicly available on GitHub:

The Perp Curie Subgraph is publicly available on GitHub:

If you want to start BUIDLing using the materials linked above, you may be interested in our , where any project or idea that builds on Perpetual Protocol and benefits our ecosystem can apply for funding.

The Collateral Liquidator is publicly available on GitHub:

https://docs.perp.com
here
https://github.com/perpetual-protocol/perp-curie-contract
https://github.com/perpetual-protocol/perp-curie-periphery-contract
https://github.com/perpetual-protocol/perp-oracle-contract
ImmuneFi
here
https://github.com/perpetual-protocol/perp-sdk
https://github.com/perpetual-protocol/perp-curie-subgraph
grants program
https://github.com/perpetual-protocol/perp-collateral-liquidator