The error DSCEngine__NotAllowedToken()
should include the address of the disallowed token, to make it easier for the user or dev to see what token is throwing the error.
The use of errors should describe the situation that presents the error, in this case the error DSCEngine__NotAllowedToken()
error does not include the address of the token that is not allowed, even when the modifier that uses it is passed this address by parameter.
Low
Manual code review
Change for :
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.