Miss emit event listener
updateFlashLoanFee() does not emit an event, so it is difficult to track changes in the value of s_flashLoanFee off-chain.
Improper track of changes in s_flashLoanFee thus giving room for manipulations without notice
Slither and Manual
// Define the event
event FlashLoanFeeUpdated(uint256 newFee);
function updateFlashLoanFee(uint256 newFee) external onlyOwner {
if (newFee > s_feePrecision) {
revert ThunderLoan__BadNewFee();
}
s_flashLoanFee = newFee;
// Emit the event
emit FlashLoanFeeUpdated(newFee);
}
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.