The internal function _withdrawFromVault()
is used to withdraw tokens from vault, incase lending pool's crvUSD balance is low.
The params for withdraw function are :-
The maxLoss
as mentioned, it's "Maximum acceptable loss in basis points", it's acts like slippage protection or clearnce value, but this can lead to DOS of this function, as there is no scope for loss margin, the market must align with requirment, which is not ideal.
In other words if market fluctates very little, the _withdrawFromVault
will revert due to 0 tolerance in loss.
loss margin set to 0, can lead to DOS.
_withdrawFromVault
is used inside _rebalanceLiquidity
.
_rebalanceLiquidity
is used inside borrow()
, withdraw()
and deposit()
functions of lending pool contract.
means there is high probability that borrow()
, withdraw()
and deposit()
also lead to DOS.
Manual
Set loss margin to non-zero value like 5% or 6% etc.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.