Contract 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec

Contract Overview

Balance:
0 tCRO
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xac68f02fe64b87e2d840d455cb2e05a4960e3fae2f53054aa6a8924f05577b4bSet Latest Answe...56679702022-10-18 13:57:26110 days 2 hrs ago0x111e164336e0d0a2b9554f96a2cca80680fba449 IN  0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO0.1700234814280
0x2d58a994eeaba9fc0d9fb3d766991ea2b64cdb3c3962509c1322943b2ed2b72d0x6080604056679612022-10-18 13:56:36110 days 2 hrs ago0x111e164336e0d0a2b9554f96a2cca80680fba449 IN  Contract Creation0 tCRO0.7635025473370
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xbb0806e232e9345a8df66476ca3673f6241836f0c336c0fba5d5a77db0c8a34a73953482023-02-05 2:10:4114 hrs 30 mins ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
0xbb0806e232e9345a8df66476ca3673f6241836f0c336c0fba5d5a77db0c8a34a73953482023-02-05 2:10:4114 hrs 30 mins ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
0x26108ed5367cb4b55667bc151a09d9f14718b003e4fcbb5481df3503b31cd67e73840422023-02-04 9:04:561 day 7 hrs ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
0x26108ed5367cb4b55667bc151a09d9f14718b003e4fcbb5481df3503b31cd67e73840422023-02-04 9:04:561 day 7 hrs ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
0x30c5c54c7a2fc388cefca0fbead143da3066f0901a5a280c21a9ac1610eae0f273828162023-02-04 7:13:411 day 9 hrs ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
0x30c5c54c7a2fc388cefca0fbead143da3066f0901a5a280c21a9ac1610eae0f273828162023-02-04 7:13:411 day 9 hrs ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
0x091dcf9fb7c3f650e17689c8cde0722ad741ab0a6e7c728f20190057be9e2c5273678362023-02-03 8:34:182 days 8 hrs ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
0x091dcf9fb7c3f650e17689c8cde0722ad741ab0a6e7c728f20190057be9e2c5273678362023-02-03 8:34:182 days 8 hrs ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
0x190677a76c5e3b276c8466835d055beb3934365c29a30074596d6274f25b7c4073677442023-02-03 8:25:562 days 8 hrs ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
0x190677a76c5e3b276c8466835d055beb3934365c29a30074596d6274f25b7c4073677442023-02-03 8:25:562 days 8 hrs ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
0x7972d658d5c428c904f9916c8206402b42a4221dcad0d4188f897c9207992b0473676632023-02-03 8:18:352 days 8 hrs ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
0x7972d658d5c428c904f9916c8206402b42a4221dcad0d4188f897c9207992b0473676632023-02-03 8:18:352 days 8 hrs ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
0x7a73487d17cd86a67bd7e6304dc6992c817e0ec985e76a3332f907d76b68676e73676312023-02-03 8:15:412 days 8 hrs ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
0x7a73487d17cd86a67bd7e6304dc6992c817e0ec985e76a3332f907d76b68676e73676312023-02-03 8:15:412 days 8 hrs ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
0x1fc335d838bc3b8568821782e71e3829e70a510c7b278d8be5ae361766b4b9c373676142023-02-03 8:14:082 days 8 hrs ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
0x1fc335d838bc3b8568821782e71e3829e70a510c7b278d8be5ae361766b4b9c373676142023-02-03 8:14:082 days 8 hrs ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
0xb0be01c15e8c245d0c50a11b05200882a0eb2e21866aab90f05e68f37798016b73675592023-02-03 8:09:082 days 8 hrs ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
0xb0be01c15e8c245d0c50a11b05200882a0eb2e21866aab90f05e68f37798016b73675592023-02-03 8:09:082 days 8 hrs ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
0x9720339a1a398d57e95462697c95af9db0db7580516f9ad7a1bf2c42f3858e4d73674742023-02-03 8:01:252 days 8 hrs ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
0x9720339a1a398d57e95462697c95af9db0db7580516f9ad7a1bf2c42f3858e4d73674742023-02-03 8:01:252 days 8 hrs ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
0xd6de8bf271818e0194481077641bdfb99080f6c565cc156912a48d190b65368b73513362023-02-02 7:36:163 days 9 hrs ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
0xd6de8bf271818e0194481077641bdfb99080f6c565cc156912a48d190b65368b73513362023-02-02 7:36:163 days 9 hrs ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
0xd6de8bf271818e0194481077641bdfb99080f6c565cc156912a48d190b65368b73513362023-02-02 7:36:163 days 9 hrs ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
0xd6de8bf271818e0194481077641bdfb99080f6c565cc156912a48d190b65368b73513362023-02-02 7:36:163 days 9 hrs ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
0xd6de8bf271818e0194481077641bdfb99080f6c565cc156912a48d190b65368b73513362023-02-02 7:36:163 days 9 hrs ago 0xe20173916e602e1870aad99b162e1dba5017fc33 0xe0952bc8c8ef9af1b81bddafc21dabbb786611ec0 tCRO
[ Download CSV Export 
Loading

Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0xBA0eF08Cf922e732bE1250Cf2D473c7EfB7930f6

Contract Name:
MockPriceFeed

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 2 : MockPriceFeed.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "./interfaces/IPriceFeed.sol";

contract MockPriceFeed is IPriceFeed {
    int256 public answer;
    uint80 public roundId;
    string public override description;
    address public override aggregator;

    uint256 public decimals = 8;

    address public admin;

    mapping (uint80 => int256) public answers;

    constructor(string memory _description) public {
        description = _description;
        admin = msg.sender;
    }

    function setAdmin(address _account, bool _isAdmin) public {
        require(msg.sender == admin, "PriceFeed: forbidden");
        admin = _account;
    }

    function latestAnswer() public override view returns (int256) {
        return answer;
    }

    function latestRound() public override view returns (uint80) {
        return roundId;
    }

    function setLatestAnswer(int256 _answer) public {
        require(msg.sender == admin, "PriceFeed: forbidden");
        roundId = roundId + 1;
        answer = _answer;
        answers[roundId] = _answer;
    }

    // returns roundId, answer, startedAt, updatedAt, answeredInRound
    function getRoundData(uint80 _roundId) public override view
        returns (uint80, int256, uint256, uint256, uint80)
    {
        return (_roundId, answers[_roundId], 0, 0, 0);
    }
}

File 2 of 2 : IPriceFeed.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IPriceFeed {
    function description() external view returns (string memory);
    function aggregator() external view returns (address);
    function latestAnswer() external view returns (int256);
    function latestRound() external view returns (uint80);
    function getRoundData(uint80 roundId) external view returns (uint80, int256, uint256, uint256, uint80);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"string","name":"_description","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aggregator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"answer","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint80","name":"","type":"uint80"}],"name":"answers","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint80","name":"_roundId","type":"uint80"}],"name":"getRoundData","outputs":[{"internalType":"uint80","name":"","type":"uint80"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint80","name":"","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestAnswer","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestRound","outputs":[{"internalType":"uint80","name":"","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"roundId","outputs":[{"internalType":"uint80","name":"","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bool","name":"_isAdmin","type":"bool"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int256","name":"_answer","type":"int256"}],"name":"setLatestAnswer","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600860045534801561001557600080fd5b506040516106843803806106848339818101604052602081101561003857600080fd5b810190808051604051939291908464010000000082111561005857600080fd5b90830190602082018581111561006d57600080fd5b825164010000000081118282018810171561008757600080fd5b82525081516020918201929091019080838360005b838110156100b457818101518382015260200161009c565b50505050905090810190601f1680156100e15780820380516001836020036101000a031916815260200191505b50604052505081516100fb91506002906020840190610114565b5050600580546001600160a01b031916331790556101a7565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061015557805160ff1916838001178555610182565b82800160010185558215610182579182015b82811115610182578251825591602001919060010190610167565b5061018e929150610192565b5090565b5b8082111561018e5760008155600101610193565b6104ce806101b66000396000f3fe608060405234801561001057600080fd5b50600436106100a45760003560e01c806304ea97b0146100a9578063245a7bfc146100c8578063313ce567146100ec5780634b0bddd2146101065780634c295ca31461013457806350d25bcd1461015a578063668a0f02146101625780637284e4161461018657806385bb7d69146102035780638cd221c91461020b5780639a6fc8f514610213578063f851a4401461027d575b600080fd5b6100c6600480360360208110156100bf57600080fd5b5035610285565b005b6100d0610313565b604080516001600160a01b039092168252519081900360200190f35b6100f4610322565b60408051918252519081900360200190f35b6100c66004803603604081101561011c57600080fd5b506001600160a01b0381351690602001351515610328565b6100f46004803603602081101561014a57600080fd5b50356001600160501b03166103a1565b6100f46103b3565b61016a6103b9565b604080516001600160501b039092168252519081900360200190f35b61018e6103c8565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101c85781810151838201526020016101b0565b50505050905090810190601f1680156101f55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6100f4610453565b61016a610459565b6102396004803603602081101561022957600080fd5b50356001600160501b0316610468565b60405180866001600160501b03168152602001858152602001848152602001838152602001826001600160501b031681526020019550505050505060405180910390f35b6100d0610489565b6005546001600160a01b031633146102db576040805162461bcd60e51b8152602060048201526014602482015273283934b1b2a332b2b21d103337b93134b23232b760611b604482015290519081900360640190fd5b600180546001600160501b031981166001600160501b0391821683018216179182905560008381559116815260066020526040902055565b6003546001600160a01b031681565b60045481565b6005546001600160a01b0316331461037e576040805162461bcd60e51b8152602060048201526014602482015273283934b1b2a332b2b21d103337b93134b23232b760611b604482015290519081900360640190fd5b50600580546001600160a01b0319166001600160a01b0392909216919091179055565b60066020526000908152604090205481565b60005490565b6001546001600160501b031690565b6002805460408051602060018416156101000260001901909316849004601f8101849004840282018401909252818152929183018282801561044b5780601f106104205761010080835404028352916020019161044b565b820191906000526020600020905b81548152906001019060200180831161042e57829003601f168201915b505050505081565b60005481565b6001546001600160501b031681565b6001600160501b038116600090815260066020526040812054919281908190565b6005546001600160a01b03168156fea2646970667358221220a0c69ed65079d893606dd6b51643327de761fa934c88fd13fac4c09e222655d164736f6c634300060c003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000008555344432f555344000000000000000000000000000000000000000000000000

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading