eigenphi / Improvement-Bounty

MIT License
1 stars 4 forks source link

Incorrect calculation of profit & revenue for sandwich bundle involved taxed token #11

Open sirgarfieldc opened 1 year ago

sirgarfieldc commented 1 year ago

Transaction Hash

0xa6f0c9744500bd1de31aa6b3fdb260fdaac760e9f14db297b8f2c1488d6de874

Description

Example 1:

https://eigenphi.io/mev/ethereum/tx/0x29a0eeb32bf7ba97e6005dc8a84b9c6ee3cbb8dc047c301498573fad39e254fd

The link incorrectly claims that EOA address 0x469 received 0.047442 ether in profit. 0.040974 ether in the back run transaction is the taxed amount sent to the token contract. correct profit for 0x469 should be (0.047442 - 0.040974) = 0.006468 ether

Example 2:

https://eigenphi.io/mev/ethereum/tx/0x14f9c4c6b0a52c5d910661ee3bfb5daf3570cceabc6cecbf45d9c1ec5293d70b

The link incorrectly claims that EOA address 0x469 received 0.033241 ether in profit. 0.013039 ether and 0.019559 ether from the backrun transaction are taxed amounts sent to token contracts. correct profit for 0x469 should be (0.033241 - 0.013039 - 0.019559) = 0.000643 ether