Contract 0xcc1fb912786Ca8447235d3c5Ab7c253f98AD4E22

Contract Overview

Balance:
0 Ether
Txn Hash Method
Block
From
To
Value
0xe526a2cc4fa42e89fd17a75c47f17175ca18327aa3c0314df6efbb8e6499fdb5Accept Ownership243399882021-04-19 23:09:44150 days 21 hrs ago0x73570075092502472e4b61a7058df1a4a1db12f2 IN  0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether0.0000219291
0x543dd8f52728a4bd18f8288b200ad683d1fdb41cea60b114607b2bdfe5bf7064Nominate New Own...243383042021-04-19 21:15:56150 days 22 hrs ago0xb64ff7a4a33acdf48d97dab0d764afd0f6176882 IN  0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether0.0000444981
0x55c486c7f4f61275536020663a47d84962b802eade1bf5da154c85ddb9f7e033Set Associated C...227146552020-12-22 13:43:12269 days 6 hrs ago0xb64ff7a4a33acdf48d97dab0d764afd0f6176882 IN  0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether0.000059042
0xa8913c2f2ea7cada43daca069e25150fb2b784b20955e1dba40dd7070244a9efSet Associated C...226965462020-12-21 7:13:12270 days 13 hrs ago0xb64ff7a4a33acdf48d97dab0d764afd0f6176882 IN  0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether0.0002362568
0xc85fc62bbaf248c5a33fe120474b10635591eaec453aa5416da3f46e9bed969bSet Associated C...176837072020-04-02 3:36:52533 days 16 hrs ago0xb64ff7a4a33acdf48d97dab0d764afd0f6176882 IN  0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether0.0003562568
0x058b0c016d14c282c4a813ad1d46217d0c19440459f3ede75520606a6e9f79af0x60806040176837032020-04-02 3:36:32533 days 16 hrs ago0xb64ff7a4a33acdf48d97dab0d764afd0f6176882 IN  Contract Creation0 Ether0.0036442248
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x99e5b088100543b5289fc07a6766c8619ac9752b54aed0c009573b8acb8aff8c268471702021-08-19 16:39:2829 days 3 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
0x99e5b088100543b5289fc07a6766c8619ac9752b54aed0c009573b8acb8aff8c268471702021-08-19 16:39:2829 days 3 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
0x99e5b088100543b5289fc07a6766c8619ac9752b54aed0c009573b8acb8aff8c268471702021-08-19 16:39:2829 days 3 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
0x171e3f02092ba0e8a1761d3d5d7a2e1d3b21ed23233b39724bf4e956574104d7264029672021-07-27 15:04:4052 days 5 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
0x171e3f02092ba0e8a1761d3d5d7a2e1d3b21ed23233b39724bf4e956574104d7264029672021-07-27 15:04:4052 days 5 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
0x8ce00e5c2cb3fb6439dc04113841035348d11dc5a279802acf441668eeead63c254771352021-06-14 18:01:3695 days 2 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
0x8ce00e5c2cb3fb6439dc04113841035348d11dc5a279802acf441668eeead63c254771352021-06-14 18:01:3695 days 2 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
0xe77b8382eb9c2f60301f2c0feaa1861a18522cd58001386a80ae141a9a4a336c253392852021-06-08 8:31:44101 days 11 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
0xe77b8382eb9c2f60301f2c0feaa1861a18522cd58001386a80ae141a9a4a336c253392852021-06-08 8:31:44101 days 11 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
0xaf80465ba3172b592fc3f43195261be95e9508b9461f346ef867b16ac701ef93246783172021-05-05 21:19:32134 days 22 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
0xaf80465ba3172b592fc3f43195261be95e9508b9461f346ef867b16ac701ef93246783172021-05-05 21:19:32134 days 22 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
0x7b66169d588df519ab25ed2df39d0e1c29d4abd258faeb59529c4d019587e9b8246782542021-05-05 21:15:00134 days 22 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
0x7b66169d588df519ab25ed2df39d0e1c29d4abd258faeb59529c4d019587e9b8246782542021-05-05 21:15:00134 days 22 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
0x6b1bcfbdd037fa16c0e453d2bb9eb10f73c3775961b96b74f325d8354756c494245101122021-04-27 23:21:08142 days 20 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
0x941e137a12e2831ee2dfee7615a7ccc50d8a79844c7d44843a3e6e8cc2127f30245100552021-04-27 23:17:20142 days 20 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
0x941e137a12e2831ee2dfee7615a7ccc50d8a79844c7d44843a3e6e8cc2127f30245100552021-04-27 23:17:20142 days 20 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
0xefeeb23a88079e97e075a31e4e50e278812bbdb8ca37db049609e657a191a646244918632021-04-27 2:43:24143 days 17 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
0xefeeb23a88079e97e075a31e4e50e278812bbdb8ca37db049609e657a191a646244918632021-04-27 2:43:24143 days 17 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
0x4ece0b5af061076bf0e19d53aaaf5ecbf8acdd8620de6684f91bedbfda9a225c244913472021-04-27 2:08:36143 days 18 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
0x4ece0b5af061076bf0e19d53aaaf5ecbf8acdd8620de6684f91bedbfda9a225c244913472021-04-27 2:08:36143 days 18 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
0xa29cff4989d6888c3e3d8dd825ed543c0664f357ddfde8935df3a330b178158e244207322021-04-23 18:09:32147 days 2 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
0xa29cff4989d6888c3e3d8dd825ed543c0664f357ddfde8935df3a330b178158e244207322021-04-23 18:09:32147 days 2 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
0x604f0a7ed952c3c464e80b45bdb701ed6f68d51c46cfa44a4fb287040c513918243927772021-04-22 10:35:04148 days 9 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
0x604f0a7ed952c3c464e80b45bdb701ed6f68d51c46cfa44a4fb287040c513918243927772021-04-22 10:35:04148 days 9 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
0xe5d0bcefd8833b5d15a64f4b0e7a480e638342331d266d21803c5c4b8017a41a242908572021-04-17 3:00:20153 days 17 hrs ago 0xd62933a82cdbba32b4ca51309ca2d7000445d0c5 0xcc1fb912786ca8447235d3c5ab7c253f98ad4e220 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x4cab7DB60Ba60E795Fe06De213F5d5483Aa25233

Contract Name:
TokenState

Compiler Version
v0.4.25+commit.59dbf8f1

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2020-04-02
*/

/*
   ____            __   __        __   _
  / __/__ __ ___  / /_ / /  ___  / /_ (_)__ __
 _\ \ / // // _ \/ __// _ \/ -_)/ __// / \ \ /
/___/ \_, //_//_/\__//_//_/\__/ \__//_/ /_\_\
     /___/

* Synthetix: TokenState.sol
*
* Latest source (may be newer): https://github.com/Synthetixio/synthetix/blob/master/contracts/TokenState.sol
* Docs: https://docs.synthetix.io/contracts/TokenState
*
* Contract Dependencies: 
*	- Owned
*	- State
* Libraries: (none)
*
* MIT License
* ===========
*
* Copyright (c) 2020 Synthetix
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
*/

/* ===============================================
* Flattened with Solidifier by Coinage
* 
* https://solidifier.coina.ge
* ===============================================
*/


pragma solidity 0.4.25;


// https://docs.synthetix.io/contracts/Owned
contract Owned {
    address public owner;
    address public nominatedOwner;

    /**
     * @dev Owned Constructor
     */
    constructor(address _owner) public {
        require(_owner != address(0), "Owner address cannot be 0");
        owner = _owner;
        emit OwnerChanged(address(0), _owner);
    }

    /**
     * @notice Nominate a new owner of this contract.
     * @dev Only the current owner may nominate a new owner.
     */
    function nominateNewOwner(address _owner) external onlyOwner {
        nominatedOwner = _owner;
        emit OwnerNominated(_owner);
    }

    /**
     * @notice Accept the nomination to be owner.
     */
    function acceptOwnership() external {
        require(msg.sender == nominatedOwner, "You must be nominated before you can accept ownership");
        emit OwnerChanged(owner, nominatedOwner);
        owner = nominatedOwner;
        nominatedOwner = address(0);
    }

    modifier onlyOwner {
        require(msg.sender == owner, "Only the contract owner may perform this action");
        _;
    }

    event OwnerNominated(address newOwner);
    event OwnerChanged(address oldOwner, address newOwner);
}


// https://docs.synthetix.io/contracts/State
contract State is Owned {
    // the address of the contract that can modify variables
    // this can only be changed by the owner of this contract
    address public associatedContract;

    constructor(address _owner, address _associatedContract) public Owned(_owner) {
        associatedContract = _associatedContract;
        emit AssociatedContractUpdated(_associatedContract);
    }

    /* ========== SETTERS ========== */

    // Change the associated contract to a new address
    function setAssociatedContract(address _associatedContract) external onlyOwner {
        associatedContract = _associatedContract;
        emit AssociatedContractUpdated(_associatedContract);
    }

    /* ========== MODIFIERS ========== */

    modifier onlyAssociatedContract {
        require(msg.sender == associatedContract, "Only the associated contract can perform this action");
        _;
    }

    /* ========== EVENTS ========== */

    event AssociatedContractUpdated(address associatedContract);
}


// https://docs.synthetix.io/contracts/TokenState
contract TokenState is State {
    /* ERC20 fields. */
    mapping(address => uint) public balanceOf;
    mapping(address => mapping(address => uint)) public allowance;

    /**
     * @dev Constructor
     * @param _owner The address which controls this contract.
     * @param _associatedContract The ERC20 contract whose state this composes.
     */
    constructor(address _owner, address _associatedContract) public State(_owner, _associatedContract) {}

    /* ========== SETTERS ========== */

    /**
     * @notice Set ERC20 allowance.
     * @dev Only the associated contract may call this.
     * @param tokenOwner The authorising party.
     * @param spender The authorised party.
     * @param value The total value the authorised party may spend on the
     * authorising party's behalf.
     */
    function setAllowance(address tokenOwner, address spender, uint value) external onlyAssociatedContract {
        allowance[tokenOwner][spender] = value;
    }

    /**
     * @notice Set the balance in a given account
     * @dev Only the associated contract may call this.
     * @param account The account whose value to set.
     * @param value The new balance of the given account.
     */
    function setBalanceOf(address account, uint value) external onlyAssociatedContract {
        balanceOf[account] = value;
    }
}

Contract ABI

[{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_associatedContract","type":"address"}],"name":"setAssociatedContract","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"nominatedOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"associatedContract","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"},{"name":"value","type":"uint256"}],"name":"setBalanceOf","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"tokenOwner","type":"address"},{"name":"spender","type":"address"},{"name":"value","type":"uint256"}],"name":"setAllowance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_owner","type":"address"},{"name":"_associatedContract","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"associatedContract","type":"address"}],"name":"AssociatedContractUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"oldOwner","type":"address"},{"indexed":false,"name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"}]

608060405234801561001057600080fd5b5060405160408061081e833981016040528051602090910151818181600160a060020a03811615156100a357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f74206265203000000000000000604482015290519081900360640190fd5b60008054600160a060020a031916600160a060020a038316908117825560408051928352602083019190915280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a15060028054600160a060020a038316600160a060020a0319909116811790915560408051918252517f73f20cff579e8a4086fa607db83867595f1b6a798e718c0bfa0b94a404128e039181900360200190a1505050506106be806101606000396000f3006080604052600436106100a35763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631627540c81146100a857806352f445ca146100cb57806353a47bb7146100ec57806370a082311461011d57806379ba5097146101505780638da5cb5b14610165578063aefc4ccb1461017a578063b46310f61461018f578063da46098c146101b3578063dd62ed3e146101dd575b600080fd5b3480156100b457600080fd5b506100c9600160a060020a0360043516610204565b005b3480156100d757600080fd5b506100c9600160a060020a03600435166102ed565b3480156100f857600080fd5b506101016103d6565b60408051600160a060020a039092168252519081900360200190f35b34801561012957600080fd5b5061013e600160a060020a03600435166103e5565b60408051918252519081900360200190f35b34801561015c57600080fd5b506100c96103f7565b34801561017157600080fd5b506101016104ff565b34801561018657600080fd5b5061010161050e565b34801561019b57600080fd5b506100c9600160a060020a036004351660243561051d565b3480156101bf57600080fd5b506100c9600160a060020a03600435811690602435166044356105c1565b3480156101e957600080fd5b5061013e600160a060020a0360043581169060243516610675565b600054600160a060020a0316331461028c576040805160e560020a62461bcd02815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e0000000000000000000000000000000000606482015290519081900360840190fd5b60018054600160a060020a03831673ffffffffffffffffffffffffffffffffffffffff19909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b600054600160a060020a03163314610375576040805160e560020a62461bcd02815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e0000000000000000000000000000000000606482015290519081900360840190fd5b60028054600160a060020a03831673ffffffffffffffffffffffffffffffffffffffff19909116811790915560408051918252517f73f20cff579e8a4086fa607db83867595f1b6a798e718c0bfa0b94a404128e039181900360200190a150565b600154600160a060020a031681565b60036020526000908152604090205481565b600154600160a060020a0316331461047f576040805160e560020a62461bcd02815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527f2063616e20616363657074206f776e6572736869700000000000000000000000606482015290519081900360840190fd5b60005460015460408051600160a060020a03938416815292909116602083015280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a1600180546000805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a03841617909155169055565b600054600160a060020a031681565b600254600160a060020a031681565b600254600160a060020a031633146105a5576040805160e560020a62461bcd02815260206004820152603460248201527f4f6e6c7920746865206173736f63696174656420636f6e74726163742063616e60448201527f20706572666f726d207468697320616374696f6e000000000000000000000000606482015290519081900360840190fd5b600160a060020a03909116600090815260036020526040902055565b600254600160a060020a03163314610649576040805160e560020a62461bcd02815260206004820152603460248201527f4f6e6c7920746865206173736f63696174656420636f6e74726163742063616e60448201527f20706572666f726d207468697320616374696f6e000000000000000000000000606482015290519081900360840190fd5b600160a060020a0392831660009081526004602090815260408083209490951682529290925291902055565b6004602090815260009283526040808420909152908252902054815600a165627a7a723058207f6fe0296600319cd91e6c8660eafdb4909aa70e8493af0dda09a64b57ac31850029000000000000000000000000b64ff7a4a33acdf48d97dab0d764afd0f61768820000000000000000000000000000000000000000000000000000000000000000

Libraries Used



Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading