Contract 0x2129f06be964c0e983aeac1632b1a4d8327f04d7

Contract Overview

Balance:
0 tCRO
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xaa037b39c4785f1f9dadff7fe76cc4b04145f08dabe0b08badd9a447ac12142aSet Latest Answe...72798362023-01-28 19:23:503 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.110749252832 1,916.143341158
0x4c0aaf5f19bbedd3302633f6fb52f4b9a31dd9109ea2ea527f1500d769875c11Set Latest Answe...72797882023-01-28 19:19:297 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.105384101941 1,916.144258725
0x34a5e789fc351572b6302c715ef74d0292a9f961bd9406ff1c1ea8dec234e7ecSet Latest Answe...72797552023-01-28 19:16:3010 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.105384136357 1,916.144884487
0x1dd3445dcdff8a957daad4a75ca3453940053c5094156c771e95a7bf3897bd84Set Latest Answe...72797222023-01-28 19:13:3013 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.110749378473 1,916.145514958
0xbaef429694cd2c04eb7f3c91c93e346db5cd816125a6f137cc0c9f2971fb95bcSet Latest Answe...72796892023-01-28 19:10:3116 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.110749414905 1,916.146145298
0x900addd5b504b1dac2a3b26cc254e63568b6ef80fd054d2c582e511e215a3488Set Latest Answe...72796462023-01-28 19:06:3720 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.110749462151 1,916.146962717
0x81fd286e46b5e640e690d7b2edd61489a9079099eef2c3c7a9cc1f3978fafc55Set Latest Answe...72796052023-01-28 19:02:5424 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.110749507448 1,916.147746435
0x5d3e354b04fb0b5ae853de52b3eb5db41905a6b2d02642b47b32c22b2f46bf1bSet Latest Answe...72795652023-01-28 18:59:1628 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.110749551634 1,916.148510924
0x4371f11ff031d04e83e88b67f1b2566a027d941840f2304d564b4ad2de4efa81Set Latest Answe...72795262023-01-28 18:55:4531 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.110749594445 1,916.149251624
0xef54626847595d334732cd8dcaabe6b2b4d4be3336312c8690b3f47d518c29beSet Latest Answe...72794902023-01-28 18:52:2934 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.110749634207 1,916.149939568
0x6620c29b6881d04d55abfeef6871d7ace1a2ad825e158de5e26c51998028db89Set Latest Answe...72794532023-01-28 18:49:0838 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.105384453263 1,916.150646636
0x3d2068167714f36d438382543032dc83094bc60032c31edad1d93f118411a35aSet Latest Answe...72794202023-01-28 18:46:0841 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.105384487701 1,916.151272797
0xc0ba206a7a5dcbfbde9e43ab91c2c45e9b3ebe11f1305274e5a4215fff755491Set Latest Answe...72793842023-01-28 18:42:5244 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.110749751037 1,916.15196093
0x9dc4f7d3873d26bdf47400df89aec5a4011daf44306f40a30738d863a9425c81Set Latest Answe...72793532023-01-28 18:40:0347 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.110749785281 1,916.152553409
0x3c191b62da6de87484c3a773a32bdd4165edb0b42083c95387b7f5f050c14524Set Latest Answe...72793202023-01-28 18:37:0350 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.110749821455 1,916.153179266
0x633673f8980140c7dacf51379557799a3131cf5e289db73a330f3c00c142eca5Set Latest Answe...72792892023-01-28 18:34:1653 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.110749855684 1,916.153771496
0x425e79b93a763b5e28e9ab71fb8e133cb147181952770f26f98547c2471517b7Set Latest Answe...72792532023-01-28 18:31:0056 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.11074989544 1,916.154459325
0xb82a706e3465d3d364dd78e710ee38b9f740536e0472fafcb3185543f2deafc2Set Latest Answe...72792202023-01-28 18:28:0159 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.110749931625 1,916.155085399
0x149846ee111cfd54f3c51cb5437eff4cf2b535d3ef3e44d91c2a7666565f43e9Set Latest Answe...72791872023-01-28 18:25:011 hr 2 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.110749968052 1,916.155715644
0xa6838ee788373ace16ccef562df4ab39715ad39d089828cf7df899079bb39a39Set Latest Answe...72791522023-01-28 18:21:501 hr 5 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.110750006698 1,916.156384283
0xd641cc59326a48e907c474a08e2055cfe217bd3a475e73e5e5c6b5ccdaa393aaSet Latest Answe...72791172023-01-28 18:18:411 hr 8 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.110727051481 1,916.157053286
0x4a78b67836aee8a6e870962c74645ccdffa6bb3f5bf66249c70d6dee40845422Set Latest Answe...72790832023-01-28 18:15:361 hr 11 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.10538484109 1,916.157698287
0x27665ee1b1224804c212757f90b9c9a6152057b6c4fbe084288bcf96cb771d2fSet Latest Answe...72790512023-01-28 18:12:411 hr 14 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.105384874721 1,916.158309791
0x0545d41d44aed1c80ea61469042aadc260babc4684bd4fe63e6f1a2cef94f61bSet Latest Answe...72790212023-01-28 18:09:581 hr 17 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.105384906259 1,916.158883228
0x852b0e70c5bae9bc2fa40613b1125e52319a6ca32ae6abb12036998a87ff4b60Set Latest Answe...72789902023-01-28 18:07:101 hr 20 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO0.105384938586 1,916.159471007
[ Download CSV Export 
Latest 2 internal transactions
Parent Txn Hash Block From To Value
0xf733dccf135ebb5093a88446c25c1f2e357f6c57fa690032f7c0eb5332926fe569420992023-01-07 12:40:0121 days 6 hrs ago 0xea0ff9a5e6ff0c42a7851050c154d541f380bb62 0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO
0xf733dccf135ebb5093a88446c25c1f2e357f6c57fa690032f7c0eb5332926fe569420992023-01-07 12:40:0121 days 6 hrs ago 0xea0ff9a5e6ff0c42a7851050c154d541f380bb62 0x2129f06be964c0e983aeac1632b1a4d8327f04d70 tCRO
[ Download CSV Export 
Loading

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

Contract Name:
PriceFeed

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at testnet.cronoscan.com on 2023-01-23
*/

// Sources flattened with hardhat v2.12.3 https://hardhat.org

// File contracts/oracle/interfaces/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);
    function setLatestAnswer(int256 _answer) external;
}


// File contracts/oracle/PriceFeed.sol

pragma solidity 0.6.12;

contract PriceFeed is IPriceFeed {
    int256 public answer;
    uint80 public roundId;
    string public override description = "PriceFeed";
    address public override aggregator;

    uint256 public decimals;

    address public gov;

    mapping (uint80 => int256) public answers;
    mapping (address => bool) public isAdmin;
    event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 timestamp);
    constructor() public {
        gov = msg.sender;
        isAdmin[msg.sender] = true;
    }

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

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

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

    function setLatestAnswer(int256 _answer) external override{
        require(isAdmin[msg.sender], "PriceFeed: forbidden");
        roundId = roundId + 1;
        answer = _answer;
        answers[roundId] = _answer;
        emit AnswerUpdated(_answer, roundId, block.timestamp);
    }

    // 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);
    }
}

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"int256","name":"current","type":"int256"},{"indexed":true,"internalType":"uint256","name":"roundId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"AnswerUpdated","type":"event"},{"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":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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"}]

60c06040526009608081905268141c9a58d95199595960ba1b60a090815261002a916002919061006b565b5034801561003757600080fd5b50600580546001600160a01b031916339081179091556000908152600760205260409020805460ff191660011790556100fe565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100ac57805160ff19168380011785556100d9565b828001600101855582156100d9579182015b828111156100d95782518255916020019190600101906100be565b506100e59291506100e9565b5090565b5b808211156100e557600081556001016100ea565b6105748061010d6000396000f3fe608060405234801561001057600080fd5b50600436106100af5760003560e01c806304ea97b0146100b457806312d43a51146100d3578063245a7bfc146100f757806324d7806c146100ff578063313ce567146101395780634b0bddd2146101535780634c295ca31461018157806350d25bcd146101a7578063668a0f02146101af5780637284e416146101d357806385bb7d69146102505780638cd221c9146102585780639a6fc8f514610260575b600080fd5b6100d1600480360360208110156100ca57600080fd5b50356102ca565b005b6100db61039c565b604080516001600160a01b039092168252519081900360200190f35b6100db6103ab565b6101256004803603602081101561011557600080fd5b50356001600160a01b03166103ba565b604080519115158252519081900360200190f35b6101416103cf565b60408051918252519081900360200190f35b6100d16004803603604081101561016957600080fd5b506001600160a01b03813516906020013515156103d5565b6101416004803603602081101561019757600080fd5b50356001600160501b0316610456565b610141610468565b6101b761046e565b604080516001600160501b039092168252519081900360200190f35b6101db61047d565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102155781810151838201526020016101fd565b50505050905090810190601f1680156102425780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610141610508565b6101b761050e565b6102866004803603602081101561027657600080fd5b50356001600160501b031661051d565b60405180866001600160501b03168152602001858152602001848152602001838152602001826001600160501b031681526020019550505050505060405180910390f35b3360009081526007602052604090205460ff16610325576040805162461bcd60e51b8152602060048201526014602482015273283934b1b2a332b2b21d103337b93134b23232b760611b604482015290519081900360640190fd5b600180546001600160501b031981166001600160501b039182168301821617808355600084815590821681526006602090815260409182902085905592548151428152915192169284927f0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f9281900390910190a350565b6005546001600160a01b031681565b6003546001600160a01b031681565b60076020526000908152604090205460ff1681565b60045481565b6005546001600160a01b0316331461042b576040805162461bcd60e51b8152602060048201526014602482015273283934b1b2a332b2b21d103337b93134b23232b760611b604482015290519081900360640190fd5b6001600160a01b03919091166000908152600760205260409020805460ff1916911515919091179055565b60066020526000908152604090205481565b60005490565b6001546001600160501b031690565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156105005780601f106104d557610100808354040283529160200191610500565b820191906000526020600020905b8154815290600101906020018083116104e357829003601f168201915b505050505081565b60005481565b6001546001600160501b031681565b6001600160501b03811660009081526006602052604081205491928190819056fea264697066735822122011179f321214e3a3c1f1d750c277b856c5511b1f20bdca17f4b67668ad1f2ffb64736f6c634300060c0033

Deployed ByteCode Sourcemap

694:1480:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1614:289;;;;;;;;;;;;;;;;-1:-1:-1;1614:289:0;;:::i;:::-;;919:18;;;:::i;:::-;;;;-1:-1:-1;;;;;919:18:0;;;;;;;;;;;;;;844:34;;;:::i;994:40::-;;;;;;;;;;;;;;;;-1:-1:-1;994:40:0;-1:-1:-1;;;;;994:40:0;;:::i;:::-;;;;;;;;;;;;;;;;;;887:23;;;:::i;:::-;;;;;;;;;;;;;;;;1236:166;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1236:166:0;;;;;;;;;;:::i;946:41::-;;;;;;;;;;;;;;;;-1:-1:-1;946:41:0;-1:-1:-1;;;;;946:41:0;;:::i;1410:94::-;;;:::i;1512:::-;;;:::i;:::-;;;;-1:-1:-1;;;;;1512:94:0;;;;;;;;;;;;;;789:48;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;734:20;;;:::i;761:21::-;;;:::i;1982:189::-;;;;;;;;;;;;;;;;-1:-1:-1;1982:189:0;-1:-1:-1;;;;;1982:189:0;;:::i;:::-;;;;;-1:-1:-1;;;;;1982:189:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1982:189:0;;;;;;;;;;;;;;;;;;;1614:289;1699:10;1691:19;;;;:7;:19;;;;;;;;1683:52;;;;;-1:-1:-1;;;1683:52:0;;;;;;;;;;;;-1:-1:-1;;;1683:52:0;;;;;;;;;;;;;;;1756:7;;;-1:-1:-1;;;;;;1746:21:0;;-1:-1:-1;;;;;1756:7:0;;;:11;;1746:21;;;;;;-1:-1:-1;1778:16:0;;;1813:7;;;1805:16;;:7;:16;;;;;;;;;:26;;;1870:7;;1847:48;;1879:15;1847:48;;;;1870:7;;;1778:16;;1847:48;;;;;;;;;;1614:289;:::o;919:18::-;;;-1:-1:-1;;;;;919:18:0;;:::o;844:34::-;;;-1:-1:-1;;;;;844:34:0;;:::o;994:40::-;;;;;;;;;;;;;;;:::o;887:23::-;;;;:::o;1236:166::-;1327:3;;-1:-1:-1;;;;;1327:3:0;1313:10;:17;1305:50;;;;;-1:-1:-1;;;1305:50:0;;;;;;;;;;;;-1:-1:-1;;;1305:50:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;1366:17:0;;;;;;;;:7;:17;;;;;:28;;-1:-1:-1;;1366:28:0;;;;;;;;;;1236:166::o;946:41::-;;;;;;;;;;;;;:::o;1410:94::-;1464:6;1490;1410:94;:::o;1512:::-;1591:7;;-1:-1:-1;;;;;1591:7:0;1512:94;:::o;789:48::-;;;;;;;;;;;;;;-1:-1:-1;;789:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;734:20::-;;;;:::o;761:21::-;;;-1:-1:-1;;;;;761:21:0;;:::o;1982:189::-;-1:-1:-1;;;;;2136:17:0;;2060:6;2136:17;;;:7;:17;;;;;;;;2060:6;;;;1982:189::o

Swarm Source

ipfs://11179f321214e3a3c1f1d750c277b856c5511b1f20bdca17f4b67668ad1f2ffb
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading