Submitted by 0xhunter20
yieldFeeBalance wouldnt be claimed after calling transferTokensOut() due to the twab supply limit.
When _tokenOut == address(this), liquidatableBalanceOf() mints shares to the receiver and accumulates yieldFeeBalance accordingly.
But when it checks the maximum liquidatable amount in liquidatableBalanceOf(), it validates the twap supply limit with the liquidYield only; it might meet the supply limit while minting yieldFeeBalance like the below:
liquidatableBalanceOf() shouldnt apply yieldFeePercentage to compare with _maxAmountOut when _tokenOut == address(this).
Invalid Validation
hansfriese (judge) commented:
trmid (PoolTogether) confirmed and commented:
