_rebalanceLiquidity() missed in repay() and repayOnBehalf()
_rebalanceLiquidity() is used to rebalances liquidity between the buffer and the Curve vault to maintain the desired buffer ratio. This function is called in deposit() and withdraw(), but missed in repay() and repayOnBehalf().
After repay() and repayOnBehalf(), 'IERC20(reserve.reserveAssetAddress).balanceOf(reserve.reserveRTokenAddress)' will be changed, refer to LendingPool.sol#Line422:
The change may make liquidity between the buffer and the Curve vault out of the desired buffer ratio.
after repay() and repayOnBehalf(), liquidity between the buffer and the Curve vault may not be in the the desired buffer ratio
manually reviewed
add '_rebalanceLiquidity()' at the end of function _repay()
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.