Inspiration
The web3 bootcamps at Encode.club inspired me. It is free to do it after being selected but we have to send a certain amount that we get back if we succesfully finish it.
What it does
True Motivation is a project aimed at helping people to get their personnal challenges done. It leverage the blockchain technology to motivate a "brave" person to finish what he started and not report it to later or abandon it in the middle.
For that a person create a True Motivation contract with the address of his worst enemy and lock funds on it. The address of the worst enemy will be used to send the funds locked if he failed at his task/challenge. It is a mean to motivate the person in case he want to abandon. Friends and family can also send "tips" to the contract to motivate even more the person to achieve what he planned.
After some times, they can vote if they liked or dislikes the accomplishment of the task/challenge. If there is more likes than dislikes, the person can get back the money he locked on the contract. If not, all the money will be sent to his worst enemy.
To calculate and get the result on-chain from an API, we use Chainlink Functions.
How we built it
Smart contracts in Solidity, front-end and API with Next.js and MongoDB for database
Challenges we ran into
The Chainlink Functions starter kit is great to learn how it works will all the scripts. But the challenge was to find a way to integrate it from the front.
Accomplishments that we're proud of
Fetching the data from an API, calculating the result and getting the result on-chain using Chainlink Functions. Then using that result to trigger some functions on a smart contract is really satisfying.
What we learned
Chainlink Functions
What's next for True Motivation
Improving the code, security and getting new ideas to implement to the project...
Log in or sign up for Devpost to join the conversation.