BiswapPoolV3 on BSC Loses $51K Due to Liquidity Accounting Flaw
Biswap experienced a loss of approximately $51,000 due to a flaw in its liquidity accounting. The issue arose from the burn() function failing to properly manage active liquidity under certain conditions.
An old BiswapPoolV3 pool on the Binance Smart Chain (BSC) suffered a loss of about $51,000 due to a liquidity accounting flaw in the burn() function. The flaw occurred when both current-price-point withdrawal components were zero, including a Y amount that was rounded down to zero. In this scenario, the function did not decrement active liquidity as intended.
As a result of this flaw, repeated burns could fully remove the position while leaving behind phantom liquidity. This phantom liquidity could then be exploited in subsequent swaps, leading to the financial loss. The incident highlights a specific vulnerability within the liquidity management of the Biswap platform.
The loss of $51,000 indicates a significant impact on the BiswapPoolV3 pool's liquidity, affecting users who rely on the platform for trading and liquidity provision. The incident underscores the importance of robust testing and auditing of smart contract functions to prevent such vulnerabilities.
The on-chain record of this incident would reflect the transactions related to the burn() function and the resulting liquidity changes, although specific addresses involved in the exploit are not provided in the description.
