During the Buildathon, Drake introduced several features designed to make trading easy, accessible, and enjoyable for all levels of traders.
Cross margin mode is highly popular in perpetual trading, supporting advanced trading strategies and flexible collateral usage. However, implementing this feature presented significant challenges due to the complexity of account equity calculation and liquidation control.
To balance the risk model with on-chain efficiency, we experimented with various mathematical models and developed an innovative approach to implement this feature in our decentralized exchange (DEX). Additionally, we optimized the code architecture extensively to ensure that the gas costs remained manageable.
Risk control is crucial in a perpetual DEX due to the numerous uncertainties inherent in an on-chain environment, such as oracle price delays, network outages, malicious liquidity attacks, and price manipulation of illiquid tokens.
We integrated with Chainlink's low-latency oracle to block malicious arbitrage by using an on-chain settlement delay. We conducted extensive simulations and stress tests, including comprehensive unit tests, key component stateful random tests, and testnet stress tests. By simulating all conceivable scenarios, we ensured robustness and established emergency operation procedures to swift
Gathering sufficient feedback from early users is vital for a new DEX. Initially, we collected feedback from close friends and are now looking to expand our user base through a Paper Trading Competition.
We launched a Paper Trading Competition where users can improve their rankings by trading more, referring friends, and providing valuable feedback. Users can easily share their performance and referral links through an implementation using Farcaster Frame, thus fostering a wider feedback loop and enhancing user engagement.
By addressing these challenges through innovative solutions and comprehensive testing, we aim to provide a robust and user-friendly trading platform.
Tracks Applied (4)
TRADING with Aerodrome and Synthetix
Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.
Discussion