Transaction Hash:
Block:
20649119 at Aug-31-2024 02:22:47 PM +UTC
Transaction Fee:
0.000041457408163474 ETH
$0.10
Gas Used:
46,498 Gas / 0.891595513 Gwei
Emitted Events:
115 |
EIP20.Approval( _owner=[Sender] 0x68fbee0727d1c7ac782e26d88bddb8c029c0c389, _spender=0x11111112...0f8842A65, _value=115792089237316195423570985008687907853269984665640564039457584007913129639935 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x27702a26...A084EF628 | |||||
0x388C818C...7ccB19297
Miner
| (Lido: Execution Layer Rewards Vault) | 4.389419650210923607 Eth | 4.389421003302723607 Eth | 0.0000013530918 | |
0x68fBEe07...029c0C389 |
0.000064642577811 Eth
Nonce: 6
|
0.000023185169647526 Eth
Nonce: 7
| 0.000041457408163474 |
Execution Trace
EIP20.approve( _spender=0x111111125421cA6dc452d289314280a0f8842A65, _value=115792089237316195423570985008687907853269984665640564039457584007913129639935 ) => ( success=True )
{"EIP20.sol":{"content":"/*\nImplements EIP20 token standard: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md\nOriginal code by Consensys: https://github.com/ConsenSys/Tokens/blob/master/contracts/eip20/EIP20.sol\nWith modifications according to aleph.im needs (batch transfer, permit...)\n.*/\n\n\npragma solidity ^0.5.16;\n\nimport \"./EIP20Interface.sol\";\n\n\ncontract EIP20 is EIP20Interface {\n\n uint256 constant private MAX_UINT256 = 2**256 - 1;\n mapping (address =\u003e uint256) public balances;\n mapping (address =\u003e mapping (address =\u003e uint256)) public allowed;\n /*\n NOTE:\n The following variables are OPTIONAL vanities. One does not have to include them.\n They allow one to customise the token contract \u0026 in no way influences the core functionality.\n Some wallets/interfaces might not even bother to look at this information.\n */\n string public name; //fancy name: eg Simon Bucks\n uint8 public decimals; //How many decimals to show.\n string public symbol; //An identifier: eg SBX\n\n bytes32 public DOMAIN_SEPARATOR;\n // keccak256(\"Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)\");\n bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;\n\n mapping(address =\u003e uint) public nonces;\n\n constructor(\n uint256 _initialAmount,\n string memory _tokenName,\n uint8 _decimalUnits,\n string memory _tokenSymbol\n ) public {\n uint chainId;\n assembly {\n chainId := chainid\n }\n \n balances[msg.sender] = _initialAmount; // Give the creator all initial tokens\n totalSupply = _initialAmount; // Update total supply\n name = _tokenName; // Set the name for display purposes\n decimals = _decimalUnits; // Amount of decimals for display purposes\n symbol = _tokenSymbol; // Set the symbol for display purposes\n\n DOMAIN_SEPARATOR = keccak256(\n abi.encode(\n keccak256(\u0027EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\u0027),\n keccak256(bytes(name)),\n keccak256(bytes(\u00271\u0027)),\n chainId,\n address(this)\n )\n );\n }\n\n function transfer(address _to, uint256 _value) public returns (bool success) {\n require(balances[msg.sender] \u003e= _value);\n balances[msg.sender] -= _value;\n balances[_to] += _value;\n emit Transfer(msg.sender, _to, _value); //solhint-disable-line indent, no-unused-vars\n return true;\n }\n\n function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {\n uint256 allowance = allowed[_from][msg.sender];\n require(balances[_from] \u003e= _value \u0026\u0026 allowance \u003e= _value);\n balances[_to] += _value;\n balances[_from] -= _value;\n if (allowance \u003c MAX_UINT256) {\n allowed[_from][msg.sender] -= _value;\n }\n emit Transfer(_from, _to, _value); //solhint-disable-line indent, no-unused-vars\n return true;\n }\n\n function balanceOf(address _owner) public view returns (uint256 balance) {\n return balances[_owner];\n }\n\n function _approve(address owner, address spender, uint value) private {\n allowed[owner][spender] = value;\n emit Approval(owner, spender, value);\n }\n\n function approve(address _spender, uint256 _value) public returns (bool success) {\n _approve(msg.sender, _spender, _value);\n return true;\n }\n\n function allowance(address _owner, address _spender) public view returns (uint256 remaining) {\n return allowed[_owner][_spender];\n }\n\n function batchTransfer(address[] memory _targets, uint256[] memory _values) public returns (bool success) {\n uint8 i = 0;\n for (i; i \u003c _targets.length; i++) {\n transfer(_targets[i], _values[i]);\n }\n return true;\n }\n\n function batchTransferFrom(address _from, address[] memory _targets, uint256[] memory _values) public returns (bool success) {\n uint8 i = 0;\n for (i; i \u003c _targets.length; i++) {\n transferFrom(_from, _targets[i], _values[i]);\n }\n return true;\n }\n\n function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external {\n require(deadline \u003e= block.timestamp, \u0027PERMIT: EXPIRED\u0027);\n bytes32 digest = keccak256(\n abi.encodePacked(\n \u0027\\x19\\x01\u0027,\n DOMAIN_SEPARATOR,\n keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, nonces[owner]++, deadline))\n )\n );\n address recoveredAddress = ecrecover(digest, v, r, s);\n require(recoveredAddress != address(0) \u0026\u0026 recoveredAddress == owner, \u0027PERMIT: INVALID_SIGNATURE\u0027);\n _approve(owner, spender, value);\n }\n}\n"},"EIP20Interface.sol":{"content":"// Abstract contract for the full ERC 20 Token standard\n// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md\n// Original code by Consensys: https://github.com/ConsenSys/Tokens/blob/master/contracts/eip20/EIP20Interface.sol\npragma solidity ^0.5.16;\n\n\ncontract EIP20Interface {\n /* This is a slight change to the ERC20 base standard.\n function totalSupply() constant returns (uint256 supply);\n is replaced with:\n uint256 public totalSupply;\n This automatically creates a getter function for the totalSupply.\n This is moved to the base contract since public getter functions are not\n currently recognised as an implementation of the matching abstract\n function by the compiler.\n */\n /// total amount of tokens\n uint256 public totalSupply;\n\n /// @param _owner The address from which the balance will be retrieved\n /// @return The balance\n function balanceOf(address _owner) public view returns (uint256 balance);\n\n /// @notice send `_value` token to `_to` from `msg.sender`\n /// @param _to The address of the recipient\n /// @param _value The amount of token to be transferred\n /// @return Whether the transfer was successful or not\n function transfer(address _to, uint256 _value) public returns (bool success);\n\n /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`\n /// @param _from The address of the sender\n /// @param _to The address of the recipient\n /// @param _value The amount of token to be transferred\n /// @return Whether the transfer was successful or not\n function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);\n\n /// @notice `msg.sender` approves `_spender` to spend `_value` tokens\n /// @param _spender The address of the account able to transfer the tokens\n /// @param _value The amount of tokens to be approved for transfer\n /// @return Whether the approval was successful or not\n function approve(address _spender, uint256 _value) public returns (bool success);\n\n /// @param _owner The address of the account owning tokens\n /// @param _spender The address of the account able to transfer the tokens\n /// @return Amount of remaining tokens allowed to spent\n function allowance(address _owner, address _spender) public view returns (uint256 remaining);\n\n // solhint-disable-next-line no-simple-event-func-name\n event Transfer(address indexed _from, address indexed _to, uint256 _value);\n event Approval(address indexed _owner, address indexed _spender, uint256 _value);\n\n\n function DOMAIN_SEPARATOR() external view returns (bytes32);\n function PERMIT_TYPEHASH() external pure returns (bytes32);\n function nonces(address owner) external view returns (uint);\n}\n"}}