Inspiration

In the crypto space a lot of people making predictions about the token prices. But usually predictions are quickly forgotten and have no meaning.

To add more value to predictions, I suggest to move from words to bets on the blockchain.

What it does

  1. With this app, anyone can publish a bet on the blockchain and invite an opponent. After a while, any participant can determine the winner using contact and real data from Chainlink.
  2. Smart contract takes a part of the winnings of all bets and share it randomly among the top accounts with the highest number of wins. That way people will be more motivated to create and participate in bets.
  3. Also bets generate a very useful datasets to explore the trend of expectations and people's mood. This analytics tool will be useful for anyone interested in blockchain and cryptocurrencies.

How we built it

  1. Chainlink is used as a source of real data to determine bet's winner.
  2. IPFS (Web3.Storage) is used as a storage for data of bet authors. For example, social links and bio.
  3. Polygon is used as a network for development and testing.
  4. The Graph is used to aggregate and query blockchain data.

Also, app uses TypeScript, Next.JS, MUI, Vercel.

Smart contracts are based on Solidity, HardHat, Mocha and OpenZeppelin.

Challenges we ran into

It was difficult to test the functionality of smart contracts locally. due to using Chainlink contracts. But mock contracts helped with this problem very well.

Accomplishments that we're proud of

  1. Clear interface for non-web3 users.
  2. Useful functionality (analytics tool) for everyone, not just for bet creators.

What's next for TradeRep

  1. Add feature to create bets with many participants. This way Influencers can create bets with their subscribers.
  2. Improve dashboard to see useful data for analytics in more convinient and flexible way.
  3. And a lot more.

Built With

Share this project:

Updates