I had the understanding that Approval in the same block as a Swap had to have a higher gas price as to be processed firstbefore the Swap when the block is being produced; that's until I found blocks on the mainnet where Approval came after the Swap, just how is this allowed?
For example this swap had no previous approvals and the same block approval was positioned after the swap in the produced block:
# Block | # Block pos | Function | Gas Price | Txn |
---|---|---|---|---|
17915586 | 10 | Swap | 37.7965 Gwei | 0xc54dc9f3fbb483f2f039e201e5d31b3ad2da067b0bbe2e2882adbe826d36b4b0 |
17915586 | 11 | Approve | 37.7965 Gwei | 0x5efa7e8a990761142d32902dfcdbbf4df09bafd4ba547c47bcb3b3f7191d2f25 |
Here's links to these two txns: https://etherscan.io/tx/0xc54dc9f3fbb483f2f039e201e5d31b3ad2da067b0bbe2e2882adbe826d36b4b0 https://etherscan.io/tx/0x5efa7e8a990761142d32902dfcdbbf4df09bafd4ba547c47bcb3b3f7191d2f25
-TIA