ETH Price: $3,934.91 (+5.67%)

Contract

0x3246Ac4f28148c75E18152bA4D80c93606555Ad0
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve209474342024-10-12 5:27:1154 days ago1728710831IN
0x3246Ac4f...606555Ad0
0 ETH0.00020728.36608687
Approve199034462024-05-19 10:39:59200 days ago1716115199IN
0x3246Ac4f...606555Ad0
0 ETH0.000079423.20698916
Approve196297402024-04-11 3:35:23238 days ago1712806523IN
0x3246Ac4f...606555Ad0
0 ETH0.0003567414.40416919
Transfer178981182023-08-12 10:13:23481 days ago1691835203IN
0x3246Ac4f...606555Ad0
0 ETH0.0003906312.99349345
Approve156579772022-10-02 4:09:47795 days ago1664683787IN
0x3246Ac4f...606555Ad0
0 ETH0.000123394.98233188
Approve155655002022-09-19 5:31:59808 days ago1663565519IN
0x3246Ac4f...606555Ad0
0 ETH0.000262845.62089153
Approve142607972022-02-23 6:42:531016 days ago1645598573IN
0x3246Ac4f...606555Ad0
0 ETH0.0014315957.80233128
Approve132836172021-09-23 18:35:491168 days ago1632422149IN
0x3246Ac4f...606555Ad0
0 ETH0.003598145.27428484
Approve132835162021-09-23 18:11:121168 days ago1632420672IN
0x3246Ac4f...606555Ad0
0 ETH0.0021600987.21652521
Approve130544922021-08-19 8:00:501204 days ago1629360050IN
0x3246Ac4f...606555Ad0
0 ETH0.0008366133.77940084
Approve126936892021-06-24 0:30:391260 days ago1624494639IN
0x3246Ac4f...606555Ad0
0 ETH0.0001478410
Transfer125564632021-06-02 17:35:271281 days ago1622655327IN
0x3246Ac4f...606555Ad0
0 ETH0.001851850
Approve123655452021-05-04 4:07:011311 days ago1620101221IN
0x3246Ac4f...606555Ad0
0 ETH0.0004730832
Approve122698652021-04-19 10:07:101326 days ago1618826830IN
0x3246Ac4f...606555Ad0
0 ETH0.0022176150.00000145
Approve121851032021-04-06 8:38:591339 days ago1617698339IN
0x3246Ac4f...606555Ad0
0 ETH0.00195148132
Approve119498292021-03-01 3:07:231375 days ago1614568043IN
0x3246Ac4f...606555Ad0
0 ETH0.0010792373
Approve119414472021-02-27 20:19:021376 days ago1614457142IN
0x3246Ac4f...606555Ad0
0 ETH0.00198105134
Approve118489212021-02-13 14:49:261390 days ago1613227766IN
0x3246Ac4f...606555Ad0
0 ETH0.0014784100
Transfer117318082021-01-26 14:15:201408 days ago1611670520IN
0x3246Ac4f...606555Ad0
0 ETH0.0018934687
Transfer117318032021-01-26 14:13:571408 days ago1611670437IN
0x3246Ac4f...606555Ad0
0 ETH0.0020893496
Approve117309282021-01-26 11:08:181408 days ago1611659298IN
0x3246Ac4f...606555Ad0
0 ETH0.0023374552
Approve116968542021-01-21 5:13:081414 days ago1611205988IN
0x3246Ac4f...606555Ad0
0 ETH0.001108875
Approve116497942021-01-13 23:40:321421 days ago1610581232IN
0x3246Ac4f...606555Ad0
0 ETH0.0005691838.5
Approve116467282021-01-13 12:56:561421 days ago1610542616IN
0x3246Ac4f...606555Ad0
0 ETH0.0029218165
Approve116441592021-01-13 3:12:091422 days ago1610507529IN
0x3246Ac4f...606555Ad0
0 ETH0.0042703495
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
115306662020-12-26 17:23:461439 days ago1609003426  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Dollar

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-12-26
*/

// Dependency file: @openzeppelin/contracts/GSN/Context.sol

// pragma solidity ^0.5.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}


// Dependency file: @openzeppelin/contracts/token/ERC20/IERC20.sol

// pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * // importANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}


// Dependency file: @openzeppelin/contracts/math/SafeMath.sol

// pragma solidity ^0.5.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot 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-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}


// Dependency file: @openzeppelin/contracts/token/ERC20/ERC20.sol

// pragma solidity ^0.5.0;

// import "@openzeppelin/contracts/GSN/Context.sol";
// import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
// import "@openzeppelin/contracts/math/SafeMath.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20Mintable}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for `sender`'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal {
        require(account != address(0), "ERC20: mint to the zero address");

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal {
        require(account != address(0), "ERC20: burn from the zero address");

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
     *
     * This is internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
        _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance"));
    }
}


// Dependency file: @openzeppelin/contracts/token/ERC20/ERC20Burnable.sol

// pragma solidity ^0.5.0;

// import "@openzeppelin/contracts/GSN/Context.sol";
// import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev See {ERC20-_burnFrom}.
     */
    function burnFrom(address account, uint256 amount) public {
        _burnFrom(account, amount);
    }
}


// Dependency file: @openzeppelin/contracts/token/ERC20/ERC20Detailed.sol

// pragma solidity ^0.5.0;

// import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

/**
 * @dev Optional functions from the ERC20 standard.
 */
contract ERC20Detailed is IERC20 {
    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of
     * these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol, uint8 decimals) public {
        _name = name;
        _symbol = symbol;
        _decimals = decimals;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }
}


// Dependency file: @openzeppelin/contracts/access/Roles.sol

// pragma solidity ^0.5.0;

/**
 * @title Roles
 * @dev Library for managing addresses assigned to a Role.
 */
library Roles {
    struct Role {
        mapping (address => bool) bearer;
    }

    /**
     * @dev Give an account access to this role.
     */
    function add(Role storage role, address account) internal {
        require(!has(role, account), "Roles: account already has role");
        role.bearer[account] = true;
    }

    /**
     * @dev Remove an account's access to this role.
     */
    function remove(Role storage role, address account) internal {
        require(has(role, account), "Roles: account does not have role");
        role.bearer[account] = false;
    }

    /**
     * @dev Check if an account has this role.
     * @return bool
     */
    function has(Role storage role, address account) internal view returns (bool) {
        require(account != address(0), "Roles: account is the zero address");
        return role.bearer[account];
    }
}


// Dependency file: @openzeppelin/contracts/access/roles/MinterRole.sol

// pragma solidity ^0.5.0;

// import "@openzeppelin/contracts/GSN/Context.sol";
// import "@openzeppelin/contracts/access/Roles.sol";

contract MinterRole is Context {
    using Roles for Roles.Role;

    event MinterAdded(address indexed account);
    event MinterRemoved(address indexed account);

    Roles.Role private _minters;

    constructor () internal {
        _addMinter(_msgSender());
    }

    modifier onlyMinter() {
        require(isMinter(_msgSender()), "MinterRole: caller does not have the Minter role");
        _;
    }

    function isMinter(address account) public view returns (bool) {
        return _minters.has(account);
    }

    function addMinter(address account) public onlyMinter {
        _addMinter(account);
    }

    function renounceMinter() public {
        _removeMinter(_msgSender());
    }

    function _addMinter(address account) internal {
        _minters.add(account);
        emit MinterAdded(account);
    }

    function _removeMinter(address account) internal {
        _minters.remove(account);
        emit MinterRemoved(account);
    }
}


// Dependency file: contracts/external/Require.sol

/*
    Copyright 2019 dYdX Trading Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

// pragma solidity ^0.5.7;

/**
 * @title Require
 * @author dYdX
 *
 * Stringifies parameters to pretty-print revert messages. Costs more gas than regular require()
 */
library Require {

    // ============ Constants ============

    uint256 constant ASCII_ZERO = 48; // '0'
    uint256 constant ASCII_RELATIVE_ZERO = 87; // 'a' - 10
    uint256 constant ASCII_LOWER_EX = 120; // 'x'
    bytes2 constant COLON = 0x3a20; // ': '
    bytes2 constant COMMA = 0x2c20; // ', '
    bytes2 constant LPAREN = 0x203c; // ' <'
    byte constant RPAREN = 0x3e; // '>'
    uint256 constant FOUR_BIT_MASK = 0xf;

    // ============ Library Functions ============

    function that(
        bool must,
        bytes32 file,
        bytes32 reason
    )
    internal
    pure
    {
        if (!must) {
            revert(
                string(
                    abi.encodePacked(
                        stringifyTruncated(file),
                        COLON,
                        stringifyTruncated(reason)
                    )
                )
            );
        }
    }

    function that(
        bool must,
        bytes32 file,
        bytes32 reason,
        uint256 payloadA
    )
    internal
    pure
    {
        if (!must) {
            revert(
                string(
                    abi.encodePacked(
                        stringifyTruncated(file),
                        COLON,
                        stringifyTruncated(reason),
                        LPAREN,
                        stringify(payloadA),
                        RPAREN
                    )
                )
            );
        }
    }

    function that(
        bool must,
        bytes32 file,
        bytes32 reason,
        uint256 payloadA,
        uint256 payloadB
    )
    internal
    pure
    {
        if (!must) {
            revert(
                string(
                    abi.encodePacked(
                        stringifyTruncated(file),
                        COLON,
                        stringifyTruncated(reason),
                        LPAREN,
                        stringify(payloadA),
                        COMMA,
                        stringify(payloadB),
                        RPAREN
                    )
                )
            );
        }
    }

    function that(
        bool must,
        bytes32 file,
        bytes32 reason,
        address payloadA
    )
    internal
    pure
    {
        if (!must) {
            revert(
                string(
                    abi.encodePacked(
                        stringifyTruncated(file),
                        COLON,
                        stringifyTruncated(reason),
                        LPAREN,
                        stringify(payloadA),
                        RPAREN
                    )
                )
            );
        }
    }

    function that(
        bool must,
        bytes32 file,
        bytes32 reason,
        address payloadA,
        uint256 payloadB
    )
    internal
    pure
    {
        if (!must) {
            revert(
                string(
                    abi.encodePacked(
                        stringifyTruncated(file),
                        COLON,
                        stringifyTruncated(reason),
                        LPAREN,
                        stringify(payloadA),
                        COMMA,
                        stringify(payloadB),
                        RPAREN
                    )
                )
            );
        }
    }

    function that(
        bool must,
        bytes32 file,
        bytes32 reason,
        address payloadA,
        uint256 payloadB,
        uint256 payloadC
    )
    internal
    pure
    {
        if (!must) {
            revert(
                string(
                    abi.encodePacked(
                        stringifyTruncated(file),
                        COLON,
                        stringifyTruncated(reason),
                        LPAREN,
                        stringify(payloadA),
                        COMMA,
                        stringify(payloadB),
                        COMMA,
                        stringify(payloadC),
                        RPAREN
                    )
                )
            );
        }
    }

    function that(
        bool must,
        bytes32 file,
        bytes32 reason,
        bytes32 payloadA
    )
    internal
    pure
    {
        if (!must) {
            revert(
                string(
                    abi.encodePacked(
                        stringifyTruncated(file),
                        COLON,
                        stringifyTruncated(reason),
                        LPAREN,
                        stringify(payloadA),
                        RPAREN
                    )
                )
            );
        }
    }

    function that(
        bool must,
        bytes32 file,
        bytes32 reason,
        bytes32 payloadA,
        uint256 payloadB,
        uint256 payloadC
    )
    internal
    pure
    {
        if (!must) {
            revert(
                string(
                    abi.encodePacked(
                        stringifyTruncated(file),
                        COLON,
                        stringifyTruncated(reason),
                        LPAREN,
                        stringify(payloadA),
                        COMMA,
                        stringify(payloadB),
                        COMMA,
                        stringify(payloadC),
                        RPAREN
                    )
                )
            );
        }
    }

    // ============ Private Functions ============

    function stringifyTruncated(
        bytes32 input
    )
    private
    pure
    returns (bytes memory)
    {
        // put the input bytes into the result
        bytes memory result = abi.encodePacked(input);

        // determine the length of the input by finding the location of the last non-zero byte
        for (uint256 i = 32; i > 0; ) {
            // reverse-for-loops with unsigned integer
            /* solium-disable-next-line security/no-modify-for-iter-var */
            i--;

            // find the last non-zero byte in order to determine the length
            if (result[i] != 0) {
                uint256 length = i + 1;

                /* solium-disable-next-line security/no-inline-assembly */
                assembly {
                    mstore(result, length) // r.length = length;
                }

                return result;
            }
        }

        // all bytes are zero
        return new bytes(0);
    }

    function stringify(
        uint256 input
    )
    private
    pure
    returns (bytes memory)
    {
        if (input == 0) {
            return "0";
        }

        // get the final string length
        uint256 j = input;
        uint256 length;
        while (j != 0) {
            length++;
            j /= 10;
        }

        // allocate the string
        bytes memory bstr = new bytes(length);

        // populate the string starting with the least-significant character
        j = input;
        for (uint256 i = length; i > 0; ) {
            // reverse-for-loops with unsigned integer
            /* solium-disable-next-line security/no-modify-for-iter-var */
            i--;

            // take last decimal digit
            bstr[i] = byte(uint8(ASCII_ZERO + (j % 10)));

            // remove the last decimal digit
            j /= 10;
        }

        return bstr;
    }

    function stringify(
        address input
    )
    private
    pure
    returns (bytes memory)
    {
        uint256 z = uint256(input);

        // addresses are "0x" followed by 20 bytes of data which take up 2 characters each
        bytes memory result = new bytes(42);

        // populate the result with "0x"
        result[0] = byte(uint8(ASCII_ZERO));
        result[1] = byte(uint8(ASCII_LOWER_EX));

        // for each byte (starting from the lowest byte), populate the result with two characters
        for (uint256 i = 0; i < 20; i++) {
            // each byte takes two characters
            uint256 shift = i * 2;

            // populate the least-significant character
            result[41 - shift] = char(z & FOUR_BIT_MASK);
            z = z >> 4;

            // populate the most-significant character
            result[40 - shift] = char(z & FOUR_BIT_MASK);
            z = z >> 4;
        }

        return result;
    }

    function stringify(
        bytes32 input
    )
    private
    pure
    returns (bytes memory)
    {
        uint256 z = uint256(input);

        // bytes32 are "0x" followed by 32 bytes of data which take up 2 characters each
        bytes memory result = new bytes(66);

        // populate the result with "0x"
        result[0] = byte(uint8(ASCII_ZERO));
        result[1] = byte(uint8(ASCII_LOWER_EX));

        // for each byte (starting from the lowest byte), populate the result with two characters
        for (uint256 i = 0; i < 32; i++) {
            // each byte takes two characters
            uint256 shift = i * 2;

            // populate the least-significant character
            result[65 - shift] = char(z & FOUR_BIT_MASK);
            z = z >> 4;

            // populate the most-significant character
            result[64 - shift] = char(z & FOUR_BIT_MASK);
            z = z >> 4;
        }

        return result;
    }

    function char(
        uint256 input
    )
    private
    pure
    returns (byte)
    {
        // return ASCII digit (0-9)
        if (input < 10) {
            return byte(uint8(input + ASCII_ZERO));
        }

        // return ASCII letter (a-f)
        return byte(uint8(input + ASCII_RELATIVE_ZERO));
    }
}

// Dependency file: contracts/external/LibEIP712.sol

/*
    Copyright 2019 ZeroEx Intl.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

// pragma solidity ^0.5.9;


library LibEIP712 {

    // Hash of the EIP712 Domain Separator Schema
    // keccak256(abi.encodePacked(
    //     "EIP712Domain(",
    //     "string name,",
    //     "string version,",
    //     "uint256 chainId,",
    //     "address verifyingContract",
    //     ")"
    // ))
    bytes32 constant internal _EIP712_DOMAIN_SEPARATOR_SCHEMA_HASH = 0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f;

    /// @dev Calculates a EIP712 domain separator.
    /// @param name The EIP712 domain name.
    /// @param version The EIP712 domain version.
    /// @param verifyingContract The EIP712 verifying contract.
    /// @return EIP712 domain separator.
    function hashEIP712Domain(
        string memory name,
        string memory version,
        uint256 chainId,
        address verifyingContract
    )
    internal
    pure
    returns (bytes32 result)
    {
        bytes32 schemaHash = _EIP712_DOMAIN_SEPARATOR_SCHEMA_HASH;

        // Assembly for more efficient computing:
        // keccak256(abi.encodePacked(
        //     _EIP712_DOMAIN_SEPARATOR_SCHEMA_HASH,
        //     keccak256(bytes(name)),
        //     keccak256(bytes(version)),
        //     chainId,
        //     uint256(verifyingContract)
        // ))

        assembly {
        // Calculate hashes of dynamic data
            let nameHash := keccak256(add(name, 32), mload(name))
            let versionHash := keccak256(add(version, 32), mload(version))

        // Load free memory pointer
            let memPtr := mload(64)

        // Store params in memory
            mstore(memPtr, schemaHash)
            mstore(add(memPtr, 32), nameHash)
            mstore(add(memPtr, 64), versionHash)
            mstore(add(memPtr, 96), chainId)
            mstore(add(memPtr, 128), verifyingContract)

        // Compute hash
            result := keccak256(memPtr, 160)
        }
        return result;
    }

    /// @dev Calculates EIP712 encoding for a hash struct with a given domain hash.
    /// @param eip712DomainHash Hash of the domain domain separator data, computed
    ///                         with getDomainHash().
    /// @param hashStruct The EIP712 hash struct.
    /// @return EIP712 hash applied to the given EIP712 Domain.
    function hashEIP712Message(bytes32 eip712DomainHash, bytes32 hashStruct)
    internal
    pure
    returns (bytes32 result)
    {
        // Assembly for more efficient computing:
        // keccak256(abi.encodePacked(
        //     EIP191_HEADER,
        //     EIP712_DOMAIN_HASH,
        //     hashStruct
        // ));

        assembly {
        // Load free memory pointer
            let memPtr := mload(64)

            mstore(memPtr, 0x1901000000000000000000000000000000000000000000000000000000000000)  // EIP191 header
            mstore(add(memPtr, 2), eip712DomainHash)                                            // EIP712 domain hash
            mstore(add(memPtr, 34), hashStruct)                                                 // Hash of struct

        // Compute hash
            result := keccak256(memPtr, 66)
        }
        return result;
    }
}

// Dependency file: contracts/external/Decimal.sol

/*
    Copyright 2019 dYdX Trading Inc.
    Copyright 2020 Zero Set Dollar Devs

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

// pragma solidity ^0.5.7;
pragma experimental ABIEncoderV2;

// import { SafeMath } from "@openzeppelin/contracts/math/SafeMath.sol";

/**
 * @title Decimal
 * @author dYdX
 *
 * Library that defines a fixed-point number with 18 decimal places.
 */
library Decimal {
    using SafeMath for uint256;

    // ============ Constants ============

    uint256 constant BASE = 10**18;

    // ============ Structs ============


    struct D256 {
        uint256 value;
    }

    // ============ Static Functions ============

    function zero()
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: 0 });
    }

    function one()
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: BASE });
    }

    function from(
        uint256 a
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: a.mul(BASE) });
    }

    function ratio(
        uint256 a,
        uint256 b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: getPartial(a, BASE, b) });
    }

    // ============ Self Functions ============

    function add(
        D256 memory self,
        uint256 b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: self.value.add(b.mul(BASE)) });
    }

    function sub(
        D256 memory self,
        uint256 b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: self.value.sub(b.mul(BASE)) });
    }

    function sub(
        D256 memory self,
        uint256 b,
        string memory reason
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: self.value.sub(b.mul(BASE), reason) });
    }

    function mul(
        D256 memory self,
        uint256 b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: self.value.mul(b) });
    }

    function div(
        D256 memory self,
        uint256 b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: self.value.div(b) });
    }

    function pow(
        D256 memory self,
        uint256 b
    )
    internal
    pure
    returns (D256 memory)
    {
        if (b == 0) {
            return from(1);
        }

        D256 memory temp = D256({ value: self.value });
        for (uint256 i = 1; i < b; i++) {
            temp = mul(temp, self);
        }

        return temp;
    }

    function add(
        D256 memory self,
        D256 memory b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: self.value.add(b.value) });
    }

    function sub(
        D256 memory self,
        D256 memory b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: self.value.sub(b.value) });
    }

    function sub(
        D256 memory self,
        D256 memory b,
        string memory reason
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: self.value.sub(b.value, reason) });
    }

    function mul(
        D256 memory self,
        D256 memory b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: getPartial(self.value, b.value, BASE) });
    }

    function div(
        D256 memory self,
        D256 memory b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: getPartial(self.value, BASE, b.value) });
    }

    function equals(D256 memory self, D256 memory b) internal pure returns (bool) {
        return self.value == b.value;
    }

    function greaterThan(D256 memory self, D256 memory b) internal pure returns (bool) {
        return compareTo(self, b) == 2;
    }

    function lessThan(D256 memory self, D256 memory b) internal pure returns (bool) {
        return compareTo(self, b) == 0;
    }

    function greaterThanOrEqualTo(D256 memory self, D256 memory b) internal pure returns (bool) {
        return compareTo(self, b) > 0;
    }

    function lessThanOrEqualTo(D256 memory self, D256 memory b) internal pure returns (bool) {
        return compareTo(self, b) < 2;
    }

    function isZero(D256 memory self) internal pure returns (bool) {
        return self.value == 0;
    }

    function asUint256(D256 memory self) internal pure returns (uint256) {
        return self.value.div(BASE);
    }

    // ============ Core Methods ============

    function getPartial(
        uint256 target,
        uint256 numerator,
        uint256 denominator
    )
    private
    pure
    returns (uint256)
    {
        return target.mul(numerator).div(denominator);
    }

    function compareTo(
        D256 memory a,
        D256 memory b
    )
    private
    pure
    returns (uint256)
    {
        if (a.value == b.value) {
            return 1;
        }
        return a.value > b.value ? 2 : 0;
    }
}


// Dependency file: contracts/Constants.sol

/*
    Copyright 2020 Zero Set Dollar Devs

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

// pragma solidity ^0.5.17;


// import "contracts/external/Decimal.sol";

library Constants {
   /* Chain */
    uint256 private constant CHAIN_ID = 1; // Mainnet

    /* Bootstrapping */
    uint256 private constant BOOTSTRAPPING_PERIOD = 126; // 126 epochs
    uint256 private constant BOOTSTRAPPING_PRICE = 132e16; // 1.32 USDC

    /* Oracle */
    address private constant USDC = address(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48);
    uint256 private constant ORACLE_RESERVE_MINIMUM = 1e10; // 10,000 USDC

    /* Bonding */
    uint256 private constant INITIAL_STAKE_MULTIPLE = 1e6; // 100 ZSD -> 100M ZSDS

    /* Epoch */
    struct EpochStrategy {
        uint256 offset;
        uint256 start;
        uint256 period;
    }

    uint256 private constant EPOCH_OFFSET = 0;
    uint256 private constant EPOCH_START = 1609005600;
    uint256 private constant EPOCH_PERIOD = 14400;

    /* Governance */
    uint256 private constant GOVERNANCE_PERIOD = 18;
    uint256 private constant GOVERNANCE_QUORUM = 33e16; // 33%
    uint256 private constant GOVERNANCE_SUPER_MAJORITY = 66e16; // 66%
    uint256 private constant GOVERNANCE_EMERGENCY_DELAY = 6; // 6 epochs

    /* DAO */
    uint256 private constant ADVANCE_INCENTIVE = 75e18; // 75 ZSD
    uint256 private constant DAO_EXIT_LOCKUP_EPOCHS = 24; // 24 epochs fluid

    /* Pool */
    uint256 private constant POOL_EXIT_LOCKUP_EPOCHS = 9; // 9 epochs fluid

    /* Market */
    uint256 private constant COUPON_EXPIRATION = 180;
    uint256 private constant DEBT_RATIO_CAP = 35e16; // 35%
    uint256 private constant INITIAL_COUPON_REDEMPTION_PENALTY = 50e16; // 50%
    uint256 private constant COUPON_REDEMPTION_PENALTY_DECAY = 3600; // 1 hour

    /* Regulator */
    uint256 private constant SUPPLY_CHANGE_DIVISOR = 9e18; // 9%
    uint256 private constant SUPPLY_CHANGE_LIMIT = 6e16; // 6%
    uint256 private constant ORACLE_POOL_RATIO = 30; // 30%

    /**
     * Getters
     */
    function getUsdcAddress() internal pure returns (address) {
        return USDC;
    }

    function getOracleReserveMinimum() internal pure returns (uint256) {
        return ORACLE_RESERVE_MINIMUM;
    }

    function getEpochStrategy() internal pure returns (EpochStrategy memory) {
        return EpochStrategy({
            offset: EPOCH_OFFSET,
            start: EPOCH_START,
            period: EPOCH_PERIOD
        });
    }

    function getInitialStakeMultiple() internal pure returns (uint256) {
        return INITIAL_STAKE_MULTIPLE;
    }

    function getBootstrappingPeriod() internal pure returns (uint256) {
        return BOOTSTRAPPING_PERIOD;
    }

    function getBootstrappingPrice() internal pure returns (Decimal.D256 memory) {
        return Decimal.D256({value: BOOTSTRAPPING_PRICE});
    }

    function getGovernancePeriod() internal pure returns (uint256) {
        return GOVERNANCE_PERIOD;
    }

    function getGovernanceQuorum() internal pure returns (Decimal.D256 memory) {
        return Decimal.D256({value: GOVERNANCE_QUORUM});
    }

    function getGovernanceSuperMajority() internal pure returns (Decimal.D256 memory) {
        return Decimal.D256({value: GOVERNANCE_SUPER_MAJORITY});
    }

    function getGovernanceEmergencyDelay() internal pure returns (uint256) {
        return GOVERNANCE_EMERGENCY_DELAY;
    }

    function getAdvanceIncentive() internal pure returns (uint256) {
        return ADVANCE_INCENTIVE;
    }

    function getDAOExitLockupEpochs() internal pure returns (uint256) {
        return DAO_EXIT_LOCKUP_EPOCHS;
    }

    function getPoolExitLockupEpochs() internal pure returns (uint256) {
        return POOL_EXIT_LOCKUP_EPOCHS;
    }

    function getCouponExpiration() internal pure returns (uint256) {
        return COUPON_EXPIRATION;
    }

    function getDebtRatioCap() internal pure returns (Decimal.D256 memory) {
        return Decimal.D256({value: DEBT_RATIO_CAP});
    }
    
    function getInitialCouponRedemptionPenalty() internal pure returns (Decimal.D256 memory) {
        return Decimal.D256({value: INITIAL_COUPON_REDEMPTION_PENALTY});
    }

    function getCouponRedemptionPenaltyDecay() internal pure returns (uint256) {
        return COUPON_REDEMPTION_PENALTY_DECAY;
    }

    function getSupplyChangeLimit() internal pure returns (Decimal.D256 memory) {
        return Decimal.D256({value: SUPPLY_CHANGE_LIMIT});
    }

    function getSupplyChangeDivisor() internal pure returns (Decimal.D256 memory) {
        return Decimal.D256({value: SUPPLY_CHANGE_DIVISOR});
    }

    function getOraclePoolRatio() internal pure returns (uint256) {
        return ORACLE_POOL_RATIO;
    }

    function getChainId() internal pure returns (uint256) {
        return CHAIN_ID;
    }
}


// Dependency file: contracts/token/Permittable.sol

/*
    Copyright 2020 Zero Set Dollar Devs

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

// pragma solidity ^0.5.17;

// import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
// import "@openzeppelin/contracts/token/ERC20/ERC20Detailed.sol";
// import "contracts/external/Require.sol";
// import "contracts/external/LibEIP712.sol";
// import "contracts/Constants.sol";

contract Permittable is ERC20Detailed, ERC20 {
    bytes32 constant FILE = "Permittable";

    // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
    bytes32 public constant EIP712_PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;
    string private constant EIP712_VERSION = "1";

    bytes32 public EIP712_DOMAIN_SEPARATOR;

    mapping(address => uint256) nonces;

    constructor() public {
        EIP712_DOMAIN_SEPARATOR = LibEIP712.hashEIP712Domain(name(), EIP712_VERSION, Constants.getChainId(), address(this));
    }

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external {
        bytes32 digest = LibEIP712.hashEIP712Message(
            EIP712_DOMAIN_SEPARATOR,
            keccak256(abi.encode(
                EIP712_PERMIT_TYPEHASH,
                owner,
                spender,
                value,
                nonces[owner]++,
                deadline
            ))
        );

        address recovered = ecrecover(digest, v, r, s);
        Require.that(
            recovered == owner,
            FILE,
            "Invalid signature"
        );

        Require.that(
            recovered != address(0),
            FILE,
            "Zero address"
        );

        Require.that(
            now <= deadline,
            FILE,
            "Expired"
        );

        _approve(owner, spender, value);
    }
}

// Dependency file: contracts/token/IDollar.sol

/*
    Copyright 2020 Zero Set Dollar Devs

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

// pragma solidity ^0.5.17;


// import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

contract IDollar is IERC20 {
    function burn(uint256 amount) public;
    function burnFrom(address account, uint256 amount) public;
    function mint(address account, uint256 amount) public returns (bool);
}


// Root file: contracts/token/Dollar.sol

/*
    Copyright 2020 Zero Set Dollar Devs

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity ^0.5.17;


// import "@openzeppelin/contracts/token/ERC20/ERC20Burnable.sol";
// import "@openzeppelin/contracts/token/ERC20/ERC20Detailed.sol";
// import "@openzeppelin/contracts/access/roles/MinterRole.sol";
// import "contracts/token/Permittable.sol";
// import "contracts/token/IDollar.sol";


contract Dollar is IDollar, MinterRole, ERC20Detailed, Permittable, ERC20Burnable  {

    constructor()
    ERC20Detailed("Zero Set Dollar", "ZSD", 18)
    Permittable()
    public
    { }

    function mint(address account, uint256 amount) public onlyMinter returns (bool) {
        _mint(account, amount);
        return true;
    }

    function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) {
        _transfer(sender, recipient, amount);
        if (allowance(sender, _msgSender()) != uint256(-1)) {
            _approve(
                sender,
                _msgSender(),
                allowance(sender, _msgSender()).sub(amount, "Dollar: transfer amount exceeds allowance"));
        }
        return true;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"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":true,"internalType":"address","name":"account","type":"address"}],"name":"MinterAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"MinterRemoved","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"},{"constant":true,"inputs":[],"name":"EIP712_DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"EIP712_PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addMinter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"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":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceMinter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040518060400160405280600f81526020016e2d32b9379029b2ba102237b63630b960891b815250604051806040016040528060038152602001621694d160ea1b81525060126200007b6200006c6200011660201b60201c565b6001600160e01b036200011b16565b82516200009090600190602086019062000310565b508151620000a690600290602085019062000310565b506003805460ff191660ff92909216919091179055506200010d9050620000cc6200016d565b604051806040016040528060018152602001603160f81b815250620000fb6200020660201b620016341760201c565b306200020b60201b620016391760201c565b60075562000466565b335b90565b620001368160006200026260201b62000d7e1790919060201c565b6040516001600160a01b038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b60018054604080516020601f60026000196101008789161502019095169490940493840181900481028201810190925282815260609390929091830182828015620001fc5780601f10620001d057610100808354040283529160200191620001fc565b820191906000526020600020905b815481529060010190602001808311620001de57829003601f168201915b5050505050905090565b600190565b8351602094850120835193850193909320604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f815295860194909452928401929092526060830152608082015260a0902090565b6200027782826001600160e01b03620002c516565b15620002a05760405162461bcd60e51b8152600401620002979062000433565b60405180910390fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b60006001600160a01b038216620002f05760405162461bcd60e51b815260040162000297906200044b565b506001600160a01b03166000908152602091909152604090205460ff1690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200035357805160ff191683800117855562000383565b8280016001018555821562000383579182015b828111156200038357825182559160200191906001019062000366565b506200039192915062000395565b5090565b6200011891905b808211156200039157600081556001016200039c565b6000620003c1601f836200045d565b7f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500815260200192915050565b6000620003fc6022836200045d565b7f526f6c65733a206163636f756e7420697320746865207a65726f206164647265815261737360f01b602082015260400192915050565b602080825281016200044581620003b2565b92915050565b602080825281016200044581620003ed565b90815260200190565b61178d80620004766000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c806395d89b41116100ad578063aa271e1a11610071578063aa271e1a14610256578063d505accf14610269578063dab400f31461027c578063dd62ed3e14610284578063e879c19f146102975761012c565b806395d89b411461020d578063983b2d56146102155780639865027514610228578063a457c2d714610230578063a9059cbb146102435761012c565b806339509351116100f457806339509351146101ac57806340c10f19146101bf57806342966c68146101d257806370a08231146101e757806379cc6790146101fa5761012c565b806306fdde0314610131578063095ea7b31461014f57806318160ddd1461016f57806323b872dd14610184578063313ce56714610197575b600080fd5b61013961029f565b60405161014691906114c6565b60405180910390f35b61016261015d366004610ffc565b610334565b604051610146919061141b565b610177610352565b6040516101469190611429565b610162610192366004610f13565b610358565b61019f6103ca565b6040516101469190611587565b6101626101ba366004610ffc565b6103d3565b6101626101cd366004610ffc565b610427565b6101e56101e036600461102c565b610463565b005b6101776101f5366004610eb3565b610477565b6101e5610208366004610ffc565b610496565b6101396104a4565b6101e5610223366004610eb3565b610502565b6101e5610532565b61016261023e366004610ffc565b610544565b610162610251366004610ffc565b6105b2565b610162610264366004610eb3565b6105c6565b6101e5610277366004610f60565b6105d8565b61017761075f565b610177610292366004610ed9565b610765565b610177610790565b60018054604080516020601f6002600019610100878916150201909516949094049384018190048102820181019092528281526060939092909183018282801561032a5780601f106102ff5761010080835404028352916020019161032a565b820191906000526020600020905b81548152906001019060200180831161030d57829003601f168201915b5050505050905090565b60006103486103416107b4565b84846107b8565b5060015b92915050565b60065490565b600061036584848461086c565b600019610374856102926107b4565b146103c0576103c0846103856107b4565b6103bb856040518060600160405280602981526020016116fd602991396103ae8a6102926107b4565b919063ffffffff61098216565b6107b8565b5060019392505050565b60035460ff1690565b60006103486103e06107b4565b846103bb85600560006103f16107b4565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6109ae16565b60006104346102646107b4565b6104595760405162461bcd60e51b815260040161045090611517565b60405180910390fd5b61034883836109da565b61047461046e6107b4565b82610a9a565b50565b6001600160a01b0381166000908152600460205260409020545b919050565b6104a08282610b70565b5050565b60028054604080516020601f600019610100600187161502019094168590049384018190048102820181019092528281526060939092909183018282801561032a5780601f106102ff5761010080835404028352916020019161032a565b61050d6102646107b4565b6105295760405162461bcd60e51b815260040161045090611517565b61047481610beb565b61054261053d6107b4565b610c33565b565b60006103486105516107b4565b846103bb85604051806060016040528060258152602001611726602591396005600061057b6107b4565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61098216565b60006103486105bf6107b4565b848461086c565b600061034c818363ffffffff610c7b16565b6007546001600160a01b03881660009081526008602090815260408083208054600181019091559051929361065a93909261063f927f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9928e928e928e9290918e9101611437565b60405160208183030381529060405280519060200120610cc3565b90506000600182868686604051600081526020016040526040516106819493929190611491565b6020604051602081039080840390855afa1580156106a3573d6000803e3d6000fd5b5050506020604051035190506106f0896001600160a01b0316826001600160a01b0316146a5065726d69747461626c6560a81b70496e76616c6964207369676e617475726560781b610ce2565b6107236001600160a01b03821615156a5065726d69747461626c6560a81b6b5a65726f206164647265737360a01b610ce2565b610749864211156a5065726d69747461626c6560a81b66115e1c1a5c995960ca1b610ce2565b6107548989896107b8565b505050505050505050565b60075481565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b3390565b6001600160a01b0383166107de5760405162461bcd60e51b815260040161045090611567565b6001600160a01b0382166108045760405162461bcd60e51b8152600401610450906114f7565b6001600160a01b0380841660008181526005602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061085f908590611429565b60405180910390a3505050565b6001600160a01b0383166108925760405162461bcd60e51b815260040161045090611557565b6001600160a01b0382166108b85760405162461bcd60e51b8152600401610450906114d7565b6108fb816040518060600160405280602681526020016116b3602691396001600160a01b038616600090815260046020526040902054919063ffffffff61098216565b6001600160a01b038085166000908152600460205260408082209390935590841681522054610930908263ffffffff6109ae16565b6001600160a01b0380841660008181526004602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061085f908590611429565b600081848411156109a65760405162461bcd60e51b815260040161045091906114c6565b505050900390565b6000828201838110156109d35760405162461bcd60e51b815260040161045090611507565b9392505050565b6001600160a01b038216610a005760405162461bcd60e51b815260040161045090611577565b600654610a13908263ffffffff6109ae16565b6006556001600160a01b038216600090815260046020526040902054610a3f908263ffffffff6109ae16565b6001600160a01b0383166000818152600460205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610a8e908590611429565b60405180910390a35050565b6001600160a01b038216610ac05760405162461bcd60e51b815260040161045090611547565b610b0381604051806060016040528060228152602001611691602291396001600160a01b038516600090815260046020526040902054919063ffffffff61098216565b6001600160a01b038316600090815260046020526040902055600654610b2f908263ffffffff610d3c16565b6006556040516000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610a8e908590611429565b610b7a8282610a9a565b6104a082610b866107b4565b6103bb846040518060600160405280602481526020016116d9602491396001600160a01b038816600090815260056020526040812090610bc46107b4565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61098216565b610bfc60008263ffffffff610d7e16565b6040516001600160a01b038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b610c4460008263ffffffff610dca16565b6040516001600160a01b038216907fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669290600090a250565b60006001600160a01b038216610ca35760405162461bcd60e51b815260040161045090611537565b506001600160a01b03166000908152602091909152604090205460ff1690565b60405161190160f01b8152600281019290925260228201526042902090565b82610d3757610cf082610e12565b6101d160f51b610cff83610e12565b604051602001610d11939291906113ea565b60408051601f198184030181529082905262461bcd60e51b8252610450916004016114c6565b505050565b60006109d383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610982565b610d888282610c7b565b15610da55760405162461bcd60e51b8152600401610450906114e7565b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b610dd48282610c7b565b610df05760405162461bcd60e51b815260040161045090611527565b6001600160a01b0316600090815260209190915260409020805460ff19169055565b60608082604051602001610e2691906113d5565b60408051601f19818403018152919052905060205b8015610e7b57815160001990910190829082908110610e5657fe5b01602001516001600160f81b03191615610e765760010181529050610491565b610e3b565b505060408051600081526020810190915292915050565b803561034c8161160e565b803561034c81611622565b803561034c8161162b565b600060208284031215610ec557600080fd5b6000610ed18484610e92565b949350505050565b60008060408385031215610eec57600080fd5b6000610ef88585610e92565b9250506020610f0985828601610e92565b9150509250929050565b600080600060608486031215610f2857600080fd5b6000610f348686610e92565b9350506020610f4586828701610e92565b9250506040610f5686828701610e9d565b9150509250925092565b600080600080600080600060e0888a031215610f7b57600080fd5b6000610f878a8a610e92565b9750506020610f988a828b01610e92565b9650506040610fa98a828b01610e9d565b9550506060610fba8a828b01610e9d565b9450506080610fcb8a828b01610ea8565b93505060a0610fdc8a828b01610e9d565b92505060c0610fed8a828b01610e9d565b91505092959891949750929550565b6000806040838503121561100f57600080fd5b600061101b8585610e92565b9250506020610f0985828601610e9d565b60006020828403121561103e57600080fd5b6000610ed18484610e9d565b611053816115a2565b82525050565b611053816115ad565b61105361106e826115b2565b6115bf565b611053816115bf565b61105361106e826115bf565b600061109382611595565b61109d8185610491565b93506110ad8185602086016115d4565b9290920192915050565b60006110c282611595565b6110cc8185611599565b93506110dc8185602086016115d4565b6110e581611604565b9093019392505050565b60006110fc602383611599565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647281526265737360e81b602082015260400192915050565b6000611141601f83611599565b7f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500815260200192915050565b600061117a602283611599565b7f45524332303a20617070726f766520746f20746865207a65726f206164647265815261737360f01b602082015260400192915050565b60006111be601b83611599565b7f536166654d6174683a206164646974696f6e206f766572666c6f770000000000815260200192915050565b60006111f7603083611599565b7f4d696e746572526f6c653a2063616c6c657220646f6573206e6f74206861766581526f20746865204d696e74657220726f6c6560801b602082015260400192915050565b6000611249602183611599565b7f526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c8152606560f81b602082015260400192915050565b600061128c602283611599565b7f526f6c65733a206163636f756e7420697320746865207a65726f206164647265815261737360f01b602082015260400192915050565b60006112d0602183611599565b7f45524332303a206275726e2066726f6d20746865207a65726f206164647265738152607360f81b602082015260400192915050565b6000611313602583611599565b7f45524332303a207472616e736665722066726f6d20746865207a65726f206164815264647265737360d81b602082015260400192915050565b600061135a602483611599565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164648152637265737360e01b602082015260400192915050565b60006113a0601f83611599565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300815260200192915050565b611053816115ce565b60006113e1828461107c565b50602001919050565b60006113f68286611088565b91506114028285611062565b6002820191506114128284611088565b95945050505050565b6020810161034c8284611059565b6020810161034c8284611073565b60c081016114458289611073565b611452602083018861104a565b61145f604083018761104a565b61146c6060830186611073565b6114796080830185611073565b61148660a0830184611073565b979650505050505050565b6080810161149f8287611073565b6114ac60208301866113cc565b6114b96040830185611073565b6114126060830184611073565b602080825281016109d381846110b7565b6020808252810161034c816110ef565b6020808252810161034c81611134565b6020808252810161034c8161116d565b6020808252810161034c816111b1565b6020808252810161034c816111ea565b6020808252810161034c8161123c565b6020808252810161034c8161127f565b6020808252810161034c816112c3565b6020808252810161034c81611306565b6020808252810161034c8161134d565b6020808252810161034c81611393565b6020810161034c82846113cc565b5190565b90815260200190565b600061034c826115c2565b151590565b6001600160f01b03191690565b90565b6001600160a01b031690565b60ff1690565b60005b838110156115ef5781810151838201526020016115d7565b838111156115fe576000848401525b50505050565b601f01601f191690565b611617816115a2565b811461047457600080fd5b611617816115bf565b611617816115ce565b600190565b8351602094850120835193850193909320604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f815295860194909452928401929092526060830152608082015260a090209056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e6365446f6c6c61723a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa365627a7a7231582023deea75b96ee2cc2b656a46c252e6cf370393b82a1ae660b1c36c47ee8173b66c6578706572696d656e74616cf564736f6c63430005110040

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061012c5760003560e01c806395d89b41116100ad578063aa271e1a11610071578063aa271e1a14610256578063d505accf14610269578063dab400f31461027c578063dd62ed3e14610284578063e879c19f146102975761012c565b806395d89b411461020d578063983b2d56146102155780639865027514610228578063a457c2d714610230578063a9059cbb146102435761012c565b806339509351116100f457806339509351146101ac57806340c10f19146101bf57806342966c68146101d257806370a08231146101e757806379cc6790146101fa5761012c565b806306fdde0314610131578063095ea7b31461014f57806318160ddd1461016f57806323b872dd14610184578063313ce56714610197575b600080fd5b61013961029f565b60405161014691906114c6565b60405180910390f35b61016261015d366004610ffc565b610334565b604051610146919061141b565b610177610352565b6040516101469190611429565b610162610192366004610f13565b610358565b61019f6103ca565b6040516101469190611587565b6101626101ba366004610ffc565b6103d3565b6101626101cd366004610ffc565b610427565b6101e56101e036600461102c565b610463565b005b6101776101f5366004610eb3565b610477565b6101e5610208366004610ffc565b610496565b6101396104a4565b6101e5610223366004610eb3565b610502565b6101e5610532565b61016261023e366004610ffc565b610544565b610162610251366004610ffc565b6105b2565b610162610264366004610eb3565b6105c6565b6101e5610277366004610f60565b6105d8565b61017761075f565b610177610292366004610ed9565b610765565b610177610790565b60018054604080516020601f6002600019610100878916150201909516949094049384018190048102820181019092528281526060939092909183018282801561032a5780601f106102ff5761010080835404028352916020019161032a565b820191906000526020600020905b81548152906001019060200180831161030d57829003601f168201915b5050505050905090565b60006103486103416107b4565b84846107b8565b5060015b92915050565b60065490565b600061036584848461086c565b600019610374856102926107b4565b146103c0576103c0846103856107b4565b6103bb856040518060600160405280602981526020016116fd602991396103ae8a6102926107b4565b919063ffffffff61098216565b6107b8565b5060019392505050565b60035460ff1690565b60006103486103e06107b4565b846103bb85600560006103f16107b4565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6109ae16565b60006104346102646107b4565b6104595760405162461bcd60e51b815260040161045090611517565b60405180910390fd5b61034883836109da565b61047461046e6107b4565b82610a9a565b50565b6001600160a01b0381166000908152600460205260409020545b919050565b6104a08282610b70565b5050565b60028054604080516020601f600019610100600187161502019094168590049384018190048102820181019092528281526060939092909183018282801561032a5780601f106102ff5761010080835404028352916020019161032a565b61050d6102646107b4565b6105295760405162461bcd60e51b815260040161045090611517565b61047481610beb565b61054261053d6107b4565b610c33565b565b60006103486105516107b4565b846103bb85604051806060016040528060258152602001611726602591396005600061057b6107b4565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61098216565b60006103486105bf6107b4565b848461086c565b600061034c818363ffffffff610c7b16565b6007546001600160a01b03881660009081526008602090815260408083208054600181019091559051929361065a93909261063f927f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9928e928e928e9290918e9101611437565b60405160208183030381529060405280519060200120610cc3565b90506000600182868686604051600081526020016040526040516106819493929190611491565b6020604051602081039080840390855afa1580156106a3573d6000803e3d6000fd5b5050506020604051035190506106f0896001600160a01b0316826001600160a01b0316146a5065726d69747461626c6560a81b70496e76616c6964207369676e617475726560781b610ce2565b6107236001600160a01b03821615156a5065726d69747461626c6560a81b6b5a65726f206164647265737360a01b610ce2565b610749864211156a5065726d69747461626c6560a81b66115e1c1a5c995960ca1b610ce2565b6107548989896107b8565b505050505050505050565b60075481565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b3390565b6001600160a01b0383166107de5760405162461bcd60e51b815260040161045090611567565b6001600160a01b0382166108045760405162461bcd60e51b8152600401610450906114f7565b6001600160a01b0380841660008181526005602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061085f908590611429565b60405180910390a3505050565b6001600160a01b0383166108925760405162461bcd60e51b815260040161045090611557565b6001600160a01b0382166108b85760405162461bcd60e51b8152600401610450906114d7565b6108fb816040518060600160405280602681526020016116b3602691396001600160a01b038616600090815260046020526040902054919063ffffffff61098216565b6001600160a01b038085166000908152600460205260408082209390935590841681522054610930908263ffffffff6109ae16565b6001600160a01b0380841660008181526004602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061085f908590611429565b600081848411156109a65760405162461bcd60e51b815260040161045091906114c6565b505050900390565b6000828201838110156109d35760405162461bcd60e51b815260040161045090611507565b9392505050565b6001600160a01b038216610a005760405162461bcd60e51b815260040161045090611577565b600654610a13908263ffffffff6109ae16565b6006556001600160a01b038216600090815260046020526040902054610a3f908263ffffffff6109ae16565b6001600160a01b0383166000818152600460205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610a8e908590611429565b60405180910390a35050565b6001600160a01b038216610ac05760405162461bcd60e51b815260040161045090611547565b610b0381604051806060016040528060228152602001611691602291396001600160a01b038516600090815260046020526040902054919063ffffffff61098216565b6001600160a01b038316600090815260046020526040902055600654610b2f908263ffffffff610d3c16565b6006556040516000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610a8e908590611429565b610b7a8282610a9a565b6104a082610b866107b4565b6103bb846040518060600160405280602481526020016116d9602491396001600160a01b038816600090815260056020526040812090610bc46107b4565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61098216565b610bfc60008263ffffffff610d7e16565b6040516001600160a01b038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b610c4460008263ffffffff610dca16565b6040516001600160a01b038216907fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669290600090a250565b60006001600160a01b038216610ca35760405162461bcd60e51b815260040161045090611537565b506001600160a01b03166000908152602091909152604090205460ff1690565b60405161190160f01b8152600281019290925260228201526042902090565b82610d3757610cf082610e12565b6101d160f51b610cff83610e12565b604051602001610d11939291906113ea565b60408051601f198184030181529082905262461bcd60e51b8252610450916004016114c6565b505050565b60006109d383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610982565b610d888282610c7b565b15610da55760405162461bcd60e51b8152600401610450906114e7565b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b610dd48282610c7b565b610df05760405162461bcd60e51b815260040161045090611527565b6001600160a01b0316600090815260209190915260409020805460ff19169055565b60608082604051602001610e2691906113d5565b60408051601f19818403018152919052905060205b8015610e7b57815160001990910190829082908110610e5657fe5b01602001516001600160f81b03191615610e765760010181529050610491565b610e3b565b505060408051600081526020810190915292915050565b803561034c8161160e565b803561034c81611622565b803561034c8161162b565b600060208284031215610ec557600080fd5b6000610ed18484610e92565b949350505050565b60008060408385031215610eec57600080fd5b6000610ef88585610e92565b9250506020610f0985828601610e92565b9150509250929050565b600080600060608486031215610f2857600080fd5b6000610f348686610e92565b9350506020610f4586828701610e92565b9250506040610f5686828701610e9d565b9150509250925092565b600080600080600080600060e0888a031215610f7b57600080fd5b6000610f878a8a610e92565b9750506020610f988a828b01610e92565b9650506040610fa98a828b01610e9d565b9550506060610fba8a828b01610e9d565b9450506080610fcb8a828b01610ea8565b93505060a0610fdc8a828b01610e9d565b92505060c0610fed8a828b01610e9d565b91505092959891949750929550565b6000806040838503121561100f57600080fd5b600061101b8585610e92565b9250506020610f0985828601610e9d565b60006020828403121561103e57600080fd5b6000610ed18484610e9d565b611053816115a2565b82525050565b611053816115ad565b61105361106e826115b2565b6115bf565b611053816115bf565b61105361106e826115bf565b600061109382611595565b61109d8185610491565b93506110ad8185602086016115d4565b9290920192915050565b60006110c282611595565b6110cc8185611599565b93506110dc8185602086016115d4565b6110e581611604565b9093019392505050565b60006110fc602383611599565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647281526265737360e81b602082015260400192915050565b6000611141601f83611599565b7f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500815260200192915050565b600061117a602283611599565b7f45524332303a20617070726f766520746f20746865207a65726f206164647265815261737360f01b602082015260400192915050565b60006111be601b83611599565b7f536166654d6174683a206164646974696f6e206f766572666c6f770000000000815260200192915050565b60006111f7603083611599565b7f4d696e746572526f6c653a2063616c6c657220646f6573206e6f74206861766581526f20746865204d696e74657220726f6c6560801b602082015260400192915050565b6000611249602183611599565b7f526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c8152606560f81b602082015260400192915050565b600061128c602283611599565b7f526f6c65733a206163636f756e7420697320746865207a65726f206164647265815261737360f01b602082015260400192915050565b60006112d0602183611599565b7f45524332303a206275726e2066726f6d20746865207a65726f206164647265738152607360f81b602082015260400192915050565b6000611313602583611599565b7f45524332303a207472616e736665722066726f6d20746865207a65726f206164815264647265737360d81b602082015260400192915050565b600061135a602483611599565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164648152637265737360e01b602082015260400192915050565b60006113a0601f83611599565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300815260200192915050565b611053816115ce565b60006113e1828461107c565b50602001919050565b60006113f68286611088565b91506114028285611062565b6002820191506114128284611088565b95945050505050565b6020810161034c8284611059565b6020810161034c8284611073565b60c081016114458289611073565b611452602083018861104a565b61145f604083018761104a565b61146c6060830186611073565b6114796080830185611073565b61148660a0830184611073565b979650505050505050565b6080810161149f8287611073565b6114ac60208301866113cc565b6114b96040830185611073565b6114126060830184611073565b602080825281016109d381846110b7565b6020808252810161034c816110ef565b6020808252810161034c81611134565b6020808252810161034c8161116d565b6020808252810161034c816111b1565b6020808252810161034c816111ea565b6020808252810161034c8161123c565b6020808252810161034c8161127f565b6020808252810161034c816112c3565b6020808252810161034c81611306565b6020808252810161034c8161134d565b6020808252810161034c81611393565b6020810161034c82846113cc565b5190565b90815260200190565b600061034c826115c2565b151590565b6001600160f01b03191690565b90565b6001600160a01b031690565b60ff1690565b60005b838110156115ef5781810151838201526020016115d7565b838111156115fe576000848401525b50505050565b601f01601f191690565b611617816115a2565b811461047457600080fd5b611617816115bf565b611617816115ce565b600190565b8351602094850120835193850193909320604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f815295860194909452928401929092526060830152608082015260a090209056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e6365446f6c6c61723a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa365627a7a7231582023deea75b96ee2cc2b656a46c252e6cf370393b82a1ae660b1c36c47ee8173b66c6578706572696d656e74616cf564736f6c63430005110040

Deployed Bytecode Sourcemap

53717:789:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;53717:789:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19751:83;;;:::i;:::-;;;;;;;;;;;;;;;;12368:152;;;;;;;;;:::i;:::-;;;;;;;;11389:91;;;:::i;:::-;;;;;;;;54070:433;;;;;;;;;:::i;20603:83::-;;;:::i;:::-;;;;;;;;13705:210;;;;;;;;;:::i;53919:143::-;;;;;;;;;:::i;18707:83::-;;;;;;;;;:::i;:::-;;11543:110;;;;;;;;;:::i;18852:103::-;;;;;;;;;:::i;19953:87::-;;;:::i;22547:92::-;;;;;;;;;:::i;22647:79::-;;;:::i;14418:261::-;;;;;;;;;:::i;11866:158::-;;;;;;;;;:::i;22430:109::-;;;;;;;;;:::i;50752:984::-;;;;;;;;;:::i;50499:38::-;;;:::i;12087:134::-;;;;;;;;;:::i;50324:115::-;;;:::i;19751:83::-;19821:5;19814:12;;;;;;;;-1:-1:-1;;19814:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19788:13;;19814:12;;19821:5;;19814:12;;19821:5;19814:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19751:83;:::o;12368:152::-;12434:4;12451:39;12460:12;:10;:12::i;:::-;12474:7;12483:6;12451:8;:39::i;:::-;-1:-1:-1;12508:4:0;12368:152;;;;;:::o;11389:91::-;11460:12;;11389:91;:::o;54070:433::-;54159:4;54176:36;54186:6;54194:9;54205:6;54176:9;:36::i;:::-;-1:-1:-1;;54227:31:0;54237:6;54245:12;:10;:12::i;54227:31::-;:46;54223:251;;54290:172;54317:6;54342:12;:10;:12::i;:::-;54373:88;54409:6;54373:88;;;;;;;;;;;;;;;;;:31;54383:6;54391:12;:10;:12::i;54373:31::-;:35;:88;;:35;:88;:::i;:::-;54290:8;:172::i;:::-;-1:-1:-1;54491:4:0;54070:433;;;;;:::o;20603:83::-;20669:9;;;;20603:83;:::o;13705:210::-;13785:4;13802:83;13811:12;:10;:12::i;:::-;13825:7;13834:50;13873:10;13834:11;:25;13846:12;:10;:12::i;:::-;-1:-1:-1;;;;;13834:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;13834:25:0;;;:34;;;;;;;;;;;:50;:38;:50;:::i;53919:143::-;53993:4;22327:22;22336:12;:10;:12::i;22327:22::-;22319:83;;;;-1:-1:-1;;;22319:83:0;;;;;;;;;;;;;;;;;54010:22;54016:7;54025:6;54010:5;:22::i;18707:83::-;18755:27;18761:12;:10;:12::i;:::-;18775:6;18755:5;:27::i;:::-;18707:83;:::o;11543:110::-;-1:-1:-1;;;;;11627:18:0;;11600:7;11627:18;;;:9;:18;;;;;;11543:110;;;;:::o;18852:103::-;18921:26;18931:7;18940:6;18921:9;:26::i;:::-;18852:103;;:::o;19953:87::-;20025:7;20018:14;;;;;;;-1:-1:-1;;20018:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19992:13;;20018:14;;20025:7;;20018:14;;20025:7;20018:14;;;;;;;;;;;;;;;;;;;;;;;;22547:92;22327:22;22336:12;:10;:12::i;22327:22::-;22319:83;;;;-1:-1:-1;;;22319:83:0;;;;;;;;;22612:19;22623:7;22612:10;:19::i;22647:79::-;22691:27;22705:12;:10;:12::i;:::-;22691:13;:27::i;:::-;22647:79::o;14418:261::-;14503:4;14520:129;14529:12;:10;:12::i;:::-;14543:7;14552:96;14591:15;14552:96;;;;;;;;;;;;;;;;;:11;:25;14564:12;:10;:12::i;:::-;-1:-1:-1;;;;;14552:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;14552:25:0;;;:34;;;;;;;;;;;:96;;:38;:96;:::i;11866:158::-;11935:4;11952:42;11962:12;:10;:12::i;:::-;11976:9;11987:6;11952:9;:42::i;22430:109::-;22486:4;22510:21;22486:4;22523:7;22510:21;:12;:21;:::i;50752:984::-;51013:23;;-1:-1:-1;;;;;51205:13:0;;50954:14;51205:13;;;:6;:13;;;;;;;;:15;;;;;;;;51061:201;;50954:14;;50971:303;;51013:23;;51061:201;;50373:66;;51131:5;;51155:7;;51181:5;;51205:15;;51239:8;;51061:201;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;51061:201:0;;;51051:212;;;;;;50971:27;:303::i;:::-;50954:320;;51287:17;51307:26;51317:6;51325:1;51328;51331;51307:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;51307:26:0;;;;;;;;51287:46;;51344:109;51384:5;-1:-1:-1;;;;;51371:18:0;:9;-1:-1:-1;;;;;51371:18:0;;-1:-1:-1;;;;;;51344:12:0;:109::i;:::-;51466;-1:-1:-1;;;;;51493:23:0;;;;-1:-1:-1;;;;;;51466:12:0;:109::i;:::-;51588:96;51622:8;51615:3;:15;;-1:-1:-1;;;;;;51588:12:0;:96::i;:::-;51697:31;51706:5;51713:7;51722:5;51697:8;:31::i;:::-;50752:984;;;;;;;;;:::o;50499:38::-;;;;:::o;12087:134::-;-1:-1:-1;;;;;12186:18:0;;;12159:7;12186:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;12087:134::o;50324:115::-;50373:66;50324:115;:::o;872:98::-;952:10;872:98;:::o;17349:338::-;-1:-1:-1;;;;;17443:19:0;;17435:68;;;;-1:-1:-1;;;17435:68:0;;;;;;;;;-1:-1:-1;;;;;17522:21:0;;17514:68;;;;-1:-1:-1;;;17514:68:0;;;;;;;;;-1:-1:-1;;;;;17595:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;;:36;;;17647:32;;;;;17625:6;;17647:32;;;;;;;;;;17349:338;;;:::o;15169:471::-;-1:-1:-1;;;;;15267:20:0;;15259:70;;;;-1:-1:-1;;;15259:70:0;;;;;;;;;-1:-1:-1;;;;;15348:23:0;;15340:71;;;;-1:-1:-1;;;15340:71:0;;;;;;;;;15444;15466:6;15444:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15444:17:0;;;;;;:9;:17;;;;;;;:71;;:21;:71;:::i;:::-;-1:-1:-1;;;;;15424:17:0;;;;;;;:9;:17;;;;;;:91;;;;15549:20;;;;;;;:32;;15574:6;15549:32;:24;:32;:::i;:::-;-1:-1:-1;;;;;15526:20:0;;;;;;;:9;:20;;;;;;;:55;;;;15597:35;;;;;;;;;;15625:6;;15597:35;;5967:192;6053:7;6089:12;6081:6;;;;6073:29;;;;-1:-1:-1;;;6073:29:0;;;;;;;;;;-1:-1:-1;;;6125:5:0;;;5967:192::o;5038:181::-;5096:7;5128:5;;;5152:6;;;;5144:46;;;;-1:-1:-1;;;5144:46:0;;;;;;;;;5210:1;5038:181;-1:-1:-1;;;5038:181:0:o;15921:308::-;-1:-1:-1;;;;;15997:21:0;;15989:65;;;;-1:-1:-1;;;15989:65:0;;;;;;;;;16082:12;;:24;;16099:6;16082:24;:16;:24;:::i;:::-;16067:12;:39;-1:-1:-1;;;;;16138:18:0;;;;;;:9;:18;;;;;;:30;;16161:6;16138:30;:22;:30;:::i;:::-;-1:-1:-1;;;;;16117:18:0;;;;;;:9;:18;;;;;;:51;;;;16184:37;;16117:18;;;16184:37;;;;16214:6;;16184:37;;;;;;;;;;15921:308;;:::o;16561:348::-;-1:-1:-1;;;;;16637:21:0;;16629:67;;;;-1:-1:-1;;;16629:67:0;;;;;;;;;16730:68;16753:6;16730:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16730:18:0;;;;;;:9;:18;;;;;;;:68;;:22;:68;:::i;:::-;-1:-1:-1;;;;;16709:18:0;;;;;;:9;:18;;;;;:89;16824:12;;:24;;16841:6;16824:24;:16;:24;:::i;:::-;16809:12;:39;16864:37;;16890:1;;-1:-1:-1;;;;;16864:37:0;;;;;;;16894:6;;16864:37;;17873:232;17945:22;17951:7;17960:6;17945:5;:22::i;:::-;17978:119;17987:7;17996:12;:10;:12::i;:::-;18010:86;18049:6;18010:86;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18010:20:0;;;;;;:11;:20;;;;;;18031:12;:10;:12::i;:::-;-1:-1:-1;;;;;18010:34:0;;;;;;;;;;;;-1:-1:-1;18010:34:0;;;:86;;:38;:86;:::i;22734:122::-;22791:21;:8;22804:7;22791:21;:12;:21;:::i;:::-;22828:20;;-1:-1:-1;;;;;22828:20:0;;;;;;;;22734:122;:::o;22864:130::-;22924:24;:8;22940:7;22924:24;:15;:24;:::i;:::-;22964:22;;-1:-1:-1;;;;;22964:22:0;;;;;;;;22864:130;:::o;21572:203::-;21644:4;-1:-1:-1;;;;;21669:21:0;;21661:68;;;;-1:-1:-1;;;21661:68:0;;;;;;;;;-1:-1:-1;;;;;;21747:20:0;:11;:20;;;;;;;;;;;;;;;21572:203::o;36841:894::-;37268:2;37262:9;-1:-1:-1;;;37287:82:0;;37420:1;37408:14;;37401:40;;;;37539:2;37527:15;;37520:35;37690:2;37672:21;;;36841:894::o;24356:437::-;24490:4;24485:301;;24608:24;24627:4;24608:18;:24::i;:::-;-1:-1:-1;;;24691:26:0;24710:6;24691:18;:26::i;:::-;24565:175;;;;;;;;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;24565:175:0;;;;-1:-1:-1;;;24511:263:0;;;;;;;;24485:301;24356:437;;;:::o;5494:136::-;5552:7;5579:43;5583:1;5586;5579:43;;;;;;;;;;;;;;;;;:3;:43::i;21036:178::-;21114:18;21118:4;21124:7;21114:3;:18::i;:::-;21113:19;21105:63;;;;-1:-1:-1;;;21105:63:0;;;;;;;;;-1:-1:-1;;;;;21179:20:0;:11;:20;;;;;;;;;;;:27;;-1:-1:-1;;21179:27:0;21202:4;21179:27;;;21036:178::o;21294:183::-;21374:18;21378:4;21384:7;21374:3;:18::i;:::-;21366:64;;;;-1:-1:-1;;;21366:64:0;;;;;;;;;-1:-1:-1;;;;;21441:20:0;21464:5;21441:20;;;;;;;;;;;:28;;-1:-1:-1;;21441:28:0;;;21294:183::o;29573:985::-;29669:12;29747:19;29786:5;29769:23;;;;;;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;29769:23:0;;;;-1:-1:-1;49:4;29901:587:0;29922:5;;29901:587;;30179:9;;-1:-1:-1;;30078:3:0;;;;30179:6;;30078:3;;30179:9;;;;;;;;;;-1:-1:-1;;;;;;30179:9:0;:14;30175:302;;30235:1;30231:5;30365:22;;30372:6;-1:-1:-1;30448:13:0;;30175:302;29901:587;;;-1:-1:-1;;30538:12:0;;;30548:1;30538:12;;;;;;;;;30531:19;-1:-1:-1;;29573:985:0:o;5:130:-1:-;72:20;;97:33;72:20;97:33;;142:130;209:20;;234:33;209:20;234:33;;416:126;481:20;;506:31;481:20;506:31;;549:241;;653:2;641:9;632:7;628:23;624:32;621:2;;;669:1;666;659:12;621:2;704:1;721:53;766:7;746:9;721:53;;;711:63;615:175;-1:-1;;;;615:175;797:366;;;918:2;906:9;897:7;893:23;889:32;886:2;;;934:1;931;924:12;886:2;969:1;986:53;1031:7;1011:9;986:53;;;976:63;;948:97;1076:2;1094:53;1139:7;1130:6;1119:9;1115:22;1094:53;;;1084:63;;1055:98;880:283;;;;;;1170:491;;;;1308:2;1296:9;1287:7;1283:23;1279:32;1276:2;;;1324:1;1321;1314:12;1276:2;1359:1;1376:53;1421:7;1401:9;1376:53;;;1366:63;;1338:97;1466:2;1484:53;1529:7;1520:6;1509:9;1505:22;1484:53;;;1474:63;;1445:98;1574:2;1592:53;1637:7;1628:6;1617:9;1613:22;1592:53;;;1582:63;;1553:98;1270:391;;;;;;1668:991;;;;;;;;1872:3;1860:9;1851:7;1847:23;1843:33;1840:2;;;1889:1;1886;1879:12;1840:2;1924:1;1941:53;1986:7;1966:9;1941:53;;;1931:63;;1903:97;2031:2;2049:53;2094:7;2085:6;2074:9;2070:22;2049:53;;;2039:63;;2010:98;2139:2;2157:53;2202:7;2193:6;2182:9;2178:22;2157:53;;;2147:63;;2118:98;2247:2;2265:53;2310:7;2301:6;2290:9;2286:22;2265:53;;;2255:63;;2226:98;2355:3;2374:51;2417:7;2408:6;2397:9;2393:22;2374:51;;;2364:61;;2334:97;2462:3;2481:53;2526:7;2517:6;2506:9;2502:22;2481:53;;;2471:63;;2441:99;2571:3;2590:53;2635:7;2626:6;2615:9;2611:22;2590:53;;;2580:63;;2550:99;1834:825;;;;;;;;;;;2666:366;;;2787:2;2775:9;2766:7;2762:23;2758:32;2755:2;;;2803:1;2800;2793:12;2755:2;2838:1;2855:53;2900:7;2880:9;2855:53;;;2845:63;;2817:97;2945:2;2963:53;3008:7;2999:6;2988:9;2984:22;2963:53;;3039:241;;3143:2;3131:9;3122:7;3118:23;3114:32;3111:2;;;3159:1;3156;3149:12;3111:2;3194:1;3211:53;3256:7;3236:9;3211:53;;3287:113;3370:24;3388:5;3370:24;;;3365:3;3358:37;3352:48;;;3407:104;3484:21;3499:5;3484:21;;3518:148;3617:43;3636:23;3653:5;3636:23;;;3617:43;;3673:113;3756:24;3774:5;3756:24;;3793:152;3894:45;3914:24;3932:5;3914:24;;3952:356;;4080:38;4112:5;4080:38;;;4130:88;4211:6;4206:3;4130:88;;;4123:95;;4223:52;4268:6;4263:3;4256:4;4249:5;4245:16;4223:52;;;4287:16;;;;;4060:248;-1:-1;;4060:248;4315:347;;4427:39;4460:5;4427:39;;;4478:71;4542:6;4537:3;4478:71;;;4471:78;;4554:52;4599:6;4594:3;4587:4;4580:5;4576:16;4554:52;;;4627:29;4649:6;4627:29;;;4618:39;;;;4407:255;-1:-1;;;4407:255;4670:372;;4830:67;4894:2;4889:3;4830:67;;;4930:34;4910:55;;-1:-1;;;4994:2;4985:12;;4978:27;5033:2;5024:12;;4816:226;-1:-1;;4816:226;5051:331;;5211:67;5275:2;5270:3;5211:67;;;5311:33;5291:54;;5373:2;5364:12;;5197:185;-1:-1;;5197:185;5391:371;;5551:67;5615:2;5610:3;5551:67;;;5651:34;5631:55;;-1:-1;;;5715:2;5706:12;;5699:26;5753:2;5744:12;;5537:225;-1:-1;;5537:225;5771:327;;5931:67;5995:2;5990:3;5931:67;;;6031:29;6011:50;;6089:2;6080:12;;5917:181;-1:-1;;5917:181;6107:385;;6267:67;6331:2;6326:3;6267:67;;;6367:34;6347:55;;-1:-1;;;6431:2;6422:12;;6415:40;6483:2;6474:12;;6253:239;-1:-1;;6253:239;6501:370;;6661:67;6725:2;6720:3;6661:67;;;6761:34;6741:55;;-1:-1;;;6825:2;6816:12;;6809:25;6862:2;6853:12;;6647:224;-1:-1;;6647:224;6880:371;;7040:67;7104:2;7099:3;7040:67;;;7140:34;7120:55;;-1:-1;;;7204:2;7195:12;;7188:26;7242:2;7233:12;;7026:225;-1:-1;;7026:225;7260:370;;7420:67;7484:2;7479:3;7420:67;;;7520:34;7500:55;;-1:-1;;;7584:2;7575:12;;7568:25;7621:2;7612:12;;7406:224;-1:-1;;7406:224;7639:374;;7799:67;7863:2;7858:3;7799:67;;;7899:34;7879:55;;-1:-1;;;7963:2;7954:12;;7947:29;8004:2;7995:12;;7785:228;-1:-1;;7785:228;8022:373;;8182:67;8246:2;8241:3;8182:67;;;8282:34;8262:55;;-1:-1;;;8346:2;8337:12;;8330:28;8386:2;8377:12;;8168:227;-1:-1;;8168:227;8404:331;;8564:67;8628:2;8623:3;8564:67;;;8664:33;8644:54;;8726:2;8717:12;;8550:185;-1:-1;;8550:185;8863:107;8942:22;8958:5;8942:22;;8977:244;;9096:75;9167:3;9158:6;9096:75;;;-1:-1;9193:2;9184:12;;9084:137;-1:-1;9084:137;9228:553;;9444:93;9533:3;9524:6;9444:93;;;9437:100;;9548:73;9617:3;9608:6;9548:73;;;9643:1;9638:3;9634:11;9627:18;;9663:93;9752:3;9743:6;9663:93;;;9656:100;9425:356;-1:-1;;;;;9425:356;9788:201;9900:2;9885:18;;9914:65;9889:9;9952:6;9914:65;;9996:213;10114:2;10099:18;;10128:71;10103:9;10172:6;10128:71;;10216:771;10474:3;10459:19;;10489:71;10463:9;10533:6;10489:71;;;10571:72;10639:2;10628:9;10624:18;10615:6;10571:72;;;10654;10722:2;10711:9;10707:18;10698:6;10654:72;;;10737;10805:2;10794:9;10790:18;10781:6;10737:72;;;10820:73;10888:3;10877:9;10873:19;10864:6;10820:73;;;10904;10972:3;10961:9;10957:19;10948:6;10904:73;;;10445:542;;;;;;;;;;10994:539;11192:3;11177:19;;11207:71;11181:9;11251:6;11207:71;;;11289:68;11353:2;11342:9;11338:18;11329:6;11289:68;;;11368:72;11436:2;11425:9;11421:18;11412:6;11368:72;;;11451;11519:2;11508:9;11504:18;11495:6;11451:72;;11540:301;11678:2;11692:47;;;11663:18;;11753:78;11663:18;11817:6;11753:78;;11848:407;12039:2;12053:47;;;12024:18;;12114:131;12024:18;12114:131;;12262:407;12453:2;12467:47;;;12438:18;;12528:131;12438:18;12528:131;;12676:407;12867:2;12881:47;;;12852:18;;12942:131;12852:18;12942:131;;13090:407;13281:2;13295:47;;;13266:18;;13356:131;13266:18;13356:131;;13504:407;13695:2;13709:47;;;13680:18;;13770:131;13680:18;13770:131;;13918:407;14109:2;14123:47;;;14094:18;;14184:131;14094:18;14184:131;;14332:407;14523:2;14537:47;;;14508:18;;14598:131;14508:18;14598:131;;14746:407;14937:2;14951:47;;;14922:18;;15012:131;14922:18;15012:131;;15160:407;15351:2;15365:47;;;15336:18;;15426:131;15336:18;15426:131;;15574:407;15765:2;15779:47;;;15750:18;;15840:131;15750:18;15840:131;;15988:407;16179:2;16193:47;;;16164:18;;16254:131;16164:18;16254:131;;16622:205;16736:2;16721:18;;16750:67;16725:9;16790:6;16750:67;;16834:121;16921:12;;16892:63;17245:163;17348:19;;;17397:4;17388:14;;17341:67;17416:91;;17478:24;17496:5;17478:24;;17514:85;17580:13;17573:21;;17556:43;17606:144;-1:-1;;;;;;17667:78;;17650:100;17757:72;17819:5;17802:27;17836:121;-1:-1;;;;;17898:54;;17881:76;18043:81;18114:4;18103:16;;18086:38;18132:268;18197:1;18204:101;18218:6;18215:1;18212:13;18204:101;;;18285:11;;;18279:18;18266:11;;;18259:39;18240:2;18233:10;18204:101;;;18320:6;18317:1;18314:13;18311:2;;;18385:1;18376:6;18371:3;18367:16;18360:27;18311:2;18181:219;;;;;18569:97;18657:2;18637:14;-1:-1;;18633:28;;18617:49;18674:117;18743:24;18761:5;18743:24;;;18736:5;18733:35;18723:2;;18782:1;18779;18772:12;18798:117;18867:24;18885:5;18867:24;;19046:113;19113:22;19129:5;19113:22;;19087:72;44430:1:0;49058:88;:::o;35218:1275::-;35937:11;;35932:2;35922:13;;;35912:37;36010:14;;35992:16;;;35982:43;;;;36098:2;36092:9;;34888:66;36152:26;;36199:15;;;36192:33;;;;36246:15;;;36239:36;;;;36308:2;36296:15;;36289:32;36354:3;36342:16;;36335:43;36447:3;36429:22;;;35218:1275::o

Swarm Source

bzzr://23deea75b96ee2cc2b656a46c252e6cf370393b82a1ae660b1c36c47ee8173b6

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  ]
[ 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.