ETH Price: $3,539.21 (+0.58%)
Gas: 4 Gwei

Token

ERC20 ***
 

Overview

Max Total Supply

16,881.761127 ERC20 ***

Holders

168

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 6 Decimals)

Filtered by Token Holder
mogukong.eth
Balance
0.00096 ERC20 ***

Value
$0.00
0xc480abab3b49b5905ba6325412cb752fbec8b06d
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Hauler

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
File 1 of 8 : Hauler.sol
/// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.0;

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

import "../library/AddArrayLib.sol";

import "../interfaces/ITradeExecutor.sol";
import "../interfaces/IHauler.sol";


contract Hauler is IHauler, ERC20 {

    using AddrArrayLib for AddrArrayLib.Addresses;

    // TODO Define this arbitrary limit
    uint constant BLOCK_LIMIT = 50;
    uint constant DUST_LIMIT = 10**6;

    AddrArrayLib.Addresses tradeExecutorsList;

    address public immutable override wantToken;
    uint8 private immutable tokenDecimals;
    bool public batcherOnlyDeposit;

    address public override keeper;
    address public override governance;
    address public batcher;
    address pendingGovernance;
    


    constructor(string memory _name, string memory _symbol, uint8 _decimals, address _wantToken, address _keeper, address _governance) ERC20(_name, _symbol) {
        tokenDecimals = _decimals;
        wantToken = _wantToken;
        keeper = _keeper;
        governance = _governance;
    }

    function decimals() public view override returns (uint8) {
        return tokenDecimals;
    }


    function deposit(uint amountIn, address receiver) public onlyBatcher override returns (uint256 shares) {
        require(amountIn > 0);
        require(receiver != address(0));

        if (totalSupply() > 0) {
            shares = totalSupply() * amountIn / totalHaulerFunds();
        } else {
            shares = amountIn;
        }

        IERC20(wantToken).transferFrom(receiver, address(this), amountIn);
        _mint(receiver, shares);
    }

    function withdraw(uint sharesIn, address receiver) public override returns (uint256 amountOut) {
        require(sharesIn > 0);
        require(receiver != address(0));

        amountOut = sharesIn * totalHaulerFunds() / totalSupply();
        _burn(receiver, sharesIn);
        IERC20(wantToken).transfer(receiver, amountOut);
    }



    function totalHaulerFunds() public view returns (uint) {
        return IERC20(wantToken).balanceOf(address(this)) + totalExecutorFunds();
    }

    function depositIntoExecutor(address _executor, uint _amount) public isActiveExecutor(_executor) onlyKeeper {
        require(_amount > 0);
        IERC20(wantToken).transfer(_executor, _amount);
    }

    function withdrawFromExecutor(address _executor, uint _amount) public isActiveExecutor(_executor) onlyKeeper {
        require(_amount > 0);
        IERC20(wantToken).transferFrom(_executor, address(this), _amount);
    }


    function totalExecutors() public view returns (uint) {
        return tradeExecutorsList.size();
    }

    function executorByIndex(uint _index) public view returns (address) {
        require(_index < totalExecutors(), 'Index out of bounds');
        return tradeExecutorsList.getAddressAtIndex(_index);
    }

    function totalExecutorFunds() public view returns (uint) {
        uint totalFunds = 0;
        for (uint i = 0; i < totalExecutors(); i++) {
            address executor = executorByIndex(i);
            (uint executorFunds, uint blockUpdated) = ITradeExecutor(executor).totalFunds();
            require (block.number <= blockUpdated + BLOCK_LIMIT, 'Executor funds are not up to date');
            totalFunds += executorFunds;

        }
        return totalFunds;
    }


    /// EXECUTOR MANAGEMENT ///
    function addExecutor(address _tradeExecutor) public isValidAddress(_tradeExecutor) onlyKeeper {
        tradeExecutorsList.pushAddress(_tradeExecutor);
    }

    function removeExecutor(address _tradeExecutor) public isValidAddress(_tradeExecutor) onlyKeeper {
        (uint executorFunds, uint blockUpdated) = ITradeExecutor(_tradeExecutor).totalFunds();
        require (block.number <= blockUpdated + BLOCK_LIMIT, 'Executor funds are not up to date');
        require (executorFunds < DUST_LIMIT, 'Executor not empty');
        tradeExecutorsList.removeAddress(_tradeExecutor);
    }

    function setBatcher(address _batcher) public onlyGovernance {
        batcher = _batcher;
    }

    function setBatcherOnlyDeposit(bool _batcherOnlyDeposit) public onlyGovernance {
        batcherOnlyDeposit = _batcherOnlyDeposit;
    }

    function setGovernance(address _governance) public onlyGovernance{
        pendingGovernance = _governance;
    }

    function acceptGovernance() public {
        require(msg.sender == pendingGovernance);
        governance = pendingGovernance;
    }

    function setKeeper(address _keeper) public onlyGovernance {
        keeper = _keeper;
    }

    modifier onlyGovernance {
        require(msg.sender == governance, "Only governance call");
        _;
    }

    modifier onlyKeeper {
        require(msg.sender == keeper, "Only keeper call");
        _;
    }

    modifier onlyBatcher {
        if (batcherOnlyDeposit) {
            require(msg.sender == batcher, "Only batcher call");
        }
        _;
    }

    modifier isValidAddress(address _tradeExecutor) {
        require(_tradeExecutor!= address(0), 'Invalid address');
        _;
    }

    modifier isActiveExecutor(address _tradeExecutor) {
        require(tradeExecutorsList.exists(_tradeExecutor), "Executor is not active or doesnt exist");
        _;
    }

    

}

File 2 of 8 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (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:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, 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}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, 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) {
        address owner = _msgSender();
        _approve(owner, spender, _allowances[owner][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) {
        address owner = _msgSender();
        uint256 currentAllowance = _allowances[owner][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, 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:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, 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 Spend `amount` form the allowance of `owner` toward `spender`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - 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 {}
}

File 3 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        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 4 of 8 : AddArrayLib.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

library AddrArrayLib {
    using AddrArrayLib for Addresses;

    struct Addresses {
      address[]  _items;
    }

    /**
     * @notice push an address to the array
     * @dev if the address already exists, it will not be added again
     * @param self Storage array containing address type variables
     * @param element the element to add in the array
     */
    function pushAddress(Addresses storage self, address element) internal {
      if (!exists(self, element)) {
        self._items.push(element);
      }
    }

    /**
     * @notice remove an address from the array
     * @dev finds the element, swaps it with the last element, and then deletes it;
     *      returns a boolean whether the element was found and deleted
     * @param self Storage array containing address type variables
     * @param element the element to remove from the array
     */
    function removeAddress(Addresses storage self, address element) internal {
        for (uint i = 0; i < self.size(); i++) {
            if (self._items[i] == element) {
                self._items[i] = self._items[self.size() - 1];
                self._items.pop();
            }
        }
    }

    /**
     * @notice get the address at a specific index from array
     * @dev revert if the index is out of bounds
     * @param self Storage array containing address type variables
     * @param index the index in the array
     */
    function getAddressAtIndex(Addresses memory self, uint256 index) internal view returns (address) {
        require(index < size(self), "the index is out of bounds");
        return self._items[index];
    }

    /**
     * @notice get the size of the array
     * @param self Storage array containing address type variables
     */
    function size(Addresses memory self) internal view returns (uint256) {
      return self._items.length;
    }

    /**
     * @notice check if an element exist in the array
     * @param self Storage array containing address type variables
     * @param element the element to check if it exists in the array
     */
    function exists(Addresses memory self, address element) internal view returns (bool) {
        for (uint i = 0; i < self.size(); i++) {
            if (self._items[i] == element) {
                return true;
            }
        }
        return false;
    }

    /**
     * @notice get the array
     * @param self Storage array containing address type variables
     */
    function getAllAddresses(Addresses memory self) internal view returns(address[] memory) {
        return self._items;
    }

}

File 5 of 8 : ITradeExecutor.sol
//SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.0;

interface ITradeExecutor {

    struct ActionStatus {
        bool inProcess;
        address from;
    }

    function depositStatus() external returns (bool, address);
    function withdrawalStatus() external returns (bool, address);

    function initiateDeposit(bytes calldata _data) external;

    function confirmDeposit() external;

    function initateWithdraw(bytes calldata _data) external;

    function confirmWithdraw() external;

    function totalFunds() view external returns(uint256 posValue, uint256 lastUpdatedBlock);

}

File 6 of 8 : IHauler.sol
/// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.0;

interface IHauler {
  function keeper() external view returns (address);

  function governance() external view returns (address);

  function wantToken() external view returns (address);

  function deposit(uint256 amountIn, address receiver)
    external
    returns (uint256 shares);

  function withdraw(uint256 sharesIn, address receiver)
    external
    returns (uint256 amountOut);
}

File 7 of 8 : 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);
}

File 8 of 8 : 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;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 100
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint8","name":"_decimals","type":"uint8"},{"internalType":"address","name":"_wantToken","type":"address"},{"internalType":"address","name":"_keeper","type":"address"},{"internalType":"address","name":"_governance","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"acceptGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tradeExecutor","type":"address"}],"name":"addExecutor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"batcher","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"batcherOnlyDeposit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_executor","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositIntoExecutor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"executorByIndex","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"keeper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tradeExecutor","type":"address"}],"name":"removeExecutor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_batcher","type":"address"}],"name":"setBatcher","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_batcherOnlyDeposit","type":"bool"}],"name":"setBatcherOnlyDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_keeper","type":"address"}],"name":"setKeeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalExecutorFunds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalExecutors","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalHaulerFunds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wantToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"sharesIn","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_executor","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawFromExecutor","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040523480156200001157600080fd5b50604051620021f1380380620021f1833981016040819052620000349162000259565b8551869086906200004d906003906020850190620000e3565b50805162000063906004906020840190620000e3565b50505060f89390931b7fff000000000000000000000000000000000000000000000000000000000000001660a05260609190911b6001600160601b03191660805260068054610100600160a81b0319166101006001600160a01b0393841602179055600780546001600160a01b0319169190921617905550620003629050565b828054620000f1906200030f565b90600052602060002090601f01602090048101928262000115576000855562000160565b82601f106200013057805160ff191683800117855562000160565b8280016001018555821562000160579182015b828111156200016057825182559160200191906001019062000143565b506200016e92915062000172565b5090565b5b808211156200016e576000815560010162000173565b80516001600160a01b0381168114620001a157600080fd5b919050565b600082601f830112620001b7578081fd5b81516001600160401b0380821115620001d457620001d46200034c565b604051601f8301601f19908116603f01168101908282118183101715620001ff57620001ff6200034c565b816040528381526020925086838588010111156200021b578485fd5b8491505b838210156200023e57858201830151818301840152908201906200021f565b838211156200024f57848385830101525b9695505050505050565b60008060008060008060c0878903121562000272578182fd5b86516001600160401b038082111562000289578384fd5b620002978a838b01620001a6565b97506020890151915080821115620002ad578384fd5b50620002bc89828a01620001a6565b955050604087015160ff81168114620002d3578283fd5b9350620002e36060880162000189565b9250620002f36080880162000189565b91506200030360a0880162000189565b90509295509295509295565b600181811c908216806200032457607f821691505b602082108114156200034657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160f81c611e40620003b160003960006102b20152600081816103f5015281816104ac01528181610a7f01528181610c5001528181610dd1015261107c0152611e406000f3fe608060405234801561001057600080fd5b50600436106101a45760003560e01c80636e553f65116100ef578063ab033ea911610092578063ab033ea9146103a5578063ab735255146103b8578063aced1661146103cb578063b1b3da51146103e3578063d23e0480146103f0578063dd62ed3e14610417578063f621ff601461042a578063f97267bd1461043257600080fd5b80636e553f651461030257806370a0823114610315578063748747e61461033e578063777f9766146103515780637f5883a21461036457806395d89b4114610377578063a457c2d71461037f578063a9059cbb1461039257600080fd5b80631f5a0bbe116101575780631f5a0bbe14610257578063238efcbc1461026a57806323b872dd146102725780632478842914610285578063303cff5314610298578063313ce567146102ab57806339509351146102dc5780635aa6e675146102ef57600080fd5b8062f714ce146101a9578063025a3a29146101cf578063058a8e5f146101fa57806306fdde031461020f578063095ea7b314610224578063140ce45f1461024757806318160ddd1461024f575b600080fd5b6101bc6101b7366004611b41565b61043a565b6040519081526020015b60405180910390f35b6008546101e2906001600160a01b031681565b6040516001600160a01b0390911681526020016101c6565b61020d610208366004611a22565b61052f565b005b610217610584565b6040516101c69190611baa565b610237610232366004611ab0565b610616565b60405190151581526020016101c6565b6101bc610630565b6002546101bc565b61020d610265366004611a22565b61071b565b61020d610780565b610237610280366004611a75565b6107bb565b61020d610293366004611a22565b6107df565b61020d6102a6366004611ad9565b61092f565b60405160ff7f00000000000000000000000000000000000000000000000000000000000000001681526020016101c6565b6102376102ea366004611ab0565b61096c565b6007546101e2906001600160a01b031681565b6101bc610310366004611b41565b6109ab565b6101bc610323366004611a22565b6001600160a01b031660009081526020819052604090205490565b61020d61034c366004611a22565b610b15565b61020d61035f366004611ab0565b610b67565b61020d610372366004611ab0565b610cdb565b610217610e00565b61023761038d366004611ab0565b610e0f565b6102376103a0366004611ab0565b610ea1565b61020d6103b3366004611a22565b610eaf565b6101e26103c6366004611b11565b610efb565b6006546101e29061010090046001600160a01b031681565b6006546102379060ff1681565b6101e27f000000000000000000000000000000000000000000000000000000000000000081565b6101bc610425366004611a43565b610fbf565b6101bc610fea565b6101bc61105d565b600080831161044857600080fd5b6001600160a01b03821661045b57600080fd5b60025461046661105d565b6104709085611d3d565b61047a9190611d1d565b90506104868284611108565b60405163a9059cbb60e01b81526001600160a01b038381166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb90604401602060405180830381600087803b1580156104f057600080fd5b505af1158015610504573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105289190611af5565b5092915050565b6007546001600160a01b031633146105625760405162461bcd60e51b815260040161055990611c91565b60405180910390fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b60606003805461059390611d73565b80601f01602080910402602001604051908101604052809291908181526020018280546105bf90611d73565b801561060c5780601f106105e15761010080835404028352916020019161060c565b820191906000526020600020905b8154815290600101906020018083116105ef57829003601f168201915b5050505050905090565b600033610624818585611246565b60019150505b92915050565b600080805b61063d610fea565b81101561071557600061064f82610efb565b9050600080826001600160a01b031663968ed6006040518163ffffffff1660e01b8152600401604080518083038186803b15801561068c57600080fd5b505afa1580156106a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c49190611b63565b90925090506106d4603282611d05565b4311156106f35760405162461bcd60e51b815260040161055990611c50565b6106fd8286611d05565b9450505050808061070d90611da8565b915050610635565b50919050565b806001600160a01b0381166107425760405162461bcd60e51b815260040161055990611bfd565b60065461010090046001600160a01b031633146107715760405162461bcd60e51b815260040161055990611c26565b61077c600583611362565b5050565b6009546001600160a01b0316331461079757600080fd5b600954600780546001600160a01b0319166001600160a01b03909216919091179055565b6000336107c9858285611401565b6107d4858585611475565b506001949350505050565b806001600160a01b0381166108065760405162461bcd60e51b815260040161055990611bfd565b60065461010090046001600160a01b031633146108355760405162461bcd60e51b815260040161055990611c26565b600080836001600160a01b031663968ed6006040518163ffffffff1660e01b8152600401604080518083038186803b15801561087057600080fd5b505afa158015610884573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a89190611b63565b90925090506108b8603282611d05565b4311156108d75760405162461bcd60e51b815260040161055990611c50565b620f4240821061091e5760405162461bcd60e51b81526020600482015260126024820152714578656375746f72206e6f7420656d70747960701b6044820152606401610559565b610929600585611631565b50505050565b6007546001600160a01b031633146109595760405162461bcd60e51b815260040161055990611c91565b6006805460ff1916911515919091179055565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919061062490829086906109a6908790611d05565b611246565b60065460009060ff1615610a07576008546001600160a01b03163314610a075760405162461bcd60e51b815260206004820152601160248201527013db9b1e4818985d18da195c8818d85b1b607a1b6044820152606401610559565b60008311610a1457600080fd5b6001600160a01b038216610a2757600080fd5b6000610a3260025490565b1115610a6557610a4061105d565b83610a4a60025490565b610a549190611d3d565b610a5e9190611d1d565b9050610a68565b50815b6040516323b872dd60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90610ab890859030908890600401611b86565b602060405180830381600087803b158015610ad257600080fd5b505af1158015610ae6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0a9190611af5565b5061062a8282611835565b6007546001600160a01b03163314610b3f5760405162461bcd60e51b815260040161055990611c91565b600680546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6040805160058054602081810284018501855283018181528694610be194869490939092849290918491840182828015610bca57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610bac575b50505050508152505061190290919063ffffffff16565b610bfd5760405162461bcd60e51b815260040161055990611cbf565b60065461010090046001600160a01b03163314610c2c5760405162461bcd60e51b815260040161055990611c26565b60008211610c3957600080fd5b6040516323b872dd60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90610c8990869030908790600401611b86565b602060405180830381600087803b158015610ca357600080fd5b505af1158015610cb7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109299190611af5565b6040805160058054602081810284018501855283018181528694610d5394869490939092849290918491840182828015610bca576020028201919060005260206000209081546001600160a01b03168152600190910190602001808311610bac5750505050508152505061190290919063ffffffff16565b610d6f5760405162461bcd60e51b815260040161055990611cbf565b60065461010090046001600160a01b03163314610d9e5760405162461bcd60e51b815260040161055990611c26565b60008211610dab57600080fd5b60405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb90604401610c89565b60606004805461059390611d73565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610e945760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610559565b6107d48286868403611246565b600033610624818585611475565b6007546001600160a01b03163314610ed95760405162461bcd60e51b815260040161055990611c91565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6000610f05610fea565b8210610f495760405162461bcd60e51b8152602060048201526013602482015272496e646578206f7574206f6620626f756e647360681b6044820152606401610559565b60408051600580546020818102840185018552830181815261062a9487949392849291849190840182828015610fa857602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610f8a575b50505050508152505061197b90919063ffffffff16565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60408051600580546020818102840185018552830181815260009461105894939284929184919084018282801561104a57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161102c575b505050505081525050515190565b905090565b6000611067610630565b6040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156110c657600080fd5b505afa1580156110da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110fe9190611b29565b6110589190611d05565b6001600160a01b0382166111685760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610559565b6001600160a01b038216600090815260208190526040902054818110156111dc5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610559565b6001600160a01b038316600090815260208190526040812083830390556002805484929061120b908490611d5c565b90915550506040518281526000906001600160a01b03851690600080516020611deb833981519152906020015b60405180910390a35b505050565b6001600160a01b0383166112a85760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610559565b6001600160a01b0382166113095760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610559565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101611238565b604080518354602081810283018401845282018181526113cc9386928492918491908401828280156113bd57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161139f575b50505050508152505082611902565b61077c5781546001810183556000838152602090200180546001600160a01b0383166001600160a01b03199091161790555050565b600061140d8484610fbf565b9050600019811461092957818110156114685760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610559565b6109298484848403611246565b6001600160a01b0383166114d95760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610559565b6001600160a01b03821661153b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610559565b6001600160a01b038316600090815260208190526040902054818110156115b35760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610559565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906115ea908490611d05565b92505081905550826001600160a01b0316846001600160a01b0316600080516020611deb8339815191528460405161162491815260200190565b60405180910390a3610929565b60005b6040805184546020818102830184018452820181815261169b93879284929184919084018282801561104a576020028201919060005260206000209081546001600160a01b0316815260019091019060200180831161102c57505050505081525050515190565b81101561124157816001600160a01b03168360000182815481106116cf57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031614156118235760408051845460208181028301840184528201818152869360019361175693909286928492849184018282801561104a576020028201919060005260206000209081546001600160a01b0316815260019091019060200180831161102c57505050505081525050515190565b6117609190611d5c565b8154811061177e57634e487b7160e01b600052603260045260246000fd5b60009182526020909120015483546001600160a01b03909116908490839081106117b857634e487b7160e01b600052603260045260246000fd5b600091825260209091200180546001600160a01b0319166001600160a01b0392909216919091179055825483908061180057634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b03191690550190555b8061182d81611da8565b915050611634565b6001600160a01b03821661188b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610559565b806002600082825461189d9190611d05565b90915550506001600160a01b038216600090815260208190526040812080548392906118ca908490611d05565b90915550506040518181526001600160a01b03831690600090600080516020611deb8339815191529060200160405180910390a35050565b6000805b83515181101561197157826001600160a01b03168460000151828151811061193e57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316141561195f57600191505061062a565b8061196981611da8565b915050611906565b5060009392505050565b600061198683515190565b82106119d45760405162461bcd60e51b815260206004820152601a60248201527f74686520696e646578206973206f7574206f6620626f756e64730000000000006044820152606401610559565b82518051839081106119f657634e487b7160e01b600052603260045260246000fd5b6020026020010151905092915050565b80356001600160a01b0381168114611a1d57600080fd5b919050565b600060208284031215611a33578081fd5b611a3c82611a06565b9392505050565b60008060408385031215611a55578081fd5b611a5e83611a06565b9150611a6c60208401611a06565b90509250929050565b600080600060608486031215611a89578081fd5b611a9284611a06565b9250611aa060208501611a06565b9150604084013590509250925092565b60008060408385031215611ac2578182fd5b611acb83611a06565b946020939093013593505050565b600060208284031215611aea578081fd5b8135611a3c81611dd9565b600060208284031215611b06578081fd5b8151611a3c81611dd9565b600060208284031215611b22578081fd5b5035919050565b600060208284031215611b3a578081fd5b5051919050565b60008060408385031215611b53578182fd5b82359150611a6c60208401611a06565b60008060408385031215611b75578182fd5b505080516020909101519092909150565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6000602080835283518082850152825b81811015611bd657858101830151858201604001528201611bba565b81811115611be75783604083870101525b50601f01601f1916929092016040019392505050565b6020808252600f908201526e496e76616c6964206164647265737360881b604082015260600190565b60208082526010908201526f13db9b1e481ad9595c195c8818d85b1b60821b604082015260600190565b60208082526021908201527f4578656375746f722066756e647320617265206e6f7420757020746f206461746040820152606560f81b606082015260800190565b60208082526014908201527313db9b1e4819dbdd995c9b985b98d94818d85b1b60621b604082015260600190565b60208082526026908201527f4578656375746f72206973206e6f7420616374697665206f7220646f65736e7460408201526508195e1a5cdd60d21b606082015260800190565b60008219821115611d1857611d18611dc3565b500190565b600082611d3857634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611d5757611d57611dc3565b500290565b600082821015611d6e57611d6e611dc3565b500390565b600181811c90821680611d8757607f821691505b6020821081141561071557634e487b7160e01b600052602260045260246000fd5b6000600019821415611dbc57611dbc611dc3565b5060010190565b634e487b7160e01b600052601160045260246000fd5b8015158114611de757600080fd5b5056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212202a7f688e930c37c358e27c8cb16c049aa301b0832d1cca0bf6547e1c763cca1964736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000ae75b29ade678372d77a8b41225654138a7e6ff10000000000000000000000006b29610d6c6a9e47812be40f1335918bd63321bf000000000000000000000000000000000000000000000000000000000000001850726f746563746564204d6f6f6e73686f7473205553444300000000000000000000000000000000000000000000000000000000000000000000000000000009e29a9b504d555344430000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101a45760003560e01c80636e553f65116100ef578063ab033ea911610092578063ab033ea9146103a5578063ab735255146103b8578063aced1661146103cb578063b1b3da51146103e3578063d23e0480146103f0578063dd62ed3e14610417578063f621ff601461042a578063f97267bd1461043257600080fd5b80636e553f651461030257806370a0823114610315578063748747e61461033e578063777f9766146103515780637f5883a21461036457806395d89b4114610377578063a457c2d71461037f578063a9059cbb1461039257600080fd5b80631f5a0bbe116101575780631f5a0bbe14610257578063238efcbc1461026a57806323b872dd146102725780632478842914610285578063303cff5314610298578063313ce567146102ab57806339509351146102dc5780635aa6e675146102ef57600080fd5b8062f714ce146101a9578063025a3a29146101cf578063058a8e5f146101fa57806306fdde031461020f578063095ea7b314610224578063140ce45f1461024757806318160ddd1461024f575b600080fd5b6101bc6101b7366004611b41565b61043a565b6040519081526020015b60405180910390f35b6008546101e2906001600160a01b031681565b6040516001600160a01b0390911681526020016101c6565b61020d610208366004611a22565b61052f565b005b610217610584565b6040516101c69190611baa565b610237610232366004611ab0565b610616565b60405190151581526020016101c6565b6101bc610630565b6002546101bc565b61020d610265366004611a22565b61071b565b61020d610780565b610237610280366004611a75565b6107bb565b61020d610293366004611a22565b6107df565b61020d6102a6366004611ad9565b61092f565b60405160ff7f00000000000000000000000000000000000000000000000000000000000000061681526020016101c6565b6102376102ea366004611ab0565b61096c565b6007546101e2906001600160a01b031681565b6101bc610310366004611b41565b6109ab565b6101bc610323366004611a22565b6001600160a01b031660009081526020819052604090205490565b61020d61034c366004611a22565b610b15565b61020d61035f366004611ab0565b610b67565b61020d610372366004611ab0565b610cdb565b610217610e00565b61023761038d366004611ab0565b610e0f565b6102376103a0366004611ab0565b610ea1565b61020d6103b3366004611a22565b610eaf565b6101e26103c6366004611b11565b610efb565b6006546101e29061010090046001600160a01b031681565b6006546102379060ff1681565b6101e27f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b6101bc610425366004611a43565b610fbf565b6101bc610fea565b6101bc61105d565b600080831161044857600080fd5b6001600160a01b03821661045b57600080fd5b60025461046661105d565b6104709085611d3d565b61047a9190611d1d565b90506104868284611108565b60405163a9059cbb60e01b81526001600160a01b038381166004830152602482018390527f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48169063a9059cbb90604401602060405180830381600087803b1580156104f057600080fd5b505af1158015610504573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105289190611af5565b5092915050565b6007546001600160a01b031633146105625760405162461bcd60e51b815260040161055990611c91565b60405180910390fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b60606003805461059390611d73565b80601f01602080910402602001604051908101604052809291908181526020018280546105bf90611d73565b801561060c5780601f106105e15761010080835404028352916020019161060c565b820191906000526020600020905b8154815290600101906020018083116105ef57829003601f168201915b5050505050905090565b600033610624818585611246565b60019150505b92915050565b600080805b61063d610fea565b81101561071557600061064f82610efb565b9050600080826001600160a01b031663968ed6006040518163ffffffff1660e01b8152600401604080518083038186803b15801561068c57600080fd5b505afa1580156106a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c49190611b63565b90925090506106d4603282611d05565b4311156106f35760405162461bcd60e51b815260040161055990611c50565b6106fd8286611d05565b9450505050808061070d90611da8565b915050610635565b50919050565b806001600160a01b0381166107425760405162461bcd60e51b815260040161055990611bfd565b60065461010090046001600160a01b031633146107715760405162461bcd60e51b815260040161055990611c26565b61077c600583611362565b5050565b6009546001600160a01b0316331461079757600080fd5b600954600780546001600160a01b0319166001600160a01b03909216919091179055565b6000336107c9858285611401565b6107d4858585611475565b506001949350505050565b806001600160a01b0381166108065760405162461bcd60e51b815260040161055990611bfd565b60065461010090046001600160a01b031633146108355760405162461bcd60e51b815260040161055990611c26565b600080836001600160a01b031663968ed6006040518163ffffffff1660e01b8152600401604080518083038186803b15801561087057600080fd5b505afa158015610884573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a89190611b63565b90925090506108b8603282611d05565b4311156108d75760405162461bcd60e51b815260040161055990611c50565b620f4240821061091e5760405162461bcd60e51b81526020600482015260126024820152714578656375746f72206e6f7420656d70747960701b6044820152606401610559565b610929600585611631565b50505050565b6007546001600160a01b031633146109595760405162461bcd60e51b815260040161055990611c91565b6006805460ff1916911515919091179055565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919061062490829086906109a6908790611d05565b611246565b60065460009060ff1615610a07576008546001600160a01b03163314610a075760405162461bcd60e51b815260206004820152601160248201527013db9b1e4818985d18da195c8818d85b1b607a1b6044820152606401610559565b60008311610a1457600080fd5b6001600160a01b038216610a2757600080fd5b6000610a3260025490565b1115610a6557610a4061105d565b83610a4a60025490565b610a549190611d3d565b610a5e9190611d1d565b9050610a68565b50815b6040516323b872dd60e01b81526001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4816906323b872dd90610ab890859030908890600401611b86565b602060405180830381600087803b158015610ad257600080fd5b505af1158015610ae6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0a9190611af5565b5061062a8282611835565b6007546001600160a01b03163314610b3f5760405162461bcd60e51b815260040161055990611c91565b600680546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6040805160058054602081810284018501855283018181528694610be194869490939092849290918491840182828015610bca57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610bac575b50505050508152505061190290919063ffffffff16565b610bfd5760405162461bcd60e51b815260040161055990611cbf565b60065461010090046001600160a01b03163314610c2c5760405162461bcd60e51b815260040161055990611c26565b60008211610c3957600080fd5b6040516323b872dd60e01b81526001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4816906323b872dd90610c8990869030908790600401611b86565b602060405180830381600087803b158015610ca357600080fd5b505af1158015610cb7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109299190611af5565b6040805160058054602081810284018501855283018181528694610d5394869490939092849290918491840182828015610bca576020028201919060005260206000209081546001600160a01b03168152600190910190602001808311610bac5750505050508152505061190290919063ffffffff16565b610d6f5760405162461bcd60e51b815260040161055990611cbf565b60065461010090046001600160a01b03163314610d9e5760405162461bcd60e51b815260040161055990611c26565b60008211610dab57600080fd5b60405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490527f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48169063a9059cbb90604401610c89565b60606004805461059390611d73565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610e945760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610559565b6107d48286868403611246565b600033610624818585611475565b6007546001600160a01b03163314610ed95760405162461bcd60e51b815260040161055990611c91565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6000610f05610fea565b8210610f495760405162461bcd60e51b8152602060048201526013602482015272496e646578206f7574206f6620626f756e647360681b6044820152606401610559565b60408051600580546020818102840185018552830181815261062a9487949392849291849190840182828015610fa857602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610f8a575b50505050508152505061197b90919063ffffffff16565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60408051600580546020818102840185018552830181815260009461105894939284929184919084018282801561104a57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161102c575b505050505081525050515190565b905090565b6000611067610630565b6040516370a0823160e01b81523060048201527f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486001600160a01b0316906370a082319060240160206040518083038186803b1580156110c657600080fd5b505afa1580156110da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110fe9190611b29565b6110589190611d05565b6001600160a01b0382166111685760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610559565b6001600160a01b038216600090815260208190526040902054818110156111dc5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610559565b6001600160a01b038316600090815260208190526040812083830390556002805484929061120b908490611d5c565b90915550506040518281526000906001600160a01b03851690600080516020611deb833981519152906020015b60405180910390a35b505050565b6001600160a01b0383166112a85760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610559565b6001600160a01b0382166113095760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610559565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101611238565b604080518354602081810283018401845282018181526113cc9386928492918491908401828280156113bd57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161139f575b50505050508152505082611902565b61077c5781546001810183556000838152602090200180546001600160a01b0383166001600160a01b03199091161790555050565b600061140d8484610fbf565b9050600019811461092957818110156114685760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610559565b6109298484848403611246565b6001600160a01b0383166114d95760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610559565b6001600160a01b03821661153b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610559565b6001600160a01b038316600090815260208190526040902054818110156115b35760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610559565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906115ea908490611d05565b92505081905550826001600160a01b0316846001600160a01b0316600080516020611deb8339815191528460405161162491815260200190565b60405180910390a3610929565b60005b6040805184546020818102830184018452820181815261169b93879284929184919084018282801561104a576020028201919060005260206000209081546001600160a01b0316815260019091019060200180831161102c57505050505081525050515190565b81101561124157816001600160a01b03168360000182815481106116cf57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031614156118235760408051845460208181028301840184528201818152869360019361175693909286928492849184018282801561104a576020028201919060005260206000209081546001600160a01b0316815260019091019060200180831161102c57505050505081525050515190565b6117609190611d5c565b8154811061177e57634e487b7160e01b600052603260045260246000fd5b60009182526020909120015483546001600160a01b03909116908490839081106117b857634e487b7160e01b600052603260045260246000fd5b600091825260209091200180546001600160a01b0319166001600160a01b0392909216919091179055825483908061180057634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b03191690550190555b8061182d81611da8565b915050611634565b6001600160a01b03821661188b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610559565b806002600082825461189d9190611d05565b90915550506001600160a01b038216600090815260208190526040812080548392906118ca908490611d05565b90915550506040518181526001600160a01b03831690600090600080516020611deb8339815191529060200160405180910390a35050565b6000805b83515181101561197157826001600160a01b03168460000151828151811061193e57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316141561195f57600191505061062a565b8061196981611da8565b915050611906565b5060009392505050565b600061198683515190565b82106119d45760405162461bcd60e51b815260206004820152601a60248201527f74686520696e646578206973206f7574206f6620626f756e64730000000000006044820152606401610559565b82518051839081106119f657634e487b7160e01b600052603260045260246000fd5b6020026020010151905092915050565b80356001600160a01b0381168114611a1d57600080fd5b919050565b600060208284031215611a33578081fd5b611a3c82611a06565b9392505050565b60008060408385031215611a55578081fd5b611a5e83611a06565b9150611a6c60208401611a06565b90509250929050565b600080600060608486031215611a89578081fd5b611a9284611a06565b9250611aa060208501611a06565b9150604084013590509250925092565b60008060408385031215611ac2578182fd5b611acb83611a06565b946020939093013593505050565b600060208284031215611aea578081fd5b8135611a3c81611dd9565b600060208284031215611b06578081fd5b8151611a3c81611dd9565b600060208284031215611b22578081fd5b5035919050565b600060208284031215611b3a578081fd5b5051919050565b60008060408385031215611b53578182fd5b82359150611a6c60208401611a06565b60008060408385031215611b75578182fd5b505080516020909101519092909150565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6000602080835283518082850152825b81811015611bd657858101830151858201604001528201611bba565b81811115611be75783604083870101525b50601f01601f1916929092016040019392505050565b6020808252600f908201526e496e76616c6964206164647265737360881b604082015260600190565b60208082526010908201526f13db9b1e481ad9595c195c8818d85b1b60821b604082015260600190565b60208082526021908201527f4578656375746f722066756e647320617265206e6f7420757020746f206461746040820152606560f81b606082015260800190565b60208082526014908201527313db9b1e4819dbdd995c9b985b98d94818d85b1b60621b604082015260600190565b60208082526026908201527f4578656375746f72206973206e6f7420616374697665206f7220646f65736e7460408201526508195e1a5cdd60d21b606082015260800190565b60008219821115611d1857611d18611dc3565b500190565b600082611d3857634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611d5757611d57611dc3565b500290565b600082821015611d6e57611d6e611dc3565b500390565b600181811c90821680611d8757607f821691505b6020821081141561071557634e487b7160e01b600052602260045260246000fd5b6000600019821415611dbc57611dbc611dc3565b5060010190565b634e487b7160e01b600052601160045260246000fd5b8015158114611de757600080fd5b5056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212202a7f688e930c37c358e27c8cb16c049aa301b0832d1cca0bf6547e1c763cca1964736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000ae75b29ade678372d77a8b41225654138a7e6ff10000000000000000000000006b29610d6c6a9e47812be40f1335918bd63321bf000000000000000000000000000000000000000000000000000000000000001850726f746563746564204d6f6f6e73686f7473205553444300000000000000000000000000000000000000000000000000000000000000000000000000000009e29a9b504d555344430000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Protected Moonshots USDC
Arg [1] : _symbol (string): ⚛PMUSDC
Arg [2] : _decimals (uint8): 6
Arg [3] : _wantToken (address): 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
Arg [4] : _keeper (address): 0xAE75B29ADe678372D77A8B41225654138a7E6ff1
Arg [5] : _governance (address): 0x6b29610D6c6a9E47812bE40F1335918bd63321bf

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [3] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [4] : 000000000000000000000000ae75b29ade678372d77a8b41225654138a7e6ff1
Arg [5] : 0000000000000000000000006b29610d6c6a9e47812be40f1335918bd63321bf
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000018
Arg [7] : 50726f746563746564204d6f6f6e73686f747320555344430000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [9] : e29a9b504d555344430000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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