This audit report provides an assessment of the contract containing the hardcoded commission fees.The hardcoded variable can cause issue if owner wants to change commission fees .
The contract contains the following line of code with the hardcoded variable:
uint256 private constant COMMISSION_FEE = 500; // this can be changed in the future
.
In a situation where owner wants to update the commission fees, he would not be able to do so.
The presence of the hardcoded commission fee can lead to no option for the owner to change fees as intended .This can result to an inhability to update fees in a situation where it's needed.
Manual review, VsCode, Remix
it is recommended to implement a more dynamic approach for setting the commission fee. Instead of hardcoding it.
the contract should allow the commission fee to be set during deployment or provide a mechanism for the contract owner to update the commission fee post-deployment;
Option1: Setup the commission fee via the constructor upon deployment:
Option2: create a function to update fees when needed by owner
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.