ETH Price: $3,359.40 (-0.68%)
Gas: 11 Gwei

Contract

0xD0e3F82ab04B983C05263cF3BF52481FbAa435b1
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Initialize161436652022-12-09 0:46:59565 days ago1670546819IN
0xD0e3F82a...FbAa435b1
0 ETH0.0032662315.85691284
0x60806040119682642021-03-03 23:26:421210 days ago1614814002IN
 Create: UFragments
0 ETH0.15378297110

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UFragments

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : UFragments.sol
pragma solidity 0.7.6;

import "./_external/SafeMath.sol";
import "./_external/Ownable.sol";
import "./_external/ERC20Detailed.sol";

import "./lib/SafeMathInt.sol";

/**
 * @title uFragments ERC20 token
 * @dev This is part of an implementation of the uFragments Ideal Money protocol.
 *      uFragments is a normal ERC20 token, but its supply can be adjusted by splitting and
 *      combining tokens proportionally across all wallets.
 *
 *      uFragment balances are internally represented with a hidden denomination, 'gons'.
 *      We support splitting the currency in expansion and combining the currency on contraction by
 *      changing the exchange rate between the hidden 'gons' and the public 'fragments'.
 */
contract UFragments is ERC20Detailed, Ownable {
    // PLEASE READ BEFORE CHANGING ANY ACCOUNTING OR MATH
    // Anytime there is division, there is a risk of numerical instability from rounding errors. In
    // order to minimize this risk, we adhere to the following guidelines:
    // 1) The conversion rate adopted is the number of gons that equals 1 fragment.
    //    The inverse rate must not be used--TOTAL_GONS is always the numerator and _totalSupply is
    //    always the denominator. (i.e. If you want to convert gons to fragments instead of
    //    multiplying by the inverse rate, you should divide by the normal rate)
    // 2) Gon balances converted into Fragments are always rounded down (truncated).
    //
    // We make the following guarantees:
    // - If address 'A' transfers x Fragments to address 'B'. A's resulting external balance will
    //   be decreased by precisely x Fragments, and B's external balance will be precisely
    //   increased by x Fragments.
    //
    // We do not guarantee that the sum of all balances equals the result of calling totalSupply().
    // This is because, for any conversion function 'f()' that has non-zero rounding error,
    // f(x0) + f(x1) + ... + f(xn) is not always equal to f(x0 + x1 + ... xn).
    using SafeMath for uint256;
    using SafeMathInt for int256;

    event LogRebase(uint256 indexed epoch, uint256 totalSupply);
    event LogMonetaryPolicyUpdated(address monetaryPolicy);

    // Used for authentication
    address public monetaryPolicy;

    modifier onlyMonetaryPolicy() {
        require(msg.sender == monetaryPolicy);
        _;
    }

    bool private rebasePausedDeprecated;
    bool private tokenPausedDeprecated;

    modifier validRecipient(address to) {
        require(to != address(0x0));
        require(to != address(this));
        _;
    }

    uint256 private constant DECIMALS = 9;
    uint256 private constant MAX_UINT256 = type(uint256).max;
    uint256 private constant INITIAL_FRAGMENTS_SUPPLY = 50 * 10**6 * 10**DECIMALS;

    // TOTAL_GONS is a multiple of INITIAL_FRAGMENTS_SUPPLY so that _gonsPerFragment is an integer.
    // Use the highest value that fits in a uint256 for max granularity.
    uint256 private constant TOTAL_GONS = MAX_UINT256 - (MAX_UINT256 % INITIAL_FRAGMENTS_SUPPLY);

    // MAX_SUPPLY = maximum integer < (sqrt(4*TOTAL_GONS + 1) - 1) / 2
    uint256 private constant MAX_SUPPLY = type(uint128).max; // (2^128) - 1

    uint256 private _totalSupply;
    uint256 private _gonsPerFragment;
    mapping(address => uint256) private _gonBalances;

    // This is denominated in Fragments, because the gons-fragments conversion might change before
    // it's fully paid.
    mapping(address => mapping(address => uint256)) private _allowedFragments;

    // EIP-2612: permit – 712-signed approvals
    // https://eips.ethereum.org/EIPS/eip-2612
    string public constant EIP712_REVISION = "1";
    bytes32 public constant EIP712_DOMAIN =
        keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
    bytes32 public constant PERMIT_TYPEHASH =
        keccak256(
            "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
        );

    // EIP-2612: keeps track of number of permits per address
    mapping(address => uint256) private _nonces;

    /**
     * @param monetaryPolicy_ The address of the monetary policy contract to use for authentication.
     */
    function setMonetaryPolicy(address monetaryPolicy_) external onlyOwner {
        monetaryPolicy = monetaryPolicy_;
        emit LogMonetaryPolicyUpdated(monetaryPolicy_);
    }

    /**
     * @dev Notifies Fragments contract about a new rebase cycle.
     * @param supplyDelta The number of new fragment tokens to add into circulation via expansion.
     * @return The total number of fragments after the supply adjustment.
     */
    function rebase(uint256 epoch, int256 supplyDelta)
        external
        onlyMonetaryPolicy
        returns (uint256)
    {
        if (supplyDelta == 0) {
            emit LogRebase(epoch, _totalSupply);
            return _totalSupply;
        }

        if (supplyDelta < 0) {
            _totalSupply = _totalSupply.sub(uint256(supplyDelta.abs()));
        } else {
            _totalSupply = _totalSupply.add(uint256(supplyDelta));
        }

        if (_totalSupply > MAX_SUPPLY) {
            _totalSupply = MAX_SUPPLY;
        }

        _gonsPerFragment = TOTAL_GONS.div(_totalSupply);

        // From this point forward, _gonsPerFragment is taken as the source of truth.
        // We recalculate a new _totalSupply to be in agreement with the _gonsPerFragment
        // conversion rate.
        // This means our applied supplyDelta can deviate from the requested supplyDelta,
        // but this deviation is guaranteed to be < (_totalSupply^2)/(TOTAL_GONS - _totalSupply).
        //
        // In the case of _totalSupply <= MAX_UINT128 (our current supply cap), this
        // deviation is guaranteed to be < 1, so we can omit this step. If the supply cap is
        // ever increased, it must be re-included.
        // _totalSupply = TOTAL_GONS.div(_gonsPerFragment)

        emit LogRebase(epoch, _totalSupply);
        return _totalSupply;
    }

    function initialize(address owner_) public override initializer {
        ERC20Detailed.initialize("Ampleforth", "AMPL", uint8(DECIMALS));
        Ownable.initialize(owner_);

        rebasePausedDeprecated = false;
        tokenPausedDeprecated = false;

        _totalSupply = INITIAL_FRAGMENTS_SUPPLY;
        _gonBalances[owner_] = TOTAL_GONS;
        _gonsPerFragment = TOTAL_GONS.div(_totalSupply);

        emit Transfer(address(0x0), owner_, _totalSupply);
    }

    /**
     * @return The total number of fragments.
     */
    function totalSupply() external view override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @param who The address to query.
     * @return The balance of the specified address.
     */
    function balanceOf(address who) external view override returns (uint256) {
        return _gonBalances[who].div(_gonsPerFragment);
    }

    /**
     * @param who The address to query.
     * @return The gon balance of the specified address.
     */
    function scaledBalanceOf(address who) external view returns (uint256) {
        return _gonBalances[who];
    }

    /**
     * @return the total number of gons.
     */
    function scaledTotalSupply() external pure returns (uint256) {
        return TOTAL_GONS;
    }

    /**
     * @return The number of successful permits by the specified address.
     */
    function nonces(address who) public view returns (uint256) {
        return _nonces[who];
    }

    /**
     * @return The computed DOMAIN_SEPARATOR to be used off-chain services
     *         which implement EIP-712.
     *         https://eips.ethereum.org/EIPS/eip-2612
     */
    function DOMAIN_SEPARATOR() public view returns (bytes32) {
        uint256 chainId;
        assembly {
            chainId := chainid()
        }
        return
            keccak256(
                abi.encode(
                    EIP712_DOMAIN,
                    keccak256(bytes(name())),
                    keccak256(bytes(EIP712_REVISION)),
                    chainId,
                    address(this)
                )
            );
    }

    /**
     * @dev Transfer tokens to a specified address.
     * @param to The address to transfer to.
     * @param value The amount to be transferred.
     * @return True on success, false otherwise.
     */
    function transfer(address to, uint256 value)
        external
        override
        validRecipient(to)
        returns (bool)
    {
        uint256 gonValue = value.mul(_gonsPerFragment);

        _gonBalances[msg.sender] = _gonBalances[msg.sender].sub(gonValue);
        _gonBalances[to] = _gonBalances[to].add(gonValue);

        emit Transfer(msg.sender, to, value);
        return true;
    }

    /**
     * @dev Transfer all of the sender's wallet balance to a specified address.
     * @param to The address to transfer to.
     * @return True on success, false otherwise.
     */
    function transferAll(address to) external validRecipient(to) returns (bool) {
        uint256 gonValue = _gonBalances[msg.sender];
        uint256 value = gonValue.div(_gonsPerFragment);

        delete _gonBalances[msg.sender];
        _gonBalances[to] = _gonBalances[to].add(gonValue);

        emit Transfer(msg.sender, to, value);
        return true;
    }

    /**
     * @dev Function to check the amount of tokens that an owner has allowed to a spender.
     * @param owner_ The address which owns the funds.
     * @param spender The address which will spend the funds.
     * @return The number of tokens still available for the spender.
     */
    function allowance(address owner_, address spender) external view override returns (uint256) {
        return _allowedFragments[owner_][spender];
    }

    /**
     * @dev Transfer tokens from one address to another.
     * @param from The address you want to send tokens from.
     * @param to The address you want to transfer to.
     * @param value The amount of tokens to be transferred.
     */
    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external override validRecipient(to) returns (bool) {
        _allowedFragments[from][msg.sender] = _allowedFragments[from][msg.sender].sub(value);

        uint256 gonValue = value.mul(_gonsPerFragment);
        _gonBalances[from] = _gonBalances[from].sub(gonValue);
        _gonBalances[to] = _gonBalances[to].add(gonValue);

        emit Transfer(from, to, value);
        return true;
    }

    /**
     * @dev Transfer all balance tokens from one address to another.
     * @param from The address you want to send tokens from.
     * @param to The address you want to transfer to.
     */
    function transferAllFrom(address from, address to) external validRecipient(to) returns (bool) {
        uint256 gonValue = _gonBalances[from];
        uint256 value = gonValue.div(_gonsPerFragment);

        _allowedFragments[from][msg.sender] = _allowedFragments[from][msg.sender].sub(value);

        delete _gonBalances[from];
        _gonBalances[to] = _gonBalances[to].add(gonValue);

        emit Transfer(from, to, value);
        return true;
    }

    /**
     * @dev Approve the passed address to spend the specified amount of tokens on behalf of
     * msg.sender. This method is included for ERC20 compatibility.
     * increaseAllowance and decreaseAllowance should be used instead.
     * Changing an allowance with this method brings the risk that someone may transfer both
     * the old and the new allowance - if they are both greater than zero - if a transfer
     * transaction is mined before the later approve() call is mined.
     *
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     */
    function approve(address spender, uint256 value) external override returns (bool) {
        _allowedFragments[msg.sender][spender] = value;

        emit Approval(msg.sender, spender, value);
        return true;
    }

    /**
     * @dev Increase the amount of tokens that an owner has allowed to a spender.
     * This method should be used instead of approve() to avoid the double approval vulnerability
     * described above.
     * @param spender The address which will spend the funds.
     * @param addedValue The amount of tokens to increase the allowance by.
     */
    function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
        _allowedFragments[msg.sender][spender] = _allowedFragments[msg.sender][spender].add(
            addedValue
        );

        emit Approval(msg.sender, spender, _allowedFragments[msg.sender][spender]);
        return true;
    }

    /**
     * @dev Decrease the amount of tokens that an owner has allowed to a spender.
     *
     * @param spender The address which will spend the funds.
     * @param subtractedValue The amount of tokens to decrease the allowance by.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool) {
        uint256 oldValue = _allowedFragments[msg.sender][spender];
        _allowedFragments[msg.sender][spender] = (subtractedValue >= oldValue)
            ? 0
            : oldValue.sub(subtractedValue);

        emit Approval(msg.sender, spender, _allowedFragments[msg.sender][spender]);
        return true;
    }

    /**
     * @dev Allows for approvals to be made via secp256k1 signatures.
     * @param owner The owner of the funds
     * @param spender The spender
     * @param value The amount
     * @param deadline The deadline timestamp, type(uint256).max for max deadline
     * @param v Signature param
     * @param s Signature param
     * @param r Signature param
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public {
        require(block.timestamp <= deadline);

        uint256 ownerNonce = _nonces[owner];
        bytes32 permitDataDigest =
            keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, ownerNonce, deadline));
        bytes32 digest =
            keccak256(abi.encodePacked("\x19\x01", DOMAIN_SEPARATOR(), permitDataDigest));

        require(owner == ecrecover(digest, v, r, s));

        _nonces[owner] = ownerNonce.add(1);

        _allowedFragments[owner][spender] = value;
        emit Approval(owner, spender, value);
    }

}

File 2 of 7 : SafeMath.sol
pragma solidity 0.7.6;

/**
 * @title SafeMath
 * @dev Math operations with safety checks that revert on error
 */
library SafeMath {
    /**
     * @dev Multiplies two numbers, reverts on overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b);

        return c;
    }

    /**
     * @dev Integer division of two numbers truncating the quotient, reverts on division by zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0); // Solidity only automatically asserts when dividing by 0
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Adds two numbers, reverts on overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a);

        return c;
    }

    /**
     * @dev Divides two numbers and returns the remainder (unsigned integer modulo),
     * reverts when dividing by zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b != 0);
        return a % b;
    }
}

File 3 of 7 : Ownable.sol
pragma solidity 0.7.6;

import "./Initializable.sol";

/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable is Initializable {
    address private _owner;

    event OwnershipRenounced(address indexed previousOwner);
    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev The Ownable constructor sets the original `owner` of the contract to the sender
     * account.
     */
    function initialize(address sender) public virtual initializer {
        _owner = sender;
    }

    /**
     * @return the address of the owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(isOwner());
        _;
    }

    /**
     * @return true if `msg.sender` is the owner of the contract.
     */
    function isOwner() public view returns (bool) {
        return msg.sender == _owner;
    }

    /**
     * @dev Allows the current owner to relinquish control of the contract.
     * @notice Renouncing to ownership will leave the contract without an owner.
     * It will not be possible to call the functions with the `onlyOwner`
     * modifier anymore.
     */
    function renounceOwnership() public onlyOwner {
        emit OwnershipRenounced(_owner);
        _owner = address(0);
    }

    /**
     * @dev Allows the current owner to transfer control of the contract to a newOwner.
     * @param newOwner The address to transfer ownership to.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers control of the contract to a newOwner.
     * @param newOwner The address to transfer ownership to.
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0));
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }

    uint256[50] private ______gap;
}

File 4 of 7 : ERC20Detailed.sol
pragma solidity 0.7.6;

import "./Initializable.sol";
import "./IERC20.sol";

/**
 * @title ERC20Detailed token
 * @dev The decimals are only for visualization purposes.
 * All the operations are done using the smallest and indivisible token unit,
 * just as on Ethereum all the operations are done in wei.
 */
abstract contract ERC20Detailed is Initializable, IERC20 {
    string private _name;
    string private _symbol;
    uint8 private _decimals;

    function initialize(
        string memory name,
        string memory symbol,
        uint8 decimals
    ) public virtual initializer {
        _name = name;
        _symbol = symbol;
        _decimals = decimals;
    }

    /**
     * @return the name of the token.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @return the symbol of the token.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @return the number of decimals of the token.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }

    uint256[50] private ______gap;
}

File 5 of 7 : SafeMathInt.sol
/*
MIT License

Copyright (c) 2018 requestnetwork
Copyright (c) 2018 Fragments, Inc.

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
SOFTWARE.
*/

pragma solidity 0.7.6;

/**
 * @title SafeMathInt
 * @dev Math operations for int256 with overflow safety checks.
 */
library SafeMathInt {
    int256 private constant MIN_INT256 = int256(1) << 255;
    int256 private constant MAX_INT256 = ~(int256(1) << 255);

    /**
     * @dev Multiplies two int256 variables and fails on overflow.
     */
    function mul(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a * b;

        // Detect overflow when multiplying MIN_INT256 with -1
        require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
        require((b == 0) || (c / b == a));
        return c;
    }

    /**
     * @dev Division of two int256 variables and fails on overflow.
     */
    function div(int256 a, int256 b) internal pure returns (int256) {
        // Prevent overflow when dividing MIN_INT256 by -1
        require(b != -1 || a != MIN_INT256);

        // Solidity already throws when dividing by 0.
        return a / b;
    }

    /**
     * @dev Subtracts two int256 variables and fails on overflow.
     */
    function sub(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a - b;
        require((b >= 0 && c <= a) || (b < 0 && c > a));
        return c;
    }

    /**
     * @dev Adds two int256 variables and fails on overflow.
     */
    function add(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a + b;
        require((b >= 0 && c >= a) || (b < 0 && c < a));
        return c;
    }

    /**
     * @dev Converts to absolute value, and fails on overflow.
     */
    function abs(int256 a) internal pure returns (int256) {
        require(a != MIN_INT256);
        return a < 0 ? -a : a;
    }
}

File 6 of 7 : Initializable.sol
pragma solidity 0.7.6;

/**
 * @title Initializable
 *
 * @dev Helper contract to support initializer functions. To use it, replace
 * the constructor with a function that has the `initializer` modifier.
 * WARNING: Unlike constructors, initializer functions must be manually
 * invoked. This applies both to deploying an Initializable contract, as well
 * as extending an Initializable contract via inheritance.
 * WARNING: When used with inheritance, manual care must be taken to not invoke
 * a parent initializer twice, or ensure that all initializers are idempotent,
 * because this is not dealt with automatically as with constructors.
 */
contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private initializing;

    /**
     * @dev Modifier to use in the initializer function of a contract.
     */
    modifier initializer() {
        require(
            initializing || isConstructor() || !initialized,
            "Contract instance has already been initialized"
        );

        bool wasInitializing = initializing;
        initializing = true;
        initialized = true;

        _;

        initializing = wasInitializing;
    }

    /// @dev Returns true if and only if the function is running in the constructor
    function isConstructor() private view returns (bool) {
        // extcodesize checks the size of the code stored in an address, and
        // address returns the current address. Since the code is still not
        // deployed when running a constructor, any checks on its code size will
        // yield zero, making it an effective way to detect if a contract is
        // under construction or not.

        // MINOR CHANGE HERE:

        // previous code
        // uint256 cs;
        // assembly { cs := extcodesize(address) }
        // return cs == 0;

        // current code
        address _self = address(this);
        uint256 cs;
        assembly {
            cs := extcodesize(_self)
        }
        return cs == 0;
    }

    // Reserved storage space to allow for layout changes in the future.
    uint256[50] private ______gap;
}

File 7 of 7 : IERC20.sol
pragma solidity 0.7.6;

/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
interface IERC20 {
    function totalSupply() external view returns (uint256);

    function balanceOf(address who) external view returns (uint256);

    function allowance(address owner, address spender) external view returns (uint256);

    function transfer(address to, uint256 value) external returns (bool);

    function approve(address spender, uint256 value) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool);

    event Transfer(address indexed from, address indexed to, uint256 value);

    event Approval(address indexed owner, address indexed spender, uint256 value);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"monetaryPolicy","type":"address"}],"name":"LogMonetaryPolicyUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"}],"name":"LogRebase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"}],"name":"OwnershipRenounced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EIP712_DOMAIN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EIP712_REVISION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"monetaryPolicy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"epoch","type":"uint256"},{"internalType":"int256","name":"supplyDelta","type":"int256"}],"name":"rebase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"scaledBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"scaledTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"monetaryPolicy_","type":"address"}],"name":"setMonetaryPolicy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"transferAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"transferAllFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50611855806100206000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c806384d4b41011610104578063a457c2d7116100a2578063d505accf11610071578063d505accf1461065b578063dd62ed3e146106ac578063e1b11da4146106da578063f2fde38b146106e2576101da565b8063a457c2d7146105d5578063a9059cbb14610601578063b1bf962d1461062d578063c4d66de814610635576101da565b80638e27d7d7116100de5780638e27d7d7146105975780638f32d59b1461059f57806395d89b41146105a7578063a3a7e7f3146105af576101da565b806384d4b4101461051f5780638b5a6a081461054d5780638da5cb5b14610573576101da565b8063313ce5671161017c578063715018a61161014b578063715018a6146104c657806378160376146104ce5780637a43e23f146104d65780637ecebe00146104f9576101da565b8063313ce5671461044e5780633644e5151461046c578063395093511461047457806370a08231146104a0576101da565b806318160ddd116101b857806318160ddd146103d05780631da24f3e146103ea57806323b872dd1461041057806330adf81f14610446576101da565b806306fdde03146101df578063095ea7b31461025c5780631624f6c61461029c575b600080fd5b6101e7610708565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610221578181015183820152602001610209565b50505050905090810190601f16801561024e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102886004803603604081101561027257600080fd5b506001600160a01b03813516906020013561079e565b604080519115158252519081900360200190f35b6103ce600480360360608110156102b257600080fd5b8101906020810181356401000000008111156102cd57600080fd5b8201836020820111156102df57600080fd5b8035906020019184600183028401116401000000008311171561030157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929594936020810193503591505064010000000081111561035457600080fd5b82018360208201111561036657600080fd5b8035906020019184600183028401116401000000008311171561038857600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff1691506107f39050565b005b6103d86108d2565b60408051918252519081900360200190f35b6103d86004803603602081101561040057600080fd5b50356001600160a01b03166108d8565b6102886004803603606081101561042657600080fd5b506001600160a01b038135811691602081013590911690604001356108f3565b6103d8610a28565b610456610a4c565b6040805160ff9092168252519081900360200190f35b6103d8610a55565b6102886004803603604081101561048a57600080fd5b506001600160a01b038135169060200135610b03565b6103d8600480360360208110156104b657600080fd5b50356001600160a01b0316610b84565b6103ce610bac565b6101e7610c07565b6103d8600480360360408110156104ec57600080fd5b5080359060200135610c24565b6103d86004803603602081101561050f57600080fd5b50356001600160a01b0316610d38565b6102886004803603604081101561053557600080fd5b506001600160a01b0381358116916020013516610d53565b6103ce6004803603602081101561056357600080fd5b50356001600160a01b0316610e72565b61057b610ed7565b604080516001600160a01b039092168252519081900360200190f35b61057b610ee6565b610288610ef5565b6101e7610f06565b610288600480360360208110156105c557600080fd5b50356001600160a01b0316610f67565b610288600480360360408110156105eb57600080fd5b506001600160a01b038135169060200135611031565b6102886004803603604081101561061757600080fd5b506001600160a01b0381351690602001356110c3565b6103d861119d565b6103ce6004803603602081101561064b57600080fd5b50356001600160a01b03166111a9565b6103ce600480360360e081101561067157600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611319565b6103d8600480360360408110156106c257600080fd5b506001600160a01b03813581169160200135166114e0565b6103d861150b565b6103ce600480360360208110156106f857600080fd5b50356001600160a01b031661152f565b60338054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107945780601f1061076957610100808354040283529160200191610794565b820191906000526020600020905b81548152906001019060200180831161077757829003601f168201915b5050505050905090565b336000818152609f602090815260408083206001600160a01b03871680855290835281842086905581518681529151939490939092600080516020611800833981519152928290030190a35060015b92915050565b600054610100900460ff168061080c575061080c61154c565b8061081a575060005460ff16155b6108555760405162461bcd60e51b815260040180806020018281038252602e8152602001806117b2602e913960400191505060405180910390fd5b60008054600161010061ff00198316811760ff191691909117909255845191900460ff169061088b906033906020870190611710565b50825161089f906034906020860190611710565b506035805460ff90931660ff1990931692909217909155600080549115156101000261ff00199092169190911790555050565b609c5490565b6001600160a01b03166000908152609e602052604090205490565b6000826001600160a01b03811661090957600080fd5b6001600160a01b03811630141561091f57600080fd5b6001600160a01b0385166000908152609f6020908152604080832033845290915290205461094d9084611552565b6001600160a01b0386166000908152609f60209081526040808320338452909152812091909155609d54610982908590611567565b6001600160a01b0387166000908152609e60205260409020549091506109a89082611552565b6001600160a01b038088166000908152609e602052604080822093909355908716815220546109d79082611595565b6001600160a01b038087166000818152609e602090815260409182902094909455805188815290519193928a16926000805160206117e083398151915292918290030190a350600195945050505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60355460ff1690565b6000467f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f610a81610708565b805160209182012060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606084015260808301939093523060a0808401919091528351808403909101815260c09092019092528051910120905090565b336000908152609f602090815260408083206001600160a01b0386168452909152812054610b319083611595565b336000818152609f602090815260408083206001600160a01b038916808552908352928190208590558051948552519193600080516020611800833981519152929081900390910190a350600192915050565b609d546001600160a01b0382166000908152609e602052604081205490916107ed91906115a7565b610bb4610ef5565b610bbd57600080fd5b6068546040516001600160a01b03909116907ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482090600090a2606880546001600160a01b0319169055565b604051806040016040528060018152602001603160f81b81525081565b609b546000906001600160a01b03163314610c3e57600080fd5b81610c8457609c54604080519182525184917f72725a3b1e5bd622d6bcd1339bb31279c351abe8f541ac7fd320f24e1b1641f2919081900360200190a250609c546107ed565b6000821215610caa57610ca2610c99836115c9565b609c5490611552565b609c55610cbb565b609c54610cb79083611595565b609c555b609c546001600160801b031015610cd8576001600160801b03609c555b609c54610cf39066b1a2bc2ec500006000195b0619906115a7565b609d55609c54604080519182525184917f72725a3b1e5bd622d6bcd1339bb31279c351abe8f541ac7fd320f24e1b1641f2919081900360200190a250609c5492915050565b6001600160a01b0316600090815260a0602052604090205490565b6000816001600160a01b038116610d6957600080fd5b6001600160a01b038116301415610d7f57600080fd5b6001600160a01b0384166000908152609e6020526040812054609d54909190610da99083906115a7565b6001600160a01b0387166000908152609f60209081526040808320338452909152902054909150610dda9082611552565b6001600160a01b038088166000818152609f60209081526040808320338452825280832095909555918152609e90915282812081905590871681522054610e219083611595565b6001600160a01b038087166000818152609e602090815260409182902094909455805185815290519193928a16926000805160206117e083398151915292918290030190a350600195945050505050565b610e7a610ef5565b610e8357600080fd5b609b80546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f0e6961f1a1afb87eaf51fd64f22ddc10062e23aa7838eac5d0bdf140bfd389729181900360200190a150565b6068546001600160a01b031690565b609b546001600160a01b031681565b6068546001600160a01b0316331490565b60348054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107945780601f1061076957610100808354040283529160200191610794565b6000816001600160a01b038116610f7d57600080fd5b6001600160a01b038116301415610f9357600080fd5b336000908152609e6020526040812054609d54909190610fb49083906115a7565b336000908152609e60205260408082208290556001600160a01b0388168252902054909150610fe39083611595565b6001600160a01b0386166000818152609e60209081526040918290209390935580518481529051919233926000805160206117e08339815191529281900390910190a3506001949350505050565b336000908152609f602090815260408083206001600160a01b03861684529091528120548083101561106c576110678184611552565b61106f565b60005b336000818152609f602090815260408083206001600160a01b038a16808552908352928190208590558051948552519193600080516020611800833981519152929081900390910190a35060019392505050565b6000826001600160a01b0381166110d957600080fd5b6001600160a01b0381163014156110ef57600080fd5b6000611106609d548561156790919063ffffffff16565b336000908152609e60205260409020549091506111239082611552565b336000908152609e6020526040808220929092556001600160a01b0387168152205461114f9082611595565b6001600160a01b0386166000818152609e60209081526040918290209390935580518781529051919233926000805160206117e08339815191529281900390910190a3506001949350505050565b6678d2044da4ffff1990565b600054610100900460ff16806111c257506111c261154c565b806111d0575060005460ff16155b61120b5760405162461bcd60e51b815260040180806020018281038252602e8152602001806117b2602e913960400191505060405180910390fd5b60008054600161010061ff00198316811760ff191691909117909255604080518082018252600a815269082dae0d8caccdee4e8d60b31b602080830191909152825180840190935260048352631053541360e21b908301529290910460ff16916112769160096107f3565b61127f826115f1565b609b805461ffff60a01b1916905566b1a2bc2ec50000609c8181556001600160a01b0384166000908152609e602052604090206678d2044da4ffff199055546112ca91600019610ceb565b609d55609c5460408051918252516001600160a01b038416916000916000805160206117e08339815191529181900360200190a3600080549115156101000261ff001990921691909117905550565b8342111561132657600080fd5b6001600160a01b03808816600081815260a0602081815260408084205481517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98185015280830196909652958c166060860152608085018b905291840185905260c08085018a90528251808603909101815260e09094019091528251920191909120906113b1610a55565b82604051602001808061190160f01b8152506002018381526020018281526020019250505060405160208183030381529060405280519060200120905060018187878760405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015611448573d6000803e3d6000fd5b505050602060405103516001600160a01b03168a6001600160a01b03161461146f57600080fd5b61147a836001611595565b6001600160a01b03808c16600081815260a06020908152604080832095909555609f8152848220938e16808352938152908490208c905583518c81529351929391926000805160206118008339815191529281900390910190a350505050505050505050565b6001600160a01b039182166000908152609f6020908152604080832093909416825291909152205490565b7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81565b611537610ef5565b61154057600080fd5b611549816116a1565b50565b303b1590565b60008282111561156157600080fd5b50900390565b600082611576575060006107ed565b8282028284828161158357fe5b041461158e57600080fd5b9392505050565b60008282018381101561158e57600080fd5b60008082116115b557600080fd5b60008284816115c057fe5b04949350505050565b6000600160ff1b8214156115dc57600080fd5b600082126115ea57816107ed565b5060000390565b600054610100900460ff168061160a575061160a61154c565b80611618575060005460ff16155b6116535760405162461bcd60e51b815260040180806020018281038252602e8152602001806117b2602e913960400191505060405180910390fd5b60008054606880546001600160a01b0319166001600160a01b03949094169390931790925561ff001980831661010090811760ff19166001179091169281900460ff16151502919091179055565b6001600160a01b0381166116b457600080fd5b6068546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3606880546001600160a01b0319166001600160a01b0392909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282611746576000855561178c565b82601f1061175f57805160ff191683800117855561178c565b8280016001018555821561178c579182015b8281111561178c578251825591602001919060010190611771565b5061179892915061179c565b5090565b5b80821115611798576000815560010161179d56fe436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925a26469706673582212208bf295620d3af538417ea3ba3d5890a3dbf2a1238fe257318fb603fab12aca0264736f6c63430007060033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101da5760003560e01c806384d4b41011610104578063a457c2d7116100a2578063d505accf11610071578063d505accf1461065b578063dd62ed3e146106ac578063e1b11da4146106da578063f2fde38b146106e2576101da565b8063a457c2d7146105d5578063a9059cbb14610601578063b1bf962d1461062d578063c4d66de814610635576101da565b80638e27d7d7116100de5780638e27d7d7146105975780638f32d59b1461059f57806395d89b41146105a7578063a3a7e7f3146105af576101da565b806384d4b4101461051f5780638b5a6a081461054d5780638da5cb5b14610573576101da565b8063313ce5671161017c578063715018a61161014b578063715018a6146104c657806378160376146104ce5780637a43e23f146104d65780637ecebe00146104f9576101da565b8063313ce5671461044e5780633644e5151461046c578063395093511461047457806370a08231146104a0576101da565b806318160ddd116101b857806318160ddd146103d05780631da24f3e146103ea57806323b872dd1461041057806330adf81f14610446576101da565b806306fdde03146101df578063095ea7b31461025c5780631624f6c61461029c575b600080fd5b6101e7610708565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610221578181015183820152602001610209565b50505050905090810190601f16801561024e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102886004803603604081101561027257600080fd5b506001600160a01b03813516906020013561079e565b604080519115158252519081900360200190f35b6103ce600480360360608110156102b257600080fd5b8101906020810181356401000000008111156102cd57600080fd5b8201836020820111156102df57600080fd5b8035906020019184600183028401116401000000008311171561030157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929594936020810193503591505064010000000081111561035457600080fd5b82018360208201111561036657600080fd5b8035906020019184600183028401116401000000008311171561038857600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff1691506107f39050565b005b6103d86108d2565b60408051918252519081900360200190f35b6103d86004803603602081101561040057600080fd5b50356001600160a01b03166108d8565b6102886004803603606081101561042657600080fd5b506001600160a01b038135811691602081013590911690604001356108f3565b6103d8610a28565b610456610a4c565b6040805160ff9092168252519081900360200190f35b6103d8610a55565b6102886004803603604081101561048a57600080fd5b506001600160a01b038135169060200135610b03565b6103d8600480360360208110156104b657600080fd5b50356001600160a01b0316610b84565b6103ce610bac565b6101e7610c07565b6103d8600480360360408110156104ec57600080fd5b5080359060200135610c24565b6103d86004803603602081101561050f57600080fd5b50356001600160a01b0316610d38565b6102886004803603604081101561053557600080fd5b506001600160a01b0381358116916020013516610d53565b6103ce6004803603602081101561056357600080fd5b50356001600160a01b0316610e72565b61057b610ed7565b604080516001600160a01b039092168252519081900360200190f35b61057b610ee6565b610288610ef5565b6101e7610f06565b610288600480360360208110156105c557600080fd5b50356001600160a01b0316610f67565b610288600480360360408110156105eb57600080fd5b506001600160a01b038135169060200135611031565b6102886004803603604081101561061757600080fd5b506001600160a01b0381351690602001356110c3565b6103d861119d565b6103ce6004803603602081101561064b57600080fd5b50356001600160a01b03166111a9565b6103ce600480360360e081101561067157600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611319565b6103d8600480360360408110156106c257600080fd5b506001600160a01b03813581169160200135166114e0565b6103d861150b565b6103ce600480360360208110156106f857600080fd5b50356001600160a01b031661152f565b60338054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107945780601f1061076957610100808354040283529160200191610794565b820191906000526020600020905b81548152906001019060200180831161077757829003601f168201915b5050505050905090565b336000818152609f602090815260408083206001600160a01b03871680855290835281842086905581518681529151939490939092600080516020611800833981519152928290030190a35060015b92915050565b600054610100900460ff168061080c575061080c61154c565b8061081a575060005460ff16155b6108555760405162461bcd60e51b815260040180806020018281038252602e8152602001806117b2602e913960400191505060405180910390fd5b60008054600161010061ff00198316811760ff191691909117909255845191900460ff169061088b906033906020870190611710565b50825161089f906034906020860190611710565b506035805460ff90931660ff1990931692909217909155600080549115156101000261ff00199092169190911790555050565b609c5490565b6001600160a01b03166000908152609e602052604090205490565b6000826001600160a01b03811661090957600080fd5b6001600160a01b03811630141561091f57600080fd5b6001600160a01b0385166000908152609f6020908152604080832033845290915290205461094d9084611552565b6001600160a01b0386166000908152609f60209081526040808320338452909152812091909155609d54610982908590611567565b6001600160a01b0387166000908152609e60205260409020549091506109a89082611552565b6001600160a01b038088166000908152609e602052604080822093909355908716815220546109d79082611595565b6001600160a01b038087166000818152609e602090815260409182902094909455805188815290519193928a16926000805160206117e083398151915292918290030190a350600195945050505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60355460ff1690565b6000467f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f610a81610708565b805160209182012060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606084015260808301939093523060a0808401919091528351808403909101815260c09092019092528051910120905090565b336000908152609f602090815260408083206001600160a01b0386168452909152812054610b319083611595565b336000818152609f602090815260408083206001600160a01b038916808552908352928190208590558051948552519193600080516020611800833981519152929081900390910190a350600192915050565b609d546001600160a01b0382166000908152609e602052604081205490916107ed91906115a7565b610bb4610ef5565b610bbd57600080fd5b6068546040516001600160a01b03909116907ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482090600090a2606880546001600160a01b0319169055565b604051806040016040528060018152602001603160f81b81525081565b609b546000906001600160a01b03163314610c3e57600080fd5b81610c8457609c54604080519182525184917f72725a3b1e5bd622d6bcd1339bb31279c351abe8f541ac7fd320f24e1b1641f2919081900360200190a250609c546107ed565b6000821215610caa57610ca2610c99836115c9565b609c5490611552565b609c55610cbb565b609c54610cb79083611595565b609c555b609c546001600160801b031015610cd8576001600160801b03609c555b609c54610cf39066b1a2bc2ec500006000195b0619906115a7565b609d55609c54604080519182525184917f72725a3b1e5bd622d6bcd1339bb31279c351abe8f541ac7fd320f24e1b1641f2919081900360200190a250609c5492915050565b6001600160a01b0316600090815260a0602052604090205490565b6000816001600160a01b038116610d6957600080fd5b6001600160a01b038116301415610d7f57600080fd5b6001600160a01b0384166000908152609e6020526040812054609d54909190610da99083906115a7565b6001600160a01b0387166000908152609f60209081526040808320338452909152902054909150610dda9082611552565b6001600160a01b038088166000818152609f60209081526040808320338452825280832095909555918152609e90915282812081905590871681522054610e219083611595565b6001600160a01b038087166000818152609e602090815260409182902094909455805185815290519193928a16926000805160206117e083398151915292918290030190a350600195945050505050565b610e7a610ef5565b610e8357600080fd5b609b80546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f0e6961f1a1afb87eaf51fd64f22ddc10062e23aa7838eac5d0bdf140bfd389729181900360200190a150565b6068546001600160a01b031690565b609b546001600160a01b031681565b6068546001600160a01b0316331490565b60348054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107945780601f1061076957610100808354040283529160200191610794565b6000816001600160a01b038116610f7d57600080fd5b6001600160a01b038116301415610f9357600080fd5b336000908152609e6020526040812054609d54909190610fb49083906115a7565b336000908152609e60205260408082208290556001600160a01b0388168252902054909150610fe39083611595565b6001600160a01b0386166000818152609e60209081526040918290209390935580518481529051919233926000805160206117e08339815191529281900390910190a3506001949350505050565b336000908152609f602090815260408083206001600160a01b03861684529091528120548083101561106c576110678184611552565b61106f565b60005b336000818152609f602090815260408083206001600160a01b038a16808552908352928190208590558051948552519193600080516020611800833981519152929081900390910190a35060019392505050565b6000826001600160a01b0381166110d957600080fd5b6001600160a01b0381163014156110ef57600080fd5b6000611106609d548561156790919063ffffffff16565b336000908152609e60205260409020549091506111239082611552565b336000908152609e6020526040808220929092556001600160a01b0387168152205461114f9082611595565b6001600160a01b0386166000818152609e60209081526040918290209390935580518781529051919233926000805160206117e08339815191529281900390910190a3506001949350505050565b6678d2044da4ffff1990565b600054610100900460ff16806111c257506111c261154c565b806111d0575060005460ff16155b61120b5760405162461bcd60e51b815260040180806020018281038252602e8152602001806117b2602e913960400191505060405180910390fd5b60008054600161010061ff00198316811760ff191691909117909255604080518082018252600a815269082dae0d8caccdee4e8d60b31b602080830191909152825180840190935260048352631053541360e21b908301529290910460ff16916112769160096107f3565b61127f826115f1565b609b805461ffff60a01b1916905566b1a2bc2ec50000609c8181556001600160a01b0384166000908152609e602052604090206678d2044da4ffff199055546112ca91600019610ceb565b609d55609c5460408051918252516001600160a01b038416916000916000805160206117e08339815191529181900360200190a3600080549115156101000261ff001990921691909117905550565b8342111561132657600080fd5b6001600160a01b03808816600081815260a0602081815260408084205481517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98185015280830196909652958c166060860152608085018b905291840185905260c08085018a90528251808603909101815260e09094019091528251920191909120906113b1610a55565b82604051602001808061190160f01b8152506002018381526020018281526020019250505060405160208183030381529060405280519060200120905060018187878760405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015611448573d6000803e3d6000fd5b505050602060405103516001600160a01b03168a6001600160a01b03161461146f57600080fd5b61147a836001611595565b6001600160a01b03808c16600081815260a06020908152604080832095909555609f8152848220938e16808352938152908490208c905583518c81529351929391926000805160206118008339815191529281900390910190a350505050505050505050565b6001600160a01b039182166000908152609f6020908152604080832093909416825291909152205490565b7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81565b611537610ef5565b61154057600080fd5b611549816116a1565b50565b303b1590565b60008282111561156157600080fd5b50900390565b600082611576575060006107ed565b8282028284828161158357fe5b041461158e57600080fd5b9392505050565b60008282018381101561158e57600080fd5b60008082116115b557600080fd5b60008284816115c057fe5b04949350505050565b6000600160ff1b8214156115dc57600080fd5b600082126115ea57816107ed565b5060000390565b600054610100900460ff168061160a575061160a61154c565b80611618575060005460ff16155b6116535760405162461bcd60e51b815260040180806020018281038252602e8152602001806117b2602e913960400191505060405180910390fd5b60008054606880546001600160a01b0319166001600160a01b03949094169390931790925561ff001980831661010090811760ff19166001179091169281900460ff16151502919091179055565b6001600160a01b0381166116b457600080fd5b6068546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3606880546001600160a01b0319166001600160a01b0392909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282611746576000855561178c565b82601f1061175f57805160ff191683800117855561178c565b8280016001018555821561178c579182015b8281111561178c578251825591602001919060010190611771565b5061179892915061179c565b5090565b5b80821115611798576000815560010161179d56fe436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925a26469706673582212208bf295620d3af538417ea3ba3d5890a3dbf2a1238fe257318fb603fab12aca0264736f6c63430007060033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.