Contract 0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x806f08cdd207700ddc068f7ed2fc3c3f3a41eae34c52c5f1af350c308948493bSet Value240160992021-12-05 1:25:111 min ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.032097525579
0x5f945f7d4a2e784c058efb373db7259fbf2588f74a395466ae638e9914efc072Set Value240125232021-12-05 0:31:1055 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.024730204442
0xc7d230a74ed1c29cef698c0da6754a2707eaf099a4b5de81dc2e6a1843beea19Set Value240089972021-12-04 23:35:081 hr 51 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.015716994726
0xf1748f3964ebd3e19817a617863ba7c76eaff5f4115144e3c68c5f7c8b7adba9Set Value240049622021-12-04 22:35:112 hrs 51 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.027954615238
0x3345242bde62e1b9f6e1a1d198efa6767df0691c6028ce3024b507603b3ba635Set Value240048062021-12-04 22:33:102 hrs 53 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.028370548362
0x136bb8457f6067d48225626b14ff9b7be6c8e86bc3937161d9f8ceebe1a5e4dbSet Value240046702021-12-04 22:31:102 hrs 55 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.02864774067
0xfed1fc39a7e9535228ca712950a2870e35dcc04a377fc43e05c606416b498583Set Value240045312021-12-04 22:29:102 hrs 57 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.029145845708
0x2f6a02b232afa191e6cceb8f3947a5d3c5ba2f38ee51e976aae60201725d15beSet Value240008692021-12-04 21:33:093 hrs 53 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.035142435011
0xda28b0849abd5a6649374fb7c8853f1a3ad327728d645fe7e5c33ac40c0f64b2Set Value239929502021-12-04 19:35:115 hrs 51 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.045419702104
0x0b1617ab2f28d19b90de09cd87d951047336720e43836790e49714bc1e60ea64Set Value239928042021-12-04 19:33:115 hrs 53 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.052899859978
0xc570f61c3ae72c5c63dbf6e68aeb2644bf027acb28a762fa00461db6dba298adSet Value239926732021-12-04 19:31:165 hrs 55 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.044273732362
0x46f217b566ef1a327e9561bcfdc676f510ffb8c0f03fb8db8758d3f07f9733b5Set Value239925492021-12-04 19:29:105 hrs 57 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.044358026914
0xf6f5d8a6bc8074204c09c77ef1e9c7c88e32cc9ef46082e21c50d824ce7ce0f1Set Value239924052021-12-04 19:27:105 hrs 59 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.043805501225
0xa27cdc6db4e0b9760df5a84aa3626c4dbe97188ffc5b6b87b31610b31f67b4d6Set Value239922712021-12-04 19:25:216 hrs 1 min ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.04615524097
0x4c4465bb4a79f8f558729c244bd1f142a1cb24f88ea50f12b986911c0e87413cSet Value239879952021-12-04 18:18:557 hrs 8 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.044401069247
0xcd9ca8ea2e901f1c2cf32548049bee17fcf53098cae961bce838178a2b8c5c14Set Value239846112021-12-04 17:24:578 hrs 2 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.037240266925
0x4d3bf08c6cb7f574649b5ff4910405a525f24fb18416b4a9df94493d9e8b6b57Set Value239844722021-12-04 17:22:568 hrs 4 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.039682223363
0x9484827b4287e3884ec208b809d016899faa38d83d926af1bb0c6ea1c4e05178Set Value239843342021-12-04 17:20:558 hrs 6 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.03997669976
0xa755a760392e4cfd090dac5f96dc70c029451f633bd73b66801f45c626ea21b4Set Value239804782021-12-04 16:22:569 hrs 4 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.043566918828
0xb5131a79520894ec927844b1d123dee75c598e9a29692c92c9340d2a1b3540bdSet Value239800462021-12-04 16:16:559 hrs 10 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.046414217561
0xfced8a6ae34da4b7ab422172ca8f3144823100e3d776d28ed260948897e50396Set Value239766812021-12-04 15:24:5610 hrs 2 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.068625801038
0xe62924dac0d6e80375c810d9b2377966f848fd8f8773a7aada05ca2c78a5d8ddSet Value239764872021-12-04 15:20:5610 hrs 6 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.045012843672
0x214c694fc83fac55dbb50b1080c7b1b567199b0f720cccaadf62e70faa011ae0Set Value239763452021-12-04 15:18:5610 hrs 8 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.051912146696
0x6dae1e5714c1318f109b4f2e983c9e8942cbd5e975185f99d19ff0bb42269bc5Set Value239729132021-12-04 14:24:5611 hrs 2 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.03508436712
0xa9c4c80b8aec8c505cfc5aaaed19999228d6d2045a56e8081d961c1d1c1d3c90Set Value239727622021-12-04 14:22:5611 hrs 4 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.037911991427
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x529b1dbdaa7ad6381d8563e8f7d5617f4bae0f4b7da3776c4bfc3f4931a59dfb171440502021-09-16 16:59:1679 days 8 hrs ago 0x8c12b9f23372be698f1e45df5c75d294cfb944ab  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DIAOracle

Compiler Version
v0.7.4+commit.3f05b770

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at FtmScan.com on 2021-09-16
*/

pragma solidity 0.7.4;

contract DIAOracle {
    mapping (string => uint256) public values;
    address oracleUpdater;
    
    event OracleUpdate(string key, uint128 value, uint128 timestamp);
    event UpdaterAddressChange(address newUpdater);
    
    constructor() {
        oracleUpdater = msg.sender;
    }
    
    function setValue(string memory key, uint128 value, uint128 timestamp) public {
        require(msg.sender == oracleUpdater);
        uint256 cValue = (((uint256)(value)) << 128) + timestamp;
        values[key] = cValue;
        emit OracleUpdate(key, value, timestamp);
    }
    
    function getValue(string memory key) public view returns (uint128, uint128) {
        uint256 cValue = values[key];
        uint128 timestamp = (uint128)(cValue % 2**128);
        uint128 value = (uint128)(cValue >> 128);
        return (value, timestamp);
    }
    
    function updateOracleUpdaterAddress(address newOracleUpdaterAddress) public {
        require(msg.sender == oracleUpdater);
        oracleUpdater = newOracleUpdaterAddress;
        emit UpdaterAddressChange(newOracleUpdaterAddress);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"key","type":"string"},{"indexed":false,"internalType":"uint128","name":"value","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"timestamp","type":"uint128"}],"name":"OracleUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newUpdater","type":"address"}],"name":"UpdaterAddressChange","type":"event"},{"inputs":[{"internalType":"string","name":"key","type":"string"}],"name":"getValue","outputs":[{"internalType":"uint128","name":"","type":"uint128"},{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"key","type":"string"},{"internalType":"uint128","name":"value","type":"uint128"},{"internalType":"uint128","name":"timestamp","type":"uint128"}],"name":"setValue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOracleUpdaterAddress","type":"address"}],"name":"updateOracleUpdaterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"values","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50600180546001600160a01b0319163317905561054d806100326000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80635a9ade8b146100515780636aa45efc146101095780637898e0c214610131578063960384a0146101ed575b600080fd5b6100f76004803603602081101561006757600080fd5b81019060208101813564010000000081111561008257600080fd5b82018360208201111561009457600080fd5b803590602001918460018302840111640100000000831117156100b657600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506102c2945050505050565b60408051918252519081900360200190f35b61012f6004803603602081101561011f57600080fd5b50356001600160a01b03166102df565b005b61012f6004803603606081101561014757600080fd5b81019060208101813564010000000081111561016257600080fd5b82018360208201111561017457600080fd5b8035906020019184600183028401116401000000008311171561019657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550506001600160801b03833581169450602090930135909216915061034a9050565b6102936004803603602081101561020357600080fd5b81019060208101813564010000000081111561021e57600080fd5b82018360208201111561023057600080fd5b8035906020019184600183028401116401000000008311171561025257600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061049a945050505050565b60405180836001600160801b03168152602001826001600160801b031681526020019250505060405180910390f35b805160208183018101805160008252928201919093012091525481565b6001546001600160a01b031633146102f657600080fd5b600180546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f121e958a4cadf7f8dadefa22cc019700365240223668418faebed197da07089f9181900360200190a150565b6001546001600160a01b0316331461036157600080fd5b6000816001600160801b03166080846001600160801b0316901b019050806000856040518082805190602001908083835b602083106103b15780518252601f199092019160209182019101610392565b51815160209384036101000a6000190180199092169116179052920194855250604080519485900382018520959095556001600160801b03888116858301528716948401949094525050606080825286519082015285517fa7fc99ed7617309ee23f63ae90196a1e490d362e6f6a547a59bc809ee2291782928792879287928291608083019187019080838360005b83811015610458578181015183820152602001610440565b50505050905090810190601f1680156104855780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a150505050565b600080600080846040518082805190602001908083835b602083106104d05780518252601f1990920191602091820191016104b1565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922054608081901c976001600160801b03909116965094505050505056fea2646970667358221220173e1e0e4683f714af1a3b281da47c6b7975dd28084f2304133052d163c4907164736f6c63430007040033

Deployed ByteCode Sourcemap

26:1127:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52:41:0;;-1:-1:-1;52:41:0;;-1:-1:-1;;;;;52:41:0:i;:::-;;;;;;;;;;;;;;;;908:242;;;;;;;;;;;;;;;;-1:-1:-1;908:242:0;-1:-1:-1;;;;;908:242:0;;:::i;:::-;;335:282;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;335:282:0;;-1:-1:-1;;;;;;;335:282:0;;;;;-1:-1:-1;335:282:0;;;;;;;;;-1:-1:-1;335:282:0;;-1:-1:-1;335:282:0:i;629:267::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;629:267:0;;-1:-1:-1;629:267:0;;-1:-1:-1;;;;;629:267:0:i;:::-;;;;;-1:-1:-1;;;;;629:267:0;;;;;;-1:-1:-1;;;;;629:267:0;;;;;;;;;;;;;;;;52:41;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;908:242::-;1017:13;;-1:-1:-1;;;;;1017:13:0;1003:10;:27;995:36;;;;;;1042:13;:39;;-1:-1:-1;;;;;1042:39:0;;-1:-1:-1;;;;;;1042:39:0;;;;;;;;1097:45;;;;;;;;;;;;;;;;908:242;:::o;335:282::-;446:13;;-1:-1:-1;;;;;446:13:0;432:10;:27;424:36;;;;;;471:14;518:9;-1:-1:-1;;;;;488:39:0;511:3;500:5;-1:-1:-1;;;;;490:16:0;489:25;;488:39;471:56;;552:6;538;545:3;538:11;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;538:11:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;538:11:0;;;;;;;;;;;;;;;;-1:-1:-1;538:11:0;;;;;;;;;;;:20;;;;-1:-1:-1;;;;;574:35:0;;;;;;;;;;;;;;;;-1:-1:-1;;574:35:0;;;;;;;;;;;;;;;;;;;;538:11;;574:35;;;;;;;;;;-1:-1:-1;574:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;335:282;;;;:::o;629:267::-;687:7;696;716:14;733:6;740:3;733:11;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;733:11:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;733:11:0;;;;;;;;;;;;;;;;-1:-1:-1;733:11:0;;;;;;;;;;;848:3;838:13;;;;-1:-1:-1;;;;;785:15:0;;;;-1:-1:-1;838:13:0;-1:-1:-1;;;;;629:267:0:o

Swarm Source

ipfs://173e1e0e4683f714af1a3b281da47c6b7975dd28084f2304133052d163c49071
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.