Submitted by klau5
If src has less lockedCollateral and generatedDebt than safeHandler, enterSystem cannot succeed.
The enterSystem function is behaving differently than intended.
The ODSafeManager.enterSystem function retrieves the amount of safeHandlers lockedCollateral and generatedDebt and sends it to safeHandler. The purpose of this function is to send _srcs lockedCollateral and generatedDebt to safeHandler, so it is sending wrong amounts.
Use lockedCollateral and generatedDebt of _src.
MiloTruck (Judge) commented:
pi0neerpat (OpenDollar) commented:
