As random = 2
costMultiplierNumerator=2 and costMultiplierDenominator
, allows malicious users to make treats:Pending
of any price over an unlimited times.
Due to deterministic randomness SpookySwap:random
, malicious users can set aside continuously any amount of treats
by sending 0 ether
on SpookySwap:trickOrTreat
if random = 2
. they might not have the intention of SpookySwap:resolveTrick
but are overloading the protocol, abusing the pending
mechanism.
Although it does not affect Owner
fee collect, the lack of minimun
value allows them to overload the protocol.
Manual Review
Foundry testing tool
When a Treat
is set as pending it emits the Swapped
Event.
Minimum payment required
Rate Limiting: a mechanism to limit the amount of pending items
The protocol can work correctly with more than 20000 tokens in it. It is informational.
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.