The addUnderlying function does not account for tokens with fee on transfer.
The function addUnderlying may not transfer exactly barnRaiseToken
amount of tokens, for tokens with a fee on transfer. This means that the approve call in the next line would be approving more tokens than what was received, leading to accounting issues.
Manual Review
It is recommended to find the balance of the current contract before and after the transferFrom to see how much tokens were received, and approve only what was received.
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.