TurboSafe: How do you account for potential losses ?
In case one of the boosted vaults has a loss, how would it be handled ? Currently, it would never lead to a reduction of the totalFeiBoosted, so the TurboSafe would have a "perpetual loss" and a debt towards the fuse pool, blocking withdrawals at a certain point.
TurboSafe: How do you account for potential losses ?
In case one of the boosted vaults has a loss, how would it be handled ? Currently, it would never lead to a reduction of the
totalFeiBoosted
, so the TurboSafe would have a "perpetual loss" and a debt towards the fuse pool, blocking withdrawals at a certain point.Incorrect comment in
TurboMaster
-onSafeLess
Comment : https://github.com/code-423n4/2022-02-tribe-turbo/blob/66f27fe51083f49f7935e3fe594ab2380b75dee8/src/TurboMaster.sol#L248
This is incorrect because of https://github.com/code-423n4/2022-02-tribe-turbo/blob/66f27fe51083f49f7935e3fe594ab2380b75dee8/src/TurboSafe.sol#L230: at this step,
feiAmount
can differ from what was withdrawn from the safe, either because of fees accrued or because someone could repay the debt of the safe on its behalf for example.