Open DanailYordanov opened 4 months ago
StabilityPool::setVaultFactory()
When changing the vault factory in StabilityPool::setVaultFactory(), the stableCoin variable is not updated alongside.
function setVaultFactory(address _factory) external onlyOwner { require(_factory != address(0x0), 'factory-is-0'); factory = IVaultFactory(_factory); + stableCoin = IMintableToken(address(IVaultFactory(_factory).stable())); }
Context
StabilityPool::setVaultFactory()
Description
When changing the vault factory in
StabilityPool::setVaultFactory()
, the stableCoin variable is not updated alongside.Recommendation