Submitted by hickuphh3
WhitelistPeriodManager.sol#L178-L184
WhitelistPeriodManager.sol#L83-L99
The totalLiquidity and totalLiquidityByLp mappings are not updated when an address is added to the isExcludedAddress mapping. This affects the enforcement of the cap limits and the getMaxCommunityLpPositon() function, which implicitly assumes that whitelisted addresses will have 0 liquidity, for addresses with non-zero liquidity at the time of addition to the whitelist.
Check that the address to be excluded is not holding any LP token at the time of exclusion.
ankurdubey521 (Biconomy) confirmed
pauliax (judge) commented:
