The ConvertFacet
contract, along with its associated libraries (LibTractor
, LibSilo
, LibTokenSilo
, LibConvert
, LibConvertData
, LibPipelineConvert
), performs various token conversions within the Beanstalk protocol. However, none of these contracts include mechanisms to mitigate slippage, such as checking for minimum output amounts or accepting slippage tolerance parameters.
1: A user wants to convert BEAN to LP tokens.
2: The user calls the convert
function with specific convertData
.
3: Due to market volatility, the amount of LP tokens received is significantly lower than expected.
4: Due to market volatility, the amount of LP tokens received is significantly lower than expected.
The absence of slippage mitigation in the convert
function of the ConvertFacet
contract can lead to unfavorable conversions for users. In volatile market conditions, this can result in users receiving significantly less output than expected, leading to financial losses.
Manaul review
1: Enhance the convert
function to accept slippage tolerance parameters and check for minimum output amounts.
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.