ETH Price: $3,068.27 (-3.41%)
Gas: 5 Gwei

Contract

0x5d43ea064F46BEdd2550A3B795b7e4ad46eeF430
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
0x60806040118838782021-02-18 23:50:051173 days ago1613692205IN
 Create: TrustToken
0 ETH0.4457383170

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TrustToken

Compiler Version
v0.6.10+commit.00c0fcaf

Optimization Enabled:
Yes with 20000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-02-19
*/

/*
    .'''''''''''..     ..''''''''''''''''..       ..'''''''''''''''..
    .;;;;;;;;;;;'.   .';;;;;;;;;;;;;;;;;;,.     .,;;;;;;;;;;;;;;;;;,.
    .;;;;;;;;;;,.   .,;;;;;;;;;;;;;;;;;;;,.    .,;;;;;;;;;;;;;;;;;;,.
    .;;;;;;;;;,.   .,;;;;;;;;;;;;;;;;;;;;,.   .;;;;;;;;;;;;;;;;;;;;,.
    ';;;;;;;;'.  .';;;;;;;;;;;;;;;;;;;;;;,. .';;;;;;;;;;;;;;;;;;;;;,.
    ';;;;;,..   .';;;;;;;;;;;;;;;;;;;;;;;,..';;;;;;;;;;;;;;;;;;;;;;,.
    ......     .';;;;;;;;;;;;;,'''''''''''.,;;;;;;;;;;;;;,'''''''''..
              .,;;;;;;;;;;;;;.           .,;;;;;;;;;;;;;.
             .,;;;;;;;;;;;;,.           .,;;;;;;;;;;;;,.
            .,;;;;;;;;;;;;,.           .,;;;;;;;;;;;;,.
           .,;;;;;;;;;;;;,.           .;;;;;;;;;;;;;,.     .....
          .;;;;;;;;;;;;;'.         ..';;;;;;;;;;;;;'.    .',;;;;,'.
        .';;;;;;;;;;;;;'.         .';;;;;;;;;;;;;;'.   .';;;;;;;;;;.
       .';;;;;;;;;;;;;'.         .';;;;;;;;;;;;;;'.    .;;;;;;;;;;;,.
      .,;;;;;;;;;;;;;'...........,;;;;;;;;;;;;;;.      .;;;;;;;;;;;,.
     .,;;;;;;;;;;;;,..,;;;;;;;;;;;;;;;;;;;;;;;,.       ..;;;;;;;;;,.
    .,;;;;;;;;;;;;,. .,;;;;;;;;;;;;;;;;;;;;;;,.          .',;;;,,..
   .,;;;;;;;;;;;;,.  .,;;;;;;;;;;;;;;;;;;;;;,.              ....
    ..',;;;;;;;;,.   .,;;;;;;;;;;;;;;;;;;;;,.
       ..',;;;;'.    .,;;;;;;;;;;;;;;;;;;;'.
          ...'..     .';;;;;;;;;;;;;;,,,'.
                       ...............
*/

// https://github.com/trusttoken/smart-contracts
// Dependency file: @openzeppelin/contracts/math/SafeMath.sol

// SPDX-License-Identifier: MIT

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


// Dependency 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.
 */
abstract contract Context {
    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;
    }
}


// Dependency 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) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @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");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// Dependency file: contracts/trusttoken/common/ProxyStorage.sol

// pragma solidity 0.6.10;

/**
 * All storage must be declared here
 * New storage must be appended to the end
 * Never remove items from this list
 */
contract ProxyStorage {
    bool initalized;
    uint256 public totalSupply;

    mapping(address => uint256) public balanceOf;
    mapping(address => mapping(address => uint256)) public allowance;
    mapping(uint144 => uint256) attributes_Depricated;

    address owner_;
    address pendingOwner_;

    mapping(address => address) public delegates; // A record of votes checkpoints for each account, by index
    struct Checkpoint {
        // A checkpoint for marking number of votes from a given block
        uint32 fromBlock;
        uint96 votes;
    }
    mapping(address => mapping(uint32 => Checkpoint)) public checkpoints; // A record of votes checkpoints for each account, by index
    mapping(address => uint32) public numCheckpoints; // The number of checkpoints for each account
    mapping(address => uint256) public nonces;

    /* Additionally, we have several keccak-based storage locations.
     * If you add more keccak-based storage mappings, such as mappings, you must document them here.
     * If the length of the keccak input is the same as an existing mapping, it is possible there could be a preimage collision.
     * A preimage collision can be used to attack the contract by treating one storage location as another,
     * which would always be a critical issue.
     * Carefully examine future keccak-based storage to ensure there can be no preimage collisions.
     *******************************************************************************************************
     ** length     input                                                         usage
     *******************************************************************************************************
     ** 19         "trueXXX.proxy.owner"                                         Proxy Owner
     ** 27         "trueXXX.pending.proxy.owner"                                 Pending Proxy Owner
     ** 28         "trueXXX.proxy.implementation"                                Proxy Implementation
     ** 64         uint256(address),uint256(1)                                   balanceOf
     ** 64         uint256(address),keccak256(uint256(address),uint256(2))       allowance
     ** 64         uint256(address),keccak256(bytes32,uint256(3))                attributes
     **/
}


// Dependency file: contracts/trusttoken/common/ERC20.sol

/**
 * @notice This is a copy of openzeppelin ERC20 contract with removed state variables.
 * Removing state variables has been necessary due to proxy pattern usage.
 * Changes to Openzeppelin ERC20 https://github.com/OpenZeppelin/openzeppelin-contracts/blob/de99bccbfd4ecd19d7369d01b070aa72c64423c9/contracts/token/ERC20/ERC20.sol:
 * - Remove state variables _name, _symbol, _decimals
 * - Use state variables balances, allowances, totalSupply from ProxyStorage
 * - Remove constructor
 * - Solidity version changed from ^0.6.0 to 0.6.10
 * - Contract made abstract
 * - Remove inheritance from IERC20 because of ProxyStorage name conflicts
 *
 * See also: ClaimableOwnable.sol and ProxyStorage.sol
 */


// pragma solidity 0.6.10;

// import {Context} from "@openzeppelin/contracts/GSN/Context.sol";
// import {SafeMath} from "@openzeppelin/contracts/math/SafeMath.sol";
// import {Address} from "@openzeppelin/contracts/utils/Address.sol";

// import {ProxyStorage} from "contracts/trusttoken/common/ProxyStorage.sol";

// prettier-ignore
/**
 * @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 {ERC20PresetMinterPauser}.
 *
 * 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}.
 */
abstract contract ERC20 is ProxyStorage, Context {
    using SafeMath for uint256;
    using Address for address;

    /**
     * @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);


    /**
     * @dev Returns the name of the token.
     */
    function name() public virtual pure returns (string memory);

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public virtual pure returns (string memory);

    /**
     * @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 virtual pure returns (uint8) {
        return 18;
    }

    /**
     * @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 returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual 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 returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), allowance[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, allowance[_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, allowance[_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);

        balanceOf[sender] = balanceOf[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        balanceOf[recipient] = balanceOf[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);
        balanceOf[account] = balanceOf[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);

        balanceOf[account] = balanceOf[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");

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

    /**
     * @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].
     */
    // solhint-disable-next-line no-empty-blocks
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}


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


// Dependency file: contracts/governance/interface/IVoteToken.sol

// pragma solidity ^0.6.10;

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

interface IVoteToken {
    function delegate(address delegatee) external;

    function delegateBySig(
        address delegatee,
        uint256 nonce,
        uint256 expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    function getCurrentVotes(address account) external view returns (uint96);

    function getPriorVotes(address account, uint256 blockNumber) external view returns (uint96);
}

interface IVoteTokenWithERC20 is IVoteToken, IERC20 {}


// Dependency file: contracts/governance/VoteToken.sol

// AND COPIED FROM https://github.com/compound-finance/compound-protocol/blob/c5fcc34222693ad5f547b14ed01ce719b5f4b000/contracts/Governance/Comp.sol
// Copyright 2020 Compound Labs, Inc.
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
// 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
// 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// Ctrl+f for OLD to see all the modifications.

// pragma solidity 0.6.10;

// import {ERC20} from "contracts/trusttoken/common/ERC20.sol";
// import {IVoteToken} from "contracts/governance/interface/IVoteToken.sol";

/**
 * @title VoteToken
 * @notice Custom token which tracks voting power for governance
 * @dev This is an abstraction of a fork of the Compound governance contract
 * VoteToken is used by TRU and stkTRU to allow tracking voting power
 * Checkpoints are created every time state is changed which record voting power
 * Inherits standard ERC20 behavior
 */
abstract contract VoteToken is ERC20, IVoteToken {
    bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");
    bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");

    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);
    event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance);

    function delegate(address delegatee) public override {
        return _delegate(msg.sender, delegatee);
    }

    /** 
     * @dev Delegate votes using signature
     */
    function delegateBySig(
        address delegatee,
        uint256 nonce,
        uint256 expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public override {
        bytes32 domainSeparator = keccak256(abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name())), getChainId(), address(this)));
        bytes32 structHash = keccak256(abi.encode(DELEGATION_TYPEHASH, delegatee, nonce, expiry));
        bytes32 digest = keccak256(abi.encodePacked("", domainSeparator, structHash));
        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), "TrustToken::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "TrustToken::delegateBySig: invalid nonce");
        require(now <= expiry, "TrustToken::delegateBySig: signature expired");
        return _delegate(signatory, delegatee);
    }

    /**
     * @dev Get current voting power for an account
     * @param account Account to get voting power for
     * @return Voting power for an account
     */
    function getCurrentVotes(address account) public virtual override view returns (uint96) {
        uint32 nCheckpoints = numCheckpoints[account];
        return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
    }

    /**
     * @dev Get voting power at a specific block for an account
     * @param account Account to get voting power for
     * @param blockNumber Block to get voting power at
     * @return Voting power for an account at specific block
     */
    function getPriorVotes(address account, uint256 blockNumber) public virtual override view returns (uint96) {
        require(blockNumber < block.number, "TrustToken::getPriorVotes: not yet determined");

        uint32 nCheckpoints = numCheckpoints[account];
        if (nCheckpoints == 0) {
            return 0;
        }

        // First check most recent balance
        if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
            return checkpoints[account][nCheckpoints - 1].votes;
        }

        // Next check implicit zero balance
        if (checkpoints[account][0].fromBlock > blockNumber) {
            return 0;
        }

        uint32 lower = 0;
        uint32 upper = nCheckpoints - 1;
        while (upper > lower) {
            uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
            Checkpoint memory cp = checkpoints[account][center];
            if (cp.fromBlock == blockNumber) {
                return cp.votes;
            } else if (cp.fromBlock < blockNumber) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return checkpoints[account][lower].votes;
    }

    /**
     * @dev Internal function to delegate voting power to an account
     * @param delegator Account to delegate votes from
     * @param delegatee Account to delegate votes to
     */
    function _delegate(address delegator, address delegatee) internal {
        address currentDelegate = delegates[delegator];
        // OLD: uint96 delegatorBalance = balanceOf(delegator);
        uint96 delegatorBalance = safe96(_balanceOf(delegator), "StkTruToken: uint96 overflow");
        delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveDelegates(currentDelegate, delegatee, delegatorBalance);
    }

    function _balanceOf(address account) internal view virtual returns (uint256) {
        return balanceOf[account];
    }

    function _transfer(
        address _from,
        address _to,
        uint256 _value
    ) internal virtual override {
        super._transfer(_from, _to, _value);
        _moveDelegates(delegates[_from], delegates[_to], safe96(_value, "StkTruToken: uint96 overflow"));
    }

    function _mint(address account, uint256 amount) internal virtual override {
        super._mint(account, amount);
        _moveDelegates(address(0), delegates[account], safe96(amount, "StkTruToken: uint96 overflow"));
    }

    function _burn(address account, uint256 amount) internal virtual override {
        super._burn(account, amount);
        _moveDelegates(delegates[account], address(0), safe96(amount, "StkTruToken: uint96 overflow"));
    }

    /**
     * @dev internal function to move delegates between accounts
     */
    function _moveDelegates(
        address srcRep,
        address dstRep,
        uint96 amount
    ) internal {
        if (srcRep != dstRep && amount > 0) {
            if (srcRep != address(0)) {
                uint32 srcRepNum = numCheckpoints[srcRep];
                uint96 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
                uint96 srcRepNew = sub96(srcRepOld, amount, "TrustToken::_moveVotes: vote amount underflows");
                _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
            }

            if (dstRep != address(0)) {
                uint32 dstRepNum = numCheckpoints[dstRep];
                uint96 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
                uint96 dstRepNew = add96(dstRepOld, amount, "TrustToken::_moveVotes: vote amount overflows");
                _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
            }
        }
    }

    /** 
     * @dev internal function to write a checkpoint for voting power
     */
    function _writeCheckpoint(
        address delegatee,
        uint32 nCheckpoints,
        uint96 oldVotes,
        uint96 newVotes
    ) internal {
        uint32 blockNumber = safe32(block.number, "TrustToken::_writeCheckpoint: block number exceeds 32 bits");

        if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
            checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
        } else {
            checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
            numCheckpoints[delegatee] = nCheckpoints + 1;
        }

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

    /**
     * @dev internal function to convert from uint256 to uint32
     */
    function safe32(uint256 n, string memory errorMessage) internal pure returns (uint32) {
        require(n < 2**32, errorMessage);
        return uint32(n);
    }

    /**
     * @dev internal function to convert from uint256 to uint96
     */
    function safe96(uint256 n, string memory errorMessage) internal pure returns (uint96) {
        require(n < 2**96, errorMessage);
        return uint96(n);
    }

    /**
     * @dev internal safe math function to add two uint96 numbers
     */
    function add96(
        uint96 a,
        uint96 b,
        string memory errorMessage
    ) internal pure returns (uint96) {
        uint96 c = a + b;
        require(c >= a, errorMessage);
        return c;
    }

    /**
     * @dev internal safe math function to subtract two uint96 numbers
     */
    function sub96(
        uint96 a,
        uint96 b,
        string memory errorMessage
    ) internal pure returns (uint96) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /** 
     * @dev internal function to get chain ID
     */
    function getChainId() internal pure returns (uint256) {
        uint256 chainId;
        assembly {
            chainId := chainid()
        }
        return chainId;
    }
}


// Dependency file: contracts/trusttoken/common/ClaimableContract.sol

// pragma solidity 0.6.10;

// import {ProxyStorage} from "contracts/trusttoken/common/ProxyStorage.sol";

/**
 * @title ClaimableContract
 * @dev The ClaimableContract contract is a copy of Claimable Contract by Zeppelin.
 and provides basic authorization control functions. Inherits storage layout of
 ProxyStorage.
 */
contract ClaimableContract is ProxyStorage {
    function owner() public view returns (address) {
        return owner_;
    }

    function pendingOwner() public view returns (address) {
        return pendingOwner_;
    }

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

    /**
     * @dev sets the original `owner` of the contract to the sender
     * at construction. Must then be reinitialized
     */
    constructor() public {
        owner_ = msg.sender;
        emit OwnershipTransferred(address(0), msg.sender);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(msg.sender == owner_, "only owner");
        _;
    }

    /**
     * @dev Modifier throws if called by any account other than the pendingOwner.
     */
    modifier onlyPendingOwner() {
        require(msg.sender == pendingOwner_);
        _;
    }

    /**
     * @dev Allows the current owner to set the pendingOwner address.
     * @param newOwner The address to transfer ownership to.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        pendingOwner_ = newOwner;
    }

    /**
     * @dev Allows the pendingOwner address to finalize the transfer.
     */
    function claimOwnership() public onlyPendingOwner {
        address _pendingOwner = pendingOwner_;
        emit OwnershipTransferred(owner_, _pendingOwner);
        owner_ = _pendingOwner;
        pendingOwner_ = address(0);
    }
}


// Dependency file: contracts/trusttoken/TimeLockedToken.sol

// pragma solidity 0.6.10;

// import "@openzeppelin/contracts/math/SafeMath.sol";

// import {VoteToken} from "contracts/governance/VoteToken.sol";
// import {ClaimableContract} from "contracts/trusttoken/common/ClaimableContract.sol";

/**
 * @title TimeLockedToken
 * @notice Time Locked ERC20 Token
 * @author Harold Hyatt
 * @dev Contract which gives the ability to time-lock tokens
 *
 * The registerLockup() function allows an account to transfer
 * its tokens to another account, locking them according to the
 * distribution epoch periods
 *
 * By overriding the balanceOf(), transfer(), and transferFrom()
 * functions in ERC20, an account can show its full, post-distribution
 * balance but only transfer or spend up to an allowed amount
 *
 * Every time an epoch passes, a portion of previously non-spendable tokens
 * are allowed to be transferred, and after all epochs have passed, the full
 * account balance is unlocked
 */
abstract contract TimeLockedToken is VoteToken, ClaimableContract {
    using SafeMath for uint256;

    // represents total distribution for locked balances
    mapping(address => uint256) distribution;

    // start of the lockup period
    // Friday, July 24, 2020 4:58:31 PM GMT
    uint256 constant LOCK_START = 1595609911;
    // length of time to delay first epoch
    uint256 constant FIRST_EPOCH_DELAY = 30 days;
    // how long does an epoch last
    uint256 constant EPOCH_DURATION = 90 days;
    // number of epochs
    uint256 constant TOTAL_EPOCHS = 8;
    // registry of locked addresses
    address public timeLockRegistry;
    // allow unlocked transfers to special account
    bool public returnsLocked;

    modifier onlyTimeLockRegistry() {
        require(msg.sender == timeLockRegistry, "only TimeLockRegistry");
        _;
    }

    /**
     * @dev Set TimeLockRegistry address
     * @param newTimeLockRegistry Address of TimeLockRegistry contract
     */
    function setTimeLockRegistry(address newTimeLockRegistry) external onlyOwner {
        require(newTimeLockRegistry != address(0), "cannot be zero address");
        require(newTimeLockRegistry != timeLockRegistry, "must be new TimeLockRegistry");
        timeLockRegistry = newTimeLockRegistry;
    }

    /**
     * @dev Permanently lock transfers to return address
     * Lock returns so there isn't always a way to send locked tokens
     */
    function lockReturns() external onlyOwner {
        returnsLocked = true;
    }

    /**
     * @dev Transfer function which includes unlocked tokens
     * Locked tokens can always be transfered back to the returns address
     * Transferring to owner allows re-issuance of funds through registry
     *
     * @param _from The address to send tokens from
     * @param _to The address that will receive the tokens
     * @param _value The amount of tokens to be transferred
     */
    function _transfer(
        address _from,
        address _to,
        uint256 _value
    ) internal virtual override {
        require(balanceOf[_from] >= _value, "insufficient balance");

        // transfers to owner proceed as normal when returns allowed
        if (!returnsLocked && _to == owner_) {
            transferToOwner(_from, _value);
            return;
        }
        // check if enough unlocked balance to transfer
        require(unlockedBalance(_from) >= _value, "attempting to transfer locked funds");
        super._transfer(_from, _to, _value);
    }

    /**
     * @dev Transfer tokens to owner. Used only when returns allowed.
     * @param _from The address to send tokens from
     * @param _value The amount of tokens to be transferred
     */
    function transferToOwner(address _from, uint256 _value) internal {
        uint256 unlocked = unlockedBalance(_from);

        if (unlocked < _value) {
            // We want to have unlocked = value, i.e.
            // value = balance - distribution * epochsLeft / totalEpochs
            // distribution = (balance - value) * totalEpochs / epochsLeft
            distribution[_from] = balanceOf[_from].sub(_value).mul(TOTAL_EPOCHS).div(epochsLeft());
        }
        super._transfer(_from, owner_, _value);
    }

    /**
     * @dev Check if amount we want to burn is unlocked before burning
     * @param _from The address whose tokens will burn
     * @param _value The amount of tokens to be burnt
     */
    function _burn(address _from, uint256 _value) internal override {
        require(balanceOf[_from] >= _value, "insufficient balance");
        require(unlockedBalance(_from) >= _value, "attempting to burn locked funds");

        super._burn(_from, _value);
    }

    /**
     * @dev Transfer tokens to another account under the lockup schedule
     * Emits a transfer event showing a transfer to the recipient
     * Only the registry can call this function
     * @param receiver Address to receive the tokens
     * @param amount Tokens to be transferred
     */
    function registerLockup(address receiver, uint256 amount) external onlyTimeLockRegistry {
        require(balanceOf[msg.sender] >= amount, "insufficient balance");

        // add amount to locked distribution
        distribution[receiver] = distribution[receiver].add(amount);

        // transfer to recipient
        _transfer(msg.sender, receiver, amount);
    }

    /**
     * @dev Get locked balance for an account
     * @param account Account to check
     * @return Amount locked
     */
    function lockedBalance(address account) public view returns (uint256) {
        // distribution * (epochsLeft / totalEpochs)
        return distribution[account].mul(epochsLeft()).div(TOTAL_EPOCHS);
    }

    /**
     * @dev Get unlocked balance for an account
     * @param account Account to check
     * @return Amount that is unlocked and available eg. to transfer
     */
    function unlockedBalance(address account) public view returns (uint256) {
        // totalBalance - lockedBalance
        return balanceOf[account].sub(lockedBalance(account));
    }

    function _balanceOf(address account) internal override view returns (uint256) {
        return unlockedBalance(account);
    }

    /*
     * @dev Get number of epochs passed
     * @return Value between 0 and 8 of lockup epochs already passed
     */
    function epochsPassed() public view returns (uint256) {
        // return 0 if timestamp is lower than start time
        if (block.timestamp < LOCK_START) {
            return 0;
        }

        // how long it has been since the beginning of lockup period
        uint256 timePassed = block.timestamp.sub(LOCK_START);

        // 1st epoch is FIRST_EPOCH_DELAY longer; we check to prevent subtraction underflow
        if (timePassed < FIRST_EPOCH_DELAY) {
            return 0;
        }

        // subtract the FIRST_EPOCH_DELAY, so that we can count all epochs as lasting EPOCH_DURATION
        uint256 totalEpochsPassed = timePassed.sub(FIRST_EPOCH_DELAY).div(EPOCH_DURATION);

        // epochs don't count over TOTAL_EPOCHS
        if (totalEpochsPassed > TOTAL_EPOCHS) {
            return TOTAL_EPOCHS;
        }

        return totalEpochsPassed;
    }

    function epochsLeft() public view returns (uint256) {
        return TOTAL_EPOCHS.sub(epochsPassed());
    }

    /**
     * @dev Get timestamp of next epoch
     * Will revert if all epochs have passed
     * @return Timestamp of when the next epoch starts
     */
    function nextEpoch() public view returns (uint256) {
        // get number of epochs passed
        uint256 passed = epochsPassed();

        // if all epochs passed, return
        if (passed == TOTAL_EPOCHS) {
            // return INT_MAX
            return uint256(-1);
        }

        // if no epochs passed, return latest epoch + delay + standard duration
        if (passed == 0) {
            return latestEpoch().add(FIRST_EPOCH_DELAY).add(EPOCH_DURATION);
        }

        // otherwise return latest epoch + epoch duration
        return latestEpoch().add(EPOCH_DURATION);
    }

    /**
     * @dev Get timestamp of latest epoch
     * @return Timestamp of when the current epoch has started
     */
    function latestEpoch() public view returns (uint256) {
        // get number of epochs passed
        uint256 passed = epochsPassed();

        // if no epochs passed, return lock start time
        if (passed == 0) {
            return LOCK_START;
        }

        // accounts for first epoch being longer
        // lockStart + firstEpochDelay + (epochsPassed * epochDuration)
        return LOCK_START.add(FIRST_EPOCH_DELAY).add(passed.mul(EPOCH_DURATION));
    }

    /**
     * @dev Get timestamp of final epoch
     * @return Timestamp of when the last epoch ends and all funds are released
     */
    function finalEpoch() public pure returns (uint256) {
        // lockStart + firstEpochDelay + (epochDuration * totalEpochs)
        return LOCK_START.add(FIRST_EPOCH_DELAY).add(EPOCH_DURATION.mul(TOTAL_EPOCHS));
    }

    /**
     * @dev Get timestamp of locking period start
     * @return Timestamp of locking period start
     */
    function lockStart() public pure returns (uint256) {
        return LOCK_START;
    }
}


// Root file: contracts/trusttoken/TrustToken.sol

pragma solidity 0.6.10;

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

/**
 * @title TrustToken
 * @dev The TrustToken contract is a claimable contract where the
 * owner can only mint or transfer ownership. TrustTokens use 8 decimals
 * in order to prevent rewards from getting stuck in the remainder on division.
 * Tolerates dilution to slash stake and accept rewards.
 */
contract TrustToken is TimeLockedToken {
    using SafeMath for uint256;

    uint256 constant MAX_SUPPLY = 145000000000000000;

    /**
     * @dev initialize trusttoken and give ownership to sender
     * This is necessary to set ownership for proxy
     */
    function initialize() public {
        require(!initalized, "already initialized");
        owner_ = msg.sender;
        initalized = true;
    }

    /**
     * @dev mint TRU
     * Can never mint more than MAX_SUPPLY = 1.45 billion
     */
    function mint(address _to, uint256 _amount) external onlyOwner {
        if (totalSupply.add(_amount) <= MAX_SUPPLY) {
            _mint(_to, _amount);
        } else {
            revert("Max supply exceeded");
        }
    }

    function burn(uint256 amount) external {
        _burn(msg.sender, amount);
    }

    function decimals() public override pure returns (uint8) {
        return 8;
    }

    function rounding() public pure returns (uint8) {
        return 8;
    }

    function name() public override pure returns (string memory) {
        return "TrueFi";
    }

    function symbol() public override pure returns (string memory) {
        return "TRU";
    }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DELEGATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","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":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"checkpoints","outputs":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint96","name":"votes","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"epochsLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"epochsPassed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getCurrentVotes","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPriorVotes","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"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":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"latestEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockReturns","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"lockedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"nextEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"registerLockup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"returnsLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rounding","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"newTimeLockRegistry","type":"address"}],"name":"setTimeLockRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"timeLockRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"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"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"unlockedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50600580546001600160a01b031916339081179091556040516000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3612e22806100606000396000f3fe608060405234801561001057600080fd5b50600436106102de5760003560e01c8063782d6fe1116101865780639cb118bf116100e3578063c3cda52011610097578063e7a324dc11610071578063e7a324dc146107ce578063f1127ed8146107d6578063f2fde38b14610835576102de565b8063c3cda52014610751578063dd62ed3e14610798578063e30c3978146107c6576102de565b8063a9059cbb116100c8578063a9059cbb146106f7578063aea0e78b14610723578063b4b5ea571461072b576102de565b80639cb118bf146106c3578063a457c2d7146106cb576102de565b806395d89b411161013a57806397671bea1161011f57806397671bea146106695780639ae697bf146106955780639c7e1a9e146106bb576102de565b806395d89b411461063b578063962399e214610643576102de565b80638129fc1c1161016b5780638129fc1c14610623578063881ed6db1461062b5780638da5cb5b14610633576102de565b8063782d6fe1146105b05780637ecebe00146105fd576102de565b8063335f57531161023f5780634e71e0c8116101f35780635e0fac2e116101cd5780635e0fac2e146105255780636fcfff451461054b57806370a082311461058a576102de565b80634e71e0c8146104d1578063587cde1e146104d95780635c19a95c146104ff576102de565b80633a98d88e116102245780633a98d88e1461047e57806340c10f191461048657806342966c68146104b4576102de565b8063335f57531461044a5780633950935114610452576102de565b8063238189a8116102965780632e4404031161027b5780632e440403146104245780632f38466214610442578063313ce56714610424576102de565b8063238189a8146103ca57806323b872dd146103ee576102de565b806315cb7cfa116102c757806315cb7cfa146103a057806318160ddd146103ba57806320606b70146103c2576102de565b806306fdde03146102e3578063095ea7b314610360575b600080fd5b6102eb61085b565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561032557818101518382015260200161030d565b50505050905090810190601f1680156103525780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61038c6004803603604081101561037657600080fd5b506001600160a01b038135169060200135610893565b604080519115158252519081900360200190f35b6103a86108b1565b60408051918252519081900360200190f35b6103a8610938565b6103a861093e565b6103d2610959565b604080516001600160a01b039092168252519081900360200190f35b61038c6004803603606081101561040457600080fd5b506001600160a01b03813581169160208101359091169060400135610968565b61042c6109f5565b6040805160ff9092168252519081900360200190f35b6103a86109fa565b61038c610a1a565b61038c6004803603604081101561046857600080fd5b506001600160a01b038135169060200135610a3b565b6103a8610a8f565b6104b26004803603604081101561049c57600080fd5b506001600160a01b038135169060200135610acb565b005b6104b2600480360360208110156104ca57600080fd5b5035610bac565b6104b2610bb9565b6103d2600480360360208110156104ef57600080fd5b50356001600160a01b0316610c50565b6104b26004803603602081101561051557600080fd5b50356001600160a01b0316610c6b565b6103a86004803603602081101561053b57600080fd5b50356001600160a01b0316610c75565b6105716004803603602081101561056157600080fd5b50356001600160a01b0316610ca8565b6040805163ffffffff9092168252519081900360200190f35b6103a8600480360360208110156105a057600080fd5b50356001600160a01b0316610cc0565b6105dc600480360360408110156105c657600080fd5b506001600160a01b038135169060200135610cd2565b604080516bffffffffffffffffffffffff9092168252519081900360200190f35b6103a86004803603602081101561061357600080fd5b50356001600160a01b0316610f6b565b6104b2610f7d565b6103a861102c565b6103d2611034565b6102eb611043565b6104b26004803603602081101561065957600080fd5b50356001600160a01b031661107a565b6104b26004803603604081101561067f57600080fd5b506001600160a01b0381351690602001356111d1565b6103a8600480360360208110156106ab57600080fd5b50356001600160a01b03166112e1565b6104b2611318565b6103a86113b8565b61038c600480360360408110156106e157600080fd5b506001600160a01b0381351690602001356113ed565b61038c6004803603604081101561070d57600080fd5b506001600160a01b03813516906020013561145b565b6103a861146f565b6105dc6004803603602081101561074157600080fd5b50356001600160a01b03166114e0565b6104b2600480360360c081101561076757600080fd5b506001600160a01b038135169060208101359060408101359060ff6060820135169060808101359060a00135611575565b6103a8600480360360408110156107ae57600080fd5b506001600160a01b0381358116916020013516611842565b6103d261185f565b6103a861186e565b610808600480360360408110156107ec57600080fd5b5080356001600160a01b0316906020013563ffffffff16611889565b6040805163ffffffff90931683526bffffffffffffffffffffffff90911660208301528051918290030190f35b6104b26004803603602081101561084b57600080fd5b50356001600160a01b03166118c4565b60408051808201909152600681527f547275654669000000000000000000000000000000000000000000000000000060208201525b90565b60006108a76108a061195d565b8484611961565b5060015b92915050565b6000635f1b13374210156108c757506000610890565b60006108dd42635f1b133763ffffffff611a4d16565b905062278d008110156108f4576000915050610890565b600061091c6276a7006109108462278d0063ffffffff611a4d16565b9063ffffffff611a8f16565b9050600881111561093257600892505050610890565b91505090565b60015481565b604051806043612c1682396043019050604051809103902081565b600c546001600160a01b031681565b6000610975848484611ad1565b6109eb8461098161195d565b6109e685604051806060016040528060288152602001612c7a602891396001600160a01b038a166000908152600360205260408120906109bf61195d565b6001600160a01b03168152602081019190915260400160002054919063ffffffff611be116565b611961565b5060019392505050565b600890565b6000610a15610a076108b1565b60089063ffffffff611a4d16565b905090565b600c5474010000000000000000000000000000000000000000900460ff1681565b60006108a7610a4861195d565b846109e68560036000610a5961195d565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff611c7816565b6000610a15610aa86276a700600863ffffffff611cd216565b610abf635f1b133762278d0063ffffffff611c7816565b9063ffffffff611c7816565b6005546001600160a01b03163314610b2a576040805162461bcd60e51b815260206004820152600a60248201527f6f6e6c79206f776e657200000000000000000000000000000000000000000000604482015290519081900360640190fd5b60015467020324bb546e800090610b47908363ffffffff611c7816565b11610b5b57610b568282611d2b565b610ba8565b6040805162461bcd60e51b815260206004820152601360248201527f4d617820737570706c7920657863656564656400000000000000000000000000604482015290519081900360640190fd5b5050565b610bb63382611d9f565b50565b6006546001600160a01b03163314610bd057600080fd5b6006546005546040516001600160a01b0392831692839216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b039092167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316179055600680549091169055565b6007602052600090815260409020546001600160a01b031681565b610bb63382611e73565b60006108ab610c83836112e1565b6001600160a01b0384166000908152600260205260409020549063ffffffff611a4d16565b60096020526000908152604090205463ffffffff1681565b60026020526000908152604090205481565b6000438210610d125760405162461bcd60e51b815260040180806020018281038252602d815260200180612b90602d913960400191505060405180910390fd5b6001600160a01b03831660009081526009602052604090205463ffffffff1680610d405760009150506108ab565b6001600160a01b038416600090815260086020908152604080832063ffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff860181168552925290912054168310610dfe576001600160a01b03841660009081526008602090815260408083207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9490940163ffffffff168352929052205464010000000090046bffffffffffffffffffffffff1690506108ab565b6001600160a01b038416600090815260086020908152604080832083805290915290205463ffffffff16831015610e395760009150506108ab565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82015b8163ffffffff168163ffffffff161115610f2057600282820363ffffffff16048103610e89612a8e565b506001600160a01b038716600090815260086020908152604080832063ffffffff8581168552908352928190208151808301909252549283168082526401000000009093046bffffffffffffffffffffffff169181019190915290871415610efb576020015194506108ab9350505050565b805163ffffffff16871115610f1257819350610f19565b6001820392505b5050610e5f565b506001600160a01b038516600090815260086020908152604080832063ffffffff909416835292905220546bffffffffffffffffffffffff6401000000009091041691505092915050565b600a6020526000908152604090205481565b60005460ff1615610fd5576040805162461bcd60e51b815260206004820152601360248201527f616c726561647920696e697469616c697a656400000000000000000000000000604482015290519081900360640190fd5b600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001633179055600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b635f1b133790565b6005546001600160a01b031690565b60408051808201909152600381527f5452550000000000000000000000000000000000000000000000000000000000602082015290565b6005546001600160a01b031633146110d9576040805162461bcd60e51b815260206004820152600a60248201527f6f6e6c79206f776e657200000000000000000000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b038116611134576040805162461bcd60e51b815260206004820152601660248201527f63616e6e6f74206265207a65726f206164647265737300000000000000000000604482015290519081900360640190fd5b600c546001600160a01b0382811691161415611197576040805162461bcd60e51b815260206004820152601c60248201527f6d757374206265206e65772054696d654c6f636b526567697374727900000000604482015290519081900360640190fd5b600c80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b600c546001600160a01b03163314611230576040805162461bcd60e51b815260206004820152601560248201527f6f6e6c792054696d654c6f636b52656769737472790000000000000000000000604482015290519081900360640190fd5b33600090815260026020526040902054811115611294576040805162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e6365000000000000000000000000604482015290519081900360640190fd5b6001600160a01b0382166000908152600b60205260409020546112bd908263ffffffff611c7816565b6001600160a01b0383166000908152600b6020526040902055610ba8338383611ad1565b60006108ab60086109106112f36109fa565b6001600160a01b0386166000908152600b60205260409020549063ffffffff611cd216565b6005546001600160a01b03163314611377576040805162461bcd60e51b815260206004820152600a60248201527f6f6e6c79206f776e657200000000000000000000000000000000000000000000604482015290519081900360640190fd5b600c80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b6000806113c36108b1565b9050806113d757635f1b1337915050610890565b610932610aa8826276a70063ffffffff611cd216565b60006108a76113fa61195d565b846109e685604051806060016040528060258152602001612dc8602591396003600061142461195d565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff611be116565b60006108a761146861195d565b8484611ad1565b60008061147a6108b1565b905060088114156114ae577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff915050610890565b806114d1576114c96276a700610abf62278d00610abf6113b8565b915050610890565b6109326276a700610abf6113b8565b6001600160a01b03811660009081526009602052604081205463ffffffff168061150b57600061156e565b6001600160a01b03831660009081526008602090815260408083207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff850163ffffffff16845290915290205464010000000090046bffffffffffffffffffffffff165b9392505050565b60006040518080612c16604391396043019050604051809103902061159861085b565b805190602001206115a7611f5e565b3060405160200180858152602001848152602001838152602001826001600160a01b03166001600160a01b0316815260200194505050505060405160208183030381529060405280519060200120905060006040518080612d62603a91396040805191829003603a0182206020808401919091526001600160a01b038c1683830152606083018b905260808084018b90528251808503909101815260a0840183528051908201207f190100000000000000000000000000000000000000000000000000000000000060c085015260c2840187905260e2808501829052835180860390910181526101028501808552815191840191909120600091829052610122860180865281905260ff8c1661014287015261016286018b905261018286018a9052935191965092945091926001926101a280830193927fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08301929081900390910190855afa15801561171e573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001519150506001600160a01b03811661178e5760405162461bcd60e51b815260040180806020018281038252602c815260200180612bbd602c913960400191505060405180910390fd5b6001600160a01b0381166000908152600a6020526040902080546001810190915589146117ec5760405162461bcd60e51b8152600401808060200182810382526028815260200180612d166028913960400191505060405180910390fd5b8742111561182b5760405162461bcd60e51b815260040180806020018281038252602c815260200180612d9c602c913960400191505060405180910390fd5b611835818b611e73565b505050505b505050505050565b600360209081526000928352604080842090915290825290205481565b6006546001600160a01b031690565b60405180603a612d628239603a019050604051809103902081565b600860209081526000928352604080842090915290825290205463ffffffff81169064010000000090046bffffffffffffffffffffffff1682565b6005546001600160a01b03163314611923576040805162461bcd60e51b815260206004820152600a60248201527f6f6e6c79206f776e657200000000000000000000000000000000000000000000604482015290519081900360640190fd5b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b3390565b6001600160a01b0383166119a65760405162461bcd60e51b8152600401808060200182810382526024815260200180612d3e6024913960400191505060405180910390fd5b6001600160a01b0382166119eb5760405162461bcd60e51b8152600401808060200182810382526022815260200180612b0e6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260036020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600061156e83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611be1565b600061156e83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611f62565b6001600160a01b038316600090815260026020526040902054811115611b3e576040805162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e6365000000000000000000000000604482015290519081900360640190fd5b600c5474010000000000000000000000000000000000000000900460ff16158015611b7657506005546001600160a01b038381169116145b15611b8a57611b858382611fc7565b611bdc565b80611b9484610c75565b1015611bd15760405162461bcd60e51b8152600401808060200182810382526023815260200180612ac96023913960400191505060405180910390fd5b611bdc838383612051565b505050565b60008184841115611c705760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c35578181015183820152602001611c1d565b50505050905090810190601f168015611c625780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561156e576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082611ce1575060006108ab565b82820282848281611cee57fe5b041461156e5760405162461bcd60e51b8152600401808060200182810382526021815260200180612c596021913960400191505060405180910390fd5b611d3582826120cf565b6001600160a01b038083166000908152600760209081526040808320548151808301909252601c82527f53746b547275546f6b656e3a2075696e743936206f766572666c6f770000000092820192909252610ba8939190911690611d9a9085906121cd565b612233565b6001600160a01b038216600090815260026020526040902054811115611e0c576040805162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e6365000000000000000000000000604482015290519081900360640190fd5b80611e1683610c75565b1015611e69576040805162461bcd60e51b815260206004820152601f60248201527f617474656d7074696e6720746f206275726e206c6f636b65642066756e647300604482015290519081900360640190fd5b610ba88282612412565b6001600160a01b0380831660009081526007602052604081205490911690611ed8611e9d85612499565b6040518060400160405280601c81526020017f53746b547275546f6b656e3a2075696e743936206f766572666c6f77000000008152506121cd565b6001600160a01b0385811660008181526007602052604080822080547fffffffffffffffffffffffff000000000000000000000000000000000000000016898616908117909155905194955093928616927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4611f58828483612233565b50505050565b4690565b60008183611fb15760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611c35578181015183820152602001611c1d565b506000838581611fbd57fe5b0495945050505050565b6000611fd283610c75565b90508181101561203d57612023611fe76109fa565b6001600160a01b03851660009081526002602052604090205461091090600890612017908763ffffffff611a4d16565b9063ffffffff611cd216565b6001600160a01b0384166000908152600b60205260409020555b600554611bdc9084906001600160a01b0316845b61205c8383836124a4565b6001600160a01b03808416600090815260076020908152604080832054868516845292819020548151808301909252601c82527f53746b547275546f6b656e3a2075696e743936206f766572666c6f770000000092820192909252611bdc93928316929190911690611d9a9085906121cd565b6001600160a01b03821661212a576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61213660008383611bdc565b600154612149908263ffffffff611c7816565b6001556001600160a01b038216600090815260026020526040902054612175908263ffffffff611c7816565b6001600160a01b03831660008181526002602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000816c01000000000000000000000000841061222b5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611c35578181015183820152602001611c1d565b509192915050565b816001600160a01b0316836001600160a01b03161415801561226357506000816bffffffffffffffffffffffff16115b15611bdc576001600160a01b0383161561233f576001600160a01b03831660009081526009602052604081205463ffffffff1690816122a3576000612306565b6001600160a01b03851660009081526008602090815260408083207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff860163ffffffff16845290915290205464010000000090046bffffffffffffffffffffffff165b9050600061232d82856040518060600160405280602e8152602001612ca2602e913961260d565b905061233b8684848461267c565b5050505b6001600160a01b03821615611bdc576001600160a01b03821660009081526009602052604081205463ffffffff16908161237a5760006123dd565b6001600160a01b03841660009081526008602090815260408083207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff860163ffffffff16845290915290205464010000000090046bffffffffffffffffffffffff165b9050600061240482856040518060600160405280602d8152602001612be9602d91396128c1565b905061183a8584848461267c565b61241c8282612930565b610ba860076000846001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a90046001600160a01b03166000611d9a846040518060400160405280601c81526020017f53746b547275546f6b656e3a2075696e743936206f766572666c6f77000000008152506121cd565b60006108ab82610c75565b6001600160a01b0383166124e95760405162461bcd60e51b8152600401808060200182810382526025815260200180612cf16025913960400191505060405180910390fd5b6001600160a01b03821661252e5760405162461bcd60e51b8152600401808060200182810382526023815260200180612aa66023913960400191505060405180910390fd5b612539838383611bdc565b61257c81604051806060016040528060268152602001612b30602691396001600160a01b038616600090815260026020526040902054919063ffffffff611be116565b6001600160a01b0380851660009081526002602052604080822093909355908416815220546125b1908263ffffffff611c7816565b6001600160a01b0380841660008181526002602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000836bffffffffffffffffffffffff16836bffffffffffffffffffffffff1611158290611c705760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611c35578181015183820152602001611c1d565b60006126a0436040518060600160405280603a8152602001612b56603a9139612a38565b905060008463ffffffff1611801561270757506001600160a01b038516600090815260086020908152604080832063ffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8901811685529252909120548282169116145b15612799576001600160a01b03851660009081526008602090815260408083207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff880163ffffffff168452909152902080547fffffffffffffffffffffffffffffffff000000000000000000000000ffffffff166401000000006bffffffffffffffffffffffff851602179055612868565b60408051808201825263ffffffff80841682526bffffffffffffffffffffffff80861660208085019182526001600160a01b038b166000818152600883528781208c871682528352878120965187549451909516640100000000027fffffffffffffffffffffffffffffffff000000000000000000000000ffffffff9587167fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000958616179590951694909417909555938252600990935292909220805460018801909316929091169190911790555b604080516bffffffffffffffffffffffff80861682528416602082015281516001600160a01b038816927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a25050505050565b6000838301826bffffffffffffffffffffffff80871690831610156129275760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611c35578181015183820152602001611c1d565b50949350505050565b6001600160a01b0382166129755760405162461bcd60e51b8152600401808060200182810382526021815260200180612cd06021913960400191505060405180910390fd5b61298182600083611bdc565b6129c481604051806060016040528060228152602001612aec602291396001600160a01b038516600090815260026020526040902054919063ffffffff611be116565b6001600160a01b0383166000908152600260205260409020556001546129f0908263ffffffff611a4d16565b6001556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600081640100000000841061222b5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611c35578181015183820152602001611c1d565b60408051808201909152600080825260208201529056fe45524332303a207472616e7366657220746f20746865207a65726f2061646472657373617474656d7074696e6720746f207472616e73666572206c6f636b65642066756e647345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63655472757374546f6b656e3a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d626572206578636565647320333220626974735472757374546f6b656e3a3a6765745072696f72566f7465733a206e6f74207965742064657465726d696e65645472757374546f6b656e3a3a64656c656761746542795369673a20696e76616c6964207369676e61747572655472757374546f6b656e3a3a5f6d6f7665566f7465733a20766f746520616d6f756e74206f766572666c6f7773454950373132446f6d61696e28737472696e67206e616d652c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63655472757374546f6b656e3a3a5f6d6f7665566f7465733a20766f746520616d6f756e7420756e646572666c6f777345524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f20616464726573735472757374546f6b656e3a3a64656c656761746542795369673a20696e76616c6964206e6f6e636545524332303a20617070726f76652066726f6d20746865207a65726f206164647265737344656c65676174696f6e28616464726573732064656c6567617465652c75696e74323536206e6f6e63652c75696e7432353620657870697279295472757374546f6b656e3a3a64656c656761746542795369673a207369676e6174757265206578706972656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220de699c90e2166f9367ffbfbc63eaa0c5d7d26e642e38669ce425218cf9f8375164736f6c634300060a0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102de5760003560e01c8063782d6fe1116101865780639cb118bf116100e3578063c3cda52011610097578063e7a324dc11610071578063e7a324dc146107ce578063f1127ed8146107d6578063f2fde38b14610835576102de565b8063c3cda52014610751578063dd62ed3e14610798578063e30c3978146107c6576102de565b8063a9059cbb116100c8578063a9059cbb146106f7578063aea0e78b14610723578063b4b5ea571461072b576102de565b80639cb118bf146106c3578063a457c2d7146106cb576102de565b806395d89b411161013a57806397671bea1161011f57806397671bea146106695780639ae697bf146106955780639c7e1a9e146106bb576102de565b806395d89b411461063b578063962399e214610643576102de565b80638129fc1c1161016b5780638129fc1c14610623578063881ed6db1461062b5780638da5cb5b14610633576102de565b8063782d6fe1146105b05780637ecebe00146105fd576102de565b8063335f57531161023f5780634e71e0c8116101f35780635e0fac2e116101cd5780635e0fac2e146105255780636fcfff451461054b57806370a082311461058a576102de565b80634e71e0c8146104d1578063587cde1e146104d95780635c19a95c146104ff576102de565b80633a98d88e116102245780633a98d88e1461047e57806340c10f191461048657806342966c68146104b4576102de565b8063335f57531461044a5780633950935114610452576102de565b8063238189a8116102965780632e4404031161027b5780632e440403146104245780632f38466214610442578063313ce56714610424576102de565b8063238189a8146103ca57806323b872dd146103ee576102de565b806315cb7cfa116102c757806315cb7cfa146103a057806318160ddd146103ba57806320606b70146103c2576102de565b806306fdde03146102e3578063095ea7b314610360575b600080fd5b6102eb61085b565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561032557818101518382015260200161030d565b50505050905090810190601f1680156103525780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61038c6004803603604081101561037657600080fd5b506001600160a01b038135169060200135610893565b604080519115158252519081900360200190f35b6103a86108b1565b60408051918252519081900360200190f35b6103a8610938565b6103a861093e565b6103d2610959565b604080516001600160a01b039092168252519081900360200190f35b61038c6004803603606081101561040457600080fd5b506001600160a01b03813581169160208101359091169060400135610968565b61042c6109f5565b6040805160ff9092168252519081900360200190f35b6103a86109fa565b61038c610a1a565b61038c6004803603604081101561046857600080fd5b506001600160a01b038135169060200135610a3b565b6103a8610a8f565b6104b26004803603604081101561049c57600080fd5b506001600160a01b038135169060200135610acb565b005b6104b2600480360360208110156104ca57600080fd5b5035610bac565b6104b2610bb9565b6103d2600480360360208110156104ef57600080fd5b50356001600160a01b0316610c50565b6104b26004803603602081101561051557600080fd5b50356001600160a01b0316610c6b565b6103a86004803603602081101561053b57600080fd5b50356001600160a01b0316610c75565b6105716004803603602081101561056157600080fd5b50356001600160a01b0316610ca8565b6040805163ffffffff9092168252519081900360200190f35b6103a8600480360360208110156105a057600080fd5b50356001600160a01b0316610cc0565b6105dc600480360360408110156105c657600080fd5b506001600160a01b038135169060200135610cd2565b604080516bffffffffffffffffffffffff9092168252519081900360200190f35b6103a86004803603602081101561061357600080fd5b50356001600160a01b0316610f6b565b6104b2610f7d565b6103a861102c565b6103d2611034565b6102eb611043565b6104b26004803603602081101561065957600080fd5b50356001600160a01b031661107a565b6104b26004803603604081101561067f57600080fd5b506001600160a01b0381351690602001356111d1565b6103a8600480360360208110156106ab57600080fd5b50356001600160a01b03166112e1565b6104b2611318565b6103a86113b8565b61038c600480360360408110156106e157600080fd5b506001600160a01b0381351690602001356113ed565b61038c6004803603604081101561070d57600080fd5b506001600160a01b03813516906020013561145b565b6103a861146f565b6105dc6004803603602081101561074157600080fd5b50356001600160a01b03166114e0565b6104b2600480360360c081101561076757600080fd5b506001600160a01b038135169060208101359060408101359060ff6060820135169060808101359060a00135611575565b6103a8600480360360408110156107ae57600080fd5b506001600160a01b0381358116916020013516611842565b6103d261185f565b6103a861186e565b610808600480360360408110156107ec57600080fd5b5080356001600160a01b0316906020013563ffffffff16611889565b6040805163ffffffff90931683526bffffffffffffffffffffffff90911660208301528051918290030190f35b6104b26004803603602081101561084b57600080fd5b50356001600160a01b03166118c4565b60408051808201909152600681527f547275654669000000000000000000000000000000000000000000000000000060208201525b90565b60006108a76108a061195d565b8484611961565b5060015b92915050565b6000635f1b13374210156108c757506000610890565b60006108dd42635f1b133763ffffffff611a4d16565b905062278d008110156108f4576000915050610890565b600061091c6276a7006109108462278d0063ffffffff611a4d16565b9063ffffffff611a8f16565b9050600881111561093257600892505050610890565b91505090565b60015481565b604051806043612c1682396043019050604051809103902081565b600c546001600160a01b031681565b6000610975848484611ad1565b6109eb8461098161195d565b6109e685604051806060016040528060288152602001612c7a602891396001600160a01b038a166000908152600360205260408120906109bf61195d565b6001600160a01b03168152602081019190915260400160002054919063ffffffff611be116565b611961565b5060019392505050565b600890565b6000610a15610a076108b1565b60089063ffffffff611a4d16565b905090565b600c5474010000000000000000000000000000000000000000900460ff1681565b60006108a7610a4861195d565b846109e68560036000610a5961195d565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff611c7816565b6000610a15610aa86276a700600863ffffffff611cd216565b610abf635f1b133762278d0063ffffffff611c7816565b9063ffffffff611c7816565b6005546001600160a01b03163314610b2a576040805162461bcd60e51b815260206004820152600a60248201527f6f6e6c79206f776e657200000000000000000000000000000000000000000000604482015290519081900360640190fd5b60015467020324bb546e800090610b47908363ffffffff611c7816565b11610b5b57610b568282611d2b565b610ba8565b6040805162461bcd60e51b815260206004820152601360248201527f4d617820737570706c7920657863656564656400000000000000000000000000604482015290519081900360640190fd5b5050565b610bb63382611d9f565b50565b6006546001600160a01b03163314610bd057600080fd5b6006546005546040516001600160a01b0392831692839216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b039092167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316179055600680549091169055565b6007602052600090815260409020546001600160a01b031681565b610bb63382611e73565b60006108ab610c83836112e1565b6001600160a01b0384166000908152600260205260409020549063ffffffff611a4d16565b60096020526000908152604090205463ffffffff1681565b60026020526000908152604090205481565b6000438210610d125760405162461bcd60e51b815260040180806020018281038252602d815260200180612b90602d913960400191505060405180910390fd5b6001600160a01b03831660009081526009602052604090205463ffffffff1680610d405760009150506108ab565b6001600160a01b038416600090815260086020908152604080832063ffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff860181168552925290912054168310610dfe576001600160a01b03841660009081526008602090815260408083207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9490940163ffffffff168352929052205464010000000090046bffffffffffffffffffffffff1690506108ab565b6001600160a01b038416600090815260086020908152604080832083805290915290205463ffffffff16831015610e395760009150506108ab565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82015b8163ffffffff168163ffffffff161115610f2057600282820363ffffffff16048103610e89612a8e565b506001600160a01b038716600090815260086020908152604080832063ffffffff8581168552908352928190208151808301909252549283168082526401000000009093046bffffffffffffffffffffffff169181019190915290871415610efb576020015194506108ab9350505050565b805163ffffffff16871115610f1257819350610f19565b6001820392505b5050610e5f565b506001600160a01b038516600090815260086020908152604080832063ffffffff909416835292905220546bffffffffffffffffffffffff6401000000009091041691505092915050565b600a6020526000908152604090205481565b60005460ff1615610fd5576040805162461bcd60e51b815260206004820152601360248201527f616c726561647920696e697469616c697a656400000000000000000000000000604482015290519081900360640190fd5b600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001633179055600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b635f1b133790565b6005546001600160a01b031690565b60408051808201909152600381527f5452550000000000000000000000000000000000000000000000000000000000602082015290565b6005546001600160a01b031633146110d9576040805162461bcd60e51b815260206004820152600a60248201527f6f6e6c79206f776e657200000000000000000000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b038116611134576040805162461bcd60e51b815260206004820152601660248201527f63616e6e6f74206265207a65726f206164647265737300000000000000000000604482015290519081900360640190fd5b600c546001600160a01b0382811691161415611197576040805162461bcd60e51b815260206004820152601c60248201527f6d757374206265206e65772054696d654c6f636b526567697374727900000000604482015290519081900360640190fd5b600c80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b600c546001600160a01b03163314611230576040805162461bcd60e51b815260206004820152601560248201527f6f6e6c792054696d654c6f636b52656769737472790000000000000000000000604482015290519081900360640190fd5b33600090815260026020526040902054811115611294576040805162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e6365000000000000000000000000604482015290519081900360640190fd5b6001600160a01b0382166000908152600b60205260409020546112bd908263ffffffff611c7816565b6001600160a01b0383166000908152600b6020526040902055610ba8338383611ad1565b60006108ab60086109106112f36109fa565b6001600160a01b0386166000908152600b60205260409020549063ffffffff611cd216565b6005546001600160a01b03163314611377576040805162461bcd60e51b815260206004820152600a60248201527f6f6e6c79206f776e657200000000000000000000000000000000000000000000604482015290519081900360640190fd5b600c80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b6000806113c36108b1565b9050806113d757635f1b1337915050610890565b610932610aa8826276a70063ffffffff611cd216565b60006108a76113fa61195d565b846109e685604051806060016040528060258152602001612dc8602591396003600061142461195d565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff611be116565b60006108a761146861195d565b8484611ad1565b60008061147a6108b1565b905060088114156114ae577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff915050610890565b806114d1576114c96276a700610abf62278d00610abf6113b8565b915050610890565b6109326276a700610abf6113b8565b6001600160a01b03811660009081526009602052604081205463ffffffff168061150b57600061156e565b6001600160a01b03831660009081526008602090815260408083207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff850163ffffffff16845290915290205464010000000090046bffffffffffffffffffffffff165b9392505050565b60006040518080612c16604391396043019050604051809103902061159861085b565b805190602001206115a7611f5e565b3060405160200180858152602001848152602001838152602001826001600160a01b03166001600160a01b0316815260200194505050505060405160208183030381529060405280519060200120905060006040518080612d62603a91396040805191829003603a0182206020808401919091526001600160a01b038c1683830152606083018b905260808084018b90528251808503909101815260a0840183528051908201207f190100000000000000000000000000000000000000000000000000000000000060c085015260c2840187905260e2808501829052835180860390910181526101028501808552815191840191909120600091829052610122860180865281905260ff8c1661014287015261016286018b905261018286018a9052935191965092945091926001926101a280830193927fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08301929081900390910190855afa15801561171e573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001519150506001600160a01b03811661178e5760405162461bcd60e51b815260040180806020018281038252602c815260200180612bbd602c913960400191505060405180910390fd5b6001600160a01b0381166000908152600a6020526040902080546001810190915589146117ec5760405162461bcd60e51b8152600401808060200182810382526028815260200180612d166028913960400191505060405180910390fd5b8742111561182b5760405162461bcd60e51b815260040180806020018281038252602c815260200180612d9c602c913960400191505060405180910390fd5b611835818b611e73565b505050505b505050505050565b600360209081526000928352604080842090915290825290205481565b6006546001600160a01b031690565b60405180603a612d628239603a019050604051809103902081565b600860209081526000928352604080842090915290825290205463ffffffff81169064010000000090046bffffffffffffffffffffffff1682565b6005546001600160a01b03163314611923576040805162461bcd60e51b815260206004820152600a60248201527f6f6e6c79206f776e657200000000000000000000000000000000000000000000604482015290519081900360640190fd5b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b3390565b6001600160a01b0383166119a65760405162461bcd60e51b8152600401808060200182810382526024815260200180612d3e6024913960400191505060405180910390fd5b6001600160a01b0382166119eb5760405162461bcd60e51b8152600401808060200182810382526022815260200180612b0e6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260036020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600061156e83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611be1565b600061156e83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611f62565b6001600160a01b038316600090815260026020526040902054811115611b3e576040805162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e6365000000000000000000000000604482015290519081900360640190fd5b600c5474010000000000000000000000000000000000000000900460ff16158015611b7657506005546001600160a01b038381169116145b15611b8a57611b858382611fc7565b611bdc565b80611b9484610c75565b1015611bd15760405162461bcd60e51b8152600401808060200182810382526023815260200180612ac96023913960400191505060405180910390fd5b611bdc838383612051565b505050565b60008184841115611c705760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c35578181015183820152602001611c1d565b50505050905090810190601f168015611c625780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561156e576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082611ce1575060006108ab565b82820282848281611cee57fe5b041461156e5760405162461bcd60e51b8152600401808060200182810382526021815260200180612c596021913960400191505060405180910390fd5b611d3582826120cf565b6001600160a01b038083166000908152600760209081526040808320548151808301909252601c82527f53746b547275546f6b656e3a2075696e743936206f766572666c6f770000000092820192909252610ba8939190911690611d9a9085906121cd565b612233565b6001600160a01b038216600090815260026020526040902054811115611e0c576040805162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e6365000000000000000000000000604482015290519081900360640190fd5b80611e1683610c75565b1015611e69576040805162461bcd60e51b815260206004820152601f60248201527f617474656d7074696e6720746f206275726e206c6f636b65642066756e647300604482015290519081900360640190fd5b610ba88282612412565b6001600160a01b0380831660009081526007602052604081205490911690611ed8611e9d85612499565b6040518060400160405280601c81526020017f53746b547275546f6b656e3a2075696e743936206f766572666c6f77000000008152506121cd565b6001600160a01b0385811660008181526007602052604080822080547fffffffffffffffffffffffff000000000000000000000000000000000000000016898616908117909155905194955093928616927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4611f58828483612233565b50505050565b4690565b60008183611fb15760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611c35578181015183820152602001611c1d565b506000838581611fbd57fe5b0495945050505050565b6000611fd283610c75565b90508181101561203d57612023611fe76109fa565b6001600160a01b03851660009081526002602052604090205461091090600890612017908763ffffffff611a4d16565b9063ffffffff611cd216565b6001600160a01b0384166000908152600b60205260409020555b600554611bdc9084906001600160a01b0316845b61205c8383836124a4565b6001600160a01b03808416600090815260076020908152604080832054868516845292819020548151808301909252601c82527f53746b547275546f6b656e3a2075696e743936206f766572666c6f770000000092820192909252611bdc93928316929190911690611d9a9085906121cd565b6001600160a01b03821661212a576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61213660008383611bdc565b600154612149908263ffffffff611c7816565b6001556001600160a01b038216600090815260026020526040902054612175908263ffffffff611c7816565b6001600160a01b03831660008181526002602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000816c01000000000000000000000000841061222b5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611c35578181015183820152602001611c1d565b509192915050565b816001600160a01b0316836001600160a01b03161415801561226357506000816bffffffffffffffffffffffff16115b15611bdc576001600160a01b0383161561233f576001600160a01b03831660009081526009602052604081205463ffffffff1690816122a3576000612306565b6001600160a01b03851660009081526008602090815260408083207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff860163ffffffff16845290915290205464010000000090046bffffffffffffffffffffffff165b9050600061232d82856040518060600160405280602e8152602001612ca2602e913961260d565b905061233b8684848461267c565b5050505b6001600160a01b03821615611bdc576001600160a01b03821660009081526009602052604081205463ffffffff16908161237a5760006123dd565b6001600160a01b03841660009081526008602090815260408083207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff860163ffffffff16845290915290205464010000000090046bffffffffffffffffffffffff165b9050600061240482856040518060600160405280602d8152602001612be9602d91396128c1565b905061183a8584848461267c565b61241c8282612930565b610ba860076000846001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a90046001600160a01b03166000611d9a846040518060400160405280601c81526020017f53746b547275546f6b656e3a2075696e743936206f766572666c6f77000000008152506121cd565b60006108ab82610c75565b6001600160a01b0383166124e95760405162461bcd60e51b8152600401808060200182810382526025815260200180612cf16025913960400191505060405180910390fd5b6001600160a01b03821661252e5760405162461bcd60e51b8152600401808060200182810382526023815260200180612aa66023913960400191505060405180910390fd5b612539838383611bdc565b61257c81604051806060016040528060268152602001612b30602691396001600160a01b038616600090815260026020526040902054919063ffffffff611be116565b6001600160a01b0380851660009081526002602052604080822093909355908416815220546125b1908263ffffffff611c7816565b6001600160a01b0380841660008181526002602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000836bffffffffffffffffffffffff16836bffffffffffffffffffffffff1611158290611c705760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611c35578181015183820152602001611c1d565b60006126a0436040518060600160405280603a8152602001612b56603a9139612a38565b905060008463ffffffff1611801561270757506001600160a01b038516600090815260086020908152604080832063ffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8901811685529252909120548282169116145b15612799576001600160a01b03851660009081526008602090815260408083207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff880163ffffffff168452909152902080547fffffffffffffffffffffffffffffffff000000000000000000000000ffffffff166401000000006bffffffffffffffffffffffff851602179055612868565b60408051808201825263ffffffff80841682526bffffffffffffffffffffffff80861660208085019182526001600160a01b038b166000818152600883528781208c871682528352878120965187549451909516640100000000027fffffffffffffffffffffffffffffffff000000000000000000000000ffffffff9587167fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000958616179590951694909417909555938252600990935292909220805460018801909316929091169190911790555b604080516bffffffffffffffffffffffff80861682528416602082015281516001600160a01b038816927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a25050505050565b6000838301826bffffffffffffffffffffffff80871690831610156129275760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611c35578181015183820152602001611c1d565b50949350505050565b6001600160a01b0382166129755760405162461bcd60e51b8152600401808060200182810382526021815260200180612cd06021913960400191505060405180910390fd5b61298182600083611bdc565b6129c481604051806060016040528060228152602001612aec602291396001600160a01b038516600090815260026020526040902054919063ffffffff611be116565b6001600160a01b0383166000908152600260205260409020556001546129f0908263ffffffff611a4d16565b6001556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600081640100000000841061222b5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611c35578181015183820152602001611c1d565b60408051808201909152600080825260208201529056fe45524332303a207472616e7366657220746f20746865207a65726f2061646472657373617474656d7074696e6720746f207472616e73666572206c6f636b65642066756e647345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63655472757374546f6b656e3a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d626572206578636565647320333220626974735472757374546f6b656e3a3a6765745072696f72566f7465733a206e6f74207965742064657465726d696e65645472757374546f6b656e3a3a64656c656761746542795369673a20696e76616c6964207369676e61747572655472757374546f6b656e3a3a5f6d6f7665566f7465733a20766f746520616d6f756e74206f766572666c6f7773454950373132446f6d61696e28737472696e67206e616d652c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63655472757374546f6b656e3a3a5f6d6f7665566f7465733a20766f746520616d6f756e7420756e646572666c6f777345524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f20616464726573735472757374546f6b656e3a3a64656c656761746542795369673a20696e76616c6964206e6f6e636545524332303a20617070726f76652066726f6d20746865207a65726f206164647265737344656c65676174696f6e28616464726573732064656c6567617465652c75696e74323536206e6f6e63652c75696e7432353620657870697279295472757374546f6b656e3a3a64656c656761746542795369673a207369676e6174757265206578706972656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220de699c90e2166f9367ffbfbc63eaa0c5d7d26e642e38669ce425218cf9f8375164736f6c634300060a0033

Deployed Bytecode Sourcemap

53449:1236:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54485:95;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20989:160;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;20989:160:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;49913:889;;;:::i;:::-;;;;;;;;;;;;;;;;14232:26;;;:::i;33143:122::-;;;:::i;45071:31::-;;;:::i;:::-;;;;-1:-1:-1;;;;;45071:31:0;;;;;;;;;;;;;;21623:310;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;21623:310:0;;;;;;;;;;;;;;;;;:::i;54402:75::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;50810:110;;;:::i;45161:25::-;;;:::i;22342:216::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;22342:216:0;;;;;;;;:::i;52461:221::-;;;:::i;53978:233::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;53978:233:0;;;;;;;;:::i;:::-;;54219:83;;;;;;;;;;;;;;;;-1:-1:-1;54219:83:0;;:::i;43175:235::-;;;:::i;14498:44::-;;;;;;;;;;;;;;;;-1:-1:-1;14498:44:0;-1:-1:-1;;;;;14498:44:0;;:::i;33617:111::-;;;;;;;;;;;;;;;;-1:-1:-1;33617:111:0;-1:-1:-1;;;;;33617:111:0;;:::i;49456:185::-;;;;;;;;;;;;;;;;-1:-1:-1;49456:185:0;-1:-1:-1;;;;;49456:185:0;;:::i;14898:48::-;;;;;;;;;;;;;;;;-1:-1:-1;14898:48:0;-1:-1:-1;;;;;14898:48:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;14267:44;;;;;;;;;;;;;;;;-1:-1:-1;14267:44:0;-1:-1:-1;;;;;14267:44:0;;:::i;35357:1244::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;35357:1244:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;14999:41;;;;;;;;;;;;;;;;-1:-1:-1;14999:41:0;-1:-1:-1;;;;;14999:41:0;;:::i;53722:149::-;;;:::i;52809:87::-;;;:::i;41884:79::-;;;:::i;54588:94::-;;;:::i;45462:304::-;;;;;;;;;;;;;;;;-1:-1:-1;45462:304:0;-1:-1:-1;;;;;45462:304:0;;:::i;48546:375::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;48546:375:0;;;;;;;;:::i;49064:207::-;;;;;;;;;;;;;;;;-1:-1:-1;49064:207:0;-1:-1:-1;;;;;49064:207:0;;:::i;45921:81::-;;;:::i;51832:480::-;;;:::i;23061:267::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;23061:267:0;;;;;;;;:::i;20676:166::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;20676:166:0;;;;;;;;:::i;51089:610::-;;;:::i;34856:237::-;;;;;;;;;;;;;;;;-1:-1:-1;34856:237:0;-1:-1:-1;;;;;34856:237:0;;:::i;33799:879::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;33799:879:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;14318:64::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;14318:64:0;;;;;;;;;;:::i;41971:93::-;;;:::i;33272:117::-;;;:::i;14763:68::-;;;;;;;;;;;;;;;;-1:-1:-1;14763:68:0;;-1:-1:-1;;;;;14763:68:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;42973:105;;;;;;;;;;;;;;;;-1:-1:-1;42973:105:0;-1:-1:-1;;;;;42973:105:0;;:::i;54485:95::-;54557:15;;;;;;;;;;;;;;;;;54485:95;;:::o;20989:160::-;21063:4;21080:39;21089:12;:10;:12::i;:::-;21103:7;21112:6;21080:8;:39::i;:::-;-1:-1:-1;21137:4:0;20989:160;;;;;:::o;49913:889::-;49958:7;44773:10;50041:15;:28;50037:69;;;-1:-1:-1;50093:1:0;50086:8;;50037:69;50188:18;50209:31;:15;44773:10;50209:31;:19;:31;:::i;:::-;50188:52;;44871:7;50350:10;:30;50346:71;;;50404:1;50397:8;;;;;50346:71;50531:25;50559:53;44955:7;50559:33;:10;44871:7;50559:33;:14;:33;:::i;:::-;:37;:53;:37;:53;:::i;:::-;50531:81;;45026:1;50678:17;:32;50674:84;;;45026:1;50727:19;;;;;;50674:84;50777:17;-1:-1:-1;;49913:889:0;:::o;14232:26::-;;;;:::o;33143:122::-;33185:80;;;;;;;;;;;;;;;;;;33143:122;:::o;45071:31::-;;;-1:-1:-1;;;;;45071:31:0;;:::o;21623:310::-;21720:4;21737:36;21747:6;21755:9;21766:6;21737:9;:36::i;:::-;21784:119;21793:6;21801:12;:10;:12::i;:::-;21815:87;21851:6;21815:87;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21815:17:0;;;;;;:9;:17;;;;;;21833:12;:10;:12::i;:::-;-1:-1:-1;;;;;21815:31:0;;;;;;;;;;;;-1:-1:-1;21815:31:0;;;:87;;:35;:87;:::i;:::-;21784:8;:119::i;:::-;-1:-1:-1;21921:4:0;21623:310;;;;;:::o;54402:75::-;54468:1;54402:75;:::o;50810:110::-;50853:7;50880:32;50897:14;:12;:14::i;:::-;45026:1;;50880:32;:16;:32;:::i;:::-;50873:39;;50810:110;:::o;45161:25::-;;;;;;;;;:::o;22342:216::-;22430:4;22447:81;22456:12;:10;:12::i;:::-;22470:7;22479:48;22516:10;22479:9;:23;22489:12;:10;:12::i;:::-;-1:-1:-1;;;;;22479:23:0;;;;;;;;;;;;;;;;;-1:-1:-1;22479:23:0;;;:32;;;;;;;;;;;:48;:36;:48;:::i;52461:221::-;52504:7;52603:71;52641:32;44955:7;45026:1;52641:32;:18;:32;:::i;:::-;52603:33;44773:10;44871:7;52603:33;:14;:33;:::i;:::-;:37;:71;:37;:71;:::i;53978:233::-;42569:6;;-1:-1:-1;;;;;42569:6:0;42555:10;:20;42547:43;;;;;-1:-1:-1;;;42547:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;54056:11:::1;::::0;53560:18:::1;::::0;54056:24:::1;::::0;54072:7;54056:24:::1;:15;:24;:::i;:::-;:38;54052:152;;54111:19;54117:3;54122:7;54111:5;:19::i;:::-;54052:152;;;54163:29;::::0;;-1:-1:-1;;;54163:29:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;54052:152;53978:233:::0;;:::o;54219:83::-;54269:25;54275:10;54287:6;54269:5;:25::i;:::-;54219:83;:::o;43175:235::-;42780:13;;-1:-1:-1;;;;;42780:13:0;42766:10;:27;42758:36;;;;;;43260:13:::1;::::0;43310:6:::1;::::0;43289:43:::1;::::0;-1:-1:-1;;;;;43260:13:0;;::::1;::::0;;;43310:6:::1;::::0;43289:43:::1;::::0;43236:21:::1;::::0;43289:43:::1;43343:6;:22:::0;;-1:-1:-1;;;;;43343:22:0;;::::1;::::0;;;::::1;;::::0;;43376:13:::1;:26:::0;;;;::::1;::::0;;43175:235::o;14498:44::-;;;;;;;;;;;;-1:-1:-1;;;;;14498:44:0;;:::o;33617:111::-;33688:32;33698:10;33710:9;33688;:32::i;49456:185::-;49519:7;49587:46;49610:22;49624:7;49610:13;:22::i;:::-;-1:-1:-1;;;;;49587:18:0;;;;;;:9;:18;;;;;;;:46;:22;:46;:::i;14898:48::-;;;;;;;;;;;;;;;:::o;14267:44::-;;;;;;;;;;;;;:::o;35357:1244::-;35456:6;35497:12;35483:11;:26;35475:84;;;;-1:-1:-1;;;35475:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;35594:23:0;;35572:19;35594:23;;;:14;:23;;;;;;;;35632:17;35628:58;;35673:1;35666:8;;;;;35628:58;-1:-1:-1;;;;;35746:20:0;;;;;;:11;:20;;;;;;;;:38;35767:16;;;35746:38;;;;;;;;;:48;;:63;-1:-1:-1;35742:147:0;;-1:-1:-1;;;;;35833:20:0;;;;;;:11;:20;;;;;;;;35854:16;;;;;35833:38;;;;;;;;:44;;;;;;;-1:-1:-1;35826:51:0;;35742:147;-1:-1:-1;;;;;35950:20:0;;;;;;:11;:20;;;;;;;;:23;;;;;;;;:33;:23;:33;:47;-1:-1:-1;35946:88:0;;;36021:1;36014:8;;;;;35946:88;36046:12;36088:16;;;36115:428;36130:5;36122:13;;:5;:13;;;36115:428;;;36194:1;36177:13;;;36176:19;;;36168:27;;36237:20;;:::i;:::-;-1:-1:-1;;;;;;36260:20:0;;;;;;:11;:20;;;;;;;;:28;;;;;;;;;;;;;36237:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36307:27;;36303:229;;;36362:8;;;;-1:-1:-1;36355:15:0;;-1:-1:-1;;;;36355:15:0;36303:229;36396:12;;:26;;;-1:-1:-1;36392:140:0;;;36451:6;36443:14;;36392:140;;;36515:1;36506:6;:10;36498:18;;36392:140;36115:428;;;;;-1:-1:-1;;;;;;36560:20:0;;;;;;:11;:20;;;;;;;;:27;;;;;;;;;;:33;;;;;;;;-1:-1:-1;;35357:1244:0;;;;:::o;14999:41::-;;;;;;;;;;;;;:::o;53722:149::-;53771:10;;;;53770:11;53762:43;;;;;-1:-1:-1;;;53762:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;53816:6;:19;;;;53825:10;53816:19;;;:6;53846:17;;;;53816:19;53846:17;;;53722:149::o;52809:87::-;44773:10;52809:87;:::o;41884:79::-;41949:6;;-1:-1:-1;;;;;41949:6:0;41884:79;:::o;54588:94::-;54662:12;;;;;;;;;;;;;;;;;54588:94;:::o;45462:304::-;42569:6;;-1:-1:-1;;;;;42569:6:0;42555:10;:20;42547:43;;;;;-1:-1:-1;;;42547:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;45558:33:0;::::1;45550:68;;;::::0;;-1:-1:-1;;;45550:68:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;45660:16;::::0;-1:-1:-1;;;;;45637:39:0;;::::1;45660:16:::0;::::1;45637:39;;45629:80;;;::::0;;-1:-1:-1;;;45629:80:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;45720:16;:38:::0;;;::::1;-1:-1:-1::0;;;;;45720:38:0;;;::::1;::::0;;;::::1;::::0;;45462:304::o;48546:375::-;45260:16;;-1:-1:-1;;;;;45260:16:0;45246:10;:30;45238:64;;;;;-1:-1:-1;;;45238:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;48663:10:::1;48653:21;::::0;;;:9:::1;:21;::::0;;;;;:31;-1:-1:-1;48653:31:0::1;48645:64;;;::::0;;-1:-1:-1;;;48645:64:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;48793:22:0;::::1;;::::0;;;:12:::1;:22;::::0;;;;;:34:::1;::::0;48820:6;48793:34:::1;:26;:34;:::i;:::-;-1:-1:-1::0;;;;;48768:22:0;::::1;;::::0;;;:12:::1;:22;::::0;;;;:59;48874:39:::1;48884:10;48781:8:::0;48906:6;48874:9:::1;:39::i;49064:207::-:0;49125:7;49206:57;45026:1;49206:39;49232:12;:10;:12::i;:::-;-1:-1:-1;;;;;49206:21:0;;;;;;:12;:21;;;;;;;:39;:25;:39;:::i;45921:81::-;42569:6;;-1:-1:-1;;;;;42569:6:0;42555:10;:20;42547:43;;;;;-1:-1:-1;;;42547:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;45974:13:::1;:20:::0;;;::::1;::::0;::::1;::::0;;45921:81::o;51832:480::-;51876:7;51936:14;51953;:12;:14::i;:::-;51936:31;-1:-1:-1;52040:11:0;52036:61;;44773:10;52068:17;;;;;52036:61;52239:65;52277:26;:6;44955:7;52277:26;:10;:26;:::i;23061:267::-;23154:4;23171:127;23180:12;:10;:12::i;:::-;23194:7;23203:94;23240:15;23203:94;;;;;;;;;;;;;;;;;:9;:23;23213:12;:10;:12::i;:::-;-1:-1:-1;;;;;23203:23:0;;;;;;;;;;;;;;;;;-1:-1:-1;23203:23:0;;;:32;;;;;;;;;;;:94;;:36;:94;:::i;20676:166::-;20753:4;20770:42;20780:12;:10;:12::i;:::-;20794:9;20805:6;20770:9;:42::i;51089:610::-;51131:7;51191:14;51208;:12;:14::i;:::-;51191:31;;45026:1;51280:6;:22;51276:104;;;51365:2;51350:18;;;;;51276:104;51477:11;51473:107;;51512:56;44955:7;51512:36;44871:7;51512:13;:11;:13::i;:56::-;51505:63;;;;;51473:107;51658:33;44955:7;51658:13;:11;:13::i;34856:237::-;-1:-1:-1;;;;;34977:23:0;;34936:6;34977:23;;;:14;:23;;;;;;;;35018:16;:67;;35084:1;35018:67;;;-1:-1:-1;;;;;35037:20:0;;;;;;:11;:20;;;;;;;;35058:16;;;35037:38;;;;;;;;;:44;;;;;;35018:67;35011:74;34856:237;-1:-1:-1;;;34856:237:0:o;33799:879::-;33991:23;33185:80;;;;;;;;;;;;;;;;;;;34071:6;:4;:6::i;:::-;34055:24;;;;;;34081:12;:10;:12::i;:::-;34103:4;34027:82;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;34027:82:0;-1:-1:-1;;;;;34027:82:0;;;;;;;;;;;;;;;;;;;;;;;34017:93;;;;;;33991:119;;34121:18;33318:71;;;;;;;;;;;;;;;;;;;34152:57;;;;;;;;-1:-1:-1;;;;;34152:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34142:68;;;;;;34248:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34238:62;;;;;;;;;-1:-1:-1;34331:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34142:68;;-1:-1:-1;34238:62:0;;-1:-1:-1;;;34331:26:0;;;;;;;34152:57;-1:-1:-1;34331:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;34331:26:0;;;;;;-1:-1:-1;;;;;;;34376:23:0;;34368:80;;;;-1:-1:-1;;;34368:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;34476:17:0;;;;;;:6;:17;;;;;:19;;;;;;;;34467:28;;34459:81;;;;-1:-1:-1;;;34459:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34566:6;34559:3;:13;;34551:70;;;;-1:-1:-1;;;34551:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34639:31;34649:9;34660;34639;:31::i;:::-;34632:38;;;;33799:879;;;;;;;:::o;14318:64::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;41971:93::-;42043:13;;-1:-1:-1;;;;;42043:13:0;41971:93;:::o;33272:117::-;33318:71;;;;;;;;;;;;;;;;;;33272:117;:::o;14763:68::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;42973:105::-;42569:6;;-1:-1:-1;;;;;42569:6:0;42555:10;:20;42547:43;;;;;-1:-1:-1;;;42547:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;43046:13:::1;:24:::0;;;::::1;-1:-1:-1::0;;;;;43046:24:0;;;::::1;::::0;;;::::1;::::0;;42973:105::o;7530:106::-;7618:10;7530:106;:::o;26202:344::-;-1:-1:-1;;;;;26304:19:0;;26296:68;;;;-1:-1:-1;;;26296:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;26383:21:0;;26375:68;;;;-1:-1:-1;;;26375:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;26456:16:0;;;;;;;:9;:16;;;;;;;;:25;;;;;;;;;;;;;:34;;;26506:32;;;;;;;;;;;;;;;;;26202:344;;;:::o;2894:136::-;2952:7;2979:43;2983:1;2986;2979:43;;;;;;;;;;;;;;;;;:3;:43::i;4731:132::-;4789:7;4816:39;4820:1;4823;4816:39;;;;;;;;;;;;;;;;;:3;:39::i;46422:592::-;-1:-1:-1;;;;;46564:16:0;;;;;;:9;:16;;;;;;:26;-1:-1:-1;46564:26:0;46556:59;;;;;-1:-1:-1;;;46556:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;46703:13;;;;;;;46702:14;:31;;;;-1:-1:-1;46727:6:0;;-1:-1:-1;;;;;46720:13:0;;;46727:6;;46720:13;46702:31;46698:115;;;46750:30;46766:5;46773:6;46750:15;:30::i;:::-;46795:7;;46698:115;46914:6;46888:22;46904:5;46888:15;:22::i;:::-;:32;;46880:80;;;;-1:-1:-1;;;46880:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46971:35;46987:5;46994:3;46999:6;46971:15;:35::i;:::-;46422:592;;;:::o;3333:192::-;3419:7;3455:12;3447:6;;;;3439:29;;;;-1:-1:-1;;;3439:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;3491:5:0;;;3333:192::o;2430:181::-;2488:7;2520:5;;;2544:6;;;;2536:46;;;;;-1:-1:-1;;;2536:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;3784:471;3842:7;4087:6;4083:47;;-1:-1:-1;4117:1:0;4110:8;;4083:47;4154:5;;;4158:1;4154;:5;:1;4178:5;;;;;:10;4170:56;;;;-1:-1:-1;;;4170:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37718:226;37803:28;37815:7;37824:6;37803:11;:28::i;:::-;-1:-1:-1;;;;;37869:18:0;;;37865:1;37869:18;;;:9;:18;;;;;;;;;37889:46;;;;;;;;;;;;;;;;;;;37842:94;;37869:18;;;;;37889:46;;37896:6;;37889;:46::i;:::-;37842:14;:94::i;47961:268::-;-1:-1:-1;;;;;48044:16:0;;;;;;:9;:16;;;;;;:26;-1:-1:-1;48044:26:0;48036:59;;;;;-1:-1:-1;;;48036:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;48140:6;48114:22;48130:5;48114:15;:22::i;:::-;:32;;48106:76;;;;;-1:-1:-1;;;48106:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;48195:26;48207:5;48214:6;48195:11;:26::i;36807:482::-;-1:-1:-1;;;;;36910:20:0;;;36884:23;36910:20;;;:9;:20;;;;;;;;;;37032:61;37039:21;36920:9;37039:10;:21::i;:::-;37032:61;;;;;;;;;;;;;;;;;:6;:61::i;:::-;-1:-1:-1;;;;;37104:20:0;;;;;;;:9;:20;;;;;;:32;;;;;;;;;;;;;37154:54;;37006:87;;-1:-1:-1;37104:32:0;37154:54;;;;;;37104:20;37154:54;37221:60;37236:15;37253:9;37264:16;37221:14;:60::i;:::-;36807:482;;;;:::o;41242:178::-;41368:9;41242:178;:::o;5359:278::-;5445:7;5480:12;5473:5;5465:28;;;;-1:-1:-1;;;5465:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5504:9;5520:1;5516;:5;;;;;;;5359:278;-1:-1:-1;;;;;5359:278:0:o;47225:527::-;47301:16;47320:22;47336:5;47320:15;:22::i;:::-;47301:41;;47370:6;47359:8;:17;47355:341;;;47620:64;47671:12;:10;:12::i;:::-;-1:-1:-1;;;;;47620:16:0;;;;;;:9;:16;;;;;;:46;;45026:1;;47620:28;;47641:6;47620:28;:20;:28;:::i;:::-;:32;:46;:32;:46;:::i;:64::-;-1:-1:-1;;;;;47598:19:0;;;;;;:12;:19;;;;;:86;47355:341;47729:6;;47706:38;;47722:5;;-1:-1:-1;;;;;47729:6:0;47737;37426:284;37560:35;37576:5;37583:3;37588:6;37560:15;:35::i;:::-;-1:-1:-1;;;;;37621:16:0;;;;;;;:9;:16;;;;;;;;;37639:14;;;;;;;;;;37655:46;;;;;;;;;;;;;;;;;;;37606:96;;37621:16;;;;37639:14;;;;;37655:46;;37662:6;;37655;:46::i;24638:376::-;-1:-1:-1;;;;;24722:21:0;;24714:65;;;;;-1:-1:-1;;;24714:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;24792:49;24821:1;24825:7;24834:6;24792:20;:49::i;:::-;24868:11;;:23;;24884:6;24868:23;:15;:23;:::i;:::-;24854:11;:37;-1:-1:-1;;;;;24923:18:0;;;;;;:9;:18;;;;;;:30;;24946:6;24923:30;:22;:30;:::i;:::-;-1:-1:-1;;;;;24902:18:0;;;;;;:9;:18;;;;;;;;:51;;;;24969:37;;;;;;;24902:18;;;;24969:37;;;;;;;;;;24638:376;;:::o;40392:164::-;40470:6;40508:12;40501:5;40497:9;;40489:32;;;;-1:-1:-1;;;40489:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40546:1:0;;40392:164;-1:-1:-1;;40392:164:0:o;38270:985::-;38409:6;-1:-1:-1;;;;;38399:16:0;:6;-1:-1:-1;;;;;38399:16:0;;;:30;;;;;38428:1;38419:6;:10;;;38399:30;38395:853;;;-1:-1:-1;;;;;38450:20:0;;;38446:388;;-1:-1:-1;;;;;38510:22:0;;38491:16;38510:22;;;:14;:22;;;;;;;;;38570:13;:60;;38629:1;38570:60;;;-1:-1:-1;;;;;38586:19:0;;;;;;:11;:19;;;;;;;;38606:13;;;38586:34;;;;;;;;;:40;;;;;;38570:60;38551:79;;38649:16;38668:74;38674:9;38685:6;38668:74;;;;;;;;;;;;;;;;;:5;:74::i;:::-;38649:93;;38761:57;38778:6;38786:9;38797;38808;38761:16;:57::i;:::-;38446:388;;;;-1:-1:-1;;;;;38854:20:0;;;38850:387;;-1:-1:-1;;;;;38914:22:0;;38895:16;38914:22;;;:14;:22;;;;;;;;;38974:13;:60;;39033:1;38974:60;;;-1:-1:-1;;;;;38990:19:0;;;;;;:11;:19;;;;;;;;39010:13;;;38990:34;;;;;;;;;:40;;;;;;38974:60;38955:79;;39053:16;39072:73;39078:9;39089:6;39072:73;;;;;;;;;;;;;;;;;:5;:73::i;:::-;39053:92;;39164:57;39181:6;39189:9;39200;39211;39164:16;:57::i;37952:226::-;38037:28;38049:7;38058:6;38037:11;:28::i;:::-;38076:94;38091:9;:18;38101:7;-1:-1:-1;;;;;38091:18:0;-1:-1:-1;;;;;38091:18:0;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;38091:18:0;38119:1;38123:46;38130:6;38123:46;;;;;;;;;;;;;;;;;:6;:46::i;49649:128::-;49718:7;49745:24;49761:7;49745:15;:24::i;23818:539::-;-1:-1:-1;;;;;23924:20:0;;23916:70;;;;-1:-1:-1;;;23916:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24005:23:0;;23997:71;;;;-1:-1:-1;;;23997:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24081:47;24102:6;24110:9;24121:6;24081:20;:47::i;:::-;24161:71;24183:6;24161:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24161:17:0;;;;;;:9;:17;;;;;;;:71;;:21;:71;:::i;:::-;-1:-1:-1;;;;;24141:17:0;;;;;;;:9;:17;;;;;;:91;;;;24266:20;;;;;;;:32;;24291:6;24266:32;:24;:32;:::i;:::-;-1:-1:-1;;;;;24243:20:0;;;;;;;:9;:20;;;;;;;;;:55;;;;24314:35;;;;;;;24243:20;;24314:35;;;;;;;;;;;;;23818:539;;;:::o;40969:199::-;41089:6;41121:1;41116:6;;:1;:6;;;;41124:12;41108:29;;;;;-1:-1:-1;;;41108:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39352:694;39515:18;39536:82;39543:12;39536:82;;;;;;;;;;;;;;;;;:6;:82::i;:::-;39515:103;;39650:1;39635:12;:16;;;:85;;;;-1:-1:-1;;;;;;39655:22:0;;;;;;:11;:22;;;;;;;;:65;39678:16;;;39655:40;;;;;;;;;:50;:65;;;:50;;:65;39635:85;39631:339;;;-1:-1:-1;;;;;39737:22:0;;;;;;:11;:22;;;;;;;;39760:16;;;39737:40;;;;;;;;;:57;;;;;;;;;;;;39631:339;;;39866:33;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;39827:22:0;;-1:-1:-1;39827:22:0;;;:11;:22;;;;;:36;;;;;;;;;;:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39914:25;;;:14;:25;;;;;;;:44;;39827:72;39942:16;;39914:44;;;;;;;;;;;;;39631:339;39987:51;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;39987:51:0;;;;;;;;;;;39352:694;;;;;:::o;40649:222::-;40769:6;40799:5;;;40831:12;40823:6;;;;;;;;;40815:29;;;;-1:-1:-1;;;40815:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40862:1:0;40649:222;-1:-1:-1;;;;40649:222:0:o;25346:416::-;-1:-1:-1;;;;;25430:21:0;;25422:67;;;;-1:-1:-1;;;25422:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25502:49;25523:7;25540:1;25544:6;25502:20;:49::i;:::-;25585:68;25608:6;25585:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;25585:18:0;;;;;;:9;:18;;;;;;;:68;;:22;:68;:::i;:::-;-1:-1:-1;;;;;25564:18:0;;;;;;:9;:18;;;;;:89;25678:11;;:23;;25694:6;25678:23;:15;:23;:::i;:::-;25664:11;:37;25717;;;;;;;;25743:1;;-1:-1:-1;;;;;25717:37:0;;;;;;;;;;;;25346:416;;:::o;40137:164::-;40215:6;40253:12;40246:5;40242:9;;40234:32;;;;-1:-1:-1;;;40234:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://de699c90e2166f9367ffbfbc63eaa0c5d7d26e642e38669ce425218cf9f83751

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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