The smart contract is designed to take a 10% protocol fee from game bets, but this functionality is not implemented. Currently:
1: Players pay the full bet amount
2: The protocol receives no revenue from games
Missing Fee Logic: The RockPaperScissors::CreateGameWithEth
and RockPaperScissors::JoinGameWithEth
functions do not calculate the protocol fee before locking funds.
No Fee Collector Interaction: There is no logic to transfer fees to a protocol-owned address.
Unused Constant: PROTOCOL_FEE_PERCENT
is defined but never applied in the contract.
Lost Revenue: The protocol misses out on its 10% fee.
Unfair Economics: Players benefit fully, while the protocol gets nothing.
Deduct Fees on Entry
Modify RockPaperScissors::createGameWithEth
, and RockPaperScissors::joinGameWithEth
to deduct 10% from bets.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.