Submitted by0xRajeev
The Yearn yield source defines maxLosses as: Max % of losses that the Yield Source will accept from the Vault in BPS and uses a setter setMaxLosses() to allow owner to set this value. However, the threshold check implemented only checks if this value is less than 10_000 or 100%, which is a good sanity check but allows loss of even 100%. The buffer for the loss is to avoid funds being locked in the Yearn vault in any emergency situation.
If the losses are really high for some reason, it will impact the interest and the prizes.
Perform a tighter upper threshold check to allow a more acceptable max loss value in setMaxLosses()
asselstine (PoolTogether) acknowledged:
