1

To view the code: On the Contract tab of a given contract on BscScan, there is a button that says "Decompile ByteCode". Click that and you'll be taken to a new page called "EVM bytecode decompiler". Then click the button on that page that also says "Decompile ByteCode". The tool will provide you with the decompilation result. ...


1

The minimum gas value for a transaction is 21000 (e.g. simple Ethereum transfer). Any additional (such as calculations / read /store /... operation) will incur additional costs. These operations should be priced according to the cost they impose on node operators. From the Whitepaper: The intent of the fee system is to require an attacker to pay ...


1

The swapRouter is the contract doing, quoting Uniswap comments, "important verification" (in terms of amounts, slippage, etc) and, novelty of Uniswap V3, handling the swap callback which is responsible to verify the authenticity of the pool as well as sending the tokenIn on your behalf (see the official doc on how to use it : https://docs.uniswap....


1

Just adding to the previous answer to help people understand how to interpret the encoding. The call data is composed of 2 parts : Function selector (4 first bytes) Parameters (everything after the 4 first bytes) The function selector is the 4 first bytes of the keccack-256 of the function signature hash: The function: withdraw(uint256 _amount) signature ...


1

To decode calls on Songbird network you can use this tool: https://decoder.aflabs.si/. It uses the songbird explorer to get contract ABI from the contract's address and then decodes the function call and its parameters. In your example it works as expected:


1

This took a fair amount of playing around, but finally discovered that: await NFT.connect(sender)['safeTransferFrom(address,address,uint256)']( sender.address, recipient.address, ethers.BigNumber.from("1") ); is the winning combination. Don't put a . after connect(sender).


1

I dont know the answer but I can provide some clues. Both transactions are combined of the same steps, but the total gas is different. You can see steps in: fail: https://etherscan.io/vmtrace?txhash=0x9227f7b00bf2c98a7e16eb5ab90c04df5b49698297ee7f52c765d5218af395ad success: https://etherscan.io/vmtrace?txhash=...


Only top voted, non community-wiki answers of a minimum length are eligible