ETH Price: $3,303.48 (-5.50%)
Gas: 7 Gwei

Contract

0xba100000625a3754423978a60c9317c58a424e3D
 
Transaction Hash
Method
Block
From
To
Value
0xd085c644ea7e42e7497ed859f94da5ede0d7795f7a563a0adfba06c2291bcd06 Transfer(pending)2024-06-23 3:50:3833 hrs ago1719114638IN
Balancer: BAL Token
0 ETH(Pending)(Pending)
0xfa78326d4e612b1eda28ba334a68e61ca46db6bd4ac60df1384a23ef5bf8a9bd Transfer(pending)2024-06-23 3:00:4034 hrs ago1719111640IN
Balancer: BAL Token
0 ETH(Pending)(Pending)
0xff97c965b0a08c5bdf976fe07616c69966719dacc48d5f5507ad029cfbd50ff7 Transfer(pending)2024-06-23 2:26:2734 hrs ago1719109587IN
Balancer: BAL Token
0 ETH(Pending)(Pending)
0x40f0c1354f11c7a50b2c8b19def4ecd0b2f261ab55399e0bc5b60ed91dce04ca Transfer(pending)2024-06-23 1:41:1735 hrs ago1719106877IN
Balancer: BAL Token
0 ETH(Pending)(Pending)
Approve201617252024-06-24 13:05:3513 mins ago1719234335IN
Balancer: BAL Token
0 ETH0.000298816.40784246
Transfer201616452024-06-24 12:49:3529 mins ago1719233375IN
Balancer: BAL Token
0 ETH0.000315187.44162133
Transfer201615222024-06-24 12:24:2355 mins ago1719231863IN
Balancer: BAL Token
0 ETH0.000303367.16235505
Approve201614692024-06-24 12:13:471 hr ago1719231227IN
Balancer: BAL Token
0 ETH0.000199334.30014154
Approve201614442024-06-24 12:08:471 hr ago1719230927IN
Balancer: BAL Token
0 ETH0.000216824.64960992
Transfer201613042024-06-24 11:40:471 hr ago1719229247IN
Balancer: BAL Token
0 ETH0.000150314
Transfer201612562024-06-24 11:30:591 hr ago1719228659IN
Balancer: BAL Token
0 ETH0.000187895
Transfer201611082024-06-24 11:00:592 hrs ago1719226859IN
Balancer: BAL Token
0 ETH0.000150364
Transfer201611082024-06-24 11:00:592 hrs ago1719226859IN
Balancer: BAL Token
0 ETH0.000150364
Transfer201611072024-06-24 11:00:472 hrs ago1719226847IN
Balancer: BAL Token
0 ETH0.000150364
Transfer201610172024-06-24 10:42:352 hrs ago1719225755IN
Balancer: BAL Token
0 ETH0.000291265.32685934
Approve201609502024-06-24 10:29:112 hrs ago1719224951IN
Balancer: BAL Token
0 ETH0.000184023.97178431
Transfer201609282024-06-24 10:24:472 hrs ago1719224687IN
Balancer: BAL Token
0 ETH0.000318015.81594525
Transfer201608492024-06-24 10:08:593 hrs ago1719223739IN
Balancer: BAL Token
0 ETH0.000330958.80686501
Transfer201608462024-06-24 10:08:233 hrs ago1719223703IN
Balancer: BAL Token
0 ETH0.00037049.85674993
Transfer201608412024-06-24 10:07:233 hrs ago1719223643IN
Balancer: BAL Token
0 ETH0.0003933110.46970494
Transfer201608142024-06-24 10:01:593 hrs ago1719223319IN
Balancer: BAL Token
0 ETH0.0004647912.36859069
Transfer201608102024-06-24 10:01:113 hrs ago1719223271IN
Balancer: BAL Token
0 ETH0.0006367411.64515332
Transfer201607812024-06-24 9:55:233 hrs ago1719222923IN
Balancer: BAL Token
0 ETH0.0007517213.74791996
Transfer201607502024-06-24 9:49:113 hrs ago1719222551IN
Balancer: BAL Token
0 ETH0.0009699917.74372731
Transfer201604632024-06-24 8:50:594 hrs ago1719219059IN
Balancer: BAL Token
0 ETH0.000259786.91741696
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To Value
163004442022-12-30 22:04:11541 days ago1672437851
Balancer: BAL Token
0.00411173 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BalancerGovernanceToken

Compiler Version
v0.6.8+commit.0bbfe453

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

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

// SPDX-License-Identifier: MIT

// File @openzeppelin/contracts/utils/[email protected]

pragma solidity ^0.6.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256`
 * (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint256(_at(set._inner, index)));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}


// File @openzeppelin/contracts/utils/[email protected]

pragma solidity ^0.6.2;

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

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

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


// File @openzeppelin/contracts/GSN/[email protected]

pragma solidity ^0.6.0;

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

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

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


// File @openzeppelin/contracts/access/[email protected]

pragma solidity ^0.6.0;




/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

    struct RoleData {
        EnumerableSet.AddressSet members;
        bytes32 adminRole;
    }

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view returns (bool) {
        return _roles[role].members.contains(account);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view returns (uint256) {
        return _roles[role].members.length();
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view returns (address) {
        return _roles[role].members.at(index);
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");

        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");

        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (_roles[role].members.add(account)) {
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (_roles[role].members.remove(account)) {
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}


// File @openzeppelin/contracts/math/[email protected]

pragma solidity ^0.6.0;

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

        return c;
    }

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

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

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

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

        return c;
    }

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

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

        return c;
    }

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

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


// File @openzeppelin/contracts/math/[email protected]

pragma solidity ^0.6.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}


// File @openzeppelin/contracts/utils/[email protected]

pragma solidity ^0.6.0;


/**
 * @dev Collection of functions related to array types.
 */
library Arrays {
   /**
     * @dev Searches a sorted `array` and returns the first index that contains
     * a value greater or equal to `element`. If no such index exists (i.e. all
     * values in the array are strictly less than `element`), the array length is
     * returned. Time complexity O(log n).
     *
     * `array` is expected to be sorted in ascending order, and to contain no
     * repeated elements.
     */
    function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) {
        if (array.length == 0) {
            return 0;
        }

        uint256 low = 0;
        uint256 high = array.length;

        while (low < high) {
            uint256 mid = Math.average(low, high);

            // Note that mid will always be strictly less than high (i.e. it will be a valid array index)
            // because Math.average rounds down (it does integer division with truncation).
            if (array[mid] > element) {
                high = mid;
            } else {
                low = mid + 1;
            }
        }

        // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound.
        if (low > 0 && array[low - 1] == element) {
            return low - 1;
        } else {
            return low;
        }
    }
}


// File @openzeppelin/contracts/utils/[email protected]

pragma solidity ^0.6.0;


/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath}
 * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never
 * directly accessed.
 */
library Counters {
    using SafeMath for uint256;

    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        // The {SafeMath} overflow check can be skipped here, see the comment at the top
        counter._value += 1;
    }

    function decrement(Counter storage counter) internal {
        counter._value = counter._value.sub(1);
    }
}


// File @openzeppelin/contracts/token/ERC20/[email protected]

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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


// File @openzeppelin/contracts/token/ERC20/[email protected]

pragma solidity ^0.6.0;





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

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

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

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

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

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

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

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

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

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

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

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

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


// File @openzeppelin/contracts/token/ERC20/[email protected]

pragma solidity ^0.6.0;





/**
 * @dev This contract extends an ERC20 token with a snapshot mechanism. When a snapshot is created, the balances and
 * total supply at the time are recorded for later access.
 *
 * This can be used to safely create mechanisms based on token balances such as trustless dividends or weighted voting.
 * In naive implementations it's possible to perform a "double spend" attack by reusing the same balance from different
 * accounts. By using snapshots to calculate dividends or voting power, those attacks no longer apply. It can also be
 * used to create an efficient ERC20 forking mechanism.
 *
 * Snapshots are created by the internal {_snapshot} function, which will emit the {Snapshot} event and return a
 * snapshot id. To get the total supply at the time of a snapshot, call the function {totalSupplyAt} with the snapshot
 * id. To get the balance of an account at the time of a snapshot, call the {balanceOfAt} function with the snapshot id
 * and the account address.
 *
 * ==== Gas Costs
 *
 * Snapshots are efficient. Snapshot creation is _O(1)_. Retrieval of balances or total supply from a snapshot is _O(log
 * n)_ in the number of snapshots that have been created, although _n_ for a specific account will generally be much
 * smaller since identical balances in subsequent snapshots are stored as a single entry.
 *
 * There is a constant overhead for normal ERC20 transfers due to the additional snapshot bookkeeping. This overhead is
 * only significant for the first transfer that immediately follows a snapshot for a particular account. Subsequent
 * transfers will have normal cost until the next snapshot, and so on.
 */
abstract contract ERC20Snapshot is ERC20 {
    // Inspired by Jordi Baylina's MiniMeToken to record historical balances:
    // https://github.com/Giveth/minimd/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.sol

    using SafeMath for uint256;
    using Arrays for uint256[];
    using Counters for Counters.Counter;

    // Snapshotted values have arrays of ids and the value corresponding to that id. These could be an array of a
    // Snapshot struct, but that would impede usage of functions that work on an array.
    struct Snapshots {
        uint256[] ids;
        uint256[] values;
    }

    mapping (address => Snapshots) private _accountBalanceSnapshots;
    Snapshots private _totalSupplySnapshots;

    // Snapshot ids increase monotonically, with the first value being 1. An id of 0 is invalid.
    Counters.Counter private _currentSnapshotId;

    /**
     * @dev Emitted by {_snapshot} when a snapshot identified by `id` is created.
     */
    event Snapshot(uint256 id);

    /**
     * @dev Creates a new snapshot and returns its snapshot id.
     *
     * Emits a {Snapshot} event that contains the same id.
     *
     * {_snapshot} is `internal` and you have to decide how to expose it externally. Its usage may be restricted to a
     * set of accounts, for example using {AccessControl}, or it may be open to the public.
     *
     * [WARNING]
     * ====
     * While an open way of calling {_snapshot} is required for certain trust minimization mechanisms such as forking,
     * you must consider that it can potentially be used by attackers in two ways.
     *
     * First, it can be used to increase the cost of retrieval of values from snapshots, although it will grow
     * logarithmically thus rendering this attack ineffective in the long term. Second, it can be used to target
     * specific accounts and increase the cost of ERC20 transfers for them, in the ways specified in the Gas Costs
     * section above.
     *
     * We haven't measured the actual numbers; if this is something you're interested in please reach out to us.
     * ====
     */
    function _snapshot() internal virtual returns (uint256) {
        _currentSnapshotId.increment();

        uint256 currentId = _currentSnapshotId.current();
        emit Snapshot(currentId);
        return currentId;
    }

    /**
     * @dev Retrieves the balance of `account` at the time `snapshotId` was created.
     */
    function balanceOfAt(address account, uint256 snapshotId) public view returns (uint256) {
        (bool snapshotted, uint256 value) = _valueAt(snapshotId, _accountBalanceSnapshots[account]);

        return snapshotted ? value : balanceOf(account);
    }

    /**
     * @dev Retrieves the total supply at the time `snapshotId` was created.
     */
    function totalSupplyAt(uint256 snapshotId) public view returns(uint256) {
        (bool snapshotted, uint256 value) = _valueAt(snapshotId, _totalSupplySnapshots);

        return snapshotted ? value : totalSupply();
    }

    // _transfer, _mint and _burn are the only functions where the balances are modified, so it is there that the
    // snapshots are updated. Note that the update happens _before_ the balance change, with the pre-modified value.
    // The same is true for the total supply and _mint and _burn.
    function _transfer(address from, address to, uint256 value) internal virtual override {
        _updateAccountSnapshot(from);
        _updateAccountSnapshot(to);

        super._transfer(from, to, value);
    }

    function _mint(address account, uint256 value) internal virtual override {
        _updateAccountSnapshot(account);
        _updateTotalSupplySnapshot();

        super._mint(account, value);
    }

    function _burn(address account, uint256 value) internal virtual override {
        _updateAccountSnapshot(account);
        _updateTotalSupplySnapshot();

        super._burn(account, value);
    }

    function _valueAt(uint256 snapshotId, Snapshots storage snapshots)
        private view returns (bool, uint256)
    {
        require(snapshotId > 0, "ERC20Snapshot: id is 0");
        // solhint-disable-next-line max-line-length
        require(snapshotId <= _currentSnapshotId.current(), "ERC20Snapshot: nonexistent id");

        // When a valid snapshot is queried, there are three possibilities:
        //  a) The queried value was not modified after the snapshot was taken. Therefore, a snapshot entry was never
        //  created for this id, and all stored snapshot ids are smaller than the requested one. The value that corresponds
        //  to this id is the current one.
        //  b) The queried value was modified after the snapshot was taken. Therefore, there will be an entry with the
        //  requested id, and its value is the one to return.
        //  c) More snapshots were created after the requested one, and the queried value was later modified. There will be
        //  no entry for the requested id: the value that corresponds to it is that of the smallest snapshot id that is
        //  larger than the requested one.
        //
        // In summary, we need to find an element in an array, returning the index of the smallest value that is larger if
        // it is not found, unless said value doesn't exist (e.g. when all values are smaller). Arrays.findUpperBound does
        // exactly this.

        uint256 index = snapshots.ids.findUpperBound(snapshotId);

        if (index == snapshots.ids.length) {
            return (false, 0);
        } else {
            return (true, snapshots.values[index]);
        }
    }

    function _updateAccountSnapshot(address account) private {
        _updateSnapshot(_accountBalanceSnapshots[account], balanceOf(account));
    }

    function _updateTotalSupplySnapshot() private {
        _updateSnapshot(_totalSupplySnapshots, totalSupply());
    }

    function _updateSnapshot(Snapshots storage snapshots, uint256 currentValue) private {
        uint256 currentId = _currentSnapshotId.current();
        if (_lastSnapshotId(snapshots.ids) < currentId) {
            snapshots.ids.push(currentId);
            snapshots.values.push(currentValue);
        }
    }

    function _lastSnapshotId(uint256[] storage ids) private view returns (uint256) {
        if (ids.length == 0) {
            return 0;
        } else {
            return ids[ids.length - 1];
        }
    }
}


// File contracts/BalancerGovernanceToken.sol

pragma solidity =0.6.8;



contract BalancerGovernanceToken is AccessControl, ERC20Snapshot {

    string  public constant version  = "1";
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    bytes32 public constant SNAPSHOT_ROLE = keccak256("SNAPSHOT_ROLE");

    bytes32 public immutable DOMAIN_SEPARATOR;
    // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
    bytes32 public immutable PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;
    mapping(address => uint) public nonces;

    constructor(string memory name, string memory symbol) public ERC20(name, symbol) {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(MINTER_ROLE, _msgSender());
        _setupRole(SNAPSHOT_ROLE, _msgSender());

        uint256 chainId = _chainID();
        DOMAIN_SEPARATOR = keccak256(
            abi.encode(
                keccak256('EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)'),
                keccak256(bytes(name)),
                keccak256(bytes(version)),
                chainId,
                address(this)
            )
        );
    }

    function _chainID() private pure returns (uint256) {
        uint256 chainID;
        assembly {
            chainID := chainid()
        }
        return chainID;
    }

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external {
        require(block.timestamp <= deadline, "ERR_EXPIRED_SIG");
        bytes32 digest = keccak256(
            abi.encodePacked(
                uint16(0x1901),
                DOMAIN_SEPARATOR,
                keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, nonces[owner]++, deadline))
            )
        );
        require(owner == _recover(digest, v, r, s), "ERR_INVALID_SIG");
        _approve(owner, spender, value);
    }

    function _recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) private pure returns (address) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            revert("ECDSA: invalid signature 's' value");
        }

        if (v != 27 && v != 28) {
            revert("ECDSA: invalid signature 'v' value");
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }

    function mint(address to, uint256 amount) public virtual {
        require(hasRole(MINTER_ROLE, _msgSender()), "ERR_MINTER_ROLE");
        _mint(to, amount);
    }

    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    function burnFrom(address account, uint256 amount) public virtual {
        uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance");

        _approve(account, _msgSender(), decreasedAllowance);
        _burn(account, amount);
    }

    function snapshot() public virtual {
        require(hasRole(SNAPSHOT_ROLE, _msgSender()), "ERR_SNAPSHOT_ROLE");
        _snapshot();
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Snapshot","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SNAPSHOT_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"name":"balanceOfAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"snapshot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"name":"totalSupplyAt","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":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60c06040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c960001b60a0908152503480156200003b57600080fd5b506040516200370338038062003703833981810160405260408110156200006157600080fd5b81019080805160405193929190846401000000008211156200008257600080fd5b838201915060208201858111156200009957600080fd5b8251866001820283011164010000000082111715620000b757600080fd5b8083526020830192505050908051906020019080838360005b83811015620000ed578082015181840152602081019050620000d0565b50505050905090810190601f1680156200011b5780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200013f57600080fd5b838201915060208201858111156200015657600080fd5b82518660018202830111640100000000821117156200017457600080fd5b8083526020830192505050908051906020019080838360005b83811015620001aa5780820151818401526020810190506200018d565b50505050905090810190601f168015620001d85780820380516001836020036101000a031916815260200191505b5060405250505081818160049080519060200190620001f992919062000597565b5080600590805190602001906200021292919062000597565b506012600660006101000a81548160ff021916908360ff1602179055505050620002556000801b62000249620003f460201b60201c565b620003fc60201b60201c565b620002ab60405180807f4d494e5445525f524f4c45000000000000000000000000000000000000000000815250600b01905060405180910390206200029f620003f460201b60201c565b620003fc60201b60201c565b6200030160405180807f534e415053484f545f524f4c4500000000000000000000000000000000000000815250600d0190506040518091039020620002f5620003f460201b60201c565b620003fc60201b60201c565b6000620003136200041260201b60201c565b90506040518080620036b1605291396052019050604051809103902083805190602001206040518060400160405280600181526020017f3100000000000000000000000000000000000000000000000000000000000000815250805190602001208330604051602001808681526020018581526020018481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200195505050505050604051602081830303815290604052805190602001206080818152505050505062000646565b600033905090565b6200040e82826200041f60201b60201c565b5050565b6000804690508091505090565b6200044d81600080858152602001908152602001600020600001620004c260201b620019791790919060201c565b15620004be5762000463620003f460201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000620004f2836000018373ffffffffffffffffffffffffffffffffffffffff1660001b620004fa60201b60201c565b905092915050565b60006200050e83836200057460201b60201c565b620005695782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506200056e565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620005da57805160ff19168380011785556200060b565b828001600101855582156200060b579182015b828111156200060a578251825591602001919060010190620005ed565b5b5090506200061a91906200061e565b5090565b6200064391905b808211156200063f57600081600090555060010162000625565b5090565b90565b60805160a05161303d6200067460003980610e46528061161c525080610e8152806115fb525061303d6000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c806370a082311161010f578063a217fddf116100a2578063d505accf11610071578063d505accf14610a7c578063d539139314610b15578063d547741f14610b33578063dd62ed3e14610b81576101f0565b8063a217fddf14610950578063a457c2d71461096e578063a9059cbb146109d4578063ca15c87314610a3a576101f0565b806391d14854116100de57806391d148541461081b57806395d89b41146108815780639711715a14610904578063981b24d01461090e576101f0565b806370a08231146106a557806379cc6790146106fd5780637ecebe001461074b5780639010d07c146107a3576101f0565b80633644e5151161018757806342966c681161015657806342966c68146105745780634ee2cd7e146105a257806354fd4d50146106045780637028e2cd14610687576101f0565b80633644e5151461045457806336568abe1461047257806339509351146104c057806340c10f1914610526576101f0565b8063248a9ca3116101c3578063248a9ca3146103825780632f2ff15d146103c457806330adf81f14610412578063313ce56714610430576101f0565b806306fdde03146101f5578063095ea7b31461027857806318160ddd146102de57806323b872dd146102fc575b600080fd5b6101fd610bf9565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561023d578082015181840152602081019050610222565b50505050905090810190601f16801561026a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102c46004803603604081101561028e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610c9b565b604051808215151515815260200191505060405180910390f35b6102e6610cb9565b6040518082815260200191505060405180910390f35b6103686004803603606081101561031257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610cc3565b604051808215151515815260200191505060405180910390f35b6103ae6004803603602081101561039857600080fd5b8101908080359060200190929190505050610d9c565b6040518082815260200191505060405180910390f35b610410600480360360408110156103da57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610dbb565b005b61041a610e44565b6040518082815260200191505060405180910390f35b610438610e68565b604051808260ff1660ff16815260200191505060405180910390f35b61045c610e7f565b6040518082815260200191505060405180910390f35b6104be6004803603604081101561048857600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ea3565b005b61050c600480360360408110156104d657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610f3c565b604051808215151515815260200191505060405180910390f35b6105726004803603604081101561053c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610fef565b005b6105a06004803603602081101561058a57600080fd5b81019080803590602001909291905050506110b5565b005b6105ee600480360360408110156105b857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506110c9565b6040518082815260200191505060405180910390f35b61060c611139565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561064c578082015181840152602081019050610631565b50505050905090810190601f1680156106795780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61068f611172565b6040518082815260200191505060405180910390f35b6106e7600480360360208110156106bb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506111ab565b6040518082815260200191505060405180910390f35b6107496004803603604081101561071357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506111f4565b005b61078d6004803603602081101561076157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611256565b6040518082815260200191505060405180910390f35b6107d9600480360360408110156107b957600080fd5b81019080803590602001909291908035906020019092919050505061126e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6108676004803603604081101561083157600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061129f565b604051808215151515815260200191505060405180910390f35b6108896112d0565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156108c95780820151818401526020810190506108ae565b50505050905090810190601f1680156108f65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61090c611372565b005b61093a6004803603602081101561092457600080fd5b8101908080359060200190929190505050611435565b6040518082815260200191505060405180910390f35b610958611466565b6040518082815260200191505060405180910390f35b6109ba6004803603604081101561098457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061146d565b604051808215151515815260200191505060405180910390f35b610a20600480360360408110156109ea57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061153a565b604051808215151515815260200191505060405180910390f35b610a6660048036036020811015610a5057600080fd5b8101908080359060200190929190505050611558565b6040518082815260200191505060405180910390f35b610b13600480360360e0811015610a9257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190929190803560ff169060200190929190803590602001909291908035906020019092919050505061157e565b005b610b1d611830565b6040518082815260200191505060405180910390f35b610b7f60048036036040811015610b4957600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611869565b005b610be360048036036040811015610b9757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506118f2565b6040518082815260200191505060405180910390f35b606060048054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610c915780601f10610c6657610100808354040283529160200191610c91565b820191906000526020600020905b815481529060010190602001808311610c7457829003601f168201915b5050505050905090565b6000610caf610ca86119a9565b84846119b1565b6001905092915050565b6000600354905090565b6000610cd0848484611ba8565b610d9184610cdc6119a9565b610d8c85604051806060016040528060288152602001612efe60289139600260008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610d426119a9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611bca9092919063ffffffff16565b6119b1565b600190509392505050565b6000806000838152602001908152602001600020600201549050919050565b610de160008084815260200190815260200160002060020154610ddc6119a9565b61129f565b610e36576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180612df1602f913960400191505060405180910390fd5b610e408282611c8a565b5050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000600660009054906101000a900460ff16905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b610eab6119a9565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f2e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180612fd9602f913960400191505060405180910390fd5b610f388282611d1d565b5050565b6000610fe5610f496119a9565b84610fe08560026000610f5a6119a9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611db090919063ffffffff16565b6119b1565b6001905092915050565b61103560405180807f4d494e5445525f524f4c45000000000000000000000000000000000000000000815250600b01905060405180910390206110306119a9565b61129f565b6110a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4552525f4d494e5445525f524f4c45000000000000000000000000000000000081525060200191505060405180910390fd5b6110b18282611e38565b5050565b6110c66110c06119a9565b82611e57565b50565b600080600061111684600760008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611e76565b915091508161112d57611128856111ab565b61112f565b805b9250505092915050565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b60405180807f534e415053484f545f524f4c4500000000000000000000000000000000000000815250600d019050604051809103902081565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600061123382604051806060016040528060248152602001612f26602491396112248661121f6119a9565b6118f2565b611bca9092919063ffffffff16565b9050611247836112416119a9565b836119b1565b6112518383611e57565b505050565b600b6020528060005260406000206000915090505481565b600061129782600080868152602001908152602001600020600001611fd090919063ffffffff16565b905092915050565b60006112c882600080868152602001908152602001600020600001611fea90919063ffffffff16565b905092915050565b606060058054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156113685780601f1061133d57610100808354040283529160200191611368565b820191906000526020600020905b81548152906001019060200180831161134b57829003601f168201915b5050505050905090565b6113b860405180807f534e415053484f545f524f4c4500000000000000000000000000000000000000815250600d01905060405180910390206113b36119a9565b61129f565b61142a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f4552525f534e415053484f545f524f4c4500000000000000000000000000000081525060200191505060405180910390fd5b61143261201a565b50565b6000806000611445846008611e76565b915091508161145b57611456610cb9565b61145d565b805b92505050919050565b6000801b81565b600061153061147a6119a9565b8461152b85604051806060016040528060258152602001612fb460259139600260006114a46119a9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611bca9092919063ffffffff16565b6119b1565b6001905092915050565b600061154e6115476119a9565b8484611ba8565b6001905092915050565b6000611577600080848152602001908152602001600020600001612072565b9050919050565b834211156115f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4552525f455850495245445f534947000000000000000000000000000000000081525060200191505060405180910390fd5b60006119017f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000008a8a8a600b60008f73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190600101919050558b604051602001808781526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001848152602001838152602001828152602001965050505050505060405160208183030381529060405280519060200120604051602001808461ffff1661ffff1660f01b8152600201838152602001828152602001935050505060405160208183030381529060405280519060200120905061177b81858585612087565b73ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff161461181b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4552525f494e56414c49445f534947000000000000000000000000000000000081525060200191505060405180910390fd5b6118268888886119b1565b5050505050505050565b60405180807f4d494e5445525f524f4c45000000000000000000000000000000000000000000815250600b019050604051809103902081565b61188f6000808481526020019081526020016000206002015461188a6119a9565b61129f565b6118e4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526030815260200180612eac6030913960400191505060405180910390fd5b6118ee8282611d1d565b5050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60006119a1836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61228d565b905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611a37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180612f906024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611abd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180612e426022913960400191505060405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b611bb1836122fd565b611bba826122fd565b611bc5838383612350565b505050565b6000838311158290611c77576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c3c578082015181840152602081019050611c21565b50505050905090810190601f168015611c695780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b611cb18160008085815260200190815260200160002060000161197990919063ffffffff16565b15611d1957611cbe6119a9565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611d448160008085815260200190815260200160002060000161261590919063ffffffff16565b15611dac57611d516119a9565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600080828401905083811015611e2e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b611e41826122fd565b611e49612645565b611e538282612659565b5050565b611e60826122fd565b611e68612645565b611e728282612822565b5050565b60008060008411611eef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f4552433230536e617073686f743a20696420697320300000000000000000000081525060200191505060405180910390fd5b611ef9600a6129e8565b841115611f6e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f4552433230536e617073686f743a206e6f6e6578697374656e7420696400000081525060200191505060405180910390fd5b6000611f8685856000016129f690919063ffffffff16565b90508360000180549050811415611fa7576000808090509250925050611fc9565b6001846001018281548110611fb857fe5b906000526020600020015492509250505b9250929050565b6000611fdf8360000183612aab565b60001c905092915050565b6000612012836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612b2e565b905092915050565b6000612026600a612b51565b6000612032600a6129e8565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb67816040518082815260200191505060405180910390a18091505090565b600061208082600001612b67565b9050919050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08260001c1115612105576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180612e8a6022913960400191505060405180910390fd5b601b8460ff161415801561211d5750601c8460ff1614155b15612173576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180612edc6022913960400191505060405180910390fd5b600060018686868660405160008152602001604052604051808581526020018460ff1660ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa1580156121d2573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612281576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f45434453413a20696e76616c6964207369676e6174757265000000000000000081525060200191505060405180910390fd5b80915050949350505050565b60006122998383612b2e565b6122f25782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506122f7565b600090505b92915050565b61234d600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612348836111ab565b612b78565b50565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156123d6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612f6b6025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561245c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180612dce6023913960400191505060405180910390fd5b612467838383612bf5565b6124d381604051806060016040528060268152602001612e6460269139600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611bca9092919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061256881600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611db090919063ffffffff16565b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b600061263d836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612bfa565b905092915050565b6126576008612652610cb9565b612b78565b565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156126fc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f45524332303a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b61270860008383612bf5565b61271d81600354611db090919063ffffffff16565b60038190555061277581600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611db090919063ffffffff16565b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156128a8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612f4a6021913960400191505060405180910390fd5b6128b482600083612bf5565b61292081604051806060016040528060228152602001612e2060229139600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611bca9092919063ffffffff16565b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061297881600354612ce290919063ffffffff16565b600381905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600081600001549050919050565b60008083805490501415612a0d5760009050612aa5565b60008090506000848054905090505b80821015612a65576000612a308383612d2c565b905084868281548110612a3f57fe5b90600052602060002001541115612a5857809150612a5f565b6001810192505b50612a1c565b600082118015612a8d575083856001840381548110612a8057fe5b9060005260206000200154145b15612a9f576001820392505050612aa5565b81925050505b92915050565b600081836000018054905011612b0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180612dac6022913960400191505060405180910390fd5b826000018281548110612b1b57fe5b9060005260206000200154905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b6001816000016000828254019250508190555050565b600081600001805490509050919050565b6000612b84600a6129e8565b905080612b9384600001612d6e565b1015612bf05782600001819080600181540180825580915050600190039060005260206000200160009091909190915055826001018290806001815401808255809150506001900390600052602060002001600090919091909150555b505050565b505050565b60008083600101600084815260200190815260200160002054905060008114612cd65760006001820390506000600186600001805490500390506000866000018281548110612c4557fe5b9060005260206000200154905080876000018481548110612c6257fe5b9060005260206000200181905550600183018760010160008381526020019081526020016000208190555086600001805480612c9a57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050612cdc565b60009150505b92915050565b6000612d2483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611bca565b905092915050565b60006002808381612d3957fe5b0660028581612d4457fe5b060181612d4d57fe5b0460028381612d5857fe5b0460028581612d6357fe5b040101905092915050565b60008082805490501415612d855760009050612da6565b81600183805490500381548110612d9857fe5b906000526020600020015490505b91905056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7445524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545434453413a20696e76616c6964207369676e6174757265202773272076616c7565416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b6545434453413a20696e76616c6964207369676e6174757265202776272076616c756545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a264697066735822122036b4e29998092ccce603509a717a248dc22a68cd57e9675b7d52ce81d123ab3a64736f6c63430006080033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e74726163742900000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000842616c616e636572000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342414c0000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101f05760003560e01c806370a082311161010f578063a217fddf116100a2578063d505accf11610071578063d505accf14610a7c578063d539139314610b15578063d547741f14610b33578063dd62ed3e14610b81576101f0565b8063a217fddf14610950578063a457c2d71461096e578063a9059cbb146109d4578063ca15c87314610a3a576101f0565b806391d14854116100de57806391d148541461081b57806395d89b41146108815780639711715a14610904578063981b24d01461090e576101f0565b806370a08231146106a557806379cc6790146106fd5780637ecebe001461074b5780639010d07c146107a3576101f0565b80633644e5151161018757806342966c681161015657806342966c68146105745780634ee2cd7e146105a257806354fd4d50146106045780637028e2cd14610687576101f0565b80633644e5151461045457806336568abe1461047257806339509351146104c057806340c10f1914610526576101f0565b8063248a9ca3116101c3578063248a9ca3146103825780632f2ff15d146103c457806330adf81f14610412578063313ce56714610430576101f0565b806306fdde03146101f5578063095ea7b31461027857806318160ddd146102de57806323b872dd146102fc575b600080fd5b6101fd610bf9565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561023d578082015181840152602081019050610222565b50505050905090810190601f16801561026a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102c46004803603604081101561028e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610c9b565b604051808215151515815260200191505060405180910390f35b6102e6610cb9565b6040518082815260200191505060405180910390f35b6103686004803603606081101561031257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610cc3565b604051808215151515815260200191505060405180910390f35b6103ae6004803603602081101561039857600080fd5b8101908080359060200190929190505050610d9c565b6040518082815260200191505060405180910390f35b610410600480360360408110156103da57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610dbb565b005b61041a610e44565b6040518082815260200191505060405180910390f35b610438610e68565b604051808260ff1660ff16815260200191505060405180910390f35b61045c610e7f565b6040518082815260200191505060405180910390f35b6104be6004803603604081101561048857600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ea3565b005b61050c600480360360408110156104d657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610f3c565b604051808215151515815260200191505060405180910390f35b6105726004803603604081101561053c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610fef565b005b6105a06004803603602081101561058a57600080fd5b81019080803590602001909291905050506110b5565b005b6105ee600480360360408110156105b857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506110c9565b6040518082815260200191505060405180910390f35b61060c611139565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561064c578082015181840152602081019050610631565b50505050905090810190601f1680156106795780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61068f611172565b6040518082815260200191505060405180910390f35b6106e7600480360360208110156106bb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506111ab565b6040518082815260200191505060405180910390f35b6107496004803603604081101561071357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506111f4565b005b61078d6004803603602081101561076157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611256565b6040518082815260200191505060405180910390f35b6107d9600480360360408110156107b957600080fd5b81019080803590602001909291908035906020019092919050505061126e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6108676004803603604081101561083157600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061129f565b604051808215151515815260200191505060405180910390f35b6108896112d0565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156108c95780820151818401526020810190506108ae565b50505050905090810190601f1680156108f65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61090c611372565b005b61093a6004803603602081101561092457600080fd5b8101908080359060200190929190505050611435565b6040518082815260200191505060405180910390f35b610958611466565b6040518082815260200191505060405180910390f35b6109ba6004803603604081101561098457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061146d565b604051808215151515815260200191505060405180910390f35b610a20600480360360408110156109ea57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061153a565b604051808215151515815260200191505060405180910390f35b610a6660048036036020811015610a5057600080fd5b8101908080359060200190929190505050611558565b6040518082815260200191505060405180910390f35b610b13600480360360e0811015610a9257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190929190803560ff169060200190929190803590602001909291908035906020019092919050505061157e565b005b610b1d611830565b6040518082815260200191505060405180910390f35b610b7f60048036036040811015610b4957600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611869565b005b610be360048036036040811015610b9757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506118f2565b6040518082815260200191505060405180910390f35b606060048054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610c915780601f10610c6657610100808354040283529160200191610c91565b820191906000526020600020905b815481529060010190602001808311610c7457829003601f168201915b5050505050905090565b6000610caf610ca86119a9565b84846119b1565b6001905092915050565b6000600354905090565b6000610cd0848484611ba8565b610d9184610cdc6119a9565b610d8c85604051806060016040528060288152602001612efe60289139600260008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610d426119a9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611bca9092919063ffffffff16565b6119b1565b600190509392505050565b6000806000838152602001908152602001600020600201549050919050565b610de160008084815260200190815260200160002060020154610ddc6119a9565b61129f565b610e36576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180612df1602f913960400191505060405180910390fd5b610e408282611c8a565b5050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b6000600660009054906101000a900460ff16905090565b7f0f7e6db4bd29f5b0743e892c53690ee939ed780f756e0d021b93ed86993b03f481565b610eab6119a9565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f2e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180612fd9602f913960400191505060405180910390fd5b610f388282611d1d565b5050565b6000610fe5610f496119a9565b84610fe08560026000610f5a6119a9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611db090919063ffffffff16565b6119b1565b6001905092915050565b61103560405180807f4d494e5445525f524f4c45000000000000000000000000000000000000000000815250600b01905060405180910390206110306119a9565b61129f565b6110a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4552525f4d494e5445525f524f4c45000000000000000000000000000000000081525060200191505060405180910390fd5b6110b18282611e38565b5050565b6110c66110c06119a9565b82611e57565b50565b600080600061111684600760008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611e76565b915091508161112d57611128856111ab565b61112f565b805b9250505092915050565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b60405180807f534e415053484f545f524f4c4500000000000000000000000000000000000000815250600d019050604051809103902081565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600061123382604051806060016040528060248152602001612f26602491396112248661121f6119a9565b6118f2565b611bca9092919063ffffffff16565b9050611247836112416119a9565b836119b1565b6112518383611e57565b505050565b600b6020528060005260406000206000915090505481565b600061129782600080868152602001908152602001600020600001611fd090919063ffffffff16565b905092915050565b60006112c882600080868152602001908152602001600020600001611fea90919063ffffffff16565b905092915050565b606060058054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156113685780601f1061133d57610100808354040283529160200191611368565b820191906000526020600020905b81548152906001019060200180831161134b57829003601f168201915b5050505050905090565b6113b860405180807f534e415053484f545f524f4c4500000000000000000000000000000000000000815250600d01905060405180910390206113b36119a9565b61129f565b61142a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f4552525f534e415053484f545f524f4c4500000000000000000000000000000081525060200191505060405180910390fd5b61143261201a565b50565b6000806000611445846008611e76565b915091508161145b57611456610cb9565b61145d565b805b92505050919050565b6000801b81565b600061153061147a6119a9565b8461152b85604051806060016040528060258152602001612fb460259139600260006114a46119a9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611bca9092919063ffffffff16565b6119b1565b6001905092915050565b600061154e6115476119a9565b8484611ba8565b6001905092915050565b6000611577600080848152602001908152602001600020600001612072565b9050919050565b834211156115f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4552525f455850495245445f534947000000000000000000000000000000000081525060200191505060405180910390fd5b60006119017f0f7e6db4bd29f5b0743e892c53690ee939ed780f756e0d021b93ed86993b03f47f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98a8a8a600b60008f73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190600101919050558b604051602001808781526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001848152602001838152602001828152602001965050505050505060405160208183030381529060405280519060200120604051602001808461ffff1661ffff1660f01b8152600201838152602001828152602001935050505060405160208183030381529060405280519060200120905061177b81858585612087565b73ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff161461181b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4552525f494e56414c49445f534947000000000000000000000000000000000081525060200191505060405180910390fd5b6118268888886119b1565b5050505050505050565b60405180807f4d494e5445525f524f4c45000000000000000000000000000000000000000000815250600b019050604051809103902081565b61188f6000808481526020019081526020016000206002015461188a6119a9565b61129f565b6118e4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526030815260200180612eac6030913960400191505060405180910390fd5b6118ee8282611d1d565b5050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60006119a1836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61228d565b905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611a37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180612f906024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611abd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180612e426022913960400191505060405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b611bb1836122fd565b611bba826122fd565b611bc5838383612350565b505050565b6000838311158290611c77576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c3c578082015181840152602081019050611c21565b50505050905090810190601f168015611c695780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b611cb18160008085815260200190815260200160002060000161197990919063ffffffff16565b15611d1957611cbe6119a9565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611d448160008085815260200190815260200160002060000161261590919063ffffffff16565b15611dac57611d516119a9565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600080828401905083811015611e2e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b611e41826122fd565b611e49612645565b611e538282612659565b5050565b611e60826122fd565b611e68612645565b611e728282612822565b5050565b60008060008411611eef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f4552433230536e617073686f743a20696420697320300000000000000000000081525060200191505060405180910390fd5b611ef9600a6129e8565b841115611f6e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f4552433230536e617073686f743a206e6f6e6578697374656e7420696400000081525060200191505060405180910390fd5b6000611f8685856000016129f690919063ffffffff16565b90508360000180549050811415611fa7576000808090509250925050611fc9565b6001846001018281548110611fb857fe5b906000526020600020015492509250505b9250929050565b6000611fdf8360000183612aab565b60001c905092915050565b6000612012836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612b2e565b905092915050565b6000612026600a612b51565b6000612032600a6129e8565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb67816040518082815260200191505060405180910390a18091505090565b600061208082600001612b67565b9050919050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08260001c1115612105576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180612e8a6022913960400191505060405180910390fd5b601b8460ff161415801561211d5750601c8460ff1614155b15612173576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180612edc6022913960400191505060405180910390fd5b600060018686868660405160008152602001604052604051808581526020018460ff1660ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa1580156121d2573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612281576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f45434453413a20696e76616c6964207369676e6174757265000000000000000081525060200191505060405180910390fd5b80915050949350505050565b60006122998383612b2e565b6122f25782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506122f7565b600090505b92915050565b61234d600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612348836111ab565b612b78565b50565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156123d6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612f6b6025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561245c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180612dce6023913960400191505060405180910390fd5b612467838383612bf5565b6124d381604051806060016040528060268152602001612e6460269139600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611bca9092919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061256881600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611db090919063ffffffff16565b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b600061263d836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612bfa565b905092915050565b6126576008612652610cb9565b612b78565b565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156126fc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f45524332303a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b61270860008383612bf5565b61271d81600354611db090919063ffffffff16565b60038190555061277581600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611db090919063ffffffff16565b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156128a8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612f4a6021913960400191505060405180910390fd5b6128b482600083612bf5565b61292081604051806060016040528060228152602001612e2060229139600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611bca9092919063ffffffff16565b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061297881600354612ce290919063ffffffff16565b600381905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600081600001549050919050565b60008083805490501415612a0d5760009050612aa5565b60008090506000848054905090505b80821015612a65576000612a308383612d2c565b905084868281548110612a3f57fe5b90600052602060002001541115612a5857809150612a5f565b6001810192505b50612a1c565b600082118015612a8d575083856001840381548110612a8057fe5b9060005260206000200154145b15612a9f576001820392505050612aa5565b81925050505b92915050565b600081836000018054905011612b0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180612dac6022913960400191505060405180910390fd5b826000018281548110612b1b57fe5b9060005260206000200154905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b6001816000016000828254019250508190555050565b600081600001805490509050919050565b6000612b84600a6129e8565b905080612b9384600001612d6e565b1015612bf05782600001819080600181540180825580915050600190039060005260206000200160009091909190915055826001018290806001815401808255809150506001900390600052602060002001600090919091909150555b505050565b505050565b60008083600101600084815260200190815260200160002054905060008114612cd65760006001820390506000600186600001805490500390506000866000018281548110612c4557fe5b9060005260206000200154905080876000018481548110612c6257fe5b9060005260206000200181905550600183018760010160008381526020019081526020016000208190555086600001805480612c9a57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050612cdc565b60009150505b92915050565b6000612d2483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611bca565b905092915050565b60006002808381612d3957fe5b0660028581612d4457fe5b060181612d4d57fe5b0460028381612d5857fe5b0460028581612d6357fe5b040101905092915050565b60008082805490501415612d855760009050612da6565b81600183805490500381548110612d9857fe5b906000526020600020015490505b91905056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7445524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545434453413a20696e76616c6964207369676e6174757265202773272076616c7565416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b6545434453413a20696e76616c6964207369676e6174757265202776272076616c756545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a264697066735822122036b4e29998092ccce603509a717a248dc22a68cd57e9675b7d52ce81d123ab3a64736f6c63430006080033

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

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000842616c616e636572000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342414c0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): Balancer
Arg [1] : symbol (string): BAL

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [3] : 42616c616e636572000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [5] : 42414c0000000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

50560:4203:0:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;50560:4203:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;33316:83:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;33316:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35422:169;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;35422:169:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;34391:100;;;:::i;:::-;;;;;;;;;;;;;;;;;;;36065:321;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;36065:321:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;15899:114;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;15899:114:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;16275:227;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;16275:227:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;50976:109;;;:::i;:::-;;;;;;;;;;;;;;;;;;;34243:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;50823:41;;;:::i;:::-;;;;;;;;;;;;;;;;;;;17484:209;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;17484:209:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;36795:218;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;36795:218:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;54040:166;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;54040:166:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;54214:91;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;54214:91:0;;;;;;;;;;;;;;;;;:::i;:::-;;46418:258;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;46418:258:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;50634:38;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;50634:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50748:66;;;:::i;:::-;;;;;;;;;;;;;;;;;;;34554:119;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;34554:119:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;54313:295;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;54313:295:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;51092:38;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;51092:38:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;15572:138;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;15572:138:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;14533:139;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;14533:139:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;33518:87;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;33518:87:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54616:142;;;:::i;:::-;;46780:225;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;46780:225:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;13701:49;;;:::i;:::-;;;;;;;;;;;;;;;;;;;37516:269;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;37516:269:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;34886:175;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;34886:175:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;14846:127;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;14846:127:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;51960:573;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;51960:573:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;50679:62;;;:::i;:::-;;;;;;;;;;;;;;;;;;;16747:230;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;16747:230:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;35124:151;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;35124:151:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;33316:83;33353:13;33386:5;33379:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33316:83;:::o;35422:169::-;35505:4;35522:39;35531:12;:10;:12::i;:::-;35545:7;35554:6;35522:8;:39::i;:::-;35579:4;35572:11;;35422:169;;;;:::o;34391:100::-;34444:7;34471:12;;34464:19;;34391:100;:::o;36065:321::-;36171:4;36188:36;36198:6;36206:9;36217:6;36188:9;:36::i;:::-;36235:121;36244:6;36252:12;:10;:12::i;:::-;36266:89;36304:6;36266:89;;;;;;;;;;;;;;;;;:11;:19;36278:6;36266:19;;;;;;;;;;;;;;;:33;36286:12;:10;:12::i;:::-;36266:33;;;;;;;;;;;;;;;;:37;;:89;;;;;:::i;:::-;36235:8;:121::i;:::-;36374:4;36367:11;;36065:321;;;;;:::o;15899:114::-;15956:7;15983:6;:12;15990:4;15983:12;;;;;;;;;;;:22;;;15976:29;;15899:114;;;:::o;16275:227::-;16359:45;16367:6;:12;16374:4;16367:12;;;;;;;;;;;:22;;;16391:12;:10;:12::i;:::-;16359:7;:45::i;:::-;16351:105;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16469:25;16480:4;16486:7;16469:10;:25::i;:::-;16275:227;;:::o;50976:109::-;;;:::o;34243:83::-;34284:5;34309:9;;;;;;;;;;;34302:16;;34243:83;:::o;50823:41::-;;;:::o;17484:209::-;17582:12;:10;:12::i;:::-;17571:23;;:7;:23;;;17563:83;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17659:26;17671:4;17677:7;17659:11;:26::i;:::-;17484:209;;:::o;36795:218::-;36883:4;36900:83;36909:12;:10;:12::i;:::-;36923:7;36932:50;36971:10;36932:11;:25;36944:12;:10;:12::i;:::-;36932:25;;;;;;;;;;;;;;;:34;36958:7;36932:34;;;;;;;;;;;;;;;;:38;;:50;;;;:::i;:::-;36900:8;:83::i;:::-;37001:4;36994:11;;36795:218;;;;:::o;54040:166::-;54116:34;50717:24;;;;;;;;;;;;;;;;;;;54137:12;:10;:12::i;:::-;54116:7;:34::i;:::-;54108:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54181:17;54187:2;54191:6;54181:5;:17::i;:::-;54040:166;;:::o;54214:91::-;54270:27;54276:12;:10;:12::i;:::-;54290:6;54270:5;:27::i;:::-;54214:91;:::o;46418:258::-;46497:7;46518:16;46536:13;46553:55;46562:10;46574:24;:33;46599:7;46574:33;;;;;;;;;;;;;;;46553:8;:55::i;:::-;46517:91;;;;46628:11;:40;;46650:18;46660:7;46650:9;:18::i;:::-;46628:40;;;46642:5;46628:40;46621:47;;;;46418:258;;;;:::o;50634:38::-;;;;;;;;;;;;;;;;;;;:::o;50748:66::-;50788:26;;;;;;;;;;;;;;;;;;;50748:66;:::o;34554:119::-;34620:7;34647:9;:18;34657:7;34647:18;;;;;;;;;;;;;;;;34640:25;;34554:119;;;:::o;54313:295::-;54390:26;54419:84;54456:6;54419:84;;;;;;;;;;;;;;;;;:32;54429:7;54438:12;:10;:12::i;:::-;54419:9;:32::i;:::-;:36;;:84;;;;;:::i;:::-;54390:113;;54516:51;54525:7;54534:12;:10;:12::i;:::-;54548:18;54516:8;:51::i;:::-;54578:22;54584:7;54593:6;54578:5;:22::i;:::-;54313:295;;;:::o;51092:38::-;;;;;;;;;;;;;;;;;:::o;15572:138::-;15645:7;15672:30;15696:5;15672:6;:12;15679:4;15672:12;;;;;;;;;;;:20;;:23;;:30;;;;:::i;:::-;15665:37;;15572:138;;;;:::o;14533:139::-;14602:4;14626:38;14656:7;14626:6;:12;14633:4;14626:12;;;;;;;;;;;:20;;:29;;:38;;;;:::i;:::-;14619:45;;14533:139;;;;:::o;33518:87::-;33557:13;33590:7;33583:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33518:87;:::o;54616:142::-;54670:36;50788:26;;;;;;;;;;;;;;;;;;;54693:12;:10;:12::i;:::-;54670:7;:36::i;:::-;54662:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54739:11;:9;:11::i;:::-;;54616:142::o;46780:225::-;46843:7;46864:16;46882:13;46899:43;46908:10;46920:21;46899:8;:43::i;:::-;46863:79;;;;46962:11;:35;;46984:13;:11;:13::i;:::-;46962:35;;;46976:5;46962:35;46955:42;;;;46780:225;;;:::o;13701:49::-;13746:4;13701:49;;;:::o;37516:269::-;37609:4;37626:129;37635:12;:10;:12::i;:::-;37649:7;37658:96;37697:15;37658:96;;;;;;;;;;;;;;;;;:11;:25;37670:12;:10;:12::i;:::-;37658:25;;;;;;;;;;;;;;;:34;37684:7;37658:34;;;;;;;;;;;;;;;;:38;;:96;;;;;:::i;:::-;37626:8;:129::i;:::-;37773:4;37766:11;;37516:269;;;;:::o;34886:175::-;34972:4;34989:42;34999:12;:10;:12::i;:::-;35013:9;35024:6;34989:9;:42::i;:::-;35049:4;35042:11;;34886:175;;;;:::o;14846:127::-;14909:7;14936:29;:6;:12;14943:4;14936:12;;;;;;;;;;;:20;;:27;:29::i;:::-;14929:36;;14846:127;;;:::o;51960:573::-;52113:8;52094:15;:27;;52086:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52152:14;52235:6;52261:16;52317:15;52334:5;52341:7;52350:5;52357:6;:13;52364:5;52357:13;;;;;;;;;;;;;;;;:15;;;;;;;;;;;;52374:8;52306:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;52306:77:0;;;52296:88;;;;;;52193:206;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;52193:206:0;;;52169:241;;;;;;52152:258;;52438:25;52447:6;52455:1;52458;52461;52438:8;:25::i;:::-;52429:34;;:5;:34;;;52421:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52494:31;52503:5;52510:7;52519:5;52494:8;:31::i;:::-;51960:573;;;;;;;;:::o;50679:62::-;50717:24;;;;;;;;;;;;;;;;;;;50679:62;:::o;16747:230::-;16832:45;16840:6;:12;16847:4;16840:12;;;;;;;;;;;:22;;;16864:12;:10;:12::i;:::-;16832:7;:45::i;:::-;16824:106;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16943:26;16955:4;16961:7;16943:11;:26::i;:::-;16747:230;;:::o;35124:151::-;35213:7;35240:11;:18;35252:5;35240:18;;;;;;;;;;;;;;;:27;35259:7;35240:27;;;;;;;;;;;;;;;;35233:34;;35124:151;;;;:::o;5076:143::-;5146:4;5170:41;5175:3;:10;;5203:5;5195:14;;5187:23;;5170:4;:41::i;:::-;5163:48;;5076:143;;;;:::o;11638:106::-;11691:15;11726:10;11719:17;;11638:106;:::o;40663:346::-;40782:1;40765:19;;:5;:19;;;;40757:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40863:1;40844:21;;:7;:21;;;;40836:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40947:6;40917:11;:18;40929:5;40917:18;;;;;;;;;;;;;;;:27;40936:7;40917:27;;;;;;;;;;;;;;;:36;;;;40985:7;40969:32;;40978:5;40969:32;;;40994:6;40969:32;;;;;;;;;;;;;;;;;;40663:346;;;:::o;47313:215::-;47410:28;47433:4;47410:22;:28::i;:::-;47449:26;47472:2;47449:22;:26::i;:::-;47488:32;47504:4;47510:2;47514:5;47488:15;:32::i;:::-;47313:215;;;:::o;20807:192::-;20893:7;20926:1;20921;:6;;20929:12;20913:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;20913:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20953:9;20969:1;20965;:5;20953:17;;20990:1;20983:8;;;20807:192;;;;;:::o;18604:188::-;18678:33;18703:7;18678:6;:12;18685:4;18678:12;;;;;;;;;;;:20;;:24;;:33;;;;:::i;:::-;18674:111;;;18760:12;:10;:12::i;:::-;18733:40;;18751:7;18733:40;;18745:4;18733:40;;;;;;;;;;18674:111;18604:188;;:::o;18800:192::-;18875:36;18903:7;18875:6;:12;18882:4;18875:12;;;;;;;;;;;:20;;:27;;:36;;;;:::i;:::-;18871:114;;;18960:12;:10;:12::i;:::-;18933:40;;18951:7;18933:40;;18945:4;18933:40;;;;;;;;;;18871:114;18800:192;;:::o;19920:181::-;19978:7;19998:9;20014:1;20010;:5;19998:17;;20039:1;20034;:6;;20026:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20092:1;20085:8;;;19920:181;;;;:::o;47536:202::-;47620:31;47643:7;47620:22;:31::i;:::-;47662:28;:26;:28::i;:::-;47703:27;47715:7;47724:5;47703:11;:27::i;:::-;47536:202;;:::o;47746:::-;47830:31;47853:7;47830:22;:31::i;:::-;47872:28;:26;:28::i;:::-;47913:27;47925:7;47934:5;47913:11;:27::i;:::-;47746:202;;:::o;47956:1692::-;48054:4;48060:7;48106:1;48093:10;:14;48085:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48221:28;:18;:26;:28::i;:::-;48207:10;:42;;48199:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49422:13;49438:40;49467:10;49438:9;:13;;:28;;:40;;;;:::i;:::-;49422:56;;49504:9;:13;;:20;;;;49495:5;:29;49491:150;;;49549:5;49556:1;49541:17;;;;;;;;;;49491:150;49599:4;49605:9;:16;;49622:5;49605:23;;;;;;;;;;;;;;;;49591:38;;;;;47956:1692;;;;;;:::o;6335:149::-;6409:7;6452:22;6456:3;:10;;6468:5;6452:3;:22::i;:::-;6444:31;;6429:47;;6335:149;;;;:::o;5630:158::-;5710:4;5734:46;5744:3;:10;;5772:5;5764:14;;5756:23;;5734:9;:46::i;:::-;5727:53;;5630:158;;;;:::o;46078:228::-;46125:7;46145:30;:18;:28;:30::i;:::-;46188:17;46208:28;:18;:26;:28::i;:::-;46188:48;;46252:19;46261:9;46252:19;;;;;;;;;;;;;;;;;;46289:9;46282:16;;;46078:228;:::o;5874:117::-;5937:7;5964:19;5972:3;:10;;5964:7;:19::i;:::-;5957:26;;5874:117;;;:::o;52541:1491::-;52626:7;53546:66;53541:1;53533:10;;:79;53529:156;;;53629:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53529:156;53706:2;53701:1;:7;;;;:18;;;;;53717:2;53712:1;:7;;;;53701:18;53697:95;;;53736:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53697:95;53889:14;53906:24;53916:4;53922:1;53925;53928;53906:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;53906:24:0;;;;;;;;53889:41;;53967:1;53949:20;;:6;:20;;;;53941:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54018:6;54011:13;;;52541:1491;;;;;;:::o;1730:414::-;1793:4;1815:21;1825:3;1830:5;1815:9;:21::i;:::-;1810:327;;1853:3;:11;;1870:5;1853:23;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;1853:23:0;;;;;;;;;;;;;;;;;;;2036:3;:11;;:18;;;;2014:3;:12;;:19;2027:5;2014:19;;;;;;;;;;;:40;;;;2076:4;2069:11;;;;1810:327;2120:5;2113:12;;1730:414;;;;;:::o;49656:146::-;49724:70;49740:24;:33;49765:7;49740:33;;;;;;;;;;;;;;;49775:18;49785:7;49775:9;:18::i;:::-;49724:15;:70::i;:::-;49656:146;:::o;38275:539::-;38399:1;38381:20;;:6;:20;;;;38373:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38483:1;38462:23;;:9;:23;;;;38454:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38538:47;38559:6;38567:9;38578:6;38538:20;:47::i;:::-;38618:71;38640:6;38618:71;;;;;;;;;;;;;;;;;:9;:17;38628:6;38618:17;;;;;;;;;;;;;;;;:21;;:71;;;;;:::i;:::-;38598:9;:17;38608:6;38598:17;;;;;;;;;;;;;;;:91;;;;38723:32;38748:6;38723:9;:20;38733:9;38723:20;;;;;;;;;;;;;;;;:24;;:32;;;;:::i;:::-;38700:9;:20;38710:9;38700:20;;;;;;;;;;;;;;;:55;;;;38788:9;38771:35;;38780:6;38771:35;;;38799:6;38771:35;;;;;;;;;;;;;;;;;;38275:539;;;:::o;5395:149::-;5468:4;5492:44;5500:3;:10;;5528:5;5520:14;;5512:23;;5492:7;:44::i;:::-;5485:51;;5395:149;;;;:::o;49810:118::-;49867:53;49883:21;49906:13;:11;:13::i;:::-;49867:15;:53::i;:::-;49810:118::o;39095:378::-;39198:1;39179:21;;:7;:21;;;;39171:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39249:49;39278:1;39282:7;39291:6;39249:20;:49::i;:::-;39326:24;39343:6;39326:12;;:16;;:24;;;;:::i;:::-;39311:12;:39;;;;39382:30;39405:6;39382:9;:18;39392:7;39382:18;;;;;;;;;;;;;;;;:22;;:30;;;;:::i;:::-;39361:9;:18;39371:7;39361:18;;;;;;;;;;;;;;;:51;;;;39449:7;39428:37;;39445:1;39428:37;;;39458:6;39428:37;;;;;;;;;;;;;;;;;;39095:378;;:::o;39805:418::-;39908:1;39889:21;;:7;:21;;;;39881:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39961:49;39982:7;39999:1;40003:6;39961:20;:49::i;:::-;40044:68;40067:6;40044:68;;;;;;;;;;;;;;;;;:9;:18;40054:7;40044:18;;;;;;;;;;;;;;;;:22;;:68;;;;;:::i;:::-;40023:9;:18;40033:7;40023:18;;;;;;;;;;;;;;;:89;;;;40138:24;40155:6;40138:12;;:16;;:24;;;;:::i;:::-;40123:12;:39;;;;40204:1;40178:37;;40187:7;40178:37;;;40208:6;40178:37;;;;;;;;;;;;;;;;;;39805:418;;:::o;27893:114::-;27958:7;27985;:14;;;27978:21;;27893:114;;;:::o;25847:918::-;25936:7;25976:1;25960:5;:12;;;;:17;25956:58;;;26001:1;25994:8;;;;25956:58;26026:11;26040:1;26026:15;;26052:12;26067:5;:12;;;;26052:27;;26092:424;26105:4;26099:3;:10;26092:424;;;26126:11;26140:23;26153:3;26158:4;26140:12;:23::i;:::-;26126:37;;26397:7;26384:5;26390:3;26384:10;;;;;;;;;;;;;;;;:20;26380:125;;;26432:3;26425:10;;26380:125;;;26488:1;26482:3;:7;26476:13;;26380:125;26092:424;;;;26642:1;26636:3;:7;:36;;;;;26665:7;26647:5;26659:1;26653:3;:7;26647:14;;;;;;;;;;;;;;;;:25;26636:36;26632:126;;;26702:1;26696:3;:7;26689:14;;;;;;26632:126;26743:3;26736:10;;;;25847:918;;;;;:::o;4618:204::-;4685:7;4734:5;4713:3;:11;;:18;;;;:26;4705:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4796:3;:11;;4808:5;4796:18;;;;;;;;;;;;;;;;4789:25;;4618:204;;;;:::o;3950:129::-;4023:4;4070:1;4047:3;:12;;:19;4060:5;4047:19;;;;;;;;;;;;:24;;4040:31;;3950:129;;;;:::o;28015:181::-;28187:1;28169:7;:14;;;:19;;;;;;;;;;;28015:181;:::o;4165:109::-;4221:7;4248:3;:11;;:18;;;;4241:25;;4165:109;;;:::o;49936:315::-;50031:17;50051:28;:18;:26;:28::i;:::-;50031:48;;50127:9;50094:30;50110:9;:13;;50094:15;:30::i;:::-;:42;50090:154;;;50153:9;:13;;50172:9;50153:29;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;50153:29:0;;;;;;;;;;;;;;;;;;;50197:9;:16;;50219:12;50197:35;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;50197:35:0;;;;;;;;;;;;;;;;;;;50090:154;49936:315;;;:::o;42034:92::-;;;;:::o;2320:1544::-;2386:4;2504:18;2525:3;:12;;:19;2538:5;2525:19;;;;;;;;;;;;2504:40;;2575:1;2561:10;:15;2557:1300;;2923:21;2960:1;2947:10;:14;2923:38;;2976:17;3017:1;2996:3;:11;;:18;;;;:22;2976:42;;3263:17;3283:3;:11;;3295:9;3283:22;;;;;;;;;;;;;;;;3263:42;;3429:9;3400:3;:11;;3412:13;3400:26;;;;;;;;;;;;;;;:38;;;;3548:1;3532:13;:17;3506:3;:12;;:23;3519:9;3506:23;;;;;;;;;;;:43;;;;3658:3;:11;;:17;;;;;;;;;;;;;;;;;;;;;;;;3753:3;:12;;:19;3766:5;3753:19;;;;;;;;;;;3746:26;;;3796:4;3789:11;;;;;;;;2557:1300;3840:5;3833:12;;;2320:1544;;;;;:::o;20376:136::-;20434:7;20461:43;20465:1;20468;20461:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;20454:50;;20376:136;;;;:::o;25048:193::-;25110:7;25231:1;25226;25222;:5;;;;;;25218:1;25214;:5;;;;;;:13;25213:19;;;;;;25207:1;25203;:5;;;;;;25197:1;25193;:5;;;;;;25192:17;:41;25185:48;;25048:193;;;;:::o;50259:212::-;50329:7;50367:1;50353:3;:10;;;;:15;50349:115;;;50392:1;50385:8;;;;50349:115;50433:3;50450:1;50437:3;:10;;;;:14;50433:19;;;;;;;;;;;;;;;;50426:26;;50259:212;;;;:::o

Swarm Source

ipfs://36b4e29998092ccce603509a717a248dc22a68cd57e9675b7d52ce81d123ab3a

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

Balancer is a n-dimensional automated market-maker that allows anyone to create or add liquidity to customizable pools and earn trading fees. Instead of the traditional constant product AMM model, Balancer’s formula is a generalization that allows any number of tokens in any weights or trading fees.

Validator Index Block Amount
View All Withdrawals

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

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