hard20 pts · first answer countssoliditysmart-contract-security
A fee that rounds to zero
A protocol charges a 0.3% fee. What fee is charged when amount is 9,999?
uint256 fee = amount / 10_000 * 30;
A protocol charges a 0.3% fee. What fee is charged when amount is 9,999?
uint256 fee = amount / 10_000 * 30;