From several places in the documentation: "Any pizza lover can register and claim a random slice size between 100-500 APT", but the code mistakenly sends 100-500 Octas instead (10^8 Octas = 1 APT). This means users will get a much smaller share than expected.
When the owner registers a new pizza lover, he calls register_pizza_lover
with the user address. The random slice is generated by the following lines:
This adds in the table the amount in Octas to send to the user. Then, claim_pizza_slice
, the amount send is not upscaled to APT:
Due to this, the program sends 100-500 Octas to users instead of APT.
Likelihood: High
The program will always send less amount than expected
Impact: High
Users receive 10^8 less amount than expected
Upscale the amount send to 10^8 to convert it from Octas to APT
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.