Skip to main content

Smart contracts

FairDrops uses three contracts:

ContractWhat it does
FairDropsHolds prizes, records seed commitments, accepts verified results and pays winners.
FairDropsAccountAn EIP-7702 delegate that lets embedded wallets act without gas.
FairDropsBondsHolds delivery bonds: money an item host locks beside a giveaway, paid to winners whose item never arrives.

Addresses for each network are on deployments.

A giveaway's lifecycle​

Who can do what​

RoleHeld byCan
AdminA multisig Safe, changed only in two steps with a delayGrant roles, set fees, claim window and verifier threshold
VerifierSettlement signersSign results
OperatorThe game runtimeCommit seeds, cancel giveaways past their deadline
PauserAn on-call keyPause new giveaways, top-ups, seed commits and finalizing
RelayerRelayer keysSend gas-free actions people signed, collect prizes, return refunds

A pause never stops claims, cancels or withdrawals.

Limits written into the contract​

LimitValue
Highest platform fee5%
Highest relay fee2%
Most winners in one giveaway100,000
Earliest start after opening2 minutes
Latest start after opening180 days
Shortest and longest game10 minutes to 30 days
Shortest and longest claim window7 days to 365 days
Longest a signature is valid1 hour
Most a pause extends a deadline2 days
Coming to these docs

Function reference generated from the contracts' NatSpec, gas-free actions in detail, and the version history.