Closed 41v4 closed 2 years ago
Please confirm the following
pancaketrade
Setup (please complete the following information):
Describe the bug It fails to execute an order because (I guess) it fails to estimate the gas limit
network/bsc.py:
try: gas_limit = Wei(int(Decimal(func.estimateGas({'from': self.wallet, 'value': amount_bnb})) * Decimal(1.2))) except Exception as e: logger.error(f'Can\'t get gas estimate, cancelling transaction: {e}') return None
To Reproduce Steps to reproduce the behavior:
Expected behavior I expect to buy a token
Screenshots
Additional context None
It seems the 5% slippage was too low. I have tried with 15% slippage and it went ok.
Yep when in doubt, refer to the pancakeswap documentation. All error messages are described.
Please confirm the following
pancaketrade
Setup (please complete the following information):
Describe the bug It fails to execute an order because (I guess) it fails to estimate the gas limit
network/bsc.py:
To Reproduce Steps to reproduce the behavior:
Expected behavior I expect to buy a token
Screenshots
Additional context None