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 depositRAACFromPool
function:
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. raacToken
is 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 + amount
which in the end make the function revert with InvalidTransfer
.
Below is the snippet of the _update
function in RAACToken.sol
which causes the fee transfer:
As seen above, the tax is applied except if the transfer involves interaction with a whitelisted address.
The depositRAACFromPool
function 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.sol
or 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.