Protocol don't support some tokens will cause LibFertilizer#addFertilizer
function revert.
When call LibFertilizer#addFertilizer
function, it call IERC20(barnRaiseToken).approve(barnRaiseWell, uint256(tokenAmountIn))
directly, some tokens like USDT
will revert by calling approve
function from non-zero
to non-zero
, see code detail.
Protocol will revert when call LibFertilizer#addFertilizer
function with some tokens like USDT
.
vscode, Manual Review
Call IERC20(barnRaiseToken).approve(barnRaiseWell, 0)
before call IERC20(barnRaiseToken).approve(barnRaiseWell, uint256(tokenAmountIn))
.
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.