DEV Community

walter
walter

Posted on

A Developer's Guide to Interacting with gTrade's Synthetic Architecture

This guide provides a technical breakdown of the Gains Network Official protocol, focusing on how its unique synthetic engine works and how to interact with it.

Step 1: Understanding the Synthetic Model

First, gTrade is not an order book DEX. The gTrade Synthetic Architecture means that traders are not trading against other users but against the gDAI Vault. This single liquidity source handles all trades, eliminating slippage and ensuring deep liquidity at all times.

Step 2: The Role of the gDAI Vault

The gDAI Vault Explained: This is the core of the system. It is a multi-asset vault that acts as the sole counterparty to all trades on the platform.

For Traders: When a trader wins, they are paid out from the gDAI vault. When they lose, their PnL is paid into the vault.

For LPs: Users who provide liquidity to the vault are essentially taking the other side of all platform trades, earning fees in return.

Step 3: The Oracle Network

The system's integrity relies on its price feeds. The Gains Network Oracle Security is robust, using a custom network of DONs (Decentralized Oracle Networks) combined with its own "Look Don't Touch" (LDT) algorithm. This provides real-time, manipulation-resistant price data, which is critical for gTrade Leverage Trading.

Step 4: Interacting with Staking Contracts

To participate in the ecosystem's revenue share, developers can integrate with the GNS staking contract. Our Stake GNS Guide details this process: by staking GNS, users receive a portion of the fees generated by the gTrade Exchange Platform, creating a direct link between platform success and token holder rewards.

For all smart contract addresses and architectural details, refer to the Full Official Documentation.

https://sites.google.com/verify-chain.org/gains-network/

Top comments (0)