Decentralized App Development for the Crypto Game
LeagueDAO is a decentralized open-source project which developed a tokenized fantasy sports protocol named Nomo Fantasy Leagues. This project unites these parts: DeFi, play-to-earn rewards, and digital collectibles to revolutionize fantasy sports through tokens. The offer is simple: tokenized fantasy sports enable users to own the players that make up their team, and earn a share of a rewards pool based on team performance.
WHAT WAS THE TASK?
The development of a blockchain-based protocol for decentralized Nomo Fantasy Leagues was the main task. Nomo is an open-source protocol for decentralized fantasy sports. That’s why, this project combines IP, blockchain, the non-fungible ERC-721 tokens (“NFT”), and the ERC-20 tokens known as the Nomo Tokens (“$NOMO”).
So the main task consisted of a smart-contract system that comprised of NFT token, oracle, fantasy league games, and strategy for earning yield from QuickSwap staking pools. Each token represents a specific sports player and reflects his weekly performance. As a result, users have the experience of purchasing, selling, and staking tokens. While staking tokens, they can win rewards based on the weekly yield pool and efficiency of a sports player.
PROJECT ARCHITECTURE
The Nomo Fantasy League includes a smart-contract system that consists of NFTs, oracle, fantasy league games, and yield earning strategy. Each token represents a specific sports player and reflects that player’s weekly performance. The league provides users with an experience of purchasing, selling, and staking tokens.
THE DEVELOPMENT PROCESS
We had a powerful Solidity team along with an experienced back-end, Subgraph specialists and several front-end developers. Our main milestones were:
- create Nomo NFT contract for handling sport players properties;
- develop Nomo Leagues for staking NFTs as well as game performing reflection and rewards distribution;
- develop yield strategy mechanic for earning rewards;
- API integration of SportsDataIO. This is the leading global sports data provider for collecting and distributing the fastest and most accurate data by covering tens of thousands of sporting events throughout the year, made available in easy-to-use formats;
- implement Subgraph for collecting all historical smart-contracts data;
- create a web app based on the design.
HAVE AN IDEA OF YOUR OWN CRYPTO GAME? READ HOW OUR EXPERIENCED TEAM CAN HELP YOU WITH DAPP DEVELOPMENT.
CHALLENGES WE CONFRONTED
One of the main challenges was to create an optimized NFT structure to store different players` parameters and also calculate these parameters to receive the final player’s points in a very flexible way because we can have different leagues, different players with different achievements/parameters. Also, this flow must be understandable to The Graph node, which has some limitations on the chosen network (Polygon).
The next challenge was to design games contracts (Leagues) that will efficiently calculate points and rewards, also it must be modular to be able to handle separate leagues (and each league can have its own rules and rewards calculation).
RESULT
At the end, we get a perfectly working blockchain-based Play-to-Earn fantasy sports platform. On this platform, players own NFTs that represent real world athletes and generate rewards based on the athletes” real world stats. By the way, players have already received their first rewards from the games.