About
## Wave 4 submission
# GMX-Style Perpetual DEX - Deployment Guide
## Overview
This is a comprehensive GMX-style perpetual DEX built on Base chain with: - Perpetual futures trading (BTC, ETH) with up to 50x leverage - Spot market AMM with liquidity pools - Platform token (PDX) with governance and staking - Liquidity mining incentives - Chainlink price feeds for reliable oracle data
## Smart Contracts
### Core Contracts
- **PlatformToken.sol** - ERC20 governance token
- Symbol: PDX
- Max Supply: 1 billion tokens
- Mintable (owner only)
- Burnable
- **PriceOracle.sol** - Chainlink price feed integration
- BTC/USD feed: `0x64c911848F3f3681CEDF1C79c3A2e9255a7E5F1A`
- ETH/USD feed: `0x71041dddad3595F9CEd3DcCFBe3D1F4b0a16Bb70`
- Staleness checks
- Supports multiple assets
- **PerpetualTrading.sol** - Perpetual futures
- Long/Short positions
- 2x to 50x leverage
- Funding rates
- Liquidation mechanism (80% threshold)
- 0.1% trading fee
- **SpotMarket.sol** - AMM-based spot trading
- Constant product formula (x * y = k)
- LP tokens with transfer support
- 0.3% trading fee
- Pool creation and liquidity management
- **Vault.sol** - Central liquidity vault
- VLP tokens for liquidity providers
- Multi-token support
- Fee collection and distribution
- Position collateral management
- **Staking.sol** - Token staking with rewards
Network: Polygon Mainnet (Chain ID: 137) Deployer: 0x8AaEe2071A400cC60927e46D53f751e521ef4D35
Production Tokens:
USDC (Collateral): 0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359 Platform Token (PDX): 0x6F9278be3791B49ae05bB565291E5728a5b739b7
Chainlink Price Feeds:
BTC/USD: 0xc907E116054Ad103354f2D350FD2514433D57F6f ETH/USD: 0xF9680D99D6C9589e2a93a78A04A279e509205945 MATIC/USD: 0xAB594600376Ec9fD91F8e885dADF0CE036862dE0 LINK/USD: 0xd9FFdb71EbE7496cC440152d43986Aae0AB76665 AAVE/USD: 0x72484B12719E23115761D5DA1646945632979bB6
Protocol Contracts:
PriceOracle: 0xcbF7540E294e0A2bD9d40b2f29d2272b8c47e398 Vault: 0x95378345982082f53B42ffBF2e957B08fEf4187b PerpetualTrading: 0x1863e58A54A4Efff1bF3F6be338fF97BAd949A52 SpotMarket: 0xdC404e78Fc7Cc7B4127DB996577Ec1fE698dbd9E Staking: 0x0812E87DaEe54e8F05dAffb7344EA5C6fa49F923 Governance: 0x6C7D310AB0D9830C722d15Bf2060f7CfFCc5B942 LiquidityMining: 0x50C09C8C2759bDc9347DDF6fc71c67150c140e66 RewardDistributor: 0xbF7F9CcCb1DFD40Fcd7e9630198D221E33955906
From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.





