Hi everyone,
We’re close to completing a blockchain-based sports betting platform — about 90% done — and have chosen to implement our smart contract layer on Cardano due to its cost-efficiency, scalability, and the benefits of Plutus for secure contract logic.
Here’s a quick overview of what we’re building:
Platform: Sports betting game built on blockchain
Rewards: Payouts and rewards in crypto
Ethical System: Players have daily limits and betting caps to promote responsible gaming
Revenue Model: Platform earns via commission from every bet
We’re facing a technical hurdle related to dynamic user caps and daily betting limits on Cardano. Our goal is to enforce logic where:
- A user can place only a fixed number of bets per day
- There is a max cap on total value they can wager per 24 hours
- This limit resets every day at a set time, but remains traceable and tamper-proof on-chain
Since Cardano’s smart contracts (Plutus) are stateful but limited in tracking time-based user activity without off-chain input, we are unsure:
- Should we handle daily time resets entirely off-chain and only enforce current bet limits on-chain?
- Or is there a better way to structure this logic within the contract while ensuring decentralization and trust?
Any advice or experience with similar time-restricted smart contracts on Cardano would be appreciated.
Thanks in advance!
— Team @ Fourchain