The liquidity providers can't redeem all tokens.
When liquidity providers deposited tokens, the exchange rate updated. If liquidity providers redeem all tokens, the amountUnderlying is calculated by exchangeRate. The amountUnderlying will be bigger than deposited amount. The redeem() function will revert.
The liquidity providers can't redeem all tokens.
foundry
It is recommended to delete the part of updating exchangeRate in deposit() function.
Delete:
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.