This section delves into the intricate details of the GOJO Perp protocol, catering specifically to developers seeking a comprehensive understanding of its inner workings.
Smart Contract Architecture:
GOJO Smart Contract Address:
GOJO leverages a modular smart contract architecture, separating functionalities into distinct contracts for enhanced organization and maintainability. Key contract categories include:
Manages market creation, pricing, liquidity deposits/withdrawals for individual markets.
GOJO Perp DEX utilizes specific collateral tokens and an index token to create individual markets. Users deposit collateral tokens, acting as security for their positions, while the index token represents a basket of underlying assets the market tracks. The choice of collateral and index tokens depends on the specific market being created.
Anyone can propose a new market by specifying details like the collateral tokens, index token, minimum collateral ratio, initial index price, and other relevant parameters. This proposal then undergoes a community governance process where token holders vote on its approval. If successful, the market is deployed on the blockchain.
Once a market is live, users can become liquidity providers by depositing their chosen collateral tokens. These providers earn fees generated from trading activity within the market. This separation of markets offers benefits like risk isolation, as each market operates independently.