Loops HouseDUEL

NEAR HACKATHON
Links
Team
1 member- TAOwner
Tajudeen
Overview
Most friendly bets never get paid. Not because people are broke, but because nobody holds the money and nobody agrees on who won.
DUEL lets two friends bet on anything. Both lock the same stake in a NEAR smart contract, so neither can run off with it. The result is settled one of four ways: a price feed (e.g. BTC above $120k by Friday), a live football result, the loser conceding, or witnesses from the group chat.
Witnesses are the NEAR-native part. Each player can add friends as witnesses, and the other player must approve each one. The contract adds a restricted function-call access key to its own account for each witness. That key can call only witness_vote, has a tiny gas allowance paid by the contract, and is deleted once the duel is settled. So witnesses vote from a plain link, with no wallet, no NEAR and no sign-up. A majority settles the duel and the winner is paid automatically. If nobody settles it, both players get refunded after expiry.
A referee service checks price and football results and can use NEAR AI Cloud for evidence, with its signature verified before use. Every duel also produces a shareable rivalry card showing the head-to-head score.
Live on NEAR testnet with an end-to-end test run in CI, including real gasless witness votes. Contract in Rust (49 tests), web app on GitHub Pages: https://k58v2hbzkk-del.github.io/duel-near/