Contract 0xaf4FE67f2e9f9faBf26691D55D0DB6A694f2f107

Contract Overview

Balance:
0 Ether
Txn Hash Method
Block
From
To
Value
0xbc738cc30648c0be72146568914bcda2e3fac7eadaa4183b6d60add145284417Accept Ownership243400882021-04-19 23:16:2428 days 21 hrs ago0x73570075092502472e4b61a7058df1a4a1db12f2 IN  0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether0.0000217851
0xbbe579bde39357c9ca9a71d2482c5b346e3c62aa0c658f2fdb1f76343c0b60c7Nominate New Own...243383702021-04-19 21:20:2028 days 23 hrs ago0xb64ff7a4a33acdf48d97dab0d764afd0f6176882 IN  0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether0.0000444141
0x66c9790ce3a3a0f3b0d35b08ed58e48279e0c863af5d819d0f59256c87c2c6b7Set Associated C...234116122021-02-11 0:01:3696 days 21 hrs ago0xb64ff7a4a33acdf48d97dab0d764afd0f6176882 IN  0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether0.0000444481
0xb7748d5d70eef56e099a3cb5d006cfa6792195c80c6326aaef9f5d54bf4509ed0x60806040234116092021-02-11 0:01:2096 days 21 hrs ago0xb64ff7a4a33acdf48d97dab0d764afd0f6176882 IN  Contract Creation0 Ether0.0004018421
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xd503e38863531084868a6f48644e4524b0f860d2a917aaa23185bfd6eb7cf691244841112021-04-26 17:58:2422 days 3 hrs ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
0xd503e38863531084868a6f48644e4524b0f860d2a917aaa23185bfd6eb7cf691244841112021-04-26 17:58:2422 days 3 hrs ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
0xbc47a95d83112635727fbaf7ba6115bf58b60de989a3c0762777434e3da02bfb243362902021-04-19 18:59:0829 days 2 hrs ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
0xbc47a95d83112635727fbaf7ba6115bf58b60de989a3c0762777434e3da02bfb243362902021-04-19 18:59:0829 days 2 hrs ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
0xbc47a95d83112635727fbaf7ba6115bf58b60de989a3c0762777434e3da02bfb243362902021-04-19 18:59:0829 days 2 hrs ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
0xbc384809eec7f9d37857164bc210df695ce0ade2757bddd58384192a7addee32242579472021-04-15 1:04:4433 days 19 hrs ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
0xaa1647aa510b7afc691af7e2b944b49bd55cc6ca29eb79787ae65eac8efe428a242577922021-04-15 0:50:5233 days 20 hrs ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
0x755d872afad3d3d4843394a18d5ea350665d4b95ef4dbaf377cbcd7b1cf1c271242577832021-04-15 0:50:0433 days 20 hrs ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
0x658c0d571bb71d22eb6ec8f764569d90120d446628b2b6839a07660d16442d63242577262021-04-15 0:45:0033 days 20 hrs ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
0x1456357d65d2b10eac310b253866ec3d910babdd0c38e9aacc61610d8d968784242576512021-04-15 0:38:2033 days 20 hrs ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
0x8f372ec05ce9428311e3f6fca849da297bf0edeb7865ca6fcaf5051d7db16428242575502021-04-15 0:29:2033 days 20 hrs ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
0xf7b18af38471d5c034b8bb14fd6bda7aa786ad9f0aa51780cab8506c6cd79e7c242575232021-04-15 0:26:5633 days 20 hrs ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
0x7dc7581bb4c40dab8f477c80ecb43841bd2ff49acc2c33defd0cbb1558b11150242573632021-04-15 0:12:4433 days 20 hrs ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
0x22d01c1d889d06fd9ce448c9c060bdce199ff120e4d8ff607ad34ef28cd88d3b242534692021-04-14 18:19:5634 days 2 hrs ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
0x22d01c1d889d06fd9ce448c9c060bdce199ff120e4d8ff607ad34ef28cd88d3b242534692021-04-14 18:19:5634 days 2 hrs ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
0xc0c6b9b5cd25557ad40a89997bfb170f9b90dc38ddaab2eeaec291c6582995a8242512492021-04-14 15:01:5234 days 6 hrs ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
0x291d9d68202c2f3217cbab5594d6ce9e1522d6709dc69bc3da94fa999c65d63f242433212021-04-13 20:01:4035 days 1 hr ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
0x291d9d68202c2f3217cbab5594d6ce9e1522d6709dc69bc3da94fa999c65d63f242433212021-04-13 20:01:4035 days 1 hr ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
0x898fa1e67c855b5ff3dcef58823c8ad23bbdfa75730f0915a1013721bb9c14fa242433192021-04-13 20:01:0835 days 1 hr ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
0x898fa1e67c855b5ff3dcef58823c8ad23bbdfa75730f0915a1013721bb9c14fa242433192021-04-13 20:01:0835 days 1 hr ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
0x5078eaee24aabca8cb24b46348bcddb48d5ac7981955cdbee06eefe93229368d242432912021-04-13 19:57:2435 days 1 hr ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
0x5078eaee24aabca8cb24b46348bcddb48d5ac7981955cdbee06eefe93229368d242432912021-04-13 19:57:2435 days 1 hr ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
0x088954a457ba2dd449933e1c04196080b3f5a14d55abbcd7f5cddca6a82078f4242422742021-04-13 16:51:0835 days 4 hrs ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
0x088954a457ba2dd449933e1c04196080b3f5a14d55abbcd7f5cddca6a82078f4242422742021-04-13 16:51:0835 days 4 hrs ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
0xbcc7a8bd8b9377ff26c33f939fe9e8b386f2ebfb1819e5a9f6781e7774957fdf241855602021-04-07 14:08:1241 days 6 hrs ago 0xbf075bf30c5fc4929785f0e50ec42078b92df869 0xaf4fe67f2e9f9fabf26691d55d0db6a694f2f1070 Ether
[ Download CSV Export 
Loading

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

Contract Name:
TokenState

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2021-01-14
*/

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

* 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) 2021 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
*/



pragma solidity ^0.5.16;


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

    constructor(address _owner) public {
        require(_owner != address(0), "Owner address cannot be 0");
        owner = _owner;
        emit OwnerChanged(address(0), _owner);
    }

    function nominateNewOwner(address _owner) external onlyOwner {
        nominatedOwner = _owner;
        emit OwnerNominated(_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 {
        _onlyOwner();
        _;
    }

    function _onlyOwner() private view {
        require(msg.sender == owner, "Only the contract owner may perform this action");
    }

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


// Inheritance


// https://docs.synthetix.io/contracts/source/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 _associatedContract) internal {
        // This contract is abstract, and thus cannot be instantiated directly
        require(owner != address(0), "Owner must be set");

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


// Inheritance


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

    constructor(address _owner, address _associatedContract) public Owned(_owner) State(_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

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

608060405234801561001057600080fd5b5060405161075d38038061075d8339818101604052604081101561003357600080fd5b50805160209091015180826001600160a01b038116610099576040805162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f74206265203000000000000000604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b038316908117825560408051928352602083019190915280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a1506000546001600160a01b0316610143576040805162461bcd60e51b815260206004820152601160248201527013dddb995c881b5d5cdd081899481cd95d607a1b604482015290519081900360640190fd5b600280546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f73f20cff579e8a4086fa607db83867595f1b6a798e718c0bfa0b94a404128e039181900360200190a15050506105b7806101a66000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c80638da5cb5b116100665780638da5cb5b14610155578063aefc4ccb1461015d578063b46310f614610165578063da46098c14610191578063dd62ed3e146101c75761009e565b80631627540c146100a357806352f445ca146100cb57806353a47bb7146100f157806370a082311461011557806379ba50971461014d575b600080fd5b6100c9600480360360208110156100b957600080fd5b50356001600160a01b03166101f5565b005b6100c9600480360360208110156100e157600080fd5b50356001600160a01b0316610251565b6100f96102ad565b604080516001600160a01b039092168252519081900360200190f35b61013b6004803603602081101561012b57600080fd5b50356001600160a01b03166102bc565b60408051918252519081900360200190f35b6100c96102ce565b6100f961038a565b6100f9610399565b6100c96004803603604081101561017b57600080fd5b506001600160a01b0381351690602001356103a8565b6100c9600480360360608110156101a757600080fd5b506001600160a01b0381358116916020810135909116906040013561040d565b61013b600480360360408110156101dd57600080fd5b506001600160a01b0381358116916020013516610482565b6101fd61049f565b600180546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b61025961049f565b600280546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f73f20cff579e8a4086fa607db83867595f1b6a798e718c0bfa0b94a404128e039181900360200190a150565b6001546001600160a01b031681565b60036020526000908152604090205481565b6001546001600160a01b031633146103175760405162461bcd60e51b81526004018080602001828103825260358152602001806104eb6035913960400191505060405180910390fd5b600054600154604080516001600160a01b03938416815292909116602083015280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a160018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b6000546001600160a01b031681565b6002546001600160a01b031681565b6002546001600160a01b031633146103f15760405162461bcd60e51b815260040180806020018281038252603481526020018061054f6034913960400191505060405180910390fd5b6001600160a01b03909116600090815260036020526040902055565b6002546001600160a01b031633146104565760405162461bcd60e51b815260040180806020018281038252603481526020018061054f6034913960400191505060405180910390fd5b6001600160a01b0392831660009081526004602090815260408083209490951682529290925291902055565b600460209081526000928352604080842090915290825290205481565b6000546001600160a01b031633146104e85760405162461bcd60e51b815260040180806020018281038252602f815260200180610520602f913960400191505060405180910390fd5b56fe596f75206d757374206265206e6f6d696e61746564206265666f726520796f752063616e20616363657074206f776e6572736869704f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6e4f6e6c7920746865206173736f63696174656420636f6e74726163742063616e20706572666f726d207468697320616374696f6ea265627a7a7231582040ab567920f3c3e303d3b3ce98cef2381ff54a60efcfe2128202dd64743038e664736f6c6343000510003200000000000000000000000031fabcc19b04a903578c41fcf5b0f6458066889900000000000000000000000031fabcc19b04a903578c41fcf5b0f64580668899

Library Used

SafeDecimalMath : 0x1f019d7ad0e1e06f5c26a435baff403348bd1623

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