false
true
0

Contract Address Details

0x115f3Fa979a936167f9D208a7B7c4d85081e84BD

Token
2PHUX Governance Token (2PHUX)
Creator
0x00755d–ad4792 at 0xb9544b–fde49f
Balance
0 PLS ( )
Tokens
Fetching tokens...
Transactions
5,157 Transactions
Transfers
0 Transfers
Gas Used
0
Last Balance Update
26288154
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
AuraToken




Optimization enabled
true
Compiler version
v0.8.11+commit.d7f03943




Optimization runs
800
EVM Version
default




Verified at
2024-05-29T14:14:38.192864Z

Constructor Arguments

0x0000000000000000000000003d4abcd29ea9a6117408536a0bbd0235007e28d3000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000016325048555820476f7665726e616e636520546f6b656e0000000000000000000000000000000000000000000000000000000000000000000000000000000000053250485558000000000000000000000000000000000000000000000000000000

Arg [0] (address) : 0x3d4abcd29ea9a6117408536a0bbd0235007e28d3
Arg [1] (string) : 2PHUX Governance Token
Arg [2] (string) : 2PHUX

              

contracts/core/Aura.sol

// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

import { ERC20 } from "@openzeppelin/contracts-0.8/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts-0.8/access/Ownable.sol";
import { AuraMath } from "../utils/AuraMath.sol";
import { IVoterProxy } from "../interfaces/IVoterProxy.sol";
import { IBooster } from "../interfaces/IBooster.sol";

/**
 * @title   AuraToken
 * @notice  Basically an ERC20 with minting functionality operated by the "operator" of the VoterProxy (Booster).
 * @dev     The minting schedule is based on the amount of CRV earned through staking and is
 *          distributed along a supply curve (cliffs etc). Fork of ConvexToken.
 */
contract AuraToken is ERC20, Ownable {
    using AuraMath for uint256;

    address public operator;
    address public immutable vecrvProxy;

    uint256 public constant EMISSIONS_MAX_SUPPLY = 1e27; // 10 billion
    uint256 public constant INIT_MINT_AMOUNT = 7.5e27; // 7.5 billion
    uint256 public constant totalCliffs = 500;
    uint256 public constant passedClifsForUpdatedInitAmount = 250;
    uint256 public immutable reductionPerCliff;

    address public minter;
    uint256 private minterMinted = type(uint256).max;

    /* ========== EVENTS ========== */

    event Initialised();
    event OperatorChanged(address indexed previousOperator, address indexed newOperator);

    /**
     * @param _proxy        CVX VoterProxy
     * @param _nameArg      Token name
     * @param _symbolArg    Token symbol
     */
    constructor(
        address _proxy,
        string memory _nameArg,
        string memory _symbolArg
    ) ERC20(_nameArg, _symbolArg) {
        operator = msg.sender;
        vecrvProxy = _proxy;
        reductionPerCliff = EMISSIONS_MAX_SUPPLY.div(totalCliffs);
    }

    /**
     * @dev Initialise and mints initial supply of tokens.
     * @param _to        Target address to mint.
     * @param _minter    The minter address.
     */
    function init(address _to, address _minter) external {
        require(msg.sender == operator, "Only operator");
        require(totalSupply() == 0, "Only once");
        require(_minter != address(0), "Invalid minter");

        _mint(_to, INIT_MINT_AMOUNT);
        updateOperator();
        minter = _minter;
        minterMinted = 0;

        emit Initialised();
    }

    /**
     * @dev This can be called if the operator of the voterProxy somehow changes.
     */
    function updateOperator() public {
        require(totalSupply() != 0, "!init");

        address newOperator = IVoterProxy(vecrvProxy).operator();
        require(newOperator != operator && newOperator != address(0), "!operator");

        emit OperatorChanged(operator, newOperator);
        operator = newOperator;
    }

    /**
     * @dev This can be called if the minter of the voterProxy somehow changes.
     */
    function setMinter(address _minter) public onlyOwner {
        minter = _minter;
    }

    /**
     * @dev Mints AURA to a given user based on the BAL supply schedule.
     */
    function mint(address _to, uint256 _amount) external {
        require(totalSupply() != 0, "Not initialised");

        if (msg.sender != operator) {
            // dont error just return. if a shutdown happens, rewards on old system
            // can still be claimed, just wont mint cvx
            return;
        }

        IBooster booster = IBooster(operator);
        address treasury = booster.treasury();
        uint256 platformFee = booster.platformFee();
        uint256 FEE_DENOMINATOR = booster.FEE_DENOMINATOR();

        // e.g. emissionsMinted = 6e25 - 5e25 - 0 = 1e25;
        uint256 emissionsMinted = totalSupply() - INIT_MINT_AMOUNT - minterMinted;
        // e.g. reductionPerCliff = 5e25 / 500 = 1e23
        // e.g. cliff = 1e25 / 1e23 = 100
        uint256 cliff = emissionsMinted.div(reductionPerCliff).add(passedClifsForUpdatedInitAmount);

        // e.g. 100 < 500
        if (cliff < totalCliffs) {
            // e.g. (new) reduction = (500 - 100) * 2.5 + 700 = 1700;
            // e.g. (new) reduction = (500 - 250) * 2.5 + 700 = 1325;
            // e.g. (new) reduction = (500 - 400) * 2.5 + 700 = 950;
            uint256 reduction = totalCliffs.sub(cliff).mul(5).div(2).add(700);
            // e.g. (new) amount = 1e19 * 1700 / 500 =  34e18;
            // e.g. (new) amount = 1e19 * 1325 / 500 =  26.5e18;
            // e.g. (new) amount = 1e19 * 950 / 500  =  19e17;
            uint256 amount = _amount.mul(reduction).div(totalCliffs);
            // e.g. amtTillMax = 5e25 - 1e25 = 4e25
            uint256 amtTillMax = EMISSIONS_MAX_SUPPLY.sub(emissionsMinted);
            if (amount > amtTillMax) {
                amount = amtTillMax;
            }

            if (treasury != address(0) && treasury != address(this) && platformFee > 0) {
                //only subtract after address condition check
                uint256 _platform = amount.mul(platformFee).div(FEE_DENOMINATOR);
                amount = amount.sub(_platform);
                _mint(treasury, _platform);
            }

            _mint(_to, amount);
        }
    }

    /**
     * @dev Allows minter to mint to a specific address
     */
    function minterMint(address _to, uint256 _amount) external {
        require(msg.sender == minter, "Only minter");
        minterMinted += _amount;
        _mint(_to, _amount);
    }
}
        

@openzeppelin/contracts-0.8/access/Ownable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}
          

@openzeppelin/contracts-0.8/token/ERC20/ERC20.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead 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, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override 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 this function is
     * overridden;
     *
     * 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 virtual override returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual 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);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        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] + 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) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This 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);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(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:
     *
     * - `account` 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 += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(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);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This 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 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 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 {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}
          

@openzeppelin/contracts-0.8/token/ERC20/IERC20.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.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);
}
          

@openzeppelin/contracts-0.8/token/ERC20/extensions/IERC20Metadata.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}
          

@openzeppelin/contracts-0.8/utils/Context.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.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 meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}
          

contracts/interfaces/IBooster.sol

// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

interface IBooster {
    struct FeeDistro {
        address distro;
        address rewards;
        bool active;
    }

    function feeTokens(address _token) external returns (FeeDistro memory);

    function earmarkFees(address _feeToken) external returns (bool);

    struct PoolInfo {
        address lptoken;
        address token;
        address gauge;
        address crvRewards;
        address stash;
        bool shutdown;
    }

    function earmarkRewards(uint256 _pid) external returns (bool);

    function poolLength() external view returns (uint256);

    function lockRewards() external view returns (address);

    function poolInfo(uint256 _pid) external view returns (PoolInfo memory poolInfo);

    function distributeL2Fees(uint256 _amount) external;

    function lockIncentive() external view returns (uint256);

    function stakerIncentive() external view returns (uint256);

    function earmarkIncentive() external view returns (uint256);

    function platformFee() external view returns (uint256);

    function treasury() external view returns (address);

    function FEE_DENOMINATOR() external view returns (uint256);

    function voteGaugeWeight(address[] calldata _gauge, uint256[] calldata _weight) external returns (bool);
}
          

contracts/interfaces/IVoterProxy.sol

// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

interface IVoterProxy {
    function operator() external view returns (address);
}
          

contracts/utils/AuraMath.sol

// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

/// @notice A library for performing overflow-/underflow-safe math,
/// updated with awesomeness from of DappHub (https://github.com/dapphub/ds-math).
library AuraMath {
    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
        c = a + b;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256 c) {
        c = a - b;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
        c = a * b;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return 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);
    }

    function to224(uint256 a) internal pure returns (uint224 c) {
        require(a <= type(uint224).max, "AuraMath: uint224 Overflow");
        c = uint224(a);
    }

    function to128(uint256 a) internal pure returns (uint128 c) {
        require(a <= type(uint128).max, "AuraMath: uint128 Overflow");
        c = uint128(a);
    }

    function to112(uint256 a) internal pure returns (uint112 c) {
        require(a <= type(uint112).max, "AuraMath: uint112 Overflow");
        c = uint112(a);
    }

    function to96(uint256 a) internal pure returns (uint96 c) {
        require(a <= type(uint96).max, "AuraMath: uint96 Overflow");
        c = uint96(a);
    }

    function to32(uint256 a) internal pure returns (uint32 c) {
        require(a <= type(uint32).max, "AuraMath: uint32 Overflow");
        c = uint32(a);
    }
}

/// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint32.
library AuraMath32 {
    function sub(uint32 a, uint32 b) internal pure returns (uint32 c) {
        c = a - b;
    }
}

/// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint112.
library AuraMath112 {
    function add(uint112 a, uint112 b) internal pure returns (uint112 c) {
        c = a + b;
    }

    function sub(uint112 a, uint112 b) internal pure returns (uint112 c) {
        c = a - b;
    }
}

/// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint224.
library AuraMath224 {
    function add(uint224 a, uint224 b) internal pure returns (uint224 c) {
        c = a + b;
    }
}
          

Compiler Settings

{"outputSelection":{"*":{"*":["*"],"":["*"]}},"optimizer":{"runs":800,"enabled":true},"metadata":{"bytecodeHash":"none"},"libraries":{}}
              

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_proxy","internalType":"address"},{"type":"string","name":"_nameArg","internalType":"string"},{"type":"string","name":"_symbolArg","internalType":"string"}]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Initialised","inputs":[],"anonymous":false},{"type":"event","name":"OperatorChanged","inputs":[{"type":"address","name":"previousOperator","internalType":"address","indexed":true},{"type":"address","name":"newOperator","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"EMISSIONS_MAX_SUPPLY","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"INIT_MINT_AMOUNT","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"decreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"subtractedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"init","inputs":[{"type":"address","name":"_to","internalType":"address"},{"type":"address","name":"_minter","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"mint","inputs":[{"type":"address","name":"_to","internalType":"address"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"minter","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"minterMint","inputs":[{"type":"address","name":"_to","internalType":"address"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"operator","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"passedClifsForUpdatedInitAmount","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"reductionPerCliff","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMinter","inputs":[{"type":"address","name":"_minter","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalCliffs","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateOperator","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"vecrvProxy","inputs":[]}]
              

Contract Creation Code

Verify & Publish
0x60c06040526000196008553480156200001757600080fd5b5060405162001968380380620019688339810160408190526200003a91620002b8565b8151829082906200005390600390602085019062000145565b5080516200006990600490602084019062000145565b5050506200008662000080620000da60201b60201c565b620000de565b60068054336001600160a01b03199091161790556001600160a01b038316608052620000cd6b033b2e3c9fd0803ce80000006101f462000130602090811b62000ed717901c565b60a05250620003a2915050565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006200013e828462000342565b9392505050565b828054620001539062000365565b90600052602060002090601f016020900481019282620001775760008555620001c2565b82601f106200019257805160ff1916838001178555620001c2565b82800160010185558215620001c2579182015b82811115620001c2578251825591602001919060010190620001a5565b50620001d0929150620001d4565b5090565b5b80821115620001d05760008155600101620001d5565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200021357600080fd5b81516001600160401b0380821115620002305762000230620001eb565b604051601f8301601f19908116603f011681019082821181831017156200025b576200025b620001eb565b816040528381526020925086838588010111156200027857600080fd5b600091505b838210156200029c57858201830151818301840152908201906200027d565b83821115620002ae5760008385830101525b9695505050505050565b600080600060608486031215620002ce57600080fd5b83516001600160a01b0381168114620002e657600080fd5b60208501519093506001600160401b03808211156200030457600080fd5b620003128783880162000201565b935060408601519150808211156200032957600080fd5b50620003388682870162000201565b9150509250925092565b6000826200036057634e487b7160e01b600052601260045260246000fd5b500490565b600181811c908216806200037a57607f821691505b602082108114156200039c57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a051611592620003d66000396000818161034501526108270152600081816103f90152610abd01526115926000f3fe608060405234801561001057600080fd5b50600436106101b95760003560e01c8063715018a6116100f9578063d5934b7611610097578063f09a401611610071578063f09a4016146103bb578063f2fde38b146103ce578063fca3b5aa146103e1578063fca975a1146103f457600080fd5b8063d5934b7614610367578063dd62ed3e1461036f578063e6c6700e146103a857600080fd5b806395d89b41116100d357806395d89b4114610312578063a457c2d71461031a578063a9059cbb1461032d578063aa74e6221461034057600080fd5b8063715018a6146102f157806381bd1920146102f95780638da5cb5b1461030157600080fd5b806323b872dd1161016657806340c10f191161014057806340c10f191461028f578063570ca735146102a25780636cd16339146102b557806370a08231146102c857600080fd5b806323b872dd1461025a578063313ce5671461026d578063395093511461027c57600080fd5b806318160ddd1161019757806318160ddd1461022a5780631f96e76f1461023c57806321f314ca1461024557600080fd5b806306fdde03146101be57806307546172146101dc578063095ea7b314610207575b600080fd5b6101c661041b565b6040516101d39190611361565b60405180910390f35b6007546101ef906001600160a01b031681565b6040516001600160a01b0390911681526020016101d3565b61021a6102153660046113cb565b6104ad565b60405190151581526020016101d3565b6002545b6040519081526020016101d3565b61022e6101f481565b6102586102533660046113cb565b6104c3565b005b61021a6102683660046113f7565b610548565b604051601281526020016101d3565b61021a61028a3660046113cb565b610607565b61025861029d3660046113cb565b610643565b6006546101ef906001600160a01b031681565b61022e6b183bdac6ae9bc1c8cc00000081565b61022e6102d6366004611438565b6001600160a01b031660009081526020819052604090205490565b610258610937565b61022e60fa81565b6005546001600160a01b03166101ef565b6101c661099d565b61021a6103283660046113cb565b6109ac565b61021a61033b3660046113cb565b610a5d565b61022e7f000000000000000000000000000000000000000000000000000000000000000081565b610258610a6a565b61022e61037d366004611455565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61022e6b033b2e3c9fd0803ce800000081565b6102586103c9366004611455565b610c0e565b6102586103dc366004611438565b610d79565b6102586103ef366004611438565b610e5b565b6101ef7f000000000000000000000000000000000000000000000000000000000000000081565b60606003805461042a9061148e565b80601f01602080910402602001604051908101604052809291908181526020018280546104569061148e565b80156104a35780601f10610478576101008083540402835291602001916104a3565b820191906000526020600020905b81548152906001019060200180831161048657829003601f168201915b5050505050905090565b60006104ba338484610eea565b50600192915050565b6007546001600160a01b031633146105225760405162461bcd60e51b815260206004820152600b60248201527f4f6e6c79206d696e74657200000000000000000000000000000000000000000060448201526064015b60405180910390fd5b806008600082825461053491906114df565b909155506105449050828261100e565b5050565b60006105558484846110ed565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156105ef5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e63650000000000000000000000000000000000000000000000006064820152608401610519565b6105fc8533858403610eea565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916104ba91859061063e9086906114df565b610eea565b6002546106925760405162461bcd60e51b815260206004820152600f60248201527f4e6f7420696e697469616c6973656400000000000000000000000000000000006044820152606401610519565b6006546001600160a01b031633146106a8575050565b600654604080516361d027b360e01b815290516001600160a01b039092169160009183916361d027b3916004808201926020929091908290030181865afa1580156106f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071b91906114f7565b90506000826001600160a01b03166326232a2e6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561075d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107819190611514565b90506000836001600160a01b031663d73792a96040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e79190611514565b905060006008546b183bdac6ae9bc1c8cc00000061080460025490565b61080e919061152d565b610818919061152d565b9050600061085160fa61084b847f0000000000000000000000000000000000000000000000000000000000000000610ed7565b906112eb565b90506101f481101561092d5760006108876102bc61084b6002610881600561087b6101f4896112f7565b90611303565b90610ed7565b9050600061089b6101f46108818b85611303565b905060006108b56b033b2e3c9fd0803ce8000000866112f7565b9050808211156108c3578091505b6001600160a01b038816158015906108e457506001600160a01b0388163014155b80156108f05750600087115b1561091f57600061090587610881858b611303565b905061091183826112f7565b925061091d898261100e565b505b6109298b8361100e565b5050505b5050505050505050565b6005546001600160a01b031633146109915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610519565b61099b600061130f565b565b60606004805461042a9061148e565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610a465760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610519565b610a533385858403610eea565b5060019392505050565b60006104ba3384846110ed565b600254610ab95760405162461bcd60e51b815260206004820152600560248201527f21696e69740000000000000000000000000000000000000000000000000000006044820152606401610519565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3d91906114f7565b6006549091506001600160a01b03808316911614801590610b6657506001600160a01b03811615155b610bb25760405162461bcd60e51b815260206004820152600960248201527f216f70657261746f7200000000000000000000000000000000000000000000006044820152606401610519565b6006546040516001600160a01b038084169216907fd58299b712891143e76310d5e664c4203c940a67db37cf856bdaa3c5c76a802c90600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b03163314610c685760405162461bcd60e51b815260206004820152600d60248201527f4f6e6c79206f70657261746f72000000000000000000000000000000000000006044820152606401610519565b60025415610cb85760405162461bcd60e51b815260206004820152600960248201527f4f6e6c79206f6e636500000000000000000000000000000000000000000000006044820152606401610519565b6001600160a01b038116610d0e5760405162461bcd60e51b815260206004820152600e60248201527f496e76616c6964206d696e7465720000000000000000000000000000000000006044820152606401610519565b610d24826b183bdac6ae9bc1c8cc00000061100e565b610d2c610a6a565b600780546001600160a01b0319166001600160a01b038316179055600060088190556040517f09dfb9099a2610601d58030170fde7ae9db3e1bcb751c3d6800216cbe3b499b59190a15050565b6005546001600160a01b03163314610dd35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610519565b6001600160a01b038116610e4f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610519565b610e588161130f565b50565b6005546001600160a01b03163314610eb55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610519565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6000610ee38284611544565b9392505050565b6001600160a01b038316610f4c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610519565b6001600160a01b038216610fad5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610519565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0382166110645760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610519565b806002600082825461107691906114df565b90915550506001600160a01b038216600090815260208190526040812080548392906110a39084906114df565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0383166111695760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610519565b6001600160a01b0382166111cb5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610519565b6001600160a01b0383166000908152602081905260409020548181101561125a5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610519565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906112919084906114df565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516112dd91815260200190565b60405180910390a350505050565b6000610ee382846114df565b6000610ee3828461152d565b6000610ee38284611566565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060208083528351808285015260005b8181101561138e57858101830151858201604001528201611372565b818111156113a0576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b0381168114610e5857600080fd5b600080604083850312156113de57600080fd5b82356113e9816113b6565b946020939093013593505050565b60008060006060848603121561140c57600080fd5b8335611417816113b6565b92506020840135611427816113b6565b929592945050506040919091013590565b60006020828403121561144a57600080fd5b8135610ee3816113b6565b6000806040838503121561146857600080fd5b8235611473816113b6565b91506020830135611483816113b6565b809150509250929050565b600181811c908216806114a257607f821691505b602082108114156114c357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156114f2576114f26114c9565b500190565b60006020828403121561150957600080fd5b8151610ee3816113b6565b60006020828403121561152657600080fd5b5051919050565b60008282101561153f5761153f6114c9565b500390565b60008261156157634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611580576115806114c9565b50029056fea164736f6c634300080b000a0000000000000000000000003d4abcd29ea9a6117408536a0bbd0235007e28d3000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000016325048555820476f7665726e616e636520546f6b656e0000000000000000000000000000000000000000000000000000000000000000000000000000000000053250485558000000000000000000000000000000000000000000000000000000

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106101b95760003560e01c8063715018a6116100f9578063d5934b7611610097578063f09a401611610071578063f09a4016146103bb578063f2fde38b146103ce578063fca3b5aa146103e1578063fca975a1146103f457600080fd5b8063d5934b7614610367578063dd62ed3e1461036f578063e6c6700e146103a857600080fd5b806395d89b41116100d357806395d89b4114610312578063a457c2d71461031a578063a9059cbb1461032d578063aa74e6221461034057600080fd5b8063715018a6146102f157806381bd1920146102f95780638da5cb5b1461030157600080fd5b806323b872dd1161016657806340c10f191161014057806340c10f191461028f578063570ca735146102a25780636cd16339146102b557806370a08231146102c857600080fd5b806323b872dd1461025a578063313ce5671461026d578063395093511461027c57600080fd5b806318160ddd1161019757806318160ddd1461022a5780631f96e76f1461023c57806321f314ca1461024557600080fd5b806306fdde03146101be57806307546172146101dc578063095ea7b314610207575b600080fd5b6101c661041b565b6040516101d39190611361565b60405180910390f35b6007546101ef906001600160a01b031681565b6040516001600160a01b0390911681526020016101d3565b61021a6102153660046113cb565b6104ad565b60405190151581526020016101d3565b6002545b6040519081526020016101d3565b61022e6101f481565b6102586102533660046113cb565b6104c3565b005b61021a6102683660046113f7565b610548565b604051601281526020016101d3565b61021a61028a3660046113cb565b610607565b61025861029d3660046113cb565b610643565b6006546101ef906001600160a01b031681565b61022e6b183bdac6ae9bc1c8cc00000081565b61022e6102d6366004611438565b6001600160a01b031660009081526020819052604090205490565b610258610937565b61022e60fa81565b6005546001600160a01b03166101ef565b6101c661099d565b61021a6103283660046113cb565b6109ac565b61021a61033b3660046113cb565b610a5d565b61022e7f00000000000000000000000000000000000000000001a784379d99db4200000081565b610258610a6a565b61022e61037d366004611455565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61022e6b033b2e3c9fd0803ce800000081565b6102586103c9366004611455565b610c0e565b6102586103dc366004611438565b610d79565b6102586103ef366004611438565b610e5b565b6101ef7f0000000000000000000000003d4abcd29ea9a6117408536a0bbd0235007e28d381565b60606003805461042a9061148e565b80601f01602080910402602001604051908101604052809291908181526020018280546104569061148e565b80156104a35780601f10610478576101008083540402835291602001916104a3565b820191906000526020600020905b81548152906001019060200180831161048657829003601f168201915b5050505050905090565b60006104ba338484610eea565b50600192915050565b6007546001600160a01b031633146105225760405162461bcd60e51b815260206004820152600b60248201527f4f6e6c79206d696e74657200000000000000000000000000000000000000000060448201526064015b60405180910390fd5b806008600082825461053491906114df565b909155506105449050828261100e565b5050565b60006105558484846110ed565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156105ef5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e63650000000000000000000000000000000000000000000000006064820152608401610519565b6105fc8533858403610eea565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916104ba91859061063e9086906114df565b610eea565b6002546106925760405162461bcd60e51b815260206004820152600f60248201527f4e6f7420696e697469616c6973656400000000000000000000000000000000006044820152606401610519565b6006546001600160a01b031633146106a8575050565b600654604080516361d027b360e01b815290516001600160a01b039092169160009183916361d027b3916004808201926020929091908290030181865afa1580156106f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071b91906114f7565b90506000826001600160a01b03166326232a2e6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561075d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107819190611514565b90506000836001600160a01b031663d73792a96040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e79190611514565b905060006008546b183bdac6ae9bc1c8cc00000061080460025490565b61080e919061152d565b610818919061152d565b9050600061085160fa61084b847f00000000000000000000000000000000000000000001a784379d99db42000000610ed7565b906112eb565b90506101f481101561092d5760006108876102bc61084b6002610881600561087b6101f4896112f7565b90611303565b90610ed7565b9050600061089b6101f46108818b85611303565b905060006108b56b033b2e3c9fd0803ce8000000866112f7565b9050808211156108c3578091505b6001600160a01b038816158015906108e457506001600160a01b0388163014155b80156108f05750600087115b1561091f57600061090587610881858b611303565b905061091183826112f7565b925061091d898261100e565b505b6109298b8361100e565b5050505b5050505050505050565b6005546001600160a01b031633146109915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610519565b61099b600061130f565b565b60606004805461042a9061148e565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610a465760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610519565b610a533385858403610eea565b5060019392505050565b60006104ba3384846110ed565b600254610ab95760405162461bcd60e51b815260206004820152600560248201527f21696e69740000000000000000000000000000000000000000000000000000006044820152606401610519565b60007f0000000000000000000000003d4abcd29ea9a6117408536a0bbd0235007e28d36001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3d91906114f7565b6006549091506001600160a01b03808316911614801590610b6657506001600160a01b03811615155b610bb25760405162461bcd60e51b815260206004820152600960248201527f216f70657261746f7200000000000000000000000000000000000000000000006044820152606401610519565b6006546040516001600160a01b038084169216907fd58299b712891143e76310d5e664c4203c940a67db37cf856bdaa3c5c76a802c90600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b03163314610c685760405162461bcd60e51b815260206004820152600d60248201527f4f6e6c79206f70657261746f72000000000000000000000000000000000000006044820152606401610519565b60025415610cb85760405162461bcd60e51b815260206004820152600960248201527f4f6e6c79206f6e636500000000000000000000000000000000000000000000006044820152606401610519565b6001600160a01b038116610d0e5760405162461bcd60e51b815260206004820152600e60248201527f496e76616c6964206d696e7465720000000000000000000000000000000000006044820152606401610519565b610d24826b183bdac6ae9bc1c8cc00000061100e565b610d2c610a6a565b600780546001600160a01b0319166001600160a01b038316179055600060088190556040517f09dfb9099a2610601d58030170fde7ae9db3e1bcb751c3d6800216cbe3b499b59190a15050565b6005546001600160a01b03163314610dd35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610519565b6001600160a01b038116610e4f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610519565b610e588161130f565b50565b6005546001600160a01b03163314610eb55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610519565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6000610ee38284611544565b9392505050565b6001600160a01b038316610f4c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610519565b6001600160a01b038216610fad5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610519565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0382166110645760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610519565b806002600082825461107691906114df565b90915550506001600160a01b038216600090815260208190526040812080548392906110a39084906114df565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0383166111695760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610519565b6001600160a01b0382166111cb5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610519565b6001600160a01b0383166000908152602081905260409020548181101561125a5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610519565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906112919084906114df565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516112dd91815260200190565b60405180910390a350505050565b6000610ee382846114df565b6000610ee3828461152d565b6000610ee38284611566565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060208083528351808285015260005b8181101561138e57858101830151858201604001528201611372565b818111156113a0576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b0381168114610e5857600080fd5b600080604083850312156113de57600080fd5b82356113e9816113b6565b946020939093013593505050565b60008060006060848603121561140c57600080fd5b8335611417816113b6565b92506020840135611427816113b6565b929592945050506040919091013590565b60006020828403121561144a57600080fd5b8135610ee3816113b6565b6000806040838503121561146857600080fd5b8235611473816113b6565b91506020830135611483816113b6565b809150509250929050565b600181811c908216806114a257607f821691505b602082108114156114c357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156114f2576114f26114c9565b500190565b60006020828403121561150957600080fd5b8151610ee3816113b6565b60006020828403121561152657600080fd5b5051919050565b60008282101561153f5761153f6114c9565b500390565b60008261156157634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611580576115806114c9565b50029056fea164736f6c634300080b000a