Uniswap / v2-core

🦄 🦄 Core smart contracts of Uniswap V2
https://uniswap.org/docs
GNU General Public License v3.0
2.87k stars 3.1k forks source link

When Add Liquidity got Error #215

Closed ohari5336 closed 1 month ago

ohari5336 commented 2 months ago
(uint256 amountA, uint256 amountB, uint256 liquidity) = router.addLiquidity(
            WLRS,
            LRSN,
            100000000000000000,
            100000000000000000,
            1000000000000000,
            1000000000000000,
            address(this),
            block.timestamp
        );

when I call this the error I get:- INSUFFICIENT_B_AMOUNT

(uint256 amountA, uint256 amountB, uint256 liquidity) = router.addLiquidity(
            WLRS,
            LRSN,
            100000000000000000,
            100000000000000000,
            1,
            1,
            address(this),
            block.timestamp
        );

when I call this then gives me an error:- SafeMath: multiplication overflow

cooktheblock commented 2 months ago

I also facing the same problem, Need help