Description
More and more contracts choose to use the de‑facto wrapper instead of handling directly even if they don’t handle other tokens. Exchange can then be performed on‑chain 1 to 1 for free without any restrictions, so essentially this is exactly the same as Ether.
Instead of only checking ether sending, please also include an ᴇʀᴄ20 check of token send using 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
too.
This would add the benefit of working faster (because the possibility to withdraw from the contract requires a subsequent transaction and might not be found because of transaction number limit with -t
parameter or the planned recursion limit parameter) or even trigger the module which wouldn’t be triggered otherwise.
An alternative would be to treat 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
as a precompile instead of calling it since as far I’m aware, it’s perfectly and definitely bug‑free which means searching bugs inside it is pointless.