Contract 0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b

Contract Overview

Balance:
0 tCRO
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x05847e143926a4769dd7ebf39e666dd2bf262d24875dac3b5dcf6ae059f3d51cSet Latest Answe...72805542023-01-28 20:28:541 min ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.110748461746 1,916.129654082
0xab6d7ac8639f3bd20129f609ef88fa917aeb6055b9a33e3645a2576b75926560Set Latest Answe...72805172023-01-28 20:25:334 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.110725508783 1,916.13035654
0xa89ed1cb6d50093d3d81eb284029a619a2b1b37ad0c1c40e02afb2c8ace859dbSet Latest Answe...72804812023-01-28 20:22:178 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.11074854212 1,916.131044675
0xc72aaab41ea000511f4c6357f52d83f62faa424926cbbd5554e686f0eae1c74aSet Latest Answe...72804452023-01-28 20:19:0211 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.110748581865 1,916.131732341
0xf00e597c73b2a469c432f99d09931e0d423225340943f408098585f42be3795fSet Latest Answe...72804142023-01-28 20:16:1314 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.11074861582 1,916.132319811
0xd0c6bc170f799d42112e2b015ad8bf0c343c90426a6d418f74aa071e9876b47bSet Latest Answe...72803752023-01-28 20:12:4117 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.105383486313 1,916.13306509
0x0a48c207874126005c5d892b803464d778c5c1a1ea67f8245a9fffbfce7e79acSet Latest Answe...72803422023-01-28 20:09:4220 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.110748695333 1,916.133695517
0xa1164f6564bf907d1ddea4ba06fda5393359066b30b10ed60624b52a911b803bSet Latest Answe...72803122023-01-28 20:06:5923 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.110748728209 1,916.134264333
0x086cd5814e0ffa596571ffa8157dc5851789b6fbe4884d02898348292d989961Set Latest Answe...72802792023-01-28 20:03:5926 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.110748764657 1,916.134894944
0x2aadc2d6af8143b573ab155212b69d8a873a39e3c6f803b23e0633f3540fe8eaSet Latest Answe...72802462023-01-28 20:01:0029 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.110748801106 1,916.135525561
0xdb6d168f3b10a6b6adb991d403d6df38f6f2e3b3b62a1cff39c6bca5951dc8d4Set Latest Answe...72802152023-01-28 19:58:1132 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.105383653952 1,916.136113179
0xe3dabda685001f6030d0d28fe74a26bc542d4aec9b0b90958bea56c4579858d9Set Latest Answe...72801882023-01-28 19:55:4434 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.11074886488 1,916.136628963
0xe03c6f7e9bb68ce6833d422464f2aa4884d7b214b03b0f6d1db9dfad9d3dfdd3Set Latest Answe...72801582023-01-28 19:53:0137 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.110748897987 1,916.137201771
0xa284d797050a03ea38d41e9727bdc2ce8940b086b7f5384425e06413ff4da404Set Latest Answe...72801262023-01-28 19:50:0740 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.105360753789 1,916.137813069
0xa98b62651b30f69a0f623f69407663c29295c3598285e6035ac7dc99be5c4d1bSet Latest Answe...72800892023-01-28 19:46:4643 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.110725980246 1,916.138515319
0x4ab2d4f3e0a847a6bb561cfa0802218f9fe9cc4479c163830ce468cce3957d48Set Latest Answe...72800592023-01-28 19:44:0346 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.110749007044 1,916.139088626
0xc069e0081fde076fb13ef51897f1f515f4a9906d368fec9c7ede630e90e81ebaSet Latest Answe...72800262023-01-28 19:41:0449 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.110749043495 1,916.139719286
0xf16e12a516d6fd3e0e4bb36cd496b5e6f1cca350a67780650411cc0e1e73a597Set Latest Answe...72799872023-01-28 19:37:3252 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.11074908629 1,916.140459716
0xa36f956667d39364e8217cd252158b7831dd5de95450f9abffbba4e7ff46fd81Set Latest Answe...72799552023-01-28 19:34:3955 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.110749121639 1,916.141071307
0x6238c13d5c5e36a1043d4134c1d3c779a32cb49a5b2175bf62aea5267752678aSet Latest Answe...72799162023-01-28 19:31:0659 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.10538396765 1,916.14181698
0x2f22077f2040b42d264e70e3e3e15d949d91033d9b8195fe12c23b5d9f3fcbaaSet Latest Answe...72798762023-01-28 19:27:281 hr 2 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.105384009441 1,916.142576847
0xee5bc05c7a0aa4f6184d26ee983a44021437a4f21a2c5fe34362bcd3965cc7b0Set Latest Answe...72798352023-01-28 19:23:451 hr 6 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.110749253935 1,916.143360249
0xa89ce2d52b7e5e460fe8c9bab00680d69ec2e0a7df462e1614dff2f01c7f4a1cSet Latest Answe...72797872023-01-28 19:19:231 hr 11 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.110749306969 1,916.144277816
0x02530051e729da625aac6c60b96c41dcdbf4c405d31c00af76b643a143fa1cb7Set Latest Answe...72797532023-01-28 19:16:191 hr 14 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.110749344243 1,916.144922724
0x2335049875fb3db00144ade9ef32d1d1902e39ead42893a2162ef627f7087223Set Latest Answe...72797202023-01-28 19:13:201 hr 17 mins ago0xcddf82a4e2280aa30935d113c4395b76e2453810 IN  0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO0.110749380677 1,916.145553091
[ Download CSV Export 
Latest 2 internal transactions
Parent Txn Hash Block From To Value
0x8ca1f90bd1bd56513512510cdc05a2c733cb9d512cec098ba3d8e61529fa092d69420982023-01-07 12:39:5621 days 7 hrs ago 0xea0ff9a5e6ff0c42a7851050c154d541f380bb62 0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 tCRO
0x8ca1f90bd1bd56513512510cdc05a2c733cb9d512cec098ba3d8e61529fa092d69420982023-01-07 12:39:5621 days 7 hrs ago 0xea0ff9a5e6ff0c42a7851050c154d541f380bb62 0x21aa21c88cf733a7d76c76ab26ff9b70a7ce280b0 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