L-1: Limit reduction amount
Description:
The reduceAmount() function can be used to withdraw an arbitrary amount of assets from the market permissionlessly. The implementation refunds the factory only the difference with respect to the limit, and then returns any leftovers to the vault.
This withdrawal and redeposit cycle could have a negative impact on the operator's assets if the vault implements entry and/or exit fees, or due to rounding issues during share conversion, depending on the attacker's capacity to inflate share value.
Impact:
Low.
Recommendation:
Validate the reduction amount is within the intended difference (i.e., amount <= mintedAmount - mintLimit).
Developer Response:
Fixed in commit 002d863414af4c63f9b48e58d196049af91099dc.