Submitted by minhquanym, also found by cmichel, hickuphh3, and WatchPug
LiquidityPool.sol#L319-L322
The getAmountToTransfer function of LiquidityPool updates incentivePool[tokenAddress] by adding some fee to it but the formula is wrong and the value of incentivePool[tokenAddress] will be divided by BASE_DIVISOR (10000000000) each time.
After just a few time, the value of incentivePool[tokenAddress] will become zero and that amount of tokenAddress token will be locked in contract.
Line 319-322
Let x = incentivePool[tokenAddress], y = amount, z = transferFeePerc and t = tokenManager.getTokensInfo(tokenAddress).equilibriumFee. Then that be written as
Fix the bug by changing lines 319-322 to:
ankurdubey521 (Biconomy) confirmed
pauliax (judge) commented:
