Stake & Run
Put your money on the line and run!
Created on 5th October 2024
•
Stake & Run
Put your money on the line and run!
The problem Stake & Run solves
Many people struggle with self-motivation when it comes to achieving long-term fitness goals, particularly when sustained effort is required. To address this, we build Stake & Run, a Telegram bot application that allows users to stake ETH and participate in fitness challenges, such as a 30-day running challenge.
Solution: In Stake & Run, users stake ETH to join the challenge and upload daily screenshots of their runs to the Telegram bot. An integrated AI coach validates the uploaded data. User performance is tracked on-chain using The Graph for transparency. The challenge smart contract is deployed on Scroll Sepolia and enforces clear rules: users must complete the challenge to get their staked ETH back. If they fail (e.g., miss more than 4 days), their stake is slashed and awarded to the top performers who run the most distance over the 30 days.
Incentives: The staking and slashing mechanisms, managed by the smart contract, provide multiple incentives to keep users motivated:
- Earn rewards – The chance to earn interest is a strong motivator, especially for longer challenges.
- Accountability – Avoiding slashing keeps users focused on consistent participation.
- Competition – The prize pool made up of slashed stakes motivates participants to run more and compete for rewards.
Challenges we ran into
In the development of telegram bot, intitally we wanted to use Circle's developer controlled wallet to manage the staked ETH, but it was not supported on Scroll Sepolia testnet. We had to rewrite the python code mannual to solve the issue.
On worldcoin integration, we an issue on Scroll. Indeed, the smart contract verification is at the moment not working on Scroll. At first, we try to implement a blockchain verification. Then, by discussing with the team, we decided to move to a server approach, where the server will have his own wallet, will take as input the user proof, then verify this one by sending to wordcoin API. In the case the proof is valid, the server is going to sign a transaction to the smart contract to say that the user is a human. In case of invalid proof or double identify, it will failed. We introduce a third party here allowing the worldcoin verification.
Tracks Applied (8)
🚀 Deploy on Scroll (Pool prize)
Scroll
👾 Best Mobile Application on Scroll
Scroll
🏗️ Best Community Application on Scroll
Scroll
Best Use of The Graph
The Graph
🆔 Best Use of World ID
Worldcoin
🖼️ Most Creative Use Case
Worldcoin
👍 Best Public Goods Use Case
Worldcoin
🏊 Pool Prize
Worldcoin