Open sherlock-admin opened 1 year ago
Escalate for 1 USDC
Reminder @Evert0x
Escalate for 1 USDC
Reminder @Evert0x
You've created a valid escalation for 1 USDC!
To remove the escalation from consideration: Delete your comment. To change the amount you've staked on this escalation: Edit your comment (do not create a new comment).
You may delete or edit your escalation comment anytime before the 48-hour escalation window closes. After that, the escalation becomes final.
rvierdiiev
medium
Redeemer.setFee function will always revert
Summary
Redeemer.setFee
function will always revert and will not give ability to changefeenominator
.Vulnerability Detail
Redeemer.setFee
function is designed to give ability to changefeenominator
variable.https://github.com/sherlock-audit/2022-10-illuminate/blob/main/src/Redeemer.sol#L168-L187
As
feeChange
value is 0(it's not set anywhere), this function will always revert wtihException(23, 0, 0, address(0), address(0))
. Also even iffeeChange
was not 0, the function will give ability to change fee only once, because in the end it callsdelete feeChange
which changes it to 0 again.Impact
Fee can't be changed.
Code Snippet
Provided above.
Tool used
Manual Review
Recommendation
Add same functions as in
Lender
. https://github.com/sherlock-audit/2022-10-illuminate/blob/main/src/Lender.sol#L813-L829;