a staking/betting platform with a leaderboard using yellow network and ens
stakeroom is a betting/staking platform that utilizes super fast off-chain transactions during the duration of the betting event, after which the funds are recalculated and redistributed before finalizing it on-chain. For staking, it works like a temporary placeholder of money that doesn't burn any gas and all money is refunded at the end of the event given ideal behaviour. It also utilizes ENS for improving the user experience showing ENS names instead of hex addresses and prompting the user to get an ENS name if no name is associated with the account connected through the wallet. It
A user creates an event of betting or staking type. When this event is created, a session is started for the duration of the event where anyone betting or staking becomes a participant. This session is used to do off-chain transactions/messaging on the yellow network before finally deciding what to do with the money at the end of the event. For staking events, in an ideal scenario, it is all refunded back to participants, no gas burned. For betting events the total pool is redistributed to the winners. And it is only the final state that's finalized on-chain without burning too much gas on multiple betting transactions. There's also the use of ENS everywhere possible which uses the useEnsName and useEnsAvatar hooks from wagmi. And if no ENS name is associated with the account used to connect through the wallet, there's a popup to get an ENS name which redirects user to the ENS domains website.

