ETH Price: $3,451.61 (+1.77%)
Gas: 3 Gwei

Token

UMA TVL Option [30 Jun 2021] (uTVL-0621)
 

Overview

Max Total Supply

89,849.613459355333582877 uTVL-0621

Holders

936

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
zoomercell.eth
Balance
90 uTVL-0621

Value
$0.00
0x192a2ff96d045bb859b81b4343e0d80583f768b2
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x6d002a83...e39EC2c42
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
SyntheticToken

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU GPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-05-20
*/

// File: @openzeppelin/contracts/GSN/Context.sol

pragma solidity ^0.6.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 { }

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

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

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol

pragma solidity ^0.6.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
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);
}

// File: @openzeppelin/contracts/math/SafeMath.sol

pragma solidity ^0.6.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.
     */
    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.
     */
    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.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: @openzeppelin/contracts/utils/Address.sol

pragma solidity ^0.6.2;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }
}

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol

pragma solidity ^0.6.0;





/**
 * @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 {ERC20MinterPauser}.
 *
 * 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;
    using Address for address;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;
        _decimals = 18;
    }

    /**
     * @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. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * 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;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view override 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 virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override 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 virtual override 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 virtual 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 virtual 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 virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _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 virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _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 virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _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 virtual {
        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 Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}

// File: contracts/common/implementation/MultiRole.sol

pragma solidity ^0.6.0;


library Exclusive {
    struct RoleMembership {
        address member;
    }

    function isMember(RoleMembership storage roleMembership, address memberToCheck) internal view returns (bool) {
        return roleMembership.member == memberToCheck;
    }

    function resetMember(RoleMembership storage roleMembership, address newMember) internal {
        require(newMember != address(0x0), "Cannot set an exclusive role to 0x0");
        roleMembership.member = newMember;
    }

    function getMember(RoleMembership storage roleMembership) internal view returns (address) {
        return roleMembership.member;
    }

    function init(RoleMembership storage roleMembership, address initialMember) internal {
        resetMember(roleMembership, initialMember);
    }
}


library Shared {
    struct RoleMembership {
        mapping(address => bool) members;
    }

    function isMember(RoleMembership storage roleMembership, address memberToCheck) internal view returns (bool) {
        return roleMembership.members[memberToCheck];
    }

    function addMember(RoleMembership storage roleMembership, address memberToAdd) internal {
        require(memberToAdd != address(0x0), "Cannot add 0x0 to a shared role");
        roleMembership.members[memberToAdd] = true;
    }

    function removeMember(RoleMembership storage roleMembership, address memberToRemove) internal {
        roleMembership.members[memberToRemove] = false;
    }

    function init(RoleMembership storage roleMembership, address[] memory initialMembers) internal {
        for (uint256 i = 0; i < initialMembers.length; i++) {
            addMember(roleMembership, initialMembers[i]);
        }
    }
}


/**
 * @title Base class to manage permissions for the derived class.
 */
abstract contract MultiRole {
    using Exclusive for Exclusive.RoleMembership;
    using Shared for Shared.RoleMembership;

    enum RoleType { Invalid, Exclusive, Shared }

    struct Role {
        uint256 managingRole;
        RoleType roleType;
        Exclusive.RoleMembership exclusiveRoleMembership;
        Shared.RoleMembership sharedRoleMembership;
    }

    mapping(uint256 => Role) private roles;

    event ResetExclusiveMember(uint256 indexed roleId, address indexed newMember, address indexed manager);
    event AddedSharedMember(uint256 indexed roleId, address indexed newMember, address indexed manager);
    event RemovedSharedMember(uint256 indexed roleId, address indexed oldMember, address indexed manager);

    /**
     * @notice Reverts unless the caller is a member of the specified roleId.
     */
    modifier onlyRoleHolder(uint256 roleId) {
        require(holdsRole(roleId, msg.sender), "Sender does not hold required role");
        _;
    }

    /**
     * @notice Reverts unless the caller is a member of the manager role for the specified roleId.
     */
    modifier onlyRoleManager(uint256 roleId) {
        require(holdsRole(roles[roleId].managingRole, msg.sender), "Can only be called by a role manager");
        _;
    }

    /**
     * @notice Reverts unless the roleId represents an initialized, exclusive roleId.
     */
    modifier onlyExclusive(uint256 roleId) {
        require(roles[roleId].roleType == RoleType.Exclusive, "Must be called on an initialized Exclusive role");
        _;
    }

    /**
     * @notice Reverts unless the roleId represents an initialized, shared roleId.
     */
    modifier onlyShared(uint256 roleId) {
        require(roles[roleId].roleType == RoleType.Shared, "Must be called on an initialized Shared role");
        _;
    }

    /**
     * @notice Whether `memberToCheck` is a member of roleId.
     * @dev Reverts if roleId does not correspond to an initialized role.
     * @param roleId the Role to check.
     * @param memberToCheck the address to check.
     * @return True if `memberToCheck` is a member of `roleId`.
     */
    function holdsRole(uint256 roleId, address memberToCheck) public view returns (bool) {
        Role storage role = roles[roleId];
        if (role.roleType == RoleType.Exclusive) {
            return role.exclusiveRoleMembership.isMember(memberToCheck);
        } else if (role.roleType == RoleType.Shared) {
            return role.sharedRoleMembership.isMember(memberToCheck);
        }
        revert("Invalid roleId");
    }

    /**
     * @notice Changes the exclusive role holder of `roleId` to `newMember`.
     * @dev Reverts if the caller is not a member of the managing role for `roleId` or if `roleId` is not an
     * initialized, ExclusiveRole.
     * @param roleId the ExclusiveRole membership to modify.
     * @param newMember the new ExclusiveRole member.
     */
    function resetMember(uint256 roleId, address newMember) public onlyExclusive(roleId) onlyRoleManager(roleId) {
        roles[roleId].exclusiveRoleMembership.resetMember(newMember);
        emit ResetExclusiveMember(roleId, newMember, msg.sender);
    }

    /**
     * @notice Gets the current holder of the exclusive role, `roleId`.
     * @dev Reverts if `roleId` does not represent an initialized, exclusive role.
     * @param roleId the ExclusiveRole membership to check.
     * @return the address of the current ExclusiveRole member.
     */
    function getMember(uint256 roleId) public view onlyExclusive(roleId) returns (address) {
        return roles[roleId].exclusiveRoleMembership.getMember();
    }

    /**
     * @notice Adds `newMember` to the shared role, `roleId`.
     * @dev Reverts if `roleId` does not represent an initialized, SharedRole or if the caller is not a member of the
     * managing role for `roleId`.
     * @param roleId the SharedRole membership to modify.
     * @param newMember the new SharedRole member.
     */
    function addMember(uint256 roleId, address newMember) public onlyShared(roleId) onlyRoleManager(roleId) {
        roles[roleId].sharedRoleMembership.addMember(newMember);
        emit AddedSharedMember(roleId, newMember, msg.sender);
    }

    /**
     * @notice Removes `memberToRemove` from the shared role, `roleId`.
     * @dev Reverts if `roleId` does not represent an initialized, SharedRole or if the caller is not a member of the
     * managing role for `roleId`.
     * @param roleId the SharedRole membership to modify.
     * @param memberToRemove the current SharedRole member to remove.
     */
    function removeMember(uint256 roleId, address memberToRemove) public onlyShared(roleId) onlyRoleManager(roleId) {
        roles[roleId].sharedRoleMembership.removeMember(memberToRemove);
        emit RemovedSharedMember(roleId, memberToRemove, msg.sender);
    }

    /**
     * @notice Removes caller from the role, `roleId`.
     * @dev Reverts if the caller is not a member of the role for `roleId` or if `roleId` is not an
     * initialized, SharedRole.
     * @param roleId the SharedRole membership to modify.
     */
    function renounceMembership(uint256 roleId) public onlyShared(roleId) onlyRoleHolder(roleId) {
        roles[roleId].sharedRoleMembership.removeMember(msg.sender);
        emit RemovedSharedMember(roleId, msg.sender, msg.sender);
    }

    /**
     * @notice Reverts if `roleId` is not initialized.
     */
    modifier onlyValidRole(uint256 roleId) {
        require(roles[roleId].roleType != RoleType.Invalid, "Attempted to use an invalid roleId");
        _;
    }

    /**
     * @notice Reverts if `roleId` is initialized.
     */
    modifier onlyInvalidRole(uint256 roleId) {
        require(roles[roleId].roleType == RoleType.Invalid, "Cannot use a pre-existing role");
        _;
    }

    /**
     * @notice Internal method to initialize a shared role, `roleId`, which will be managed by `managingRoleId`.
     * `initialMembers` will be immediately added to the role.
     * @dev Should be called by derived contracts, usually at construction time. Will revert if the role is already
     * initialized.
     */
    function _createSharedRole(
        uint256 roleId,
        uint256 managingRoleId,
        address[] memory initialMembers
    ) internal onlyInvalidRole(roleId) {
        Role storage role = roles[roleId];
        role.roleType = RoleType.Shared;
        role.managingRole = managingRoleId;
        role.sharedRoleMembership.init(initialMembers);
        require(
            roles[managingRoleId].roleType != RoleType.Invalid,
            "Attempted to use an invalid role to manage a shared role"
        );
    }

    /**
     * @notice Internal method to initialize an exclusive role, `roleId`, which will be managed by `managingRoleId`.
     * `initialMember` will be immediately added to the role.
     * @dev Should be called by derived contracts, usually at construction time. Will revert if the role is already
     * initialized.
     */
    function _createExclusiveRole(
        uint256 roleId,
        uint256 managingRoleId,
        address initialMember
    ) internal onlyInvalidRole(roleId) {
        Role storage role = roles[roleId];
        role.roleType = RoleType.Exclusive;
        role.managingRole = managingRoleId;
        role.exclusiveRoleMembership.init(initialMember);
        require(
            roles[managingRoleId].roleType != RoleType.Invalid,
            "Attempted to use an invalid role to manage an exclusive role"
        );
    }
}

// File: contracts/common/interfaces/ExpandedIERC20.sol

pragma solidity ^0.6.0;



/**
 * @title ERC20 interface that includes burn and mint methods.
 */
abstract contract ExpandedIERC20 is IERC20 {
    /**
     * @notice Burns a specific amount of the caller's tokens.
     * @dev Only burns the caller's tokens, so it is safe to leave this method permissionless.
     */
    function burn(uint256 value) external virtual;

    /**
     * @notice Mints tokens and adds them to the balance of the `to` address.
     * @dev This method should be permissioned to only allow designated parties to mint tokens.
     */
    function mint(address to, uint256 value) external virtual returns (bool);
}

// File: contracts/common/implementation/ExpandedERC20.sol

pragma solidity ^0.6.0;





/**
 * @title An ERC20 with permissioned burning and minting. The contract deployer will initially
 * be the owner who is capable of adding new roles.
 */
contract ExpandedERC20 is ExpandedIERC20, ERC20, MultiRole {
    enum Roles {
        // Can set the minter and burner.
        Owner,
        // Addresses that can mint new tokens.
        Minter,
        // Addresses that can burn tokens that address owns.
        Burner
    }

    /**
     * @notice Constructs the ExpandedERC20.
     * @param _tokenName The name which describes the new token.
     * @param _tokenSymbol The ticker abbreviation of the name. Ideally < 5 chars.
     * @param _tokenDecimals The number of decimals to define token precision.
     */
    constructor(
        string memory _tokenName,
        string memory _tokenSymbol,
        uint8 _tokenDecimals
    ) public ERC20(_tokenName, _tokenSymbol) {
        _setupDecimals(_tokenDecimals);
        _createExclusiveRole(uint256(Roles.Owner), uint256(Roles.Owner), msg.sender);
        _createSharedRole(uint256(Roles.Minter), uint256(Roles.Owner), new address[](0));
        _createSharedRole(uint256(Roles.Burner), uint256(Roles.Owner), new address[](0));
    }

    /**
     * @dev Mints `value` tokens to `recipient`, returning true on success.
     * @param recipient address to mint to.
     * @param value amount of tokens to mint.
     * @return True if the mint succeeded, or False.
     */
    function mint(address recipient, uint256 value)
        external
        override
        onlyRoleHolder(uint256(Roles.Minter))
        returns (bool)
    {
        _mint(recipient, value);
        return true;
    }

    /**
     * @dev Burns `value` tokens owned by `msg.sender`.
     * @param value amount of tokens to burn.
     */
    function burn(uint256 value) external override onlyRoleHolder(uint256(Roles.Burner)) {
        _burn(msg.sender, value);
    }
}

// File: contracts/common/implementation/Lockable.sol

pragma solidity ^0.6.0;


/**
 * @title A contract that provides modifiers to prevent reentrancy to state-changing and view-only methods. This contract
 * is inspired by https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/ReentrancyGuard.sol
 * and https://github.com/balancer-labs/balancer-core/blob/master/contracts/BPool.sol.
 */
contract Lockable {
    bool private _notEntered;

    constructor() internal {
        // Storing an initial non-zero value makes deployment a bit more
        // expensive, but in exchange the refund on every call to nonReentrant
        // will be lower in amount. Since refunds are capped to a percetange of
        // the total transaction's gas, it is best to keep them low in cases
        // like this one, to increase the likelihood of the full refund coming
        // into effect.
        _notEntered = true;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _preEntranceCheck();
        _preEntranceSet();
        _;
        _postEntranceReset();
    }

    /**
     * @dev Designed to prevent a view-only method from being re-entered during a call to a `nonReentrant()` state-changing method.
     */
    modifier nonReentrantView() {
        _preEntranceCheck();
        _;
    }

    // Internal methods are used to avoid copying the require statement's bytecode to every `nonReentrant()` method.
    // On entry into a function, `_preEntranceCheck()` should always be called to check if the function is being re-entered.
    // Then, if the function modifies state, it should call `_postEntranceSet()`, perform its logic, and then call `_postEntranceReset()`.
    // View-only methods can simply call `_preEntranceCheck()` to make sure that it is not being re-entered.
    function _preEntranceCheck() internal view {
        // On the first call to nonReentrant, _notEntered will be true
        require(_notEntered, "ReentrancyGuard: reentrant call");
    }

    function _preEntranceSet() internal {
        // Any calls to nonReentrant after this point will fail
        _notEntered = false;
    }

    function _postEntranceReset() internal {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _notEntered = true;
    }
}

// File: contracts/financial-templates/common/SyntheticToken.sol

pragma solidity ^0.6.0;




/**
 * @title Burnable and mintable ERC20.
 * @dev The contract deployer will initially be the only minter, burner and owner capable of adding new roles.
 */

contract SyntheticToken is ExpandedERC20, Lockable {
    /**
     * @notice Constructs the SyntheticToken.
     * @param tokenName The name which describes the new token.
     * @param tokenSymbol The ticker abbreviation of the name. Ideally < 5 chars.
     * @param tokenDecimals The number of decimals to define token precision.
     */
    constructor(
        string memory tokenName,
        string memory tokenSymbol,
        uint8 tokenDecimals
    ) public ExpandedERC20(tokenName, tokenSymbol, tokenDecimals) nonReentrant() {}

    /**
     * @notice Add Minter role to account.
     * @dev The caller must have the Owner role.
     * @param account The address to which the Minter role is added.
     */
    function addMinter(address account) external nonReentrant() {
        addMember(uint256(Roles.Minter), account);
    }

    /**
     * @notice Remove Minter role from account.
     * @dev The caller must have the Owner role.
     * @param account The address from which the Minter role is removed.
     */
    function removeMinter(address account) external nonReentrant() {
        removeMember(uint256(Roles.Minter), account);
    }

    /**
     * @notice Add Burner role to account.
     * @dev The caller must have the Owner role.
     * @param account The address to which the Burner role is added.
     */
    function addBurner(address account) external nonReentrant() {
        addMember(uint256(Roles.Burner), account);
    }

    /**
     * @notice Removes Burner role from account.
     * @dev The caller must have the Owner role.
     * @param account The address from which the Burner role is removed.
     */
    function removeBurner(address account) external nonReentrant() {
        removeMember(uint256(Roles.Burner), account);
    }

    /**
     * @notice Reset Owner role to account.
     * @dev The caller must have the Owner role.
     * @param account The new holder of the Owner role.
     */
    function resetOwner(address account) external nonReentrant() {
        resetMember(uint256(Roles.Owner), account);
    }

    /**
     * @notice Checks if a given account holds the Minter role.
     * @param account The address which is checked for the Minter role.
     * @return bool True if the provided account is a Minter.
     */
    function isMinter(address account) public view nonReentrantView() returns (bool) {
        return holdsRole(uint256(Roles.Minter), account);
    }

    /**
     * @notice Checks if a given account holds the Burner role.
     * @param account The address which is checked for the Burner role.
     * @return bool True if the provided account is a Burner.
     */
    function isBurner(address account) public view nonReentrantView() returns (bool) {
        return holdsRole(uint256(Roles.Burner), account);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"string","name":"tokenSymbol","type":"string"},{"internalType":"uint8","name":"tokenDecimals","type":"uint8"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"roleId","type":"uint256"},{"indexed":true,"internalType":"address","name":"newMember","type":"address"},{"indexed":true,"internalType":"address","name":"manager","type":"address"}],"name":"AddedSharedMember","type":"event"},{"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":"uint256","name":"roleId","type":"uint256"},{"indexed":true,"internalType":"address","name":"oldMember","type":"address"},{"indexed":true,"internalType":"address","name":"manager","type":"address"}],"name":"RemovedSharedMember","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"roleId","type":"uint256"},{"indexed":true,"internalType":"address","name":"newMember","type":"address"},{"indexed":true,"internalType":"address","name":"manager","type":"address"}],"name":"ResetExclusiveMember","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addBurner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"roleId","type":"uint256"},{"internalType":"address","name":"newMember","type":"address"}],"name":"addMember","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"roleId","type":"uint256"}],"name":"getMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"roleId","type":"uint256"},{"internalType":"address","name":"memberToCheck","type":"address"}],"name":"holdsRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isBurner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeBurner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"roleId","type":"uint256"},{"internalType":"address","name":"memberToRemove","type":"address"}],"name":"removeMember","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"roleId","type":"uint256"}],"name":"renounceMembership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"roleId","type":"uint256"},{"internalType":"address","name":"newMember","type":"address"}],"name":"resetMember","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"resetOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"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"}],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200213338038062002133833981810160405260608110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405260209081015185519093508592508491849184918491620001c4916003919085019062000693565b508051620001da90600490602084019062000693565b50506005805460ff1916601217905550620001fe816001600160e01b036200029916565b62000215600080336001600160e01b03620002af16565b6200023b60015b604080516000808252602082019092526001600160e01b03620003ca16565b6200024760026200021c565b50506007805460ff19166001179055506200026a6001600160e01b03620004df16565b6200027d6001600160e01b036200053916565b620002906001600160e01b036200054516565b50505062000738565b6005805460ff191660ff92909216919091179055565b826000808281526006602052604090206001015460ff166002811115620002d257fe5b1462000325576040805162461bcd60e51b815260206004820152601e60248201527f43616e6e6f74207573652061207072652d6578697374696e6720726f6c650000604482015290519081900360640190fd5b60008481526006602052604090206001808201805460ff19168280021790555083815562000363600282018462000554602090811b620016db17901c565b60008481526006602052604081206001015460ff1660028111156200038457fe5b1415620003c35760405162461bcd60e51b815260040180806020018281038252603c8152602001806200209c603c913960400191505060405180910390fd5b5050505050565b826000808281526006602052604090206001015460ff166002811115620003ed57fe5b1462000440576040805162461bcd60e51b815260206004820152601e60248201527f43616e6e6f74207573652061207072652d6578697374696e6720726f6c650000604482015290519081900360640190fd5b600084815260066020908152604090912060018101805460ff19166002179055848155906200047f9060038301908590620016e56200056d821b17901c565b60008481526006602052604081206001015460ff166002811115620004a057fe5b1415620003c35760405162461bcd60e51b8152600401808060200182810382526038815260200180620020fb6038913960400191505060405180910390fd5b60075460ff1662000537576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b565b6007805460ff19169055565b6007805460ff19166001179055565b6200056982826001600160e01b03620005ae16565b5050565b60005b8151811015620005a957620005a0838383815181106200058c57fe5b60200260200101516200061260201b60201c565b60010162000570565b505050565b6001600160a01b038116620005f55760405162461bcd60e51b8152600401808060200182810382526023815260200180620020d86023913960400191505060405180910390fd5b81546001600160a01b0319166001600160a01b0391909116179055565b6001600160a01b0381166200066e576040805162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74206164642030783020746f20612073686172656420726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620006d657805160ff191683800117855562000706565b8280016001018555821562000706579182015b8281111562000706578251825591602001919060010190620006e9565b506200071492915062000718565b5090565b6200073591905b808211156200071457600081556001016200071f565b90565b61195480620007486000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c806373cc802a116100de578063a9059cbb11610097578063ab3545e511610071578063ab3545e514610540578063d97c05be14610579578063dd62ed3e146105a5578063f44637ba146105d35761018e565b8063a9059cbb146104d1578063aa271e1a146104fd578063aaa14ca3146105235761018e565b806373cc802a146103f957806374d0a6761461041f5780637cdc1cb91461044b57806395d89b4114610477578063983b2d561461047f578063a457c2d7146104a55761018e565b8063313ce5671161014b57806342966c681161012557806342966c68146103645780634334614a146103815780636be7658b146103a757806370a08231146103d35761018e565b8063313ce567146102ee578063395093511461030c57806340c10f19146103385761018e565b8063028468581461019357806306fdde03146101bb578063095ea7b31461023857806318160ddd1461027857806323b872dd146102925780633092afd5146102c8575b600080fd5b6101b9600480360360208110156101a957600080fd5b50356001600160a01b03166105f9565b005b6101c3610620565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101fd5781810151838201526020016101e5565b50505050905090810190601f16801561022a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102646004803603604081101561024e57600080fd5b506001600160a01b0381351690602001356106b6565b604080519115158252519081900360200190f35b6102806106d4565b60408051918252519081900360200190f35b610264600480360360608110156102a857600080fd5b506001600160a01b038135811691602081013590911690604001356106da565b6101b9600480360360208110156102de57600080fd5b50356001600160a01b0316610767565b6102f6610781565b6040805160ff9092168252519081900360200190f35b6102646004803603604081101561032257600080fd5b506001600160a01b03813516906020013561078a565b6102646004803603604081101561034e57600080fd5b506001600160a01b0381351690602001356107de565b6101b96004803603602081101561037a57600080fd5b5035610831565b6102646004803603602081101561039757600080fd5b50356001600160a01b0316610886565b6101b9600480360360408110156103bd57600080fd5b50803590602001356001600160a01b031661089c565b610280600480360360208110156103e957600080fd5b50356001600160a01b03166109b0565b6101b96004803603602081101561040f57600080fd5b50356001600160a01b03166109cb565b6101b96004803603604081101561043557600080fd5b50803590602001356001600160a01b03166109e6565b6102646004803603604081101561046157600080fd5b50803590602001356001600160a01b0316610afa565b6101c3610ba9565b6101b96004803603602081101561049557600080fd5b50356001600160a01b0316610c0a565b610264600480360360408110156104bb57600080fd5b506001600160a01b038135169060200135610c26565b610264600480360360408110156104e757600080fd5b506001600160a01b038135169060200135610c94565b6102646004803603602081101561051357600080fd5b50356001600160a01b0316610ca8565b6101b96004803603602081101561053957600080fd5b5035610cbc565b61055d6004803603602081101561055657600080fd5b5035610db6565b604080516001600160a01b039092168252519081900360200190f35b6101b96004803603604081101561058f57600080fd5b50803590602001356001600160a01b0316610e38565b610280600480360360408110156105bb57600080fd5b506001600160a01b0381358116916020013516610f4c565b6101b9600480360360208110156105e957600080fd5b50356001600160a01b0316610f77565b610601610f91565b610609610fea565b61061560025b8261089c565b61061d610ff6565b50565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106ac5780601f10610681576101008083540402835291602001916106ac565b820191906000526020600020905b81548152906001019060200180831161068f57829003601f168201915b5050505050905090565b60006106ca6106c3611005565b8484611009565b5060015b92915050565b60025490565b60006106e78484846110f5565b61075d846106f3611005565b61075885604051806060016040528060288152602001611821602891396001600160a01b038a16600090815260016020526040812090610731611005565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61125c16565b611009565b5060019392505050565b61076f610f91565b610777610fea565b610615600161060f565b60055460ff1690565b60006106ca610797611005565b8461075885600160006107a8611005565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6112f316565b600060016107ec8133610afa565b6108275760405162461bcd60e51b81526004018080602001828103825260228152602001806117ff6022913960400191505060405180910390fd5b61075d848461134d565b600261083d8133610afa565b6108785760405162461bcd60e51b81526004018080602001828103825260228152602001806117ff6022913960400191505060405180910390fd5b6108823383611449565b5050565b6000610890610f91565b6106ce60025b83610afa565b81600260008281526006602052604090206001015460ff1660028111156108bf57fe5b146108fb5760405162461bcd60e51b815260040180806020018281038252602c8152602001806117d3602c913960400191505060405180910390fd5b60008381526006602052604090205483906109169033610afa565b6109515760405162461bcd60e51b81526004018080602001828103825260248152602001806118d66024913960400191505060405180910390fd5b6000848152600660205260409020610972906003018463ffffffff61155116565b60405133906001600160a01b0385169086907feb3e33034c392e69263b04ec0fa376dc12784a41b6676c7f31b936cbc0fbb5af90600090a450505050565b6001600160a01b031660009081526020819052604090205490565b6109d3610f91565b6109db610fea565b610615600082610e38565b81600260008281526006602052604090206001015460ff166002811115610a0957fe5b14610a455760405162461bcd60e51b815260040180806020018281038252602c8152602001806117d3602c913960400191505060405180910390fd5b6000838152600660205260409020548390610a609033610afa565b610a9b5760405162461bcd60e51b81526004018080602001828103825260248152602001806118d66024913960400191505060405180910390fd5b6000848152600660205260409020610abc906003018463ffffffff61157316565b60405133906001600160a01b0385169086907f63502af7324ff6db91ab38f8236a648727d9385ea6c782073dd4882d8a61a48f90600090a450505050565b600082815260066020526040812060018082015460ff166002811115610b1c57fe5b1415610b3d57610b35600282018463ffffffff6115f316565b9150506106ce565b6002600182015460ff166002811115610b5257fe5b1415610b6b57610b35600382018463ffffffff61160616565b6040805162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a59081c9bdb19525960921b604482015290519081900360640190fd5b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106ac5780601f10610681576101008083540402835291602001916106ac565b610c12610f91565b610c1a610fea565b61061560015b826109e6565b60006106ca610c33611005565b84610758856040518060600160405280602581526020016118fa6025913960016000610c5d611005565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61125c16565b60006106ca610ca1611005565b84846110f5565b6000610cb2610f91565b6106ce6001610896565b80600260008281526006602052604090206001015460ff166002811115610cdf57fe5b14610d1b5760405162461bcd60e51b815260040180806020018281038252602c8152602001806117d3602c913960400191505060405180910390fd5b81610d268133610afa565b610d615760405162461bcd60e51b81526004018080602001828103825260228152602001806117ff6022913960400191505060405180910390fd5b6000838152600660205260409020610d82906003013363ffffffff61155116565b6040513390819085907feb3e33034c392e69263b04ec0fa376dc12784a41b6676c7f31b936cbc0fbb5af90600090a4505050565b600081600160008281526006602052604090206001015460ff166002811115610ddb57fe5b14610e175760405162461bcd60e51b815260040180806020018281038252602f8152602001806117a4602f913960400191505060405180910390fd5b6000838152600660205260409020610e3190600201611625565b9392505050565b81600160008281526006602052604090206001015460ff166002811115610e5b57fe5b14610e975760405162461bcd60e51b815260040180806020018281038252602f8152602001806117a4602f913960400191505060405180910390fd5b6000838152600660205260409020548390610eb29033610afa565b610eed5760405162461bcd60e51b81526004018080602001828103825260248152602001806118d66024913960400191505060405180910390fd5b6000848152600660205260409020610f0e906002018463ffffffff61163216565b60405133906001600160a01b0385169086907f3b855c56b409b671c7112789d022675eb639d0bcb8896f1b6197c132f799e74690600090a450505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610f7f610f91565b610f87610fea565b6106156002610c20565b60075460ff16610fe8576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b565b6007805460ff19169055565b6007805460ff19166001179055565b3390565b6001600160a01b03831661104e5760405162461bcd60e51b81526004018080602001828103825260248152602001806118b26024913960400191505060405180910390fd5b6001600160a01b0382166110935760405162461bcd60e51b815260040180806020018281038252602281526020018061175c6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661113a5760405162461bcd60e51b815260040180806020018281038252602581526020018061188d6025913960400191505060405180910390fd5b6001600160a01b03821661117f5760405162461bcd60e51b81526004018080602001828103825260238152602001806117176023913960400191505060405180910390fd5b61118a838383611694565b6111cd8160405180606001604052806026815260200161177e602691396001600160a01b038616600090815260208190526040902054919063ffffffff61125c16565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611202908263ffffffff6112f316565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156112eb5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156112b0578181015183820152602001611298565b50505050905090810190601f1680156112dd5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610e31576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b0382166113a8576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6113b460008383611694565b6002546113c7908263ffffffff6112f316565b6002556001600160a01b0382166000908152602081905260409020546113f3908263ffffffff6112f316565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b03821661148e5760405162461bcd60e51b81526004018080602001828103825260218152602001806118496021913960400191505060405180910390fd5b61149a82600083611694565b6114dd8160405180606001604052806022815260200161173a602291396001600160a01b038516600090815260208190526040902054919063ffffffff61125c16565b6001600160a01b038316600090815260208190526040902055600254611509908263ffffffff61169916565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b0316600090815260209190915260409020805460ff19169055565b6001600160a01b0381166115ce576040805162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74206164642030783020746f20612073686172656420726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b90546001600160a01b0391821691161490565b6001600160a01b03166000908152602091909152604090205460ff1690565b546001600160a01b031690565b6001600160a01b0381166116775760405162461bcd60e51b815260040180806020018281038252602381526020018061186a6023913960400191505060405180910390fd5b81546001600160a01b0319166001600160a01b0391909116179055565b505050565b6000610e3183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061125c565b6108828282611632565b60005b81518110156116945761170e8383838151811061170157fe5b6020026020010151611573565b6001016116e856fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654d7573742062652063616c6c6564206f6e20616e20696e697469616c697a6564204578636c757369766520726f6c654d7573742062652063616c6c6564206f6e20616e20696e697469616c697a65642053686172656420726f6c6553656e64657220646f6573206e6f7420686f6c6420726571756972656420726f6c6545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737343616e6e6f742073657420616e206578636c757369766520726f6c6520746f2030783045524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737343616e206f6e6c792062652063616c6c6564206279206120726f6c65206d616e6167657245524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212209bee485636016c234e5c9291ffdf8530c5f85140a478a7e15db85719d060080264736f6c63430006060033417474656d7074656420746f2075736520616e20696e76616c696420726f6c6520746f206d616e61676520616e206578636c757369766520726f6c6543616e6e6f742073657420616e206578636c757369766520726f6c6520746f20307830417474656d7074656420746f2075736520616e20696e76616c696420726f6c6520746f206d616e61676520612073686172656420726f6c65000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002e4554482f4254432053796e74686574696320546f6b656e204578706972696e672031204175677573742032303230000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c4554484254432d41554732300000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061018e5760003560e01c806373cc802a116100de578063a9059cbb11610097578063ab3545e511610071578063ab3545e514610540578063d97c05be14610579578063dd62ed3e146105a5578063f44637ba146105d35761018e565b8063a9059cbb146104d1578063aa271e1a146104fd578063aaa14ca3146105235761018e565b806373cc802a146103f957806374d0a6761461041f5780637cdc1cb91461044b57806395d89b4114610477578063983b2d561461047f578063a457c2d7146104a55761018e565b8063313ce5671161014b57806342966c681161012557806342966c68146103645780634334614a146103815780636be7658b146103a757806370a08231146103d35761018e565b8063313ce567146102ee578063395093511461030c57806340c10f19146103385761018e565b8063028468581461019357806306fdde03146101bb578063095ea7b31461023857806318160ddd1461027857806323b872dd146102925780633092afd5146102c8575b600080fd5b6101b9600480360360208110156101a957600080fd5b50356001600160a01b03166105f9565b005b6101c3610620565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101fd5781810151838201526020016101e5565b50505050905090810190601f16801561022a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102646004803603604081101561024e57600080fd5b506001600160a01b0381351690602001356106b6565b604080519115158252519081900360200190f35b6102806106d4565b60408051918252519081900360200190f35b610264600480360360608110156102a857600080fd5b506001600160a01b038135811691602081013590911690604001356106da565b6101b9600480360360208110156102de57600080fd5b50356001600160a01b0316610767565b6102f6610781565b6040805160ff9092168252519081900360200190f35b6102646004803603604081101561032257600080fd5b506001600160a01b03813516906020013561078a565b6102646004803603604081101561034e57600080fd5b506001600160a01b0381351690602001356107de565b6101b96004803603602081101561037a57600080fd5b5035610831565b6102646004803603602081101561039757600080fd5b50356001600160a01b0316610886565b6101b9600480360360408110156103bd57600080fd5b50803590602001356001600160a01b031661089c565b610280600480360360208110156103e957600080fd5b50356001600160a01b03166109b0565b6101b96004803603602081101561040f57600080fd5b50356001600160a01b03166109cb565b6101b96004803603604081101561043557600080fd5b50803590602001356001600160a01b03166109e6565b6102646004803603604081101561046157600080fd5b50803590602001356001600160a01b0316610afa565b6101c3610ba9565b6101b96004803603602081101561049557600080fd5b50356001600160a01b0316610c0a565b610264600480360360408110156104bb57600080fd5b506001600160a01b038135169060200135610c26565b610264600480360360408110156104e757600080fd5b506001600160a01b038135169060200135610c94565b6102646004803603602081101561051357600080fd5b50356001600160a01b0316610ca8565b6101b96004803603602081101561053957600080fd5b5035610cbc565b61055d6004803603602081101561055657600080fd5b5035610db6565b604080516001600160a01b039092168252519081900360200190f35b6101b96004803603604081101561058f57600080fd5b50803590602001356001600160a01b0316610e38565b610280600480360360408110156105bb57600080fd5b506001600160a01b0381358116916020013516610f4c565b6101b9600480360360208110156105e957600080fd5b50356001600160a01b0316610f77565b610601610f91565b610609610fea565b61061560025b8261089c565b61061d610ff6565b50565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106ac5780601f10610681576101008083540402835291602001916106ac565b820191906000526020600020905b81548152906001019060200180831161068f57829003601f168201915b5050505050905090565b60006106ca6106c3611005565b8484611009565b5060015b92915050565b60025490565b60006106e78484846110f5565b61075d846106f3611005565b61075885604051806060016040528060288152602001611821602891396001600160a01b038a16600090815260016020526040812090610731611005565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61125c16565b611009565b5060019392505050565b61076f610f91565b610777610fea565b610615600161060f565b60055460ff1690565b60006106ca610797611005565b8461075885600160006107a8611005565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6112f316565b600060016107ec8133610afa565b6108275760405162461bcd60e51b81526004018080602001828103825260228152602001806117ff6022913960400191505060405180910390fd5b61075d848461134d565b600261083d8133610afa565b6108785760405162461bcd60e51b81526004018080602001828103825260228152602001806117ff6022913960400191505060405180910390fd5b6108823383611449565b5050565b6000610890610f91565b6106ce60025b83610afa565b81600260008281526006602052604090206001015460ff1660028111156108bf57fe5b146108fb5760405162461bcd60e51b815260040180806020018281038252602c8152602001806117d3602c913960400191505060405180910390fd5b60008381526006602052604090205483906109169033610afa565b6109515760405162461bcd60e51b81526004018080602001828103825260248152602001806118d66024913960400191505060405180910390fd5b6000848152600660205260409020610972906003018463ffffffff61155116565b60405133906001600160a01b0385169086907feb3e33034c392e69263b04ec0fa376dc12784a41b6676c7f31b936cbc0fbb5af90600090a450505050565b6001600160a01b031660009081526020819052604090205490565b6109d3610f91565b6109db610fea565b610615600082610e38565b81600260008281526006602052604090206001015460ff166002811115610a0957fe5b14610a455760405162461bcd60e51b815260040180806020018281038252602c8152602001806117d3602c913960400191505060405180910390fd5b6000838152600660205260409020548390610a609033610afa565b610a9b5760405162461bcd60e51b81526004018080602001828103825260248152602001806118d66024913960400191505060405180910390fd5b6000848152600660205260409020610abc906003018463ffffffff61157316565b60405133906001600160a01b0385169086907f63502af7324ff6db91ab38f8236a648727d9385ea6c782073dd4882d8a61a48f90600090a450505050565b600082815260066020526040812060018082015460ff166002811115610b1c57fe5b1415610b3d57610b35600282018463ffffffff6115f316565b9150506106ce565b6002600182015460ff166002811115610b5257fe5b1415610b6b57610b35600382018463ffffffff61160616565b6040805162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a59081c9bdb19525960921b604482015290519081900360640190fd5b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106ac5780601f10610681576101008083540402835291602001916106ac565b610c12610f91565b610c1a610fea565b61061560015b826109e6565b60006106ca610c33611005565b84610758856040518060600160405280602581526020016118fa6025913960016000610c5d611005565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61125c16565b60006106ca610ca1611005565b84846110f5565b6000610cb2610f91565b6106ce6001610896565b80600260008281526006602052604090206001015460ff166002811115610cdf57fe5b14610d1b5760405162461bcd60e51b815260040180806020018281038252602c8152602001806117d3602c913960400191505060405180910390fd5b81610d268133610afa565b610d615760405162461bcd60e51b81526004018080602001828103825260228152602001806117ff6022913960400191505060405180910390fd5b6000838152600660205260409020610d82906003013363ffffffff61155116565b6040513390819085907feb3e33034c392e69263b04ec0fa376dc12784a41b6676c7f31b936cbc0fbb5af90600090a4505050565b600081600160008281526006602052604090206001015460ff166002811115610ddb57fe5b14610e175760405162461bcd60e51b815260040180806020018281038252602f8152602001806117a4602f913960400191505060405180910390fd5b6000838152600660205260409020610e3190600201611625565b9392505050565b81600160008281526006602052604090206001015460ff166002811115610e5b57fe5b14610e975760405162461bcd60e51b815260040180806020018281038252602f8152602001806117a4602f913960400191505060405180910390fd5b6000838152600660205260409020548390610eb29033610afa565b610eed5760405162461bcd60e51b81526004018080602001828103825260248152602001806118d66024913960400191505060405180910390fd5b6000848152600660205260409020610f0e906002018463ffffffff61163216565b60405133906001600160a01b0385169086907f3b855c56b409b671c7112789d022675eb639d0bcb8896f1b6197c132f799e74690600090a450505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610f7f610f91565b610f87610fea565b6106156002610c20565b60075460ff16610fe8576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b565b6007805460ff19169055565b6007805460ff19166001179055565b3390565b6001600160a01b03831661104e5760405162461bcd60e51b81526004018080602001828103825260248152602001806118b26024913960400191505060405180910390fd5b6001600160a01b0382166110935760405162461bcd60e51b815260040180806020018281038252602281526020018061175c6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661113a5760405162461bcd60e51b815260040180806020018281038252602581526020018061188d6025913960400191505060405180910390fd5b6001600160a01b03821661117f5760405162461bcd60e51b81526004018080602001828103825260238152602001806117176023913960400191505060405180910390fd5b61118a838383611694565b6111cd8160405180606001604052806026815260200161177e602691396001600160a01b038616600090815260208190526040902054919063ffffffff61125c16565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611202908263ffffffff6112f316565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156112eb5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156112b0578181015183820152602001611298565b50505050905090810190601f1680156112dd5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610e31576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b0382166113a8576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6113b460008383611694565b6002546113c7908263ffffffff6112f316565b6002556001600160a01b0382166000908152602081905260409020546113f3908263ffffffff6112f316565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b03821661148e5760405162461bcd60e51b81526004018080602001828103825260218152602001806118496021913960400191505060405180910390fd5b61149a82600083611694565b6114dd8160405180606001604052806022815260200161173a602291396001600160a01b038516600090815260208190526040902054919063ffffffff61125c16565b6001600160a01b038316600090815260208190526040902055600254611509908263ffffffff61169916565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b0316600090815260209190915260409020805460ff19169055565b6001600160a01b0381166115ce576040805162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74206164642030783020746f20612073686172656420726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b90546001600160a01b0391821691161490565b6001600160a01b03166000908152602091909152604090205460ff1690565b546001600160a01b031690565b6001600160a01b0381166116775760405162461bcd60e51b815260040180806020018281038252602381526020018061186a6023913960400191505060405180910390fd5b81546001600160a01b0319166001600160a01b0391909116179055565b505050565b6000610e3183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061125c565b6108828282611632565b60005b81518110156116945761170e8383838151811061170157fe5b6020026020010151611573565b6001016116e856fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654d7573742062652063616c6c6564206f6e20616e20696e697469616c697a6564204578636c757369766520726f6c654d7573742062652063616c6c6564206f6e20616e20696e697469616c697a65642053686172656420726f6c6553656e64657220646f6573206e6f7420686f6c6420726571756972656420726f6c6545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737343616e6e6f742073657420616e206578636c757369766520726f6c6520746f2030783045524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737343616e206f6e6c792062652063616c6c6564206279206120726f6c65206d616e6167657245524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212209bee485636016c234e5c9291ffdf8530c5f85140a478a7e15db85719d060080264736f6c63430006060033

Deployed Bytecode Sourcemap

38485:2870:0:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;38485:2870:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;40176:126:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;40176:126:0;-1:-1:-1;;;;;40176:126:0;;:::i;:::-;;14241:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;14241:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16347:169;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;16347:169:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;15316:100;;;:::i;:::-;;;;;;;;;;;;;;;;16990:321;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;16990:321:0;;;;;;;;;;;;;;;;;:::i;39540:126::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;39540:126:0;-1:-1:-1;;;;;39540:126:0;;:::i;15168:83::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;17720:218;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;17720:218:0;;;;;;;;:::i;34949:224::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;34949:224:0;;;;;;;;:::i;35303:128::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;35303:128:0;;:::i;41204:148::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;41204:148:0;-1:-1:-1;;;;;41204:148:0;;:::i;29646:265::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;29646:265:0;;;;;;-1:-1:-1;;;;;29646:265:0;;:::i;15479:119::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;15479:119:0;-1:-1:-1;;;;;15479:119:0;;:::i;40480:122::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;40480:122:0;-1:-1:-1;;;;;40480:122:0;;:::i;29020:242::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;29020:242:0;;;;;;-1:-1:-1;;;;;29020:242:0;;:::i;27136:436::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;27136:436:0;;;;;;-1:-1:-1;;;;;27136:436:0;;:::i;14443:87::-;;;:::i;39221:120::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;39221:120:0;-1:-1:-1;;;;;39221:120:0;;:::i;18441:269::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;18441:269:0;;;;;;;;:::i;15811:175::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;15811:175:0;;;;;;;;:::i;40829:148::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;40829:148:0;-1:-1:-1;;;;;40829:148:0;;:::i;30186:238::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;30186:238:0;;:::i;28503:162::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;28503:162:0;;:::i;:::-;;;;-1:-1:-1;;;;;28503:162:0;;;;;;;;;;;;;;27939:255;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;27939:255:0;;;;;;-1:-1:-1;;;;;27939:255:0;;:::i;16049:151::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;16049:151:0;;;;;;;;;;:::i;39856:120::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;39856:120:0;-1:-1:-1;;;;;39856:120:0;;:::i;40176:126::-;36822:19;:17;:19::i;:::-;36852:17;:15;:17::i;:::-;40250:44:::1;40271:12;40263:21;40286:7;40250:12;:44::i;:::-;36892:20:::0;:18;:20::i;:::-;40176:126;:::o;14241:83::-;14311:5;14304:12;;;;;;;;-1:-1:-1;;14304:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14278:13;;14304:12;;14311:5;;14304:12;;14311:5;14304:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14241:83;:::o;16347:169::-;16430:4;16447:39;16456:12;:10;:12::i;:::-;16470:7;16479:6;16447:8;:39::i;:::-;-1:-1:-1;16504:4:0;16347:169;;;;;:::o;15316:100::-;15396:12;;15316:100;:::o;16990:321::-;17096:4;17113:36;17123:6;17131:9;17142:6;17113:9;:36::i;:::-;17160:121;17169:6;17177:12;:10;:12::i;:::-;17191:89;17229:6;17191:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;17191:19:0;;;;;;:11;:19;;;;;;17211:12;:10;:12::i;:::-;-1:-1:-1;;;;;17191:33:0;;;;;;;;;;;;-1:-1:-1;17191:33:0;;;:89;;:37;:89;:::i;:::-;17160:8;:121::i;:::-;-1:-1:-1;17299:4:0;16990:321;;;;;:::o;39540:126::-;36822:19;:17;:19::i;:::-;36852:17;:15;:17::i;:::-;39614:44:::1;39635:12;39627:21;::::0;15168:83;15234:9;;;;15168:83;:::o;17720:218::-;17808:4;17825:83;17834:12;:10;:12::i;:::-;17848:7;17857:50;17896:10;17857:11;:25;17869:12;:10;:12::i;:::-;-1:-1:-1;;;;;17857:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;17857:25:0;;;:34;;;;;;;;;;;:50;:38;:50;:::i;34949:224::-;35098:4;35065:12;25869:29;25879:6;25887:10;25869:9;:29::i;:::-;25861:76;;;;-1:-1:-1;;;25861:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35120:23:::1;35126:9;35137:5;35120;:23::i;35303:128::-:0;35373:12;25869:29;25879:6;25887:10;25869:9;:29::i;:::-;25861:76;;;;-1:-1:-1;;;25861:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35399:24:::1;35405:10;35417:5;35399;:24::i;:::-;35303:128:::0;;:::o;41204:148::-;41279:4;37118:19;:17;:19::i;:::-;41303:41:::1;41321:12;41313:21;41336:7;41303:9;:41::i;29646:265::-:0;29726:6;26731:15;26705:13;;;;:5;:13;;;;;:22;;;;;:41;;;;;;;;;26697:98;;;;-1:-1:-1;;;26697:98:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26153:13:::1;::::0;;;:5:::1;:13;::::0;;;;:26;29750:6;;26143:49:::1;::::0;26181:10:::1;26143:9;:49::i;:::-;26135:98;;;;-1:-1:-1::0;;;26135:98:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29769:13:::2;::::0;;;:5:::2;:13;::::0;;;;:63:::2;::::0;:34:::2;;29817:14:::0;29769:63:::2;:47;:63;:::i;:::-;29848:55;::::0;29892:10:::2;::::0;-1:-1:-1;;;;;29848:55:0;::::2;::::0;29868:6;;29848:55:::2;::::0;;;::::2;26806:1:::1;29646:265:::0;;;:::o;15479:119::-;-1:-1:-1;;;;;15572:18:0;15545:7;15572:18;;;;;;;;;;;;15479:119::o;40480:122::-;36822:19;:17;:19::i;:::-;36852:17;:15;:17::i;:::-;40552:42:::1;40572:11;40586:7;40552:11;:42::i;29020:242::-:0;29092:6;26731:15;26705:13;;;;:5;:13;;;;;:22;;;;;:41;;;;;;;;;26697:98;;;;-1:-1:-1;;;26697:98:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26153:13:::1;::::0;;;:5:::1;:13;::::0;;;;:26;29116:6;;26143:49:::1;::::0;26181:10:::1;26143:9;:49::i;:::-;26135:98;;;;-1:-1:-1::0;;;26135:98:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29135:13:::2;::::0;;;:5:::2;:13;::::0;;;;:55:::2;::::0;:34:::2;;29180:9:::0;29135:55:::2;:44;:55;:::i;:::-;29206:48;::::0;29243:10:::2;::::0;-1:-1:-1;;;;;29206:48:0;::::2;::::0;29224:6;;29206:48:::2;::::0;;;::::2;26806:1:::1;29020:242:::0;;;:::o;27136:436::-;27215:4;27252:13;;;:5;:13;;;;;27297:18;27280:13;;;;;;:35;;;;;;;;;27276:254;;;27339:52;:28;;;27377:13;27339:52;:37;:52;:::i;:::-;27332:59;;;;;27276:254;27430:15;27413:13;;;;;;:32;;;;;;;;;27409:121;;;27469:49;:25;;;27504:13;27469:49;:34;:49;:::i;27409:121::-;27540:24;;;-1:-1:-1;;;27540:24:0;;;;;;;;;;;;-1:-1:-1;;;27540:24:0;;;;;;;;;;;;;;14443:87;14515:7;14508:14;;;;;;;;-1:-1:-1;;14508:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14482:13;;14508:14;;14515:7;;14508:14;;14515:7;14508:14;;;;;;;;;;;;;;;;;;;;;;;;39221:120;36822:19;:17;:19::i;:::-;36852:17;:15;:17::i;:::-;39292:41:::1;39310:12;39302:21;39325:7;39292:9;:41::i;18441:269::-:0;18534:4;18551:129;18560:12;:10;:12::i;:::-;18574:7;18583:96;18622:15;18583:96;;;;;;;;;;;;;;;;;:11;:25;18595:12;:10;:12::i;:::-;-1:-1:-1;;;;;18583:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;18583:25:0;;;:34;;;;;;;;;;;:96;;:38;:96;:::i;15811:175::-;15897:4;15914:42;15924:12;:10;:12::i;:::-;15938:9;15949:6;15914:9;:42::i;40829:148::-;40904:4;37118:19;:17;:19::i;:::-;40928:41:::1;40946:12;40938:21;::::0;30186:238;30248:6;26731:15;26705:13;;;;:5;:13;;;;;:22;;;;;:41;;;;;;;;;26697:98;;;;-1:-1:-1;;;26697:98:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30271:6:::1;25869:29;25879:6;25887:10;25869:9;:29::i;:::-;25861:76;;;;-1:-1:-1::0;;;25861:76:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30290:13:::2;::::0;;;:5:::2;:13;::::0;;;;:59:::2;::::0;:34:::2;;30338:10;30290:59;:47;:59;:::i;:::-;30365:51;::::0;30405:10:::2;::::0;;;30385:6;;30365:51:::2;::::0;;;::::2;26806:1:::1;30186:238:::0;;:::o;28503:162::-;28581:7;28564:6;26450:18;26424:13;;;;:5;:13;;;;;:22;;;;;:44;;;;;;;;;26416:104;;;;-1:-1:-1;;;26416:104:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28608:13:::1;::::0;;;:5:::1;:13;::::0;;;;:49:::1;::::0;:37:::1;;:47;:49::i;:::-;28601:56:::0;28503:162;-1:-1:-1;;;28503:162:0:o;27939:255::-;28016:6;26450:18;26424:13;;;;:5;:13;;;;;:22;;;;;:44;;;;;;;;;26416:104;;;;-1:-1:-1;;;26416:104:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26153:13:::1;::::0;;;:5:::1;:13;::::0;;;;:26;28040:6;;26143:49:::1;::::0;26181:10:::1;26143:9;:49::i;:::-;26135:98;;;;-1:-1:-1::0;;;26135:98:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28059:13:::2;::::0;;;:5:::2;:13;::::0;;;;:60:::2;::::0;:37:::2;;28109:9:::0;28059:60:::2;:49;:60;:::i;:::-;28135:51;::::0;28175:10:::2;::::0;-1:-1:-1;;;;;28135:51:0;::::2;::::0;28156:6;;28135:51:::2;::::0;;;::::2;26531:1:::1;27939:255:::0;;;:::o;16049:151::-;-1:-1:-1;;;;;16165:18:0;;;16138:7;16165:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;16049:151::o;39856:120::-;36822:19;:17;:19::i;:::-;36852:17;:15;:17::i;:::-;39927:41:::1;39945:12;39937:21;::::0;37659:189;37793:11;;;;37785:55;;;;;-1:-1:-1;;;37785:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;37659:189::o;37856:139::-;37968:11;:19;;-1:-1:-1;;37968:19:0;;;37856:139::o;38003:210::-;38187:11;:18;;-1:-1:-1;;38187:18:0;38201:4;38187:18;;;38003:210::o;804:106::-;892:10;804:106;:::o;21588:346::-;-1:-1:-1;;;;;21690:19:0;;21682:68;;;;-1:-1:-1;;;21682:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21769:21:0;;21761:68;;;;-1:-1:-1;;;21761:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21842:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;21894:32;;;;;;;;;;;;;;;;;21588:346;;;:::o;19200:539::-;-1:-1:-1;;;;;19306:20:0;;19298:70;;;;-1:-1:-1;;;19298:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19387:23:0;;19379:71;;;;-1:-1:-1;;;19379:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19463:47;19484:6;19492:9;19503:6;19463:20;:47::i;:::-;19543:71;19565:6;19543:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19543:17:0;;:9;:17;;;;;;;;;;;;:71;;:21;:71;:::i;:::-;-1:-1:-1;;;;;19523:17:0;;;:9;:17;;;;;;;;;;;:91;;;;19648:20;;;;;;;:32;;19673:6;19648:32;:24;:32;:::i;:::-;-1:-1:-1;;;;;19625:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;19696:35;;;;;;;19625:20;;19696:35;;;;;;;;;;;;;19200:539;;;:::o;5757:192::-;5843:7;5879:12;5871:6;;;;5863:29;;;;-1:-1:-1;;;5863:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;5863:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5915:5:0;;;5757:192::o;4870:181::-;4928:7;4960:5;;;4984:6;;;;4976:46;;;;;-1:-1:-1;;;4976:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;20020:378;-1:-1:-1;;;;;20104:21:0;;20096:65;;;;;-1:-1:-1;;;20096:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;20174:49;20203:1;20207:7;20216:6;20174:20;:49::i;:::-;20251:12;;:24;;20268:6;20251:24;:16;:24;:::i;:::-;20236:12;:39;-1:-1:-1;;;;;20307:18:0;;:9;:18;;;;;;;;;;;:30;;20330:6;20307:30;:22;:30;:::i;:::-;-1:-1:-1;;;;;20286:18:0;;:9;:18;;;;;;;;;;;:51;;;;20353:37;;;;;;;20286:18;;:9;;20353:37;;;;;;;;;;20020:378;;:::o;20730:418::-;-1:-1:-1;;;;;20814:21:0;;20806:67;;;;-1:-1:-1;;;20806:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20886:49;20907:7;20924:1;20928:6;20886:20;:49::i;:::-;20969:68;20992:6;20969:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20969:18:0;;:9;:18;;;;;;;;;;;;:68;;:22;:68;:::i;:::-;-1:-1:-1;;;;;20948:18:0;;:9;:18;;;;;;;;;;:89;21063:12;;:24;;21080:6;21063:24;:16;:24;:::i;:::-;21048:12;:39;21103:37;;;;;;;;21129:1;;-1:-1:-1;;;;;21103:37:0;;;;;;;;;;;;20730:418;;:::o;24468:159::-;-1:-1:-1;;;;;24573:38:0;24614:5;24573:38;;;;;;;;;;;:46;;-1:-1:-1;;24573:46:0;;;24468:159::o;24229:231::-;-1:-1:-1;;;;;24336:27:0;;24328:71;;;;;-1:-1:-1;;;24328:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24410:35:0;:22;:35;;;;;;;;;;;:42;;-1:-1:-1;;24410:42:0;24448:4;24410:42;;;24229:231::o;23233:173::-;23360:21;;-1:-1:-1;;;;;23360:38:0;;;:21;;:38;;23233:173::o;24049:172::-;-1:-1:-1;;;;;24176:37:0;24152:4;24176:37;;;;;;;;;;;;;;;24049:172::o;23646:137::-;23754:21;-1:-1:-1;;;;;23754:21:0;;23646:137::o;23414:224::-;-1:-1:-1;;;;;23521:25:0;;23513:73;;;;-1:-1:-1;;;23513:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23597:33;;-1:-1:-1;;;;;;23597:33:0;-1:-1:-1;;;;;23597:33:0;;;;;;;23414:224::o;22959:92::-;;;;:::o;5326:136::-;5384:7;5411:43;5415:1;5418;5411:43;;;;;;;;;;;;;;;;;:3;:43::i;23791:146::-;23887:42;23899:14;23915:13;23887:11;:42::i;24635:236::-;24746:9;24741:123;24765:14;:21;24761:1;:25;24741:123;;;24808:44;24818:14;24834;24849:1;24834:17;;;;;;;;;;;;;;24808:9;:44::i;:::-;24788:3;;24741:123;

Swarm Source

ipfs://9bee485636016c234e5c9291ffdf8530c5f85140a478a7e15db85719d0600802
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.