Crypto trading can be fun but new users getting started are actively discouraged by the investment required and market volatility.
Our project is a fantasy league game where users can desposit a minimal entry fee to start a portfolio which is minted as an NFT with added benefit of being able to be traded freely in the open market.
Each portfolio starts with a base balance of 20,000$ using which users can buy tokens from a curated list. At the start of the tournament our contract takes a price snapshot of these tokens using Chainlink feeds. Users can then proceed to buy tokens at these prices and setup their portfolios.
After the buy period is over, users wait for tournament to end which can be automated using Chainlink Keepers. We then calculate a delta value difference in initial and final prices and order the tokens. Top 6 tokens are then distributed rewards based on pre-defined weightage and users can collect these rewards.
Further, our onboarding process is boosted by arcana wallets making it easier for new users to try out our platform.
Biggest challenge was figuring out a way to make the calculations exist on chain in O(1) to minimise gas usage as the product grows. This was done using per person portfolio system which isolates these calculations to individual portfolios. Next was system automation which was helped out by Chainlink Keepers.
Tracks Applied (6)
Polygon Technology
Polygon Technology
Polygon Technology
Arcana Network
Chainlink
QuickNode
Technologies used
Discussion