The _initializeFeeTypes
function in the FeeCollector contract initializes fee types 6 (Swap Tax) and 7 (NFT Royalties) with share totals that don't equal the required 100% (10000 basis points), contradicting the validation requirement enforced in the updateFeeType
function.
All fee type distributions must total 100% (10000 basis points) as enforced by the updateFeeType
function:
However, in _initializeFeeTypes
, two fee types are initialized with incorrect totals:
Inconsistent fee distribution calculations for Swap Tax and NFT Royalty fees. Could also result in underallocation of fees to stakeholders and system invariant violation where fee shares must total 100%.
Manual code review
Modify the initialization values for fee types 6 and 7 to total 10000 basis points:
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.