๐ฆ Build a
Staker.sol
contract that collects ETH from numerous addresses using a payablestake()
function and keeps track ofbalances
. After somedeadline
if it has at least somethreshold
of ETH, it sends it to anExampleExternalContract
and triggers thecomplete()
action sending the full balance. If not enough ETH is collected, allow users towithdraw()
.
๐ Building the frontend to display the information and UI is just as important as writing the contract. The goal is to deploy the contract and the app to allow anyone to stake using your app. Use a
Stake(address,uint256)
event to all stakes.
๐ The final deliverable is deploying a decentralized application to a public blockchain and then
yarn build
andyarn surge
your app to a public webserver. Share the url in the Challenge 1 telegram channel to earn a collectible and cred! Part of the challenge is making the UI/UX enjoyable and clean! ๐คฉ
๐ฌ Problems, questions, comments on the stack? Post them to the ๐ scaffold-eth developers chat