In CurrencyManager
contract functions addCurrency()
and removeCurrency()
are ignoring return values ofadd()
and remove()
.
CurrencyManager::addCurrency()
ignores return value by _whitelistedCurrencies.add(currency)
and then emit an event. If the currency was not added and the ignored return code is False, then and emited event will be incorrect!
Similarly CurrencyManager::removeCurrency()
ignores return value by _whitelistedCurrencies.remove(currency)
and in case of failed deletion an event will be emited that the deleting was done.
Incorrectly emited events.
Slither, manual review
Check return values are True, before emiting events.
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.