MixinOperatorResolver.sol#isResolverCached()
become malfunctioning when an operator
is removed
#159
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
duplicate
This issue or pull request already exists
Handle
WatchPug
Vulnerability details
When an
operator
is removed andrebuildCache()
is called,isResolverCached()
should returntrue
. It returnsfalse
in the current implemenbtation.https://github.com/code-423n4/2021-11-nested/blob/f646002b692ca5fa3631acfff87dda897541cf41/contracts/MixinOperatorResolver.sol#L45-L56
Beacuse when an
operator
is removed,requiredAddresses
will includes empty items, so thataddressCache[name]
will beaddress(0)
, andreturn false
.Recommendation
Change to:
The text was updated successfully, but these errors were encountered: