Submitted by gpersoon, also found by jonah1005 and leastwood
Everyone can call the function registerAsset() of MochiProfileV0.sol
Assuming the liquidity for the asset is sufficient, registerAsset() will reset the _assetClass of an already registered asset to AssetClass.Sigma.
When the _assetClass is changed to AssetClass.Sigma then liquidationFactor(), riskFactor(), maxCollateralFactor(), liquidationFee() keeperFee() maxFee() will also return a different value.
Then the entire vault will behave differently.
The threshold for liquidation will also be different, possibly leading to a liquidation that isnt supposed to happen.
Add the following in function registerAsset():
ryuheimat (Mochi) confirmed
