ETH Price: $2,664.07 (-5.16%)

Contract

0x38ea93D59cc7B83DA7847E9a22eACDDc0751Af77
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve197410212024-04-26 17:29:59304 days ago1714152599IN
0x38ea93D5...c0751Af77
0 ETH0.000122645.05382147
Approve116254522021-01-10 6:28:291506 days ago1610260109IN
0x38ea93D5...c0751Af77
0 ETH0.0007557652
Redeem114271312020-12-10 19:42:521536 days ago1607629372IN
0x38ea93D5...c0751Af77
0 ETH0.0216930732.23
Redeem114068272020-12-07 16:43:171540 days ago1607359397IN
0x38ea93D5...c0751Af77
0 ETH0.0087233313
Redeem113942192020-12-05 18:18:441541 days ago1607192324IN
0x38ea93D5...c0751Af77
0 ETH0.0089616913.3303
Redeem113935472020-12-05 15:52:261542 days ago1607183546IN
0x38ea93D5...c0751Af77
0 ETH0.0188459828
Redeem113926172020-12-05 12:22:411542 days ago1607170961IN
0x38ea93D5...c0751Af77
0 ETH0.015249122
Transfer113926002020-12-05 12:19:381542 days ago1607170778IN
0x38ea93D5...c0751Af77
0 ETH0.0007597321
Redeem113920172020-12-05 10:10:491542 days ago1607163049IN
0x38ea93D5...c0751Af77
0 ETH0.0114438517
Redeem113914252020-12-05 7:59:511542 days ago1607155191IN
0x38ea93D5...c0751Af77
0 ETH0.0131625319.00000145
Redeem113912552020-12-05 7:21:441542 days ago1607152904IN
0x38ea93D5...c0751Af77
0 ETH0.0121012218.00000145
Redeem113910092020-12-05 6:27:181542 days ago1607149638IN
0x38ea93D5...c0751Af77
0 ETH0.0123647718.34033457
Redeem113888652020-12-04 22:31:391542 days ago1607121099IN
0x38ea93D5...c0751Af77
0 ETH0.0241415636
Redeem113887442020-12-04 21:59:101542 days ago1607119150IN
0x38ea93D5...c0751Af77
0 ETH0.0149853522.3
Redeem113887072020-12-04 21:50:301542 days ago1607118630IN
0x38ea93D5...c0751Af77
0 ETH0.0139618221.218
Redeem113883982020-12-04 20:40:581542 days ago1607114458IN
0x38ea93D5...c0751Af77
0 ETH0.0131543420
Redeem113838212020-12-04 3:54:421543 days ago1607054082IN
0x38ea93D5...c0751Af77
0 ETH0.0262736440
Approve113822312020-12-03 21:59:321543 days ago1607032772IN
0x38ea93D5...c0751Af77
0 ETH0.0017780840
Redeem113817322020-12-03 20:04:291543 days ago1607025869IN
0x38ea93D5...c0751Af77
0 ETH0.0189731929.00000145
Deposit113775912020-12-03 4:59:201544 days ago1606971560IN
0x38ea93D5...c0751Af77
0 ETH0.0048935815.00000145
Approve113731672020-12-02 12:49:481545 days ago1606913388IN
0x38ea93D5...c0751Af77
0 ETH0.0009779422
Redeem113696012020-12-01 23:20:071545 days ago1606864807IN
0x38ea93D5...c0751Af77
0 ETH0.0150885923.00000134
Redeem113601132020-11-30 12:20:551547 days ago1606738855IN
0x38ea93D5...c0751Af77
0 ETH0.0565695484.00000156
Redeem113566732020-11-29 23:53:501547 days ago1606694030IN
0x38ea93D5...c0751Af77
0 ETH0.0086598313.2
Redeem113527772020-11-29 9:18:221548 days ago1606641502IN
0x38ea93D5...c0751Af77
0 ETH0.0080769712.00000145
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
zaToken

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU GPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-10-16
*/

// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/GSN/Context.sol

pragma solidity ^0.6.0;

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

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

pragma solidity ^0.6.0;

/**
 * Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

    /**
     * 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);
    
    function decimals() external view returns (uint8);

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

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

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

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.6.2;

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

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

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

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

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

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

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

pragma solidity ^0.6.0;

/**
 * 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}.
 */
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;
    using Address for address;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

}

// File: @openzeppelin/contracts/access/Ownable.sol

pragma solidity ^0.6.0;

/**
 * Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Context {
    address private _owner;

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

    /**
     * Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    /**
     * Throws if called by any account other than the owner.
     */
    modifier onlyGovernance() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferGovernance(address newOwner) internal virtual onlyGovernance {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File: contracts/zaToken.sol
// zaTokens are Stabilize proxy tokens that serve as receipts for deposits into the Aave lending pool
// zaTokens increase gradually in value as the underlying value of the contract increases
// The underlying asset in Aave does increase in size and users of zaTokens can share a percentage of the underlying asset
// When someone deposits into the zaToken contract, tokens are minted and when they redeem, tokens are burned

pragma solidity ^0.6.6;

interface LendingPoolAddressesProvider {
    function getLendingPool() external view returns (address);
    function getLendingPoolCore() external view returns (address);
}

interface LendingPool {
    function deposit(address, uint256, uint16) external;
}

interface aTokenContract is IERC20 {
    function redeem(uint256 _amount) external;
}

contract zaToken is ERC20("Stabilize Proxy Aave DAI Token", "za-DAI"), Ownable {
    using SafeERC20 for IERC20;

    // Variables
    uint256 constant divisionFactor = 100000;
    
    // First the fee schedule
    uint256 public initialFee = 1000; // 1000 = 1%, 100000 = 100%, max fee restricted in contract is 10%
    uint256 public endFee = 100; // 100 = 0.1%
    uint256 public feeDuration = 604800; // The amount of seconds it takes from the initial to end fee
    
    // Token information
    // AaveProvider address on Mainnet: 0x24a42fD28C976A61Df5D00D0599C34c4f90748c8
    // Kovan Testnet: 0x506B0B2CF20FAA8f38a4E2B524EE43e1f4458Cc5
    address public aaveProviderAddress = 0x24a42fD28C976A61Df5D00D0599C34c4f90748c8;
    LendingPoolAddressesProvider aaveProvider;
    IERC20 private _underlyingAsset; // Token of the deposited asset
    aTokenContract private _aToken; // The aToken returned to this contract by depositing
    address public treasuryAddress;
    
    // Events
    event Wrapped(address indexed user, uint256 amount);
    event Unwrapped(address indexed user, uint256 amount, uint256 fee);
    
    // Info of each user.
    struct UserInfo {
        uint256 depositTime; // The time the user made a deposit, every deposit resets the time
    }
    
    mapping(address => UserInfo) private userInfo;

    constructor (IERC20 _asset, aTokenContract _aavetoken, address _treasury) public {
        _underlyingAsset = _asset;
        _aToken = _aavetoken;
        treasuryAddress = _treasury;
        aaveProvider = LendingPoolAddressesProvider(aaveProviderAddress); // Load the lending address provider
        _setupDecimals(_aToken.decimals());
    }

    function underlyingAsset() public view returns (address) {
        return address(_underlyingAsset);
    }
    
    function totalPrincipalAndInterest() public view returns (uint256) {
        return _aToken.balanceOf(address(this)); // This will be the same balance as all deposited plus interest earned
    } 
    
    function pricePerToken() external view returns (uint256) {
        if(totalSupply() == 0){
            return 1e18; // Shown in Wei units
        }else{
            return uint256(1e18).mul(totalPrincipalAndInterest()).div(totalSupply());
        }
    }
    
    // Now handle deposits into Aave
    function deposit(uint256 amount) public {
        require(amount > 0, "Cannot deposit 0");
        _underlyingAsset.safeTransferFrom(_msgSender(), address(this), amount); // Transfer stablecoin to this address
        
        // Now send those same stablecoins to the Aave lending pool
        LendingPool lendingPool = LendingPool(aaveProvider.getLendingPool()); // Get the lending pool
        // Approve the lending pool core to transfer from this contract the amount deposited
        _underlyingAsset.approve(aaveProvider.getLendingPoolCore(), amount);
        
        // Now finally deposit and receive aTokens into this contract, the balance of aTokens increases
        uint256 total = totalPrincipalAndInterest();
        // We are going to verify Aave deposits 1:1
        uint256 _underlyingBalance = _underlyingAsset.balanceOf(address(this));
        lendingPool.deposit(underlyingAsset(), amount, 0); // Last field is referral code, there is none
        // Aave tokens are returned to this contract 1:1 with what was deposited but increase in quantity with time
        uint256 movedBalance = _underlyingBalance.sub(_underlyingAsset.balanceOf(address(this)));
        require(movedBalance == amount, "Aave failed to properly move the entire amount");
        
        // Now lets figure out how many tokens to print to user
        uint256 mintAmount = amount;
        if(total > 0){
            // There is already a balance here, calculate our share
            mintAmount = amount.mul(totalSupply()).div(total); // Our share of the total
        }
        _mint(_msgSender(),mintAmount); // Now mint new za-token to the depositor
        userInfo[_msgSender()].depositTime = now; // Update the deposit time
        
        emit Wrapped(_msgSender(), amount);
    }
    
    function redeem(uint256 amount) public {
        // Essentially withdraw our equivalent share of the pool based on share value
        require(amount > 0, "Cannot withdraw 0");
        require(totalSupply() > 0, "No value redeemable");
        uint256 tokenTotal = totalSupply();
        // Now burn the token
        _burn(_msgSender(),amount); // Burn the amount, will fail if user doesn't have enough

        uint256 withdrawAmount = totalPrincipalAndInterest().mul(amount).div(tokenTotal);
        // We are going to verify Aave redeems 1:1
        uint256 _underlyingBalance = _underlyingAsset.balanceOf(address(this)); // Get the underlying asset amount in contract
        _aToken.redeem(withdrawAmount); // Burn the aTokens to redeem the underlying asset 1:1
        uint256 movedBalance = _underlyingAsset.balanceOf(address(this)).sub(_underlyingBalance);
        require(movedBalance >= withdrawAmount, "Aave failed to properly move the entire amount"); // Should be equal at least
        
        // Pay fee upon withdrawing
        if(userInfo[_msgSender()].depositTime == 0){
            // The user has never deposited here
            userInfo[_msgSender()].depositTime = now; // Give them the max fee
        }
        
        uint256 feeSubtraction = initialFee.sub(endFee).mul(now.sub(userInfo[_msgSender()].depositTime)).div(feeDuration);
        if(feeSubtraction > initialFee.sub(endFee)){
            // Cannot reduce fee more than this
            feeSubtraction = initialFee.sub(endFee);
        }
        uint256 fee = initialFee.sub(feeSubtraction);
        fee = withdrawAmount.mul(fee).div(divisionFactor);
        withdrawAmount = withdrawAmount.sub(fee);
        
        // Now withdraw this amount to the user and send fee to treasury
        _underlyingAsset.safeTransfer(_msgSender(), withdrawAmount);
        _underlyingAsset.safeTransfer(treasuryAddress, fee);
        
        emit Unwrapped(_msgSender(), withdrawAmount, fee);
    }
    
    // Governance functions
    
    // Timelock variables
    
    uint256 private _timelockStart; // The start of the timelock to change governance variables
    uint256 private _timelockType; // The function that needs to be changed
    uint256 constant _timelockDuration = 86400; // Timelock is 24 hours
    
    // Reusable timelock variables
    uint256[3] private _timelock_data;
    address private _timelock_address;
    
    modifier timelockConditionsMet(uint256 _type) {
        require(_timelockType == _type, "Timelock not acquired for this function");
        _timelockType = 0; // Reset the type once the timelock is used
        if(totalSupply() > 0){
            // Timelock is only required after tokens exist
            require(now >= _timelockStart + _timelockDuration, "Timelock time not met");
        }
        _;
    }
    
    // Change the owner of the token contract
    // --------------------
    function startGovernanceChange(address _address) external onlyGovernance {
        _timelockStart = now;
        _timelockType = 1;
        _timelock_address = _address;       
    }
    
    function finishGovernanceChange() external onlyGovernance timelockConditionsMet(1) {
        transferGovernance(_timelock_address);
    }
    // --------------------
    
    // Used to change the fee rates
    // --------------------
    function startChangeFeeRates(uint256 _initial, uint256 _end, uint256 _duration) external onlyGovernance {
        require(_initial <= 10000,"Fee can never be greater than 10%");
        require(_end <= _initial,"End fee must be less than or equal to initial fee");
        require(_duration > 0, "Cannot be a zero amount");
        _timelockStart = now;
        _timelockType = 2;
        _timelock_data[0] = _initial;
        _timelock_data[1] = _end;
        _timelock_data[2] = _duration;
    }
    
    function finishChangeFeeRates() external onlyGovernance timelockConditionsMet(2) {
        initialFee = _timelock_data[0];
        endFee = _timelock_data[1];
        feeDuration = _timelock_data[2];
    }
    // --------------------
    
    // Change the treasury address
    // --------------------
    function startChangeTreasury(address _address) external onlyGovernance {
        _timelockStart = now;
        _timelockType = 3;
        _timelock_address = _address;
    }
    
    function finishChangeTreasury() external onlyGovernance timelockConditionsMet(3) {
        treasuryAddress = _timelock_address;
    }
    // --------------------

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_asset","type":"address"},{"internalType":"contract aTokenContract","name":"_aavetoken","type":"address"},{"internalType":"address","name":"_treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"Unwrapped","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Wrapped","type":"event"},{"inputs":[],"name":"aaveProviderAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finishChangeFeeRates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finishChangeTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finishGovernanceChange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"initialFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pricePerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_initial","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"startChangeFeeRates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"startChangeTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"startGovernanceChange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPrincipalAndInterest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"treasuryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"underlyingAsset","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040526103e8600655606460075562093a80600855600980546001600160a01b0319167324a42fd28c976a61df5d00d0599c34c4f90748c81790553480156200004957600080fd5b50604051620027c9380380620027c9833981810160405260608110156200006f57600080fd5b50805160208083015160409384015184518086018652601e81527f53746162696c697a652050726f787920416176652044414920546f6b656e0000818501908152865180880190975260068752657a612d44414960d01b948701949094528051949592949193909291620000e69160039162000265565b508051620000fc90600490602084019062000265565b50506005805460ff19166012179055506000620001216001600160e01b036200024a16565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600b80546001600160a01b038086166001600160a01b031992831617909255600c80548584169083161790819055600d8054858516908416179055600954600a8054909316908416179091556040805163313ce56760e01b815290516200024193929092169163313ce56791600480820192602092909190829003018186803b1580156200020457600080fd5b505afa15801562000219573d6000803e3d6000fd5b505050506040513d60208110156200023057600080fd5b50516001600160e01b036200024f16565b50505062000307565b335b90565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002a857805160ff1916838001178555620002d8565b82800160010185558215620002d8579182015b82811115620002d8578251825591602001919060010190620002bb565b50620002e6929150620002ea565b5090565b6200024c91905b80821115620002e65760008155600101620002f1565b6124b280620003176000396000f3fe608060405234801561001057600080fd5b50600436106101c35760003560e01c806395d89b41116100f9578063bd3a4dfa11610097578063dd62ed3e11610071578063dd62ed3e1461047e578063e41a055a146104ac578063f03bcd8e146104b4578063f8008776146104da576101c3565b8063bd3a4dfa14610451578063c5f956af14610459578063db006a7514610461576101c3565b8063a9059cbb116100d3578063a9059cbb146103f8578063b6b55f2514610424578063b919507214610441578063ba49848b14610449576101c3565b806395d89b41146103bc5780639c00316e146103c4578063a457c2d7146103cc576101c3565b806332ef9c87116101665780635aa6e675116101405780635aa6e6751461036257806370a08231146103865780637158da7c146103ac5780637b1b1de6146103b4576101c3565b806332ef9c8714610326578063395093511461032e578063529216a61461035a576101c3565b80630a7d39f0116101a25780630a7d39f0146102b057806318160ddd146102ca57806323b872dd146102d2578063313ce56714610308576101c3565b8062caaaee146101c857806306fdde03146101f3578063095ea7b314610270575b600080fd5b6101f1600480360360608110156101de57600080fd5b5080359060208101359060400135610500565b005b6101fb610649565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561023557818101518382015260200161021d565b50505050905090810190601f1680156102625780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61029c6004803603604081101561028657600080fd5b506001600160a01b0381351690602001356106e0565b604080519115158252519081900360200190f35b6102b86106fe565b60408051918252519081900360200190f35b6102b8610704565b61029c600480360360608110156102e857600080fd5b506001600160a01b0381358116916020810135909116906040013561070a565b610310610797565b6040805160ff9092168252519081900360200190f35b6102b86107a0565b61029c6004803603604081101561034457600080fd5b506001600160a01b0381351690602001356107a6565b6102b86107fa565b61036a610876565b604080516001600160a01b039092168252519081900360200190f35b6102b86004803603602081101561039c57600080fd5b50356001600160a01b031661088a565b61036a6108a5565b6102b86108b4565b6101fb61090f565b6102b8610970565b61029c600480360360408110156103e257600080fd5b506001600160a01b038135169060200135610976565b61029c6004803603604081101561040e57600080fd5b506001600160a01b0381351690602001356109e4565b6101f16004803603602081101561043a57600080fd5b50356109f8565b6101f1610e55565b6101f1610f75565b6101f16110a2565b61036a6111bf565b6101f16004803603602081101561047757600080fd5b50356111ce565b6102b86004803603604081101561049457600080fd5b506001600160a01b0381358116916020013516611616565b61036a611641565b6101f1600480360360208110156104ca57600080fd5b50356001600160a01b0316611650565b6101f1600480360360208110156104f057600080fd5b50356001600160a01b03166116d8565b610508611760565b60055461010090046001600160a01b0390811691161461055d576040805162461bcd60e51b81526020600482018190526024820152600080516020612352833981519152604482015290519081900360640190fd5b61271083111561059e5760405162461bcd60e51b815260040180806020018281038252602181526020018061240d6021913960400191505060405180910390fd5b828211156105dd5760405162461bcd60e51b81526004018080602001828103825260318152602001806123dc6031913960400191505060405180910390fd5b60008111610632576040805162461bcd60e51b815260206004820152601760248201527f43616e6e6f742062652061207a65726f20616d6f756e74000000000000000000604482015290519081900360640190fd5b42600f556002601055601192909255601255601355565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106d55780601f106106aa576101008083540402835291602001916106d5565b820191906000526020600020905b8154815290600101906020018083116106b857829003601f168201915b505050505090505b90565b60006106f46106ed611760565b8484611764565b5060015b92915050565b60075481565b60025490565b6000610717848484611850565b61078d84610723611760565b6107888560405180606001604052806028815260200161232a602891396001600160a01b038a16600090815260016020526040812090610761611760565b6001600160a01b03168152602081019190915260400160002054919063ffffffff6119ac16565b611764565b5060019392505050565b60055460ff1690565b60085481565b60006106f46107b3611760565b8461078885600160006107c4611760565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff611a4316565b600c54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561084557600080fd5b505afa158015610859573d6000803e3d6000fd5b505050506040513d602081101561086f57600080fd5b5051905090565b60055461010090046001600160a01b031690565b6001600160a01b031660009081526020819052604090205490565b600b546001600160a01b031690565b60006108be610704565b6108d15750670de0b6b3a76400006106dd565b6109086108dc610704565b6108fc6108e76107fa565b670de0b6b3a76400009063ffffffff611aa416565b9063ffffffff611afd16565b90506106dd565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106d55780601f106106aa576101008083540402835291602001916106d5565b60065481565b60006106f4610983611760565b846107888560405180606001604052806025815260200161245860259139600160006109ad611760565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff6119ac16565b60006106f46109f1611760565b8484611850565b60008111610a40576040805162461bcd60e51b815260206004820152601060248201526f043616e6e6f74206465706f73697420360841b604482015290519081900360640190fd5b610a65610a4b611760565b600b546001600160a01b031690308463ffffffff611b3f16565b600a5460408051630261bf8b60e01b815290516000926001600160a01b031691630261bf8b916004808301926020929190829003018186803b158015610aaa57600080fd5b505afa158015610abe573d6000803e3d6000fd5b505050506040513d6020811015610ad457600080fd5b5051600b54600a546040805163076b7fbb60e51b815290519394506001600160a01b039283169363095ea7b3939092169163ed6ff76091600480820192602092909190829003018186803b158015610b2b57600080fd5b505afa158015610b3f573d6000803e3d6000fd5b505050506040513d6020811015610b5557600080fd5b5051604080516001600160e01b031960e085901b1681526001600160a01b039092166004830152602482018690525160448083019260209291908290030181600087803b158015610ba557600080fd5b505af1158015610bb9573d6000803e3d6000fd5b505050506040513d6020811015610bcf57600080fd5b5060009050610bdc6107fa565b600b54604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610c2d57600080fd5b505afa158015610c41573d6000803e3d6000fd5b505050506040513d6020811015610c5757600080fd5b505190506001600160a01b03831663d2d0e066610c726108a5565b604080516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201889052600060448301819052905160648084019382900301818387803b158015610cc457600080fd5b505af1158015610cd8573d6000803e3d6000fd5b5050600b54604080516370a0823160e01b8152306004820152905160009450610d6793506001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610d2e57600080fd5b505afa158015610d42573d6000803e3d6000fd5b505050506040513d6020811015610d5857600080fd5b5051839063ffffffff611b9f16565b9050848114610da75760405162461bcd60e51b815260040180806020018281038252602e8152602001806122b4602e913960400191505060405180910390fd5b848315610dcd57610dca846108fc610dbd610704565b899063ffffffff611aa416565b90505b610dde610dd8611760565b82611be1565b42600e6000610deb611760565b6001600160a01b03168152602081019190915260400160002055610e0d611760565b6001600160a01b03167f4700c1726b4198077cd40320a32c45265a1910521eb0ef713dd1d8412413d7fc876040518082815260200191505060405180910390a2505050505050565b610e5d611760565b60055461010090046001600160a01b03908116911614610eb2576040805162461bcd60e51b81526020600482018190526024820152600080516020612352833981519152604482015290519081900360640190fd5b60018060105414610ef45760405162461bcd60e51b81526004018080602001828103825260278152602001806122e26027913960400191505060405180910390fd5b60006010819055610f03610704565b1115610f5d5762015180600f5401421015610f5d576040805162461bcd60e51b8152602060048201526015602482015274151a5b595b1bd8dac81d1a5b59481b9bdd081b595d605a1b604482015290519081900360640190fd5b601454610f72906001600160a01b0316611cd1565b50565b610f7d611760565b60055461010090046001600160a01b03908116911614610fd2576040805162461bcd60e51b81526020600482018190526024820152600080516020612352833981519152604482015290519081900360640190fd5b600380601054146110145760405162461bcd60e51b81526004018080602001828103825260278152602001806122e26027913960400191505060405180910390fd5b60006010819055611023610704565b111561107d5762015180600f540142101561107d576040805162461bcd60e51b8152602060048201526015602482015274151a5b595b1bd8dac81d1a5b59481b9bdd081b595d605a1b604482015290519081900360640190fd5b50601454600d80546001600160a01b0319166001600160a01b03909216919091179055565b6110aa611760565b60055461010090046001600160a01b039081169116146110ff576040805162461bcd60e51b81526020600482018190526024820152600080516020612352833981519152604482015290519081900360640190fd5b600280601054146111415760405162461bcd60e51b81526004018080602001828103825260278152602001806122e26027913960400191505060405180910390fd5b60006010819055611150610704565b11156111aa5762015180600f54014210156111aa576040805162461bcd60e51b8152602060048201526015602482015274151a5b595b1bd8dac81d1a5b59481b9bdd081b595d605a1b604482015290519081900360640190fd5b50601154600655601254600755601354600855565b600d546001600160a01b031681565b60008111611217576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b6000611221610704565b11611269576040805162461bcd60e51b81526020600482015260136024820152724e6f2076616c75652072656465656d61626c6560681b604482015290519081900360640190fd5b6000611273610704565b9050611286611280611760565b83611dda565b60006112a4826108fc856112986107fa565b9063ffffffff611aa416565b600b54604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156112f557600080fd5b505afa158015611309573d6000803e3d6000fd5b505050506040513d602081101561131f57600080fd5b5051600c546040805163db006a7560e01b81526004810186905290519293506001600160a01b039091169163db006a759160248082019260009290919082900301818387803b15801561137157600080fd5b505af1158015611385573d6000803e3d6000fd5b5050600b54604080516370a0823160e01b8152306004820152905160009450611412935085926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156113da57600080fd5b505afa1580156113ee573d6000803e3d6000fd5b505050506040513d602081101561140457600080fd5b50519063ffffffff611b9f16565b9050828110156114535760405162461bcd60e51b815260040180806020018281038252602e8152602001806122b4602e913960400191505060405180910390fd5b600e600061145f611760565b6001600160a01b031681526020810191909152604001600020546114a55742600e600061148a611760565b6001600160a01b031681526020810191909152604001600020555b60006114fb6008546108fc6114e6600e60006114bf611760565b6001600160a01b03168152602081019190915260400160002054429063ffffffff611b9f16565b6007546006546112989163ffffffff611b9f16565b9050611514600754600654611b9f90919063ffffffff16565b811115611533576007546006546115309163ffffffff611b9f16565b90505b600654600090611549908363ffffffff611b9f16565b9050611562620186a06108fc878463ffffffff611aa416565b9050611574858263ffffffff611b9f16565b945061159a611581611760565b600b546001600160a01b0316908763ffffffff611ed616565b600d54600b546115bd916001600160a01b0391821691168363ffffffff611ed616565b6115c5611760565b6001600160a01b03167ff64ae1cc3e0e07da9c895b3225439175cab5838aca24c4e74852704858c96a7b8683604051808381526020018281526020019250505060405180910390a250505050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6009546001600160a01b031681565b611658611760565b60055461010090046001600160a01b039081169116146116ad576040805162461bcd60e51b81526020600482018190526024820152600080516020612352833981519152604482015290519081900360640190fd5b42600f556003601055601480546001600160a01b0319166001600160a01b0392909216919091179055565b6116e0611760565b60055461010090046001600160a01b03908116911614611735576040805162461bcd60e51b81526020600482018190526024820152600080516020612352833981519152604482015290519081900360640190fd5b42600f556001601055601480546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b6001600160a01b0383166117a95760405162461bcd60e51b81526004018080602001828103825260248152602001806123b86024913960400191505060405180910390fd5b6001600160a01b0382166117ee5760405162461bcd60e51b815260040180806020018281038252602281526020018061226c6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166118955760405162461bcd60e51b81526004018080602001828103825260258152602001806123936025913960400191505060405180910390fd5b6001600160a01b0382166118da5760405162461bcd60e51b81526004018080602001828103825260238152602001806122016023913960400191505060405180910390fd5b61191d8160405180606001604052806026815260200161228e602691396001600160a01b038616600090815260208190526040902054919063ffffffff6119ac16565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611952908263ffffffff611a4316565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115611a3b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611a005781810151838201526020016119e8565b50505050905090810190601f168015611a2d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611a9d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600082611ab3575060006106f8565b82820282848281611ac057fe5b0414611a9d5760405162461bcd60e51b81526004018080602001828103825260218152602001806123096021913960400191505060405180910390fd5b6000611a9d83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611f2d565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611b99908590611f92565b50505050565b6000611a9d83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506119ac565b6001600160a01b038216611c3c576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b600254611c4f908263ffffffff611a4316565b6002556001600160a01b038216600090815260208190526040902054611c7b908263ffffffff611a4316565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b611cd9611760565b60055461010090046001600160a01b03908116911614611d2e576040805162461bcd60e51b81526020600482018190526024820152600080516020612352833981519152604482015290519081900360640190fd5b6001600160a01b038116611d735760405162461bcd60e51b81526004018080602001828103825260268152602001806122466026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6001600160a01b038216611e1f5760405162461bcd60e51b81526004018080602001828103825260218152602001806123726021913960400191505060405180910390fd5b611e6281604051806060016040528060228152602001612224602291396001600160a01b038516600090815260208190526040902054919063ffffffff6119ac16565b6001600160a01b038316600090815260208190526040902055600254611e8e908263ffffffff611b9f16565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611f28908490611f92565b505050565b60008183611f7c5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611a005781810151838201526020016119e8565b506000838581611f8857fe5b0495945050505050565b6060611fe7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166120439092919063ffffffff16565b805190915015611f285780806020019051602081101561200657600080fd5b5051611f285760405162461bcd60e51b815260040180806020018281038252602a81526020018061242e602a913960400191505060405180910390fd5b6060612052848460008561205a565b949350505050565b6060612065856121c7565b6120b6576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106120f55780518252601f1990920191602091820191016120d6565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612157576040519150601f19603f3d011682016040523d82523d6000602084013e61215c565b606091505b509150915081156121705791506120529050565b8051156121805780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611a005781810151838201526020016119e8565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061205257505015159291505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636541617665206661696c656420746f2070726f7065726c79206d6f76652074686520656e7469726520616d6f756e7454696d656c6f636b206e6f7420616371756972656420666f7220746869732066756e6374696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373456e6420666565206d757374206265206c657373207468616e206f7220657175616c20746f20696e697469616c206665654665652063616e206e657665722062652067726561746572207468616e203130255361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220d453abca1e4653f8489476d89fbefa8da211909d87f3bd673116f9ff4dbea1be64736f6c634300060600330000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000fc1e690f61efd961294b3e1ce3313fbd8aa4f85d00000000000000000000000042cbe17335ef8d52f8d1e0a261ea2e78e829c56e

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101c35760003560e01c806395d89b41116100f9578063bd3a4dfa11610097578063dd62ed3e11610071578063dd62ed3e1461047e578063e41a055a146104ac578063f03bcd8e146104b4578063f8008776146104da576101c3565b8063bd3a4dfa14610451578063c5f956af14610459578063db006a7514610461576101c3565b8063a9059cbb116100d3578063a9059cbb146103f8578063b6b55f2514610424578063b919507214610441578063ba49848b14610449576101c3565b806395d89b41146103bc5780639c00316e146103c4578063a457c2d7146103cc576101c3565b806332ef9c87116101665780635aa6e675116101405780635aa6e6751461036257806370a08231146103865780637158da7c146103ac5780637b1b1de6146103b4576101c3565b806332ef9c8714610326578063395093511461032e578063529216a61461035a576101c3565b80630a7d39f0116101a25780630a7d39f0146102b057806318160ddd146102ca57806323b872dd146102d2578063313ce56714610308576101c3565b8062caaaee146101c857806306fdde03146101f3578063095ea7b314610270575b600080fd5b6101f1600480360360608110156101de57600080fd5b5080359060208101359060400135610500565b005b6101fb610649565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561023557818101518382015260200161021d565b50505050905090810190601f1680156102625780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61029c6004803603604081101561028657600080fd5b506001600160a01b0381351690602001356106e0565b604080519115158252519081900360200190f35b6102b86106fe565b60408051918252519081900360200190f35b6102b8610704565b61029c600480360360608110156102e857600080fd5b506001600160a01b0381358116916020810135909116906040013561070a565b610310610797565b6040805160ff9092168252519081900360200190f35b6102b86107a0565b61029c6004803603604081101561034457600080fd5b506001600160a01b0381351690602001356107a6565b6102b86107fa565b61036a610876565b604080516001600160a01b039092168252519081900360200190f35b6102b86004803603602081101561039c57600080fd5b50356001600160a01b031661088a565b61036a6108a5565b6102b86108b4565b6101fb61090f565b6102b8610970565b61029c600480360360408110156103e257600080fd5b506001600160a01b038135169060200135610976565b61029c6004803603604081101561040e57600080fd5b506001600160a01b0381351690602001356109e4565b6101f16004803603602081101561043a57600080fd5b50356109f8565b6101f1610e55565b6101f1610f75565b6101f16110a2565b61036a6111bf565b6101f16004803603602081101561047757600080fd5b50356111ce565b6102b86004803603604081101561049457600080fd5b506001600160a01b0381358116916020013516611616565b61036a611641565b6101f1600480360360208110156104ca57600080fd5b50356001600160a01b0316611650565b6101f1600480360360208110156104f057600080fd5b50356001600160a01b03166116d8565b610508611760565b60055461010090046001600160a01b0390811691161461055d576040805162461bcd60e51b81526020600482018190526024820152600080516020612352833981519152604482015290519081900360640190fd5b61271083111561059e5760405162461bcd60e51b815260040180806020018281038252602181526020018061240d6021913960400191505060405180910390fd5b828211156105dd5760405162461bcd60e51b81526004018080602001828103825260318152602001806123dc6031913960400191505060405180910390fd5b60008111610632576040805162461bcd60e51b815260206004820152601760248201527f43616e6e6f742062652061207a65726f20616d6f756e74000000000000000000604482015290519081900360640190fd5b42600f556002601055601192909255601255601355565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106d55780601f106106aa576101008083540402835291602001916106d5565b820191906000526020600020905b8154815290600101906020018083116106b857829003601f168201915b505050505090505b90565b60006106f46106ed611760565b8484611764565b5060015b92915050565b60075481565b60025490565b6000610717848484611850565b61078d84610723611760565b6107888560405180606001604052806028815260200161232a602891396001600160a01b038a16600090815260016020526040812090610761611760565b6001600160a01b03168152602081019190915260400160002054919063ffffffff6119ac16565b611764565b5060019392505050565b60055460ff1690565b60085481565b60006106f46107b3611760565b8461078885600160006107c4611760565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff611a4316565b600c54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561084557600080fd5b505afa158015610859573d6000803e3d6000fd5b505050506040513d602081101561086f57600080fd5b5051905090565b60055461010090046001600160a01b031690565b6001600160a01b031660009081526020819052604090205490565b600b546001600160a01b031690565b60006108be610704565b6108d15750670de0b6b3a76400006106dd565b6109086108dc610704565b6108fc6108e76107fa565b670de0b6b3a76400009063ffffffff611aa416565b9063ffffffff611afd16565b90506106dd565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106d55780601f106106aa576101008083540402835291602001916106d5565b60065481565b60006106f4610983611760565b846107888560405180606001604052806025815260200161245860259139600160006109ad611760565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff6119ac16565b60006106f46109f1611760565b8484611850565b60008111610a40576040805162461bcd60e51b815260206004820152601060248201526f043616e6e6f74206465706f73697420360841b604482015290519081900360640190fd5b610a65610a4b611760565b600b546001600160a01b031690308463ffffffff611b3f16565b600a5460408051630261bf8b60e01b815290516000926001600160a01b031691630261bf8b916004808301926020929190829003018186803b158015610aaa57600080fd5b505afa158015610abe573d6000803e3d6000fd5b505050506040513d6020811015610ad457600080fd5b5051600b54600a546040805163076b7fbb60e51b815290519394506001600160a01b039283169363095ea7b3939092169163ed6ff76091600480820192602092909190829003018186803b158015610b2b57600080fd5b505afa158015610b3f573d6000803e3d6000fd5b505050506040513d6020811015610b5557600080fd5b5051604080516001600160e01b031960e085901b1681526001600160a01b039092166004830152602482018690525160448083019260209291908290030181600087803b158015610ba557600080fd5b505af1158015610bb9573d6000803e3d6000fd5b505050506040513d6020811015610bcf57600080fd5b5060009050610bdc6107fa565b600b54604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610c2d57600080fd5b505afa158015610c41573d6000803e3d6000fd5b505050506040513d6020811015610c5757600080fd5b505190506001600160a01b03831663d2d0e066610c726108a5565b604080516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201889052600060448301819052905160648084019382900301818387803b158015610cc457600080fd5b505af1158015610cd8573d6000803e3d6000fd5b5050600b54604080516370a0823160e01b8152306004820152905160009450610d6793506001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610d2e57600080fd5b505afa158015610d42573d6000803e3d6000fd5b505050506040513d6020811015610d5857600080fd5b5051839063ffffffff611b9f16565b9050848114610da75760405162461bcd60e51b815260040180806020018281038252602e8152602001806122b4602e913960400191505060405180910390fd5b848315610dcd57610dca846108fc610dbd610704565b899063ffffffff611aa416565b90505b610dde610dd8611760565b82611be1565b42600e6000610deb611760565b6001600160a01b03168152602081019190915260400160002055610e0d611760565b6001600160a01b03167f4700c1726b4198077cd40320a32c45265a1910521eb0ef713dd1d8412413d7fc876040518082815260200191505060405180910390a2505050505050565b610e5d611760565b60055461010090046001600160a01b03908116911614610eb2576040805162461bcd60e51b81526020600482018190526024820152600080516020612352833981519152604482015290519081900360640190fd5b60018060105414610ef45760405162461bcd60e51b81526004018080602001828103825260278152602001806122e26027913960400191505060405180910390fd5b60006010819055610f03610704565b1115610f5d5762015180600f5401421015610f5d576040805162461bcd60e51b8152602060048201526015602482015274151a5b595b1bd8dac81d1a5b59481b9bdd081b595d605a1b604482015290519081900360640190fd5b601454610f72906001600160a01b0316611cd1565b50565b610f7d611760565b60055461010090046001600160a01b03908116911614610fd2576040805162461bcd60e51b81526020600482018190526024820152600080516020612352833981519152604482015290519081900360640190fd5b600380601054146110145760405162461bcd60e51b81526004018080602001828103825260278152602001806122e26027913960400191505060405180910390fd5b60006010819055611023610704565b111561107d5762015180600f540142101561107d576040805162461bcd60e51b8152602060048201526015602482015274151a5b595b1bd8dac81d1a5b59481b9bdd081b595d605a1b604482015290519081900360640190fd5b50601454600d80546001600160a01b0319166001600160a01b03909216919091179055565b6110aa611760565b60055461010090046001600160a01b039081169116146110ff576040805162461bcd60e51b81526020600482018190526024820152600080516020612352833981519152604482015290519081900360640190fd5b600280601054146111415760405162461bcd60e51b81526004018080602001828103825260278152602001806122e26027913960400191505060405180910390fd5b60006010819055611150610704565b11156111aa5762015180600f54014210156111aa576040805162461bcd60e51b8152602060048201526015602482015274151a5b595b1bd8dac81d1a5b59481b9bdd081b595d605a1b604482015290519081900360640190fd5b50601154600655601254600755601354600855565b600d546001600160a01b031681565b60008111611217576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b6000611221610704565b11611269576040805162461bcd60e51b81526020600482015260136024820152724e6f2076616c75652072656465656d61626c6560681b604482015290519081900360640190fd5b6000611273610704565b9050611286611280611760565b83611dda565b60006112a4826108fc856112986107fa565b9063ffffffff611aa416565b600b54604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156112f557600080fd5b505afa158015611309573d6000803e3d6000fd5b505050506040513d602081101561131f57600080fd5b5051600c546040805163db006a7560e01b81526004810186905290519293506001600160a01b039091169163db006a759160248082019260009290919082900301818387803b15801561137157600080fd5b505af1158015611385573d6000803e3d6000fd5b5050600b54604080516370a0823160e01b8152306004820152905160009450611412935085926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156113da57600080fd5b505afa1580156113ee573d6000803e3d6000fd5b505050506040513d602081101561140457600080fd5b50519063ffffffff611b9f16565b9050828110156114535760405162461bcd60e51b815260040180806020018281038252602e8152602001806122b4602e913960400191505060405180910390fd5b600e600061145f611760565b6001600160a01b031681526020810191909152604001600020546114a55742600e600061148a611760565b6001600160a01b031681526020810191909152604001600020555b60006114fb6008546108fc6114e6600e60006114bf611760565b6001600160a01b03168152602081019190915260400160002054429063ffffffff611b9f16565b6007546006546112989163ffffffff611b9f16565b9050611514600754600654611b9f90919063ffffffff16565b811115611533576007546006546115309163ffffffff611b9f16565b90505b600654600090611549908363ffffffff611b9f16565b9050611562620186a06108fc878463ffffffff611aa416565b9050611574858263ffffffff611b9f16565b945061159a611581611760565b600b546001600160a01b0316908763ffffffff611ed616565b600d54600b546115bd916001600160a01b0391821691168363ffffffff611ed616565b6115c5611760565b6001600160a01b03167ff64ae1cc3e0e07da9c895b3225439175cab5838aca24c4e74852704858c96a7b8683604051808381526020018281526020019250505060405180910390a250505050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6009546001600160a01b031681565b611658611760565b60055461010090046001600160a01b039081169116146116ad576040805162461bcd60e51b81526020600482018190526024820152600080516020612352833981519152604482015290519081900360640190fd5b42600f556003601055601480546001600160a01b0319166001600160a01b0392909216919091179055565b6116e0611760565b60055461010090046001600160a01b03908116911614611735576040805162461bcd60e51b81526020600482018190526024820152600080516020612352833981519152604482015290519081900360640190fd5b42600f556001601055601480546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b6001600160a01b0383166117a95760405162461bcd60e51b81526004018080602001828103825260248152602001806123b86024913960400191505060405180910390fd5b6001600160a01b0382166117ee5760405162461bcd60e51b815260040180806020018281038252602281526020018061226c6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166118955760405162461bcd60e51b81526004018080602001828103825260258152602001806123936025913960400191505060405180910390fd5b6001600160a01b0382166118da5760405162461bcd60e51b81526004018080602001828103825260238152602001806122016023913960400191505060405180910390fd5b61191d8160405180606001604052806026815260200161228e602691396001600160a01b038616600090815260208190526040902054919063ffffffff6119ac16565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611952908263ffffffff611a4316565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115611a3b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611a005781810151838201526020016119e8565b50505050905090810190601f168015611a2d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611a9d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600082611ab3575060006106f8565b82820282848281611ac057fe5b0414611a9d5760405162461bcd60e51b81526004018080602001828103825260218152602001806123096021913960400191505060405180910390fd5b6000611a9d83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611f2d565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611b99908590611f92565b50505050565b6000611a9d83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506119ac565b6001600160a01b038216611c3c576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b600254611c4f908263ffffffff611a4316565b6002556001600160a01b038216600090815260208190526040902054611c7b908263ffffffff611a4316565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b611cd9611760565b60055461010090046001600160a01b03908116911614611d2e576040805162461bcd60e51b81526020600482018190526024820152600080516020612352833981519152604482015290519081900360640190fd5b6001600160a01b038116611d735760405162461bcd60e51b81526004018080602001828103825260268152602001806122466026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6001600160a01b038216611e1f5760405162461bcd60e51b81526004018080602001828103825260218152602001806123726021913960400191505060405180910390fd5b611e6281604051806060016040528060228152602001612224602291396001600160a01b038516600090815260208190526040902054919063ffffffff6119ac16565b6001600160a01b038316600090815260208190526040902055600254611e8e908263ffffffff611b9f16565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611f28908490611f92565b505050565b60008183611f7c5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611a005781810151838201526020016119e8565b506000838581611f8857fe5b0495945050505050565b6060611fe7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166120439092919063ffffffff16565b805190915015611f285780806020019051602081101561200657600080fd5b5051611f285760405162461bcd60e51b815260040180806020018281038252602a81526020018061242e602a913960400191505060405180910390fd5b6060612052848460008561205a565b949350505050565b6060612065856121c7565b6120b6576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106120f55780518252601f1990920191602091820191016120d6565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612157576040519150601f19603f3d011682016040523d82523d6000602084013e61215c565b606091505b509150915081156121705791506120529050565b8051156121805780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611a005781810151838201526020016119e8565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061205257505015159291505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636541617665206661696c656420746f2070726f7065726c79206d6f76652074686520656e7469726520616d6f756e7454696d656c6f636b206e6f7420616371756972656420666f7220746869732066756e6374696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373456e6420666565206d757374206265206c657373207468616e206f7220657175616c20746f20696e697469616c206665654665652063616e206e657665722062652067726561746572207468616e203130255361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220d453abca1e4653f8489476d89fbefa8da211909d87f3bd673116f9ff4dbea1be64736f6c63430006060033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000fc1e690f61efd961294b3e1ce3313fbd8aa4f85d00000000000000000000000042cbe17335ef8d52f8d1e0a261ea2e78e829c56e

-----Decoded View---------------
Arg [0] : _asset (address): 0x6B175474E89094C44Da98b954EedeAC495271d0F
Arg [1] : _aavetoken (address): 0xfC1E690f61EFd961294b3e1Ce3313fBD8aa4f85d
Arg [2] : _treasury (address): 0x42Cbe17335ef8d52F8d1e0a261eA2e78E829C56e

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f
Arg [1] : 000000000000000000000000fc1e690f61efd961294b3e1ce3313fbd8aa4f85d
Arg [2] : 00000000000000000000000042cbe17335ef8d52f8d1e0a261ea2e78e829c56e


Deployed Bytecode Sourcemap

31191:8792:0:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;31191:8792:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;38792:506:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;38792:506:0;;;;;;;;;;;;:::i;:::-;;17524:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;17524:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19604:169;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;19604:169:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;31520:27;;;:::i;:::-;;;;;;;;;;;;;;;;18593:100;;;:::i;20242:321::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;20242:321:0;;;;;;;;;;;;;;;;;:::i;18441:92::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;31568:35;;;:::i;20967:218::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;20967:218:0;;;;;;;;:::i;33037:196::-;;;:::i;26473:84::-;;;:::i;:::-;;;;-1:-1:-1;;;;;26473:84:0;;;;;;;;;;;;;;18751:119;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;18751:119:0;-1:-1:-1;;;;;18751:119:0;;:::i;32917:108::-;;;:::i;33246:260::-;;;:::i;17721:87::-;;;:::i;31414:32::-;;;:::i;21683:269::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;21683:269:0;;;;;;;;:::i;19078:175::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;19078:175:0;;;;;;;;:::i;33556:1812::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;33556:1812:0;;:::i;38546:139::-;;;:::i;39814:135::-;;;:::i;39310:209::-;;;:::i;32149:30::-;;;:::i;35380:2008::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;35380:2008:0;;:::i;19311:151::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;19311:151:0;;;;;;;;;;:::i;31854:79::-;;;:::i;39625:177::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;39625:177:0;-1:-1:-1;;;;;39625:177:0;;:::i;38348:186::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;38348:186:0;-1:-1:-1;;;;;38348:186:0;;:::i;38792:506::-;26700:12;:10;:12::i;:::-;26690:6;;;;;-1:-1:-1;;;;;26690:6:0;;;:22;;;26682:67;;;;;-1:-1:-1;;;26682:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;26682:67:0;;;;;;;;;;;;;;;38927:5:::1;38915:8;:17;;38907:62;;;;-1:-1:-1::0;;;38907:62:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38996:8;38988:4;:16;;38980:77;;;;-1:-1:-1::0;;;38980:77:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39088:1;39076:9;:13;39068:49;;;::::0;;-1:-1:-1;;;39068:49:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;39145:3;39128:14;:20:::0;39175:1:::1;39159:13;:17:::0;39187:14:::1;:28:::0;;;;39226:17;:24;39261:17;:29;38792:506::o;17524:83::-;17594:5;17587:12;;;;;;;;-1:-1:-1;;17587:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17561:13;;17587:12;;17594:5;;17587:12;;17594:5;17587:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17524:83;;:::o;19604:169::-;19687:4;19704:39;19713:12;:10;:12::i;:::-;19727:7;19736:6;19704:8;:39::i;:::-;-1:-1:-1;19761:4:0;19604:169;;;;;:::o;31520:27::-;;;;:::o;18593:100::-;18673:12;;18593:100;:::o;20242:321::-;20348:4;20365:36;20375:6;20383:9;20394:6;20365:9;:36::i;:::-;20412:121;20421:6;20429:12;:10;:12::i;:::-;20443:89;20481:6;20443:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20443:19:0;;;;;;:11;:19;;;;;;20463:12;:10;:12::i;:::-;-1:-1:-1;;;;;20443:33:0;;;;;;;;;;;;-1:-1:-1;20443:33:0;;;:89;;:37;:89;:::i;:::-;20412:8;:121::i;:::-;-1:-1:-1;20551:4:0;20242:321;;;;;:::o;18441:92::-;18516:9;;;;18441:92;:::o;31568:35::-;;;;:::o;20967:218::-;21055:4;21072:83;21081:12;:10;:12::i;:::-;21095:7;21104:50;21143:10;21104:11;:25;21116:12;:10;:12::i;:::-;-1:-1:-1;;;;;21104:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;21104:25:0;;;:34;;;;;;;;;;;:50;:38;:50;:::i;33037:196::-;33122:7;;:32;;;-1:-1:-1;;;33122:32:0;;33148:4;33122:32;;;;;;33095:7;;-1:-1:-1;;;;;33122:7:0;;:17;;:32;;;;;;;;;;;;;;:7;:32;;;2:2:-1;;;;27:1;24;17:12;2:2;33122:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;33122:32:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;33122:32:0;;-1:-1:-1;33037:196:0;:::o;26473:84::-;26543:6;;;;;-1:-1:-1;;;;;26543:6:0;;26473:84::o;18751:119::-;-1:-1:-1;;;;;18844:18:0;18817:7;18844:18;;;;;;;;;;;;18751:119::o;32917:108::-;33000:16;;-1:-1:-1;;;;;33000:16:0;32917:108;:::o;33246:260::-;33294:7;33317:13;:11;:13::i;:::-;33314:185;;-1:-1:-1;33358:4:0;33351:11;;33314:185;33422:65;33473:13;:11;:13::i;:::-;33422:46;33440:27;:25;:27::i;:::-;33430:4;;33422:46;:17;:46;:::i;:::-;:50;:65;:50;:65;:::i;:::-;33415:72;;;;17721:87;17793:7;17786:14;;;;;;;;-1:-1:-1;;17786:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17760:13;;17786:14;;17793:7;;17786:14;;17793:7;17786:14;;;;;;;;;;;;;;;;;;;;;;;;31414:32;;;;:::o;21683:269::-;21776:4;21793:129;21802:12;:10;:12::i;:::-;21816:7;21825:96;21864:15;21825:96;;;;;;;;;;;;;;;;;:11;:25;21837:12;:10;:12::i;:::-;-1:-1:-1;;;;;21825:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;21825:25:0;;;:34;;;;;;;;;;;:96;;:38;:96;:::i;19078:175::-;19164:4;19181:42;19191:12;:10;:12::i;:::-;19205:9;19216:6;19181:9;:42::i;33556:1812::-;33624:1;33615:6;:10;33607:39;;;;;-1:-1:-1;;;33607:39:0;;;;;;;;;;;;-1:-1:-1;;;33607:39:0;;;;;;;;;;;;;;;33657:70;33691:12;:10;:12::i;:::-;33657:16;;-1:-1:-1;;;;;33657:16:0;;33713:4;33720:6;33657:70;:33;:70;:::i;:::-;33894:12;;:29;;;-1:-1:-1;;;33894:29:0;;;;33856:23;;-1:-1:-1;;;;;33894:12:0;;:27;;:29;;;;;;;;;;;;;;:12;:29;;;2:2:-1;;;;27:1;24;17:12;2:2;33894:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;33894:29:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;33894:29:0;34053:16;;34078:12;;:33;;;-1:-1:-1;;;34078:33:0;;;;33894:29;;-1:-1:-1;;;;;;34053:16:0;;;;:24;;34078:12;;;;:31;;:33;;;;;33894:29;;34078:33;;;;;;;;:12;:33;;;2:2:-1;;;;27:1;24;17:12;2:2;34078:33:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;34078:33:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;34078:33:0;34053:67;;;-1:-1:-1;;;;;;34053:67:0;;;;;;;-1:-1:-1;;;;;34053:67:0;;;;;;;;;;;;;;;;;;;34078:33;;34053:67;;;;;;;-1:-1:-1;34053:67:0;;;;2:2:-1;;;;27:1;24;17:12;2:2;34053:67:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;34053:67:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;34246:13:0;;-1:-1:-1;34262:27:0;:25;:27::i;:::-;34382:16;;:41;;;-1:-1:-1;;;34382:41:0;;34417:4;34382:41;;;;;;34246:43;;-1:-1:-1;34353:26:0;;-1:-1:-1;;;;;34382:16:0;;;;:26;;:41;;;;;;;;;;;;;;;:16;:41;;;2:2:-1;;;;27:1;24;17:12;2:2;34382:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;34382:41:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;34382:41:0;;-1:-1:-1;;;;;;34434:19:0;;;34454:17;:15;:17::i;:::-;34434:49;;;-1:-1:-1;;;;;;34434:49:0;;;;;;;-1:-1:-1;;;;;34434:49:0;;;;;;;;;;;;;34481:1;34434:49;;;;;;;;;;;;;;;;;;34481:1;34434:49;;;;2:2:-1;;;;27:1;24;17:12;2:2;34434:49:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;34703:16:0;;:41;;;-1:-1:-1;;;34703:41:0;;34738:4;34703:41;;;;;;34657:20;;-1:-1:-1;34680:65:0;;-1:-1:-1;;;;;;34703:16:0;;;;:26;;:41;;;;;;;;;;;;;;;:16;:41;;;2:2:-1;;;;27:1;24;17:12;2:2;34703:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;34703:41:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;34703:41:0;34680:18;;:65;:22;:65;:::i;:::-;34657:88;;34780:6;34764:12;:22;34756:81;;;;-1:-1:-1;;;34756:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34944:6;34964:9;;34961:184;;35071:36;35101:5;35071:25;35082:13;:11;:13::i;:::-;35071:6;;:25;:10;:25;:::i;:36::-;35058:49;;34961:184;35155:30;35161:12;:10;:12::i;:::-;35174:10;35155:5;:30::i;:::-;35275:3;35238:8;:22;35247:12;:10;:12::i;:::-;-1:-1:-1;;;;;35238:22:0;;;;;;;;;;;;-1:-1:-1;35238:22:0;:40;35339:12;:10;:12::i;:::-;-1:-1:-1;;;;;35331:29:0;;35353:6;35331:29;;;;;;;;;;;;;;;;;;33556:1812;;;;;;:::o;38546:139::-;26700:12;:10;:12::i;:::-;26690:6;;;;;-1:-1:-1;;;;;26690:6:0;;;:22;;;26682:67;;;;;-1:-1:-1;;;26682:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;26682:67:0;;;;;;;;;;;;;;;38626:1:::1;37925:5;37908:13;;:22;37900:74;;;;-1:-1:-1::0;;;37900:74:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38001:1;37985:13;:17:::0;;;38060:13:::1;:11;:13::i;:::-;:17;38057:184;;;37679:5;38169:14;;:34;38162:3;:41;;38154:75;;;::::0;;-1:-1:-1;;;38154:75:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;38154:75:0;;;;;;;;;;;;;::::1;;38659:17:::2;::::0;38640:37:::2;::::0;-1:-1:-1;;;;;38659:17:0::2;38640:18;:37::i;:::-;26760:1:::1;38546:139::o:0;39814:135::-;26700:12;:10;:12::i;:::-;26690:6;;;;;-1:-1:-1;;;;;26690:6:0;;;:22;;;26682:67;;;;;-1:-1:-1;;;26682:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;26682:67:0;;;;;;;;;;;;;;;39892:1:::1;37925:5;37908:13;;:22;37900:74;;;;-1:-1:-1::0;;;37900:74:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38001:1;37985:13;:17:::0;;;38060:13:::1;:11;:13::i;:::-;:17;38057:184;;;37679:5;38169:14;;:34;38162:3;:41;;38154:75;;;::::0;;-1:-1:-1;;;38154:75:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;38154:75:0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;39924:17:0::2;::::0;39906:15:::2;:35:::0;;-1:-1:-1;;;;;;39906:35:0::2;-1:-1:-1::0;;;;;39924:17:0;;::::2;39906:35:::0;;;::::2;::::0;;39814:135::o;39310:209::-;26700:12;:10;:12::i;:::-;26690:6;;;;;-1:-1:-1;;;;;26690:6:0;;;:22;;;26682:67;;;;;-1:-1:-1;;;26682:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;26682:67:0;;;;;;;;;;;;;;;39388:1:::1;37925:5;37908:13;;:22;37900:74;;;;-1:-1:-1::0;;;37900:74:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38001:1;37985:13;:17:::0;;;38060:13:::1;:11;:13::i;:::-;:17;38057:184;;;37679:5;38169:14;;:34;38162:3;:41;;38154:75;;;::::0;;-1:-1:-1;;;38154:75:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;38154:75:0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;39415:14:0::2;:17:::0;39402:10:::2;:30:::0;39452:17;;39443:6:::2;:26:::0;39494:17;;39480:11:::2;:31:::0;39310:209::o;32149:30::-;;;-1:-1:-1;;;;;32149:30:0;;:::o;35380:2008::-;35534:1;35525:6;:10;35517:40;;;;;-1:-1:-1;;;35517:40:0;;;;;;;;;;;;-1:-1:-1;;;35517:40:0;;;;;;;;;;;;;;;35592:1;35576:13;:11;:13::i;:::-;:17;35568:49;;;;;-1:-1:-1;;;35568:49:0;;;;;;;;;;;;-1:-1:-1;;;35568:49:0;;;;;;;;;;;;;;;35628:18;35649:13;:11;:13::i;:::-;35628:34;;35704:26;35710:12;:10;:12::i;:::-;35723:6;35704:5;:26::i;:::-;35801:22;35826:55;35870:10;35826:39;35858:6;35826:27;:25;:27::i;:::-;:31;:39;:31;:39;:::i;:55::-;35973:16;;:41;;;-1:-1:-1;;;35973:41:0;;36008:4;35973:41;;;;;;35801:80;;-1:-1:-1;35944:26:0;;-1:-1:-1;;;;;35973:16:0;;;;:26;;:41;;;;;;;;;;;;;;;:16;:41;;;2:2:-1;;;;27:1;24;17:12;2:2;35973:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;35973:41:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;35973:41:0;36072:7;;:30;;;-1:-1:-1;;;36072:30:0;;;;;;;;;;35973:41;;-1:-1:-1;;;;;;36072:7:0;;;;:14;;:30;;;;;:7;;:30;;;;;;;;:7;;:30;;;2:2:-1;;;;27:1;24;17:12;2:2;36072:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;36191:16:0;;:41;;;-1:-1:-1;;;36191:41:0;;36226:4;36191:41;;;;;;36168:20;;-1:-1:-1;36191:65:0;;-1:-1:-1;36237:18:0;;-1:-1:-1;;;;;36191:16:0;;:26;;:41;;;;;;;;;;;;;;:16;:41;;;2:2:-1;;;;27:1;24;17:12;2:2;36191:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;36191:41:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;36191:41:0;;:65;:45;:65;:::i;:::-;36168:88;;36291:14;36275:12;:30;;36267:89;;;;-1:-1:-1;;;36267:89:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36445:8;:22;36454:12;:10;:12::i;:::-;-1:-1:-1;;;;;36445:22:0;;;;;;;;;;;;-1:-1:-1;36445:22:0;:34;36442:185;;36587:3;36550:8;:22;36559:12;:10;:12::i;:::-;-1:-1:-1;;;;;36550:22:0;;;;;;;;;;;;-1:-1:-1;36550:22:0;:40;36442:185;36647:22;36672:88;36748:11;;36672:71;36699:43;36707:8;:22;36716:12;:10;:12::i;:::-;-1:-1:-1;;;;;36707:22:0;;;;;;;;;;;;-1:-1:-1;36707:22:0;:34;36699:3;;:43;:7;:43;:::i;:::-;36687:6;;36672:10;;:22;;;:14;:22;:::i;:88::-;36647:113;;36791:22;36806:6;;36791:10;;:14;;:22;;;;:::i;:::-;36774:14;:39;36771:158;;;36910:6;;36895:10;;:22;;;:14;:22;:::i;:::-;36878:39;;36771:158;36953:10;;36939:11;;36953:30;;36968:14;36953:30;:14;:30;:::i;:::-;36939:44;-1:-1:-1;37000:43:0;31364:6;37000:23;:14;36939:44;37000:23;:18;:23;:::i;:43::-;36994:49;-1:-1:-1;37071:23:0;:14;36994:49;37071:23;:18;:23;:::i;:::-;37054:40;;37189:59;37219:12;:10;:12::i;:::-;37189:16;;-1:-1:-1;;;;;37189:16:0;;37233:14;37189:59;:29;:59;:::i;:::-;37289:15;;37259:16;;:51;;-1:-1:-1;;;;;37259:16:0;;;;37289:15;37306:3;37259:51;:29;:51;:::i;:::-;37346:12;:10;:12::i;:::-;-1:-1:-1;;;;;37336:44:0;;37360:14;37376:3;37336:44;;;;;;;;;;;;;;;;;;;;;;;;35380:2008;;;;;;;:::o;19311:151::-;-1:-1:-1;;;;;19427:18:0;;;19400:7;19427:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;19311:151::o;31854:79::-;;;-1:-1:-1;;;;;31854:79:0;;:::o;39625:177::-;26700:12;:10;:12::i;:::-;26690:6;;;;;-1:-1:-1;;;;;26690:6:0;;;:22;;;26682:67;;;;;-1:-1:-1;;;26682:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;26682:67:0;;;;;;;;;;;;;;;39724:3:::1;39707:14;:20:::0;39754:1:::1;39738:13;:17:::0;39766::::1;:28:::0;;-1:-1:-1;;;;;;39766:28:0::1;-1:-1:-1::0;;;;;39766:28:0;;;::::1;::::0;;;::::1;::::0;;39625:177::o;38348:186::-;26700:12;:10;:12::i;:::-;26690:6;;;;;-1:-1:-1;;;;;26690:6:0;;;:22;;;26682:67;;;;;-1:-1:-1;;;26682:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;26682:67:0;;;;;;;;;;;;;;;38449:3:::1;38432:14;:20:::0;38479:1:::1;38463:13;:17:::0;38491::::1;:28:::0;;-1:-1:-1;;;;;;38491:28:0::1;-1:-1:-1::0;;;;;38491:28:0;;;::::1;::::0;;;::::1;::::0;;38348:186::o;650:106::-;738:10;650:106;:::o;24626:346::-;-1:-1:-1;;;;;24728:19:0;;24720:68;;;;-1:-1:-1;;;24720:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24807:21:0;;24799:68;;;;-1:-1:-1;;;24799:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24880:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;24932:32;;;;;;;;;;;;;;;;;24626:346;;;:::o;22437:479::-;-1:-1:-1;;;;;22543:20:0;;22535:70;;;;-1:-1:-1;;;22535:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;22624:23:0;;22616:71;;;;-1:-1:-1;;;22616:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22720;22742:6;22720:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;22720:17:0;;:9;:17;;;;;;;;;;;;:71;;:21;:71;:::i;:::-;-1:-1:-1;;;;;22700:17:0;;;:9;:17;;;;;;;;;;;:91;;;;22825:20;;;;;;;:32;;22850:6;22825:32;:24;:32;:::i;:::-;-1:-1:-1;;;;;22802:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;22873:35;;;;;;;22802:20;;22873:35;;;;;;;;;;;;;22437:479;;;:::o;5624:192::-;5710:7;5746:12;5738:6;;;;5730:29;;;;-1:-1:-1;;;5730:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;5730:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5782:5:0;;;5624:192::o;4731:181::-;4789:7;4821:5;;;4845:6;;;;4837:46;;;;;-1:-1:-1;;;4837:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;4903:1;4731:181;-1:-1:-1;;;4731:181:0:o;6070:471::-;6128:7;6373:6;6369:47;;-1:-1:-1;6403:1:0;6396:8;;6369:47;6440:5;;;6444:1;6440;:5;:1;6464:5;;;;;:10;6456:56;;;;-1:-1:-1;;;6456:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7012:132;7070:7;7097:39;7101:1;7104;7097:39;;;;;;;;;;;;;;;;;:3;:39::i;27455:205::-;27583:68;;;-1:-1:-1;;;;;27583:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;27583:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;27556:96:0;;27576:5;;27556:19;:96::i;:::-;27455:205;;;;:::o;5190:136::-;5248:7;5275:43;5279:1;5282;5275:43;;;;;;;;;;;;;;;;;:3;:43::i;23192:316::-;-1:-1:-1;;;;;23276:21:0;;23268:65;;;;;-1:-1:-1;;;23268:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;23361:12;;:24;;23378:6;23361:24;:16;:24;:::i;:::-;23346:12;:39;-1:-1:-1;;;;;23417:18:0;;:9;:18;;;;;;;;;;;:30;;23440:6;23417:30;:22;:30;:::i;:::-;-1:-1:-1;;;;;23396:18:0;;:9;:18;;;;;;;;;;;:51;;;;23463:37;;;;;;;23396:18;;:9;;23463:37;;;;;;;;;;23192:316;;:::o;26919:252::-;26700:12;:10;:12::i;:::-;26690:6;;;;;-1:-1:-1;;;;;26690:6:0;;;:22;;;26682:67;;;;;-1:-1:-1;;;26682:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;26682:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;27016:22:0;::::1;27008:73;;;;-1:-1:-1::0;;;27008:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27118:6;::::0;27097:38:::1;::::0;-1:-1:-1;;;;;27097:38:0;;::::1;::::0;27118:6:::1;::::0;::::1;;::::0;27097:38:::1;::::0;;;::::1;27146:6;:17:::0;;-1:-1:-1;;;;;27146:17:0;;::::1;;;-1:-1:-1::0;;;;;;27146:17:0;;::::1;::::0;;;::::1;::::0;;26919:252::o;23835:356::-;-1:-1:-1;;;;;23919:21:0;;23911:67;;;;-1:-1:-1;;;23911:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24012:68;24035:6;24012:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24012:18:0;;:9;:18;;;;;;;;;;;;:68;;:22;:68;:::i;:::-;-1:-1:-1;;;;;23991:18:0;;:9;:18;;;;;;;;;;:89;24106:12;;:24;;24123:6;24106:24;:16;:24;:::i;:::-;24091:12;:39;24146:37;;;;;;;;24172:1;;-1:-1:-1;;;;;24146:37:0;;;;;;;;;;;;23835:356;;:::o;27270:177::-;27380:58;;;-1:-1:-1;;;;;27380:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;27380:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;27353:86:0;;27373:5;;27353:19;:86::i;:::-;27270:177;;;:::o;7635:278::-;7721:7;7756:12;7749:5;7741:28;;;;-1:-1:-1;;;7741:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;7741:28:0;;7780:9;7796:1;7792;:5;;;;;;;7635:278;-1:-1:-1;;;;;7635:278:0:o;29575:761::-;29999:23;30025:69;30053:4;30025:69;;;;;;;;;;;;;;;;;30033:5;-1:-1:-1;;;;;30025:27:0;;;:69;;;;;:::i;:::-;30109:17;;29999:95;;-1:-1:-1;30109:21:0;30105:224;;30251:10;30240:30;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;30240:30:0;30232:85;;;;-1:-1:-1;;;30232:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13008:196;13111:12;13143:53;13166:6;13174:4;13180:1;13183:12;13143:22;:53::i;:::-;13136:60;13008:196;-1:-1:-1;;;;13008:196:0:o;14375:979::-;14505:12;14538:18;14549:6;14538:10;:18::i;:::-;14530:60;;;;;-1:-1:-1;;;14530:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14664:12;14678:23;14705:6;-1:-1:-1;;;;;14705:11:0;14725:8;14736:4;14705:36;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;14705:36:0;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;14663:78:0;;;;14756:7;14752:595;;;14787:10;-1:-1:-1;14780:17:0;;-1:-1:-1;14780:17:0;14752:595;14901:17;;:21;14897:439;;15164:10;15158:17;15225:15;15212:10;15208:2;15204:19;15197:44;15112:148;15300:20;;-1:-1:-1;;;15300:20:0;;;;;;;;;;;;;;;;;15307:12;;15300:20;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;9908:619:0;9968:4;10436:20;;10279:66;10476:23;;;;;;:42;;-1:-1:-1;;10503:15:0;;;10468:51;-1:-1:-1;;9908:619:0:o

Swarm Source

ipfs://d453abca1e4653f8489476d89fbefa8da211909d87f3bd673116f9ff4dbea1be

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.