The way the addUnderlying
function handles the underlying token doesn't account for the barnRaiseToken
or underlying token being a FOT token.
When the addUnderlying
function is queried, the needed calculations are executed, then the barnRaiseWell
and barnRaiseToken
are gotten from LibBarnRaise.sol
From the library, it can be inferred that the barnRaiseToken
can either be WETH representing ETH from the BEAN_ETH_WELL, or the underlying token which could be any ERC20 token supported by the protocol, as well as can be switched.
The use of basic transferFrom
and addLiquidity
will lead to loss of positive slippage and unexpected reversions, when upon swaps (and fees from the transfer), the returned amount becomes less than the minimum amount out.
Manual review
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.