The depositRAACFromPool function in StabilityPool.sol will always revert if neither liquidityPool address and stability pool is whitelisted in RAACToken.
Below is a snippet of the depositRAACFromPoolfunction:
As seen above, the after the token is transferred to the stability pool, if postBalance is not equal to preBalance + amount , the function will revert. raacTokenis a fee-on-transfer token, which means that after the token is transferred to the stability pool, the amount received by the stability pool will actually be less than the prebalance + amountwhich in the end make the function revert with InvalidTransfer.
Below is the snippet of the _updatefunction in RAACToken.solwhich causes the fee transfer:
As seen above, the tax is applied except if the transfer involves interaction with a whitelisted address.
The depositRAACFromPoolfunction is bricked if neither liquidityPool address and stability pool address is whitelisted in RAACToken.
Manual review
Ensure that either the liquidity pool address or stability pool is whitelisted in RAACToken.solor change the prebalance and postbalance condition to take into account the tax rate of the RAAC Token.
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.