LogoLogo
Nekodex AppDiscord
Nekodex (Playground)
Nekodex (Playground)
  • Nekodex $(=ↀωↀ=)
    • Terms of Service
  • Introducing Perp v3
  • All About Perp
    • Project overview
      • Product info
      • About us
      • Governance
    • Roadmap
    • Official links
    • FAQs
    • PERP Token
    • Contact us
    • More
      • Security & Audits
      • Partnerships
      • Careers
      • Marketing
      • Legacy Docs
  • Docs for Users
    • Earn yield
    • Trade perpetual futures
      • Fees & system limits
      • Perp Smart Account
      • Perp contract specs
    • Provide liquidity (LP)
    • How Perp v3 works
      • Pyth Oracles
    • Security
  • Docs for Devs
    • Technical Overview
    • Contracts
      • Address Manager
      • Borrowing Fee
      • Circuit Breaker
      • ⭐Clearinghouse
      • Config
      • Funding Fee
      • ⭐Maker
        • Oracle Maker
        • Spot Hedge Maker
      • Maker Reporter
      • ⭐Order Gateway
      • Quoter
      • ⭐Vault
    • Dev FAQ
    • API
      • Subgraph
    • Error codes
Powered by GitBook
On this page
  • Contract addresses
  • Contract descriptions
  • Metadata
  • Decimal usage

Was this helpful?

  1. Docs for Devs

Contracts

PreviousTechnical OverviewNextAddress Manager

Last updated 1 year ago

Was this helpful?

Contract addresses

Find a complete list of up to date contract addresses here:

Contract descriptions

The main contracts users interact with are:

Vault - holds user deposits and manages user funds

Order Gateway - receives and triggers orders

Clearinghouse - processes exchange functions such as open position, close position and liquidations, as well as handling accounting.

For other contracts, use the menu on the left.

Metadata

Key metadata such as marketID, exchange contract addresses, market contract addresses, price feed contracts, etc. can be found here:

Decimal usage

EVM Smart contracts do not recognize decimals. The general convention in Perp v3 contracts is all amounts use 18 decimal.

In cases where the native decimals of the token are used (e.g. USDT uses 6 decimals), the contract parameter will have XCD appended to it (cross to collateral decimal). E.g.

  • amountXCD

  • marginXCD

https://metadata.perp.exchange/lugia/optimism.jsonmetadata.perp.exchange
https://metadata.perp.exchange/lugia/optimism.jsonmetadata.perp.exchange