The protocol's current fee structure suffers from precision loss in low-value transactions due to integer arithmetic limitations. For small tier prices, the 20% fee calculation rounds down to zero, eliminating protocol revenue. Furthermore, the test suite fails to account for proper token decimal scaling, leaving potential issues undiscovered.
Protocol fee calculation in MembershipFactory.sol:
1. Protocol Revenue Impacts:
- Zero fees collected on small transactions
- Precision loss multiplied across multiple users
- Economic model undermined by calculation method
Manual Review
1. Scale calculations to handle token decimals
2. Set minimum fee thresholds
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.