ETH Price: $2,013.42 (-2.14%)

Transaction Decoder

Block:
15085835 at Jul-06-2022 12:48:19 AM +UTC
Transaction Fee:
0.013923368369970888 ETH $28.03
Gas Used:
271,156 Gas / 51.348184698 Gwei

Emitted Events:

355 0x011c77fa577c500deedad364b8af9e8540b808c0.0x2bce37c591c5b0d254c3056688b080a088f160fff82b6e79f456c8a20d5570f6( 0x2bce37c591c5b0d254c3056688b080a088f160fff82b6e79f456c8a20d5570f6, 0x00000000000000000000000000000000000000000000000000000000000018f6, 0000000000000000000000000000000000000000000000000000000000000000, 000000000000000000000000000000000000000000000000000000000007a120 )
356 0x011c77fa577c500deedad364b8af9e8540b808c0.0xa8aa44d4c04f6a42cbcb3e9422cced663c11b9662445100f1d09c3dd39b2c763( 0xa8aa44d4c04f6a42cbcb3e9422cced663c11b9662445100f1d09c3dd39b2c763, 0x000000000000000000000000343341833e11da8ae1128e2fb89794ef6f0321d4, 00000000000000000000000000000000000000000000000000000000000018f6, 0000000000000000000000000000000000000000000000000000000000000040, 0000000000000000000000000000000000000000000000000000000000000005, 4c75636b79000000000000000000000000000000000000000000000000000000 )
357 0x011c77fa577c500deedad364b8af9e8540b808c0.0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef( 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef, 0x0000000000000000000000000000000000000000000000000000000000000000, 0x000000000000000000000000343341833e11da8ae1128e2fb89794ef6f0321d4, 0x00000000000000000000000000000000000000000000000000000000000018f6 )
358 0x011c77fa577c500deedad364b8af9e8540b808c0.0x0d1543c58f2f65d9a93c401d172d417b2a0565b31efa6b2ad8050fcb027fcfb0( 0x0d1543c58f2f65d9a93c401d172d417b2a0565b31efa6b2ad8050fcb027fcfb0, 00000000000000000000000000000000000000000000000000000000000018f6, 88d1670f793576d6a3f3fcebeb4c4f3249b4e907ff0c8db82aa18081b9caf212, 0b5fd1a8de5c2c025592fbb8ee074cd6ba30db04307b3f5b990d25176d8ad859 )

Account State Difference:

  Address   Before After State Difference Code
0x011C77fa...540b808C0
0x34334183...F6f0321D4
0.077544919750529847 Eth
Nonce: 17
0.062224263351468959 Eth
Nonce: 18
0.015320656399060888
0x4a4567eD...5D0B8F811 4.895952092260959975 Eth4.897349380290049975 Eth0.00139728802909
(F2Pool Old)
5,608.05574208343761994 Eth5,608.05709786343761994 Eth0.00135578

Execution Trace

ETH 0.002 ImmortalPlayerCharacter: IPC Token.47807f87( )
  • FiatContract.USD( _id=0 ) => ( 45073807390000 )
  • FiatContract.USD( _id=0 ) => ( 45073807390000 )
  • ETH 0.00060271197091 0x343341833e11da8ae1128e2fb89794ef6f0321d4.CALL( )
  • ETH 0.00139728802909 0x4a4567edbe748e540fb002967ff862b5d0b8f811.CALL( )
    pragma solidity 0.4.15;
    
    /*
    
        Crypto Market Prices via Ethereum Smart Contract
    
        A community driven smart contract that lets your contracts use fiat
        amounts in USD, EURO, and GBP. Need to charge $10.50 for a contract call?
        With this contract, you can convert ETH and other crypto's.
    
        Repo: https://github.com/hunterlong/fiatcontract
        Website: https://fiatcontract.com
    
        Examples:
    
          FiatContract price = FiatContract(CONTRACT_ADDRESS);
    
          uint256 ethCent = price.USD(0);        // returns $0.01 worth of ETH in USD.
          uint256 weiAmount = ethCent * 2500     // returns $25.00 worth of ETH in USD
          require(msg.value == weiAmount);       // require $25.00 worth of ETH as a payment
          
        Please look at Repo or Website to get Currency ID values.
    
        @author Hunter Long
    */
    
    contract FiatContract {
    
        mapping(uint => Token) public tokens;
    
        address public sender;
        address public creator;
    
        event NewPrice(uint id, string token);
        event DeletePrice(uint id);
        event UpdatedPrice(uint id);
        event RequestUpdate(uint id);
        event Donation(address from);
    
        struct Token {
            string name;
            uint256 eth;
            uint256 usd;
            uint256 eur;
            uint256 gbp;
            uint block;
        }
    
        // initialize function
        function FiatContract() {
            creator = msg.sender;
            sender = msg.sender;
        }
    
        // returns the Token struct
        function getToken(uint _id) internal constant returns (Token) {
            return tokens[_id];
        }
    
        // returns rate price of coin related to ETH.
        function ETH(uint _id) constant returns (uint256) {
            return tokens[_id].eth;
        }
    
        // returns 0.01 value in United States Dollar
        function USD(uint _id) constant returns (uint256) {
            return tokens[_id].usd;
        }
    
        // returns 0.01 value in Euro
        function EUR(uint _id) constant returns (uint256) {
            return tokens[_id].eur;
        }
    
        // returns 0.01 value in British Pound
        function GBP(uint _id) constant returns (uint256) {
            return tokens[_id].gbp;
        }
    
        // returns block when price was updated last
        function updatedAt(uint _id) constant returns (uint) {
            return tokens[_id].block;
        }
    
        // update market rates in USD, EURO, and GBP for a specific coin
        function update(uint id, string _token, uint256 eth, uint256 usd, uint256 eur, uint256 gbp) external {
            require(msg.sender==sender);
            tokens[id] = Token(_token, eth, usd, eur, gbp, block.number);
            NewPrice(id, _token);
        }
    
        // delete a token from the contract
        function deleteToken(uint id) {
            require(msg.sender==creator);
            DeletePrice(id);
            delete tokens[id];
        }
    
        // change creator address
        function changeCreator(address _creator){
            require(msg.sender==creator);
            creator = _creator;
        }
    
        // change sender address
        function changeSender(address _sender){
            require(msg.sender==creator);
            sender = _sender;
        }
    
        // execute function for creator if ERC20's get stuck in this wallet
        function execute(address _to, uint _value, bytes _data) external returns (bytes32 _r) {
            require(msg.sender==creator);
            require(_to.call.value(_value)(_data));
            return 0;
        }
    
        // default function so this contract can accept ETH with low gas limits.
        function() payable {
    
        }
    
        // public function for requesting an updated price from server
        // using this function requires a payment of $0.35 USD
        function requestUpdate(uint id) external payable {
            uint256 weiAmount = tokens[0].usd * 35;
            require(msg.value >= weiAmount);
            sender.transfer(msg.value);
            RequestUpdate(id);
        }
    
        // donation function that get forwarded to the contract updater
        function donate() external payable {
            require(msg.value >= 0);
            sender.transfer(msg.value);
            Donation(msg.sender);
        }
    
    }