suggest using basis points to represent managerCutPercent
In Solidity, using basis points (bps) to represent percentages is a common practice to avoid precision issues associated with floating-point arithmetic. Solidity does not support floating-point operations, so all calculations must be done using integers. Basis points provide a way to represent fractional percentages using integers.
Higher Precision: Using basis points allows for representing smaller percentages (e.g., 0.01% is represented as 1 basis point), providing higher precision.
Avoids Rounding Errors: Since basis points use integer representation, it avoids rounding errors associated with floating-point arithmetic.
In Pot.sol,themanagerCutPercent
doesn’t Using Basis Points, It makes if the remainingRewards < 10, the managerCut
will be 0, so in this situation the contestManager will not get the any Cut.
manual
In Pot.sol, change the managerCutPercent represent.
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.