psdlt / roboape

A simple bot which will buy into every new BNB pair created on PancakeSwap
77 stars 46 forks source link

On transaction reverted lots of unintend stuff #7

Closed TJCares1966 closed 3 years ago

TJCares1966 commented 3 years ago

When the traction reverted this happened.

2021-07-06T22:40:32.153Z '[Web3Helper] Nonce: 73' 2021-07-06T22:40:32.461Z '[WatchNewPairs] Listening to logs' 2021-07-06T22:40:32.534Z '[WatchNewPairs] Current account balance: 0.245588830970318315 BNB' 2021-07-06T22:40:33.358Z '[WatchNewPairs] New pair created: 0xa5c75864c66a25deb0b4abf371dc13c34740ed63. BNB reserve: 1.003996004070812703.' 2021-07-06T22:40:33.824Z '[Ape] Apeing into 0xa5c75864c66a25deb0b4abf371dc13c34740ed63' 2021-07-06T22:40:34.605Z '[Web3Helper] Txn Hash 0x107f696b096ad27adc917d5e0d33da8a35b50c99968b87d4f265e202b2567f7d (7gwei) (nonce: 73)' 2021-07-06T22:40:38.867Z '[Web3Helper] Error: Transaction has been reverted by the EVM:\n{\n "transactionHash": "0x107f696b096ad27adc917d5e0d33da8a35b50c99968b87d4f265e202b2567f7d",\n "blockHash": "0xda984f929b8a2753bb8af203abff67dccd6b0d879ccb299b31558485569a0a7c",\n "contractAddress": null,\n "from": "0x08897c0b0dec7e35f25a75a56892bb33a6d1f9ef",\n "gasUsed": 98884,\n "status": false,\n "to": "0x10ed43c718714eb63d5aa57b78b54704e256024e",\n "transactionIndex": 12,\n "type": "0x0",\n "blockNumber": 8931182,\n "cumulativeGasUsed": 900484,\n "logs": [],\n "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"\n}' 2021-07-06T22:40:38.876Z '[Ape] Failed to open position for 0xa5c75864c66a25deb0b4abf371dc13c34740ed63, marking as closed'

cool program so far.

psdlt commented 3 years ago

@TJCares1966 all that output is expected. On revert it also dumps txn receipt, which is actually included in error's message.

TJCares1966 commented 3 years ago

Okay.