The updateUserPlatformFeeRate()
can be used to set the userPlatformFeeRate to a value lower than basePlatformFee
in the SystemConfig
contract you can find a function called updateUserPlatformFeeRate()
which updates userPlatformFees, However in the initialization of this contract a basePlatformFee is set, this means if fees aren't updated this should be the fees to apply, so we can say this is the base of the user platform fees and no one user should pay less than this. But updateUserPlatformFeeRate()
can update the value to a lower value than the base fee, thereby breaking the stated invariant.
this is a test you can add the current testfile to see that it is possible
userPlatformFeeRate
can be set to a value lower than basePlatformFees
manual review
A check should be implemented to make sure userPlatformFeeRate
is not lower than basePlatformFee
The following issues and its duplicates are invalid as admin errors/input validation/malicious intents are1 generally considered invalid based on [codehawks guidelines](https://docs.codehawks.com/hawks-auditors/how-to-determine-a-finding-validity#findings-that-may-be-invalid). If they deploy/set inputs of the contracts appropriately, there will be no issue. Additionally admins are trusted as noted in READ.ME they can break certain assumption of the code based on their actions, and
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.