Closed code423n4 closed 2 years ago
defsec
On the documentation of the protocol, It has been written as "The protocol owner fee split must be less than 20% of the basket's license fee." However there is not limitation on the handleFee function.
function changeLicenseFee(uint256 newLicenseFee) onlyPublisher public override { require(newLicenseFee >= factory.minLicenseFee() && newLicenseFee != licenseFee); if (pendingLicenseFee.licenseFee != 0) { require(pendingLicenseFee.licenseFee == newLicenseFee); require(block.number >= pendingLicenseFee.block + TIMELOCK_DURATION); licenseFee = pendingLicenseFee.licenseFee; pendingLicenseFee.licenseFee = 0; emit ChangedLicenseFee(licenseFee); } else { pendingLicenseFee.licenseFee = newLicenseFee; pendingLicenseFee.block = block.number; } }
None
Consider to add check according to documentation.
the fee limit refers to the protocol sharing fees, not the individual basket fee
The warden is referring to a different fee, as such the finding is invalid
Handle
defsec
Vulnerability details
Impact
On the documentation of the protocol, It has been written as "The protocol owner fee split must be less than 20% of the basket's license fee." However there is not limitation on the handleFee function.
Proof of Concept
Tools Used
None
Recommended Mitigation Steps
Consider to add check according to documentation.