The AaveDIVAWrapper contract does not implement frontend rounding handling for small amounts, allowing users to create Contingent Pools with minimal amounts that will become blocked during redemption due to rounding limitations.
The DIVA protocol has a known rounding issue that is expected to be handled on the frontend. While the AaveDIVAWrapper contract acts as a frontend in an architectural sense, it does not implement this handling for small amounts.
The key issue is in the createContingentPool and addLiquidity functions which do not validate minimum amounts that would avoid rounding issues
Poor user experience and potential loss of funds
Architectural inconsistency as the wrapper does not fully implement expected frontend validations
Manual code review
Performing formal verification with Quint
Implement minimum amount validation in the AaveDIVAWrapper
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.