OKRaffle is a fully on-chain, permissionless raffle protocol for OK Computers NFTs on Base. Any holder can put one of their NFTs up as a prize, run a 7-day raffle for it, and walk away with the entry fees that accumulate.
- A provider — any wallet holding an OK Computer — deposits one NFT as the prize and sets the entry price.
- Other holders enter by paying the entry price in USDC and staking one of their own OK Computers. Staked NFTs are held by the contract and returned to every participant after the round resolves — whether they win or not.
- The 7-day clock starts on the first entry.
- Once the deadline hits, anyone can trigger the draw. A random entry is selected via Chainlink VRF v2.5.
- The winner claims the prize NFT and their staked NFT. Everyone else reclaims their staked NFT.
A round only goes to draw if it gathers at least 250 entries. Fall short, and the round automatically cancels — every participant gets their USDC refunded, every staker gets their NFT back, and the provider gets their prize NFT back. No losses on either side.
When a round draws, the accumulated entry-fee pool is settled:
90% to the provider · 10% to the treasury.
The split is enforced by the contract — no one can change it after deploy. The provider, by supplying their NFT, effectively sells it for whatever 90% of the round's entry pool ends up being. The treasury's 10% accumulates as protocol revenue with one mandate: buy OK Computers off the open market floor. No NFTs acquired by the treasury are ever sold.
- Fully on-chain. Deployed to Base.
- Contract source is verified on Basescan.
- Winner selection uses Chainlink VRF v2.5 — verifiable, tamper- proof randomness with on-chain cryptographic proof.
- 24-hour VRF timeout fallback. If the randomness oracle ever fails to respond, the round can be cancelled and everyone is refunded.
- OKRaffle: 0xb25e0982F1b35F9e382342b4f6F3915A44685725
- OK Computers: 0xce2830932889c7fb5e5206287c43554e673dcc88
- USDC: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
OKRaffle is provided as-is. The smart contract code is open for public review. Use at your own risk.