The Gains Network is a decentralized finance (DeFi) ecosystem built on the Polygon and Arbitrum blockchains. Its main offering is gTrade, a decentralized leverage trading platform that allows users to trade a variety of assets, including cryptocurrencies, stocks, commodities, and forex
The GNS token plays a key role within the Gains Network ecosystem. It is designed to incentivize user engagement and participation. Users can stake GNS tokens to earn passive income.
The primary objective of this project is to propose a strategy for purchasing $5M worth of GNS through DEX while causing minimal market impact. This will be achieved through a data-driven approach, examining historical liquidity and slippage trends. I would like to use this project to showcase my skills in on-chain data, programming, and DeFI.
The following dashboards were developed to help us:
Multiple data sources and tools were utilized in this project. Below is a brief explanation about each one and the reasons for using them.
dex.trades
for GNS pools in Polygon and Arbitrumdex.trades
table does not provide decoded information about the USD amount in and out of the pool, the table polygon.core.ez_dex_swaps
was used for calculating slippage on Polygon. Flipside does not offer a decoded table for swaps on Arbitrum, but I saw a great opportunity to demonstrate how to handle logs and raw data to accomplish more complex tasks (I remember Jan asking me in the interview if I knew how to use logs ๐). The table arbitrum.core.fact_decoded_event_logs
was used to calculate swaps on Arbitrum and their USD value, thus making it possible to compute the slippage for trades on Arbitrum as well.