Loops HouseFair Share

NEAR HACKATHON
Links
Team
1 member- KYOwner
Kylne700
Overview
A team wins one prize and has to split it. Asking everyone for a split and averaging the answers rewards whoever lies about themselves: with a $10,000 pot and a true split of 40/30/20/10, member D writes '100% me' and the plain average pays D 32.5% ($3,250) instead of 10% ($1,000).
Fair Share lets members rate only the other members, using the impartial division rule of de Clippel, Moulin and Tideman (2008). A member's own share never depends on what that member writes: D keeps 10.0% whatever D writes, and if all reports agree, that split is paid exactly.
On NEAR: a Rust contract takes a sealed rating (commit, then reveal, with a bond) from each member, so nobody can change a rating after seeing the others, and stores the split. The team's own Sputnik DAO (official v2 code, unmodified) pays it with one Transfer proposal per member. Anyone can recompute the whole round from the chain with public RPC view calls (no wallet, no keys). Try it: open the live page, switch "D lies" on and see D stay at 10.0000%; the page then reads the chain and shows MATCH on 7 of 7 checks.
Evidence: 38 tests pass (npm test); the own-share property was checked bit for bit on 9,000 random teams; a real round on NEAR testnet (contract fairshare-d3a-contract.testnet) has 53 of 53 recorded transactions with status success, and the page shows MATCH on 7 of 7 checks.
Limits: testnet only, a small demo (1 NEAR pot, 4 accounts of one operator); needs 4 or more members; a liar cannot raise her own share but can move the others' shares; two members who rate each other up can collude; no separate review, so do not use it with real money.
All code was written in the hackathon window (first commit 2026-11-11) with AI help (Claude, in Claude Code), directed by Kylne700. Live demo: https://kylne700.github.io/near-fair-share/