Submitted by pauliax
contract OverlayV1OVLCollateral and OverlayV1Governance cache ovl address:
This variable is initialized in the constructor and fetched from the mothership contract:
ovl is declared as immutable and later contract interacts with this cached version. However, mothership contains a setter function, so the governor can point it to a new address:
OverlayV1OVLCollateral and OverlayV1Governance will still use this old cached value.
Consider if this was intended, or you want to remove this cached version and always fetch on the go (this will increase the gas costs though).
realisation (Overlay) commented:
mikeyrf (Overlay) disagreed with severity:
dmvt (judge) commented:
