Submitted by cthulhu_cult
In Solidity, code that is inside a constructor or part of a global variable declaration is not part of a deployed contracts runtime bytecode. This code is executed only once, when the contract instance is deployed. As a consequence of this, the code within a logic contracts constructor will never be executed in the context of the proxys state. This means that any state changes made in the constructor of a logic contract will not be reflected in the proxys state.
LybraConfiguration.sol#L81 contracts should move the code within the constructor to a regular initializer function, and have this function be called whenever the proxy links to this logic contract. Special care needs to be taken with this initializing function so that it can only be called once and use another initialization mechanism, since the governance address should be set in the initialize.
Upgradable
LybraFinance confirmed
0xean (judge) commented:
