Inspiration

I wanted to use Chainlink keepers to build a smart contract that requires zero human interaction on an ongoing basis.

What it does

Capture the stream is a decentralized crypto price prediction game. Players guess the price of an asset during a defined time period and if their guess is the closest, they capture the stream of tokens from the other players. It makes use of Chainlink keepers to manage the round winners automatically, without human interaction. After each block, the Chainlink keeper checks the contract to see if the asset price has changed into the range of another guess. If there is a new winner, the keeper will initiate an update of the stream through the smart contract. At the end of the round, the contract will update the winners' balances so that they can withdraw from the protocol.

How we built it

I started with scaffold-eth for prototyping and built out the smart contract. This allowed me to have a functioning product before I started on the frontend work.

Challenges we ran into

This was my first smart contract and frontend project that I've built, so there was a lot of learning throughout the build process. Challenges included:

  • Integrating Chainlink Keepers
  • AWS deployment of frontend
  • Integration of wallets

What's next for Capture the Stream

I'm looking to build out the project with further features, such as:

  • Support for additional oracle and deposit assets
  • Automated payments to the chainlink keeper system
  • Automated round initiation using chainlink keepers
  • Randomized power-ups using Chainlink VRF
  • Integration with a yield protocol to enable “no loss” rounds
  • Frontend redesign
  • Security improvements / audit for mainnet deployment

Built With

Share this project:

Updates

Submission history