ETH Price: $2,402.05 (-3.22%)

Contract

0x956cea98c59c0f4e02113Ca11592dbb3b858eD44

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
1070101982023-07-17 18:39:33476 days ago1689619173  Contract Creation0 ETH

Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xab8226Fe...41f2977f4
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
acxToken

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion, MIT license
File 1 of 12 : acxToken.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract acxToken is ERC20, Ownable{
    constructor(string memory symbol, string memory name) public ERC20(symbol, name) { }

    function mint(address _to, uint256 _amount) public onlyOwner{
    	_mint(_to, _amount);
    }

    function burn(address _from, uint256 _amount) public{
        if(msg.sender != owner()){
            require(msg.sender == _from, "No");
        }
    	_burn(_from, _amount);
    }
}

File 2 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 3 of 12 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

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

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 4 of 12 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../../utils/Context.sol";
import "./IERC20.sol";
import "../../math/SafeMath.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 guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

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

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

    /**
     * @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);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

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

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

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

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

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

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

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

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

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

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

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

File 5 of 12 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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);
}

File 6 of 12 : Context.sol
// SPDX-License-Identifier: MIT

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

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

File 7 of 12 : IACX.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IACX{
	function burn(address _to, uint256 _amount) external;
	function mint(address _to, uint256 _amount) external;
	function totalSupply() external returns(uint256);
}

File 8 of 12 : IGauge.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IGauge{
	function getReward(address account) external;
	function deposit(uint amount) external;
	function withdraw(uint amount) external;
	function balanceOf(address) external view returns (uint);
    function earned(address account) external view returns (uint);
    function rewardToken() external view returns (address);

}

File 9 of 12 : IVelodromePair.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.12;

interface IVelodromePair {
  function allowance(address owner, address spender)external view returns(uint256);
  function approve(address spender, uint256 amount)external returns(bool);
  function balanceOf(address account)external view returns(uint256);
  function burn(address to)external returns(uint256 amount0, uint256 amount1);
  function getAmountOut(uint256 amountIn, address tokenIn)external view returns(uint256);
  function getReserves() external view returns(uint256 _reserve0, uint256 _reserve1, uint256 _blockTimestampLast);
  function mint(address to)external returns(uint256 liquidity);
  function name() external view returns(string memory);
  function quote(address tokenIn, uint256 amountIn, uint256 granularity)external view returns(uint256 amountOut);
  function reserve0() external view returns(uint256);
  function reserve1() external view returns(uint256);


  function stable() external view returns(bool);
  function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes memory data)external;
  function symbol() external view returns(string memory);
  function token0() external view returns(address);
  function token1() external view returns(address);


}

File 10 of 12 : IWETH.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IWETH {
	function deposit() external payable;
    function withdraw(uint256 value) external;
}

File 11 of 12 : lpHelper.sol
// SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/math/SafeMath.sol";
import "./Interfaces/IVelodromePair.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

pragma solidity ^0.6.12;

library Babylonian {
    function sqrt(uint256 y) internal pure returns (uint256 z) {
        if (y > 3) {
            z = y;
            uint256 x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
        // else z = 0
    }
}



contract lpHelper {
    using SafeMath for uint256;
    
    function calculateSwapInAmount(uint256 reserveIn, uint256 reserveOut, uint256 userIn, bool stable,uint256 amountOut)
    public
    pure
    returns (uint256)
    {
    		if(stable){
				uint ratio = amountOut * 1e18 / (userIn) * reserveIn / reserveOut;
        		return userIn * 1e18 / (ratio + 1e18);    			
    		}
			return
	        Babylonian
	        .sqrt(
	            reserveIn.mul(userIn.mul(3988000) + reserveIn.mul(3988009))
	        )
	        .sub(reserveIn.mul(1997)) / 1994;
    }


    function _addLiquidity(address _token, address _pair, uint256 _amount) internal returns (uint256 liquidity) {
    	address token0 = IVelodromePair(_pair).token0();
    	address token1 = IVelodromePair(_pair).token1();
    	if(token0 != _token){
    		(uint256 amountIn,uint256 amountOut) = _swapTokenForLiq(_pair, token1, _amount);
    		IERC20(token1).transfer(address(_pair), amountIn);
            IERC20(token0).transfer(address(_pair), amountOut);
            liquidity = IVelodromePair(_pair).mint(address(this));
    	}else{
    		(uint256 amountIn,uint256 amountOut) = _swapTokenForLiq(_pair, token0, _amount);
			IERC20(token0).transfer(address(_pair), amountIn);
            IERC20(token1).transfer(address(_pair), amountOut);
            liquidity = IVelodromePair(_pair).mint(address(this));
    	}
    }


    function _swapTokenForLiq(address _pair, address fromToken, uint256 amountIn) internal returns (uint256 inputAmount, uint256 amountOut) {
        IVelodromePair pair = IVelodromePair(_pair);
        (uint256 reserve0, uint256 reserve1,) = pair.getReserves();
        bool stable = IVelodromePair(_pair).stable();
        uint256 out = IVelodromePair(_pair).getAmountOut(amountIn, fromToken);
        if (fromToken == pair.token0()) {
        	inputAmount = calculateSwapInAmount(reserve0, reserve1 , amountIn, stable, out);
            IERC20(fromToken).transfer(address(pair), inputAmount);

            amountOut = pair.getAmountOut(inputAmount, fromToken); 
            pair.swap(0, amountOut, address(this), new bytes(0));
            inputAmount = amountIn.sub(inputAmount);
        } else {
        	inputAmount = calculateSwapInAmount(reserve1, reserve0 ,amountIn, stable, out);

            IERC20(fromToken).transfer(address(pair), inputAmount);

            amountOut = pair.getAmountOut(inputAmount, fromToken);
            pair.swap(amountOut, 0, address(this), new bytes(0));
            inputAmount = amountIn.sub(inputAmount);
        }
    }

    function _swapToken(address _pair, address fromToken, uint256 amountIn) internal returns(uint256 amountOut, address outToken){
    	IVelodromePair pair = IVelodromePair(_pair);
        if (fromToken == pair.token0()) {
        	outToken = pair.token1();
            IERC20(fromToken).transfer(address(pair), amountIn);
            amountOut = pair.getAmountOut(amountIn, fromToken);
            pair.swap(0, amountOut, address(this), new bytes(0));
        } else {
        	outToken = pair.token0();
            IERC20(fromToken).transfer(address(pair), amountIn);
            amountOut = pair.getAmountOut(amountIn, fromToken);
            pair.swap(amountOut, 0, address(this), new bytes(0));
        }
    }



}

File 12 of 12 : vaultFactory.sol
// SPDX-License-Identifier: UNLICENCED
pragma solidity 0.6.12;
/*                                 /$$    /$$                 /$$  /$$            
                                  | $$   | $$                | $$ | $$            
  /$$$$$$  /$$$$$$$/$$   /$$      | $$   | $$/$$$$$$ /$$   /$| $$/$$$$$$  /$$$$$$$
 |____  $$/$$_____|  $$ /$$/      |  $$ / $$|____  $| $$  | $| $|_  $$_/ /$$_____/
  /$$$$$$| $$      \  $$$$/        \  $$ $$/ /$$$$$$| $$  | $| $$ | $$  |  $$$$$$ 
 /$$__  $| $$       >$$  $$         \  $$$/ /$$__  $| $$  | $| $$ | $$ /$\____  $$
|  $$$$$$|  $$$$$$$/$$/\  $$         \  $/ |  $$$$$$|  $$$$$$| $$ |  $$$$/$$$$$$$/
 \_______/\_______|__/  \__/          \_/   \_______/\______/|__/  \___/|_______/ */
                                                                                  
// An Open X Project                                                                                  

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "./Interfaces/IVelodromePair.sol";

import './Interfaces/IGauge.sol';
import "./Interfaces/IACX.sol";
import "./Interfaces/IWETH.sol";
import "./acxToken.sol";
import "./lpHelper.sol";

contract vaultFactory is Ownable, lpHelper{
    using SafeMath for uint256;

	// The struct for the pool information.
	struct PoolInfo {
		address rewardToken;
		address underlyingLp;
		address acxToken;
		address gauge;
		uint256 totalStaked;
		address[] path;
		uint256 lastCollectionTimestamp;
	}

	// Array of pools and mapping to check if pair already exists.
	PoolInfo[] public Pools;
	mapping(address => bool) public pairExists;

	// Variables for fees.
	uint256 public bountyfeePer10K = 100;
	uint256 public performanceFeePer10K = 600;
	uint256 public zapFeePer10K = 10;
	uint256 public perfPool = 0;


	address public weth = 0x4200000000000000000000000000000000000006;
	

	uint private unlocked = 1;
    //reentrancy guard
    modifier lock() {
        require(unlocked == 1, 'OpenX LOCKED');
        unlocked = 0;
        _;
        unlocked = 1;
    }

    // Method to get the length of pools.
	function poolsLength() public view returns (uint256){
		return Pools.length;
	}

	// Method to add a new vault.
	function addVault(address _underlyingLp, address _gauge, address[] memory path) public onlyOwner{
		require(pairExists[_underlyingLp] == false, "Pool Already Exists.");
		pairExists[_underlyingLp] = true;
		PoolInfo memory newPool;
		acxToken acx = new acxToken(string(abi.encodePacked('acx-', IVelodromePair(_underlyingLp).symbol())) , string(abi.encodePacked('Auto Compounding X ', IVelodromePair(_underlyingLp).symbol())));
		newPool.acxToken = address(acx);
		newPool.gauge = _gauge;
		newPool.underlyingLp = _underlyingLp;
		newPool.rewardToken = IGauge(_gauge).rewardToken();
		newPool.path = path;
		Pools.push(newPool);
	}

	// Method to update the path for token swaps.
	function updatePath(uint256 _pid, address[] memory _path) public onlyOwner {
		Pools[_pid].path = _path;
	}

	// Method to update the performance pool.
	function updatePerfPool(uint256 _pid) public onlyOwner{
		perfPool = _pid;
	}

	// Method to update the fees.
	function updateFees(uint256 _bountyfeePer10K, uint256 _performanceFeePer10K, uint256 _zapFeePer10K) public onlyOwner {
		require(_bountyfeePer10K.add(_performanceFeePer10K).add(_zapFeePer10K) <= 1000, "Max 10%");
		bountyfeePer10K = _bountyfeePer10K;
		performanceFeePer10K = _performanceFeePer10K;
		zapFeePer10K = _zapFeePer10K;
	}


	// Method to deposit into a pool.
	function deposit(uint256 _pid, uint256 _amount, address _to) public lock{
		IERC20 lpToken = IERC20(Pools[_pid].underlyingLp);
		safeTransferFrom(address(lpToken), msg.sender, address(this), _amount);
		_deposit(_pid, _amount, _to);
	}

	// Internal method to handle the deposit logic.
	function _deposit(uint256 _pid, uint256 _amount, address _to) internal {
		IACX acxToken = IACX(Pools[_pid].acxToken);
		IERC20 lpToken = IERC20(Pools[_pid].underlyingLp);
		IGauge gauge = IGauge(Pools[_pid].gauge);
		uint256 totalSupply = acxToken.totalSupply();

		if(totalSupply == 0){
			acxToken.mint(_to, _amount);
		}else{
			if(Pools[_pid].lastCollectionTimestamp != block.timestamp){
				Pools[_pid].lastCollectionTimestamp = block.timestamp;
				claimBounty(_pid,_to);
			}
			uint256 lpBal = gauge.balanceOf(address(this));
			
            uint256 _mintAmount = _amount.mul(totalSupply).div(lpBal);
            acxToken.mint(_to, _mintAmount);
		}


		lpToken.approve(address(gauge), _amount);
		gauge.deposit(_amount);
		Pools[_pid].totalStaked += _amount;
	}

	// Method to withdraw from a pool.
	function withdraw(uint256 _pid, uint256 _amount, address _to) public lock{
		_withdraw(_pid, _amount, msg.sender, _to);
	}

	// Internal method to handle the withdrawal logic.
	function _withdraw(uint256 _pid, uint256 _amount,address _from, address _to) internal returns(uint256) {
		IACX acxToken = IACX(Pools[_pid].acxToken);
		IERC20 lpToken = IERC20(Pools[_pid].underlyingLp);
		IGauge gauge = IGauge(Pools[_pid].gauge);
		uint256 totalSupply = acxToken.totalSupply();
		uint256 lpBal = gauge.balanceOf(address(this));
		uint256 withdrawAmount = _amount.mul(lpBal).div(totalSupply);
		
		acxToken.burn(_from, _amount);
		gauge.withdraw(withdrawAmount);
		safeTransfer(address(lpToken), _to, withdrawAmount);

		Pools[_pid].totalStaked -= withdrawAmount;
		return withdrawAmount;
	}

    // Method to claim the bounty.
    function claimBounty(uint256 _pid, address _to) public {
    	address rewardToken = Pools[_pid].rewardToken;
    	IGauge gauge = IGauge(Pools[_pid].gauge);
    	uint256 earned = gauge.earned(address(this));
    	if(earned < 1*10**17){
    		return;
    	}
    	uint256 bounty = earned.mul(bountyfeePer10K).div(10000);
    	uint256 performance = earned.mul(bountyfeePer10K).div(10000);
    	gauge.getReward(address(this));

    	safeTransfer(rewardToken, _to, bounty);

    	earned = earned.sub(performance).sub(bounty);
    	uint256 amount = _compound(_pid, earned);

    	uint256 amountPerf = _compound(perfPool, performance);
    	_deposit(perfPool, amountPerf, owner());

    	Pools[_pid].totalStaked += amount;

    	IERC20(Pools[_pid].underlyingLp).approve(address(gauge), amount);
		gauge.deposit(amount);

    }

    // Method to handle the compounding.
    function _compound(uint256 _pid, uint256 _amount) internal returns(uint256){
    	uint256 len = Pools[_pid].path.length;
    	address outToken = Pools[_pid].rewardToken;
    	for(uint i; i < len; i++){

    		(_amount, outToken) = _swapToken(Pools[_pid].path[i], outToken, _amount);
    	}
    	if(len > 0){
    		return _addLiquidity(outToken, Pools[_pid].underlyingLp,  _amount);
    	}else{
    		return _addLiquidity(Pools[_pid].rewardToken, Pools[_pid].underlyingLp,  _amount);
    	}
    }

    // Method to zap.
    function zap(uint256 _pid,address _inToken, uint256 _amount, address[] memory _path, address _to) public payable lock {
    	uint256 len = _path.length;

    	if(_inToken == weth){
    		IWETH(weth).deposit{value: msg.value}();
    	}else{
			safeTransferFrom(_inToken, msg.sender, address(this), _amount);
    	}

    	for(uint i; i < len; i++){
    		(_amount, _inToken) = _swapToken(_path[i], _inToken, _amount);
    	}

    	_amount = _addLiquidity(_inToken, Pools[_pid].underlyingLp, _amount);
    	
    	uint256 feeAmount = _amount.mul(zapFeePer10K).div(10000);
    	_deposit(_pid, feeAmount, owner());
    	_deposit(_pid, _amount.sub(feeAmount), _to);
    }

    // Method to unzap.
    function unzap(uint256 _pid,address _outToken, uint256 _amount, address[] memory _path, address _to) public lock {
    	uint256 len = _path.length;
    	address outToken = _outToken;
    	address token0 = IVelodromePair(Pools[_pid].underlyingLp).token0();
    	address token1 = IVelodromePair(Pools[_pid].underlyingLp).token1();

    	if(_outToken == address(0)){
    		_amount = _withdraw(_pid, _amount, msg.sender, address(this));
    		uint256 feeAmount = _amount.mul(zapFeePer10K).div(10000);

    		_deposit(_pid, feeAmount, owner());
    		safeTransfer(Pools[_pid].underlyingLp, Pools[_pid].underlyingLp, _amount.sub(feeAmount));
	    	(uint256 amount0, uint256 amount1) = IVelodromePair(Pools[_pid].underlyingLp).burn(address(this)); 
	    	if (token0 == weth) {
	    		IWETH(weth).withdraw(amount0);
	    		safeTransferETH(_to, amount0);
	    	}else{
				safeTransfer(token0, _to, amount0);
	    	}
	    	if (token1 == weth) {
	    		IWETH(weth).withdraw(amount1);
	    		safeTransferETH(_to, amount1);
	    	}else{
	    		safeTransfer(token1, _to, amount1);
	    	}
    	}else{
	    	_withdraw(_pid, _amount, msg.sender, Pools[_pid].underlyingLp);
	    	(uint256 amount0, uint256 amount1) = IVelodromePair(Pools[_pid].underlyingLp).burn(address(this)); 
	    	if(token0 == outToken){
	    		(_amount, outToken) = _swapToken(Pools[_pid].underlyingLp, token1, amount1);
	    		_amount += amount0;
	    	}else{
	    	    (_amount, outToken) = _swapToken(Pools[_pid].underlyingLp, token0, amount0);
	    	   	_amount += amount1;
			}

	    	for(uint i; i < len; i++){
	    		(_amount, outToken) = _swapToken(_path[i], outToken, _amount);
	    	}

	    	uint256 feeAmount = _amount.mul(zapFeePer10K).div(10000);

	    	if(_outToken == weth){
	    		IWETH(weth).withdraw(_amount);
	    		safeTransferETH(owner(), feeAmount);
	    		safeTransferETH(_to, _amount.sub(feeAmount));
	    	}else{
				safeTransfer(_outToken, owner(), feeAmount);
				safeTransfer(_outToken, _to, _amount.sub(feeAmount));
	    	}
    	}
    }

    //Receive Eth
    receive() external payable{}


    function safeTransferETH(address to, uint _value) internal {
        (bool success,) = to.call{value:_value}(new bytes(0));
        require(success, 'ETH_TRANSFER_FAILED');
    }

   	function safeTransferFrom(address token, address from, address to, uint value) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TRANSFER_FROM_FAILED');
    }

    function safeTransfer(address token, address to, uint value) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TRANSFER_FAILED');
    }

}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"name","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101005760003560e01c8063715018a611610097578063a457c2d711610066578063a457c2d71461036b578063a9059cbb146103a4578063dd62ed3e146103dd578063f2fde38b1461041857610100565b8063715018a6146102f15780638da5cb5b146102f957806395d89b411461032a5780639dc29fac1461033257610100565b8063313ce567116100d3578063313ce5671461022c578063395093511461024a57806340c10f191461028357806370a08231146102be57610100565b806306fdde0314610105578063095ea7b31461018257806318160ddd146101cf57806323b872dd146101e9575b600080fd5b61010d61044b565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014757818101518382015260200161012f565b50505050905090810190601f1680156101745780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101bb6004803603604081101561019857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356104ff565b604080519115158252519081900360200190f35b6101d761051c565b60408051918252519081900360200190f35b6101bb600480360360608110156101ff57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610522565b6102346105c3565b6040805160ff9092168252519081900360200190f35b6101bb6004803603604081101561026057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356105cc565b6102bc6004803603604081101561029957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610627565b005b6101d7600480360360208110156102d457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166106c3565b6102bc6106eb565b6103016107ed565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61010d61080e565b6102bc6004803603604081101561034857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561088d565b6101bb6004803603604081101561038157600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561093b565b6101bb600480360360408110156103ba57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356109b0565b6101d7600480360360408110156103f357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160200135166109c4565b6102bc6004803603602081101561042e57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166109fc565b60038054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104f55780601f106104ca576101008083540402835291602001916104f5565b820191906000526020600020905b8154815290600101906020018083116104d857829003601f168201915b5050505050905090565b600061051361050c610b74565b8484610b78565b50600192915050565b60025490565b600061052f848484610c8b565b6105b98461053b610b74565b6105b48560405180606001604052806028815260200161127c6028913973ffffffffffffffffffffffffffffffffffffffff8a16600090815260016020526040812090610586610b74565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020549190610e27565b610b78565b5060019392505050565b60055460ff1690565b60006105136105d9610b74565b846105b485600160006105ea610b74565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918c168152925290205490610ebe565b61062f610b74565b73ffffffffffffffffffffffffffffffffffffffff1661064d6107ed565b73ffffffffffffffffffffffffffffffffffffffff16146106b5576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6106bf8282610f1f565b5050565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6106f3610b74565b73ffffffffffffffffffffffffffffffffffffffff166107116107ed565b73ffffffffffffffffffffffffffffffffffffffff1614610779576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600554604051600091610100900473ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580547fffffffffffffffffffffff0000000000000000000000000000000000000000ff169055565b600554610100900473ffffffffffffffffffffffffffffffffffffffff1690565b60048054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104f55780601f106104ca576101008083540402835291602001916104f5565b6108956107ed565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610931573373ffffffffffffffffffffffffffffffffffffffff831614610931576040805162461bcd60e51b815260206004820152600260248201527f4e6f000000000000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b6106bf8282611036565b6000610513610948610b74565b846105b48560405180606001604052806025815260200161130e6025913960016000610972610b74565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918d16815292529020549190610e27565b60006105136109bd610b74565b8484610c8b565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b610a04610b74565b73ffffffffffffffffffffffffffffffffffffffff16610a226107ed565b73ffffffffffffffffffffffffffffffffffffffff1614610a8a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610adc5760405162461bcd60e51b815260040180806020018281038252602681526020018061120e6026913960400191505060405180910390fd5b60055460405173ffffffffffffffffffffffffffffffffffffffff80841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36005805473ffffffffffffffffffffffffffffffffffffffff909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b3390565b73ffffffffffffffffffffffffffffffffffffffff8316610bca5760405162461bcd60e51b81526004018080602001828103825260248152602001806112ea6024913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216610c1c5760405162461bcd60e51b81526004018080602001828103825260228152602001806112346022913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b73ffffffffffffffffffffffffffffffffffffffff8316610cdd5760405162461bcd60e51b81526004018080602001828103825260258152602001806112c56025913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216610d2f5760405162461bcd60e51b81526004018080602001828103825260238152602001806111c96023913960400191505060405180910390fd5b610d3a838383611166565b610d84816040518060600160405280602681526020016112566026913973ffffffffffffffffffffffffffffffffffffffff86166000908152602081905260409020549190610e27565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152602081905260408082209390935590841681522054610dc09082610ebe565b73ffffffffffffffffffffffffffffffffffffffff8084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610eb65760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e7b578181015183820152602001610e63565b50505050905090810190601f168015610ea85780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610f18576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b73ffffffffffffffffffffffffffffffffffffffff8216610f87576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610f9360008383611166565b600254610fa09082610ebe565b60025573ffffffffffffffffffffffffffffffffffffffff8216600090815260208190526040902054610fd39082610ebe565b73ffffffffffffffffffffffffffffffffffffffff83166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b73ffffffffffffffffffffffffffffffffffffffff82166110885760405162461bcd60e51b81526004018080602001828103825260218152602001806112a46021913960400191505060405180910390fd5b61109482600083611166565b6110de816040518060600160405280602281526020016111ec6022913973ffffffffffffffffffffffffffffffffffffffff85166000908152602081905260409020549190610e27565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902055600254611111908261116b565b60025560408051828152905160009173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b505050565b6000828211156111c2576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b5090039056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122085df8449fea57341989f2b795e9a8fcc0b99d1bf7d02d2d3c9d9bbff23ebcc9464736f6c634300060c0033

Deployed Bytecode Sourcemap

277:412:9:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2168:89:2;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4244:166;;;;;;;;;;;;;;;;-1:-1:-1;4244:166:2;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;3235:106;;;:::i;:::-;;;;;;;;;;;;;;;;4877:317;;;;;;;;;;;;;;;;-1:-1:-1;4877:317:2;;;;;;;;;;;;;;;;;;:::i;3086:89::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;5589:215;;;;;;;;;;;;;;;;-1:-1:-1;5589:215:2;;;;;;;;;:::i;408:93:9:-;;;;;;;;;;;;;;;;-1:-1:-1;408:93:9;;;;;;;;;:::i;:::-;;3399:125:2;;;;;;;;;;;;;;;;-1:-1:-1;3399:125:2;;;;:::i;1717:145:0:-;;;:::i;1085:85::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;2370:93:2;;;:::i;507:180:9:-;;;;;;;;;;;;;;;;-1:-1:-1;507:180:9;;;;;;;;;:::i;6291:266:2:-;;;;;;;;;;;;;;;;-1:-1:-1;6291:266:2;;;;;;;;;:::i;3727:172::-;;;;;;;;;;;;;;;;-1:-1:-1;3727:172:2;;;;;;;;;:::i;3957:149::-;;;;;;;;;;;;;;;;-1:-1:-1;3957:149:2;;;;;;;;;;;:::i;2011:240:0:-;;;;;;;;;;;;;;;;-1:-1:-1;2011:240:0;;;;:::i;2168:89:2:-;2245:5;2238:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2213:13;;2238:12;;2245:5;;2238:12;;2245:5;2238:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2168:89;:::o;4244:166::-;4327:4;4343:39;4352:12;:10;:12::i;:::-;4366:7;4375:6;4343:8;:39::i;:::-;-1:-1:-1;4399:4:2;4244:166;;;;:::o;3235:106::-;3322:12;;3235:106;:::o;4877:317::-;4983:4;4999:36;5009:6;5017:9;5028:6;4999:9;:36::i;:::-;5045:121;5054:6;5062:12;:10;:12::i;:::-;5076:89;5114:6;5076:89;;;;;;;;;;;;;;;;;:19;;;;;;;:11;:19;;;;;;5096:12;:10;:12::i;:::-;5076:33;;;;;;;;;;;;;-1:-1:-1;5076:33:2;;;:89;:37;:89::i;:::-;5045:8;:121::i;:::-;-1:-1:-1;5183:4:2;4877:317;;;;;:::o;3086:89::-;3159:9;;;;3086:89;:::o;5589:215::-;5677:4;5693:83;5702:12;:10;:12::i;:::-;5716:7;5725:50;5764:10;5725:11;:25;5737:12;:10;:12::i;:::-;5725:25;;;;;;;;;;;;;;;;;;-1:-1:-1;5725:25:2;;;:34;;;;;;;;;;;:38;:50::i;408:93:9:-;1308:12:0;:10;:12::i;:::-;1297:23;;:7;:5;:7::i;:::-;:23;;;1289:68;;;;;-1:-1:-1;;;1289:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;475:19:9::1;481:3;486:7;475:5;:19::i;:::-;408:93:::0;;:::o;3399:125:2:-;3499:18;;3473:7;3499:18;;;;;;;;;;;;3399:125::o;1717:145:0:-;1308:12;:10;:12::i;:::-;1297:23;;:7;:5;:7::i;:::-;:23;;;1289:68;;;;;-1:-1:-1;;;1289:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1807:6:::1;::::0;1786:40:::1;::::0;1823:1:::1;::::0;1807:6:::1;::::0;::::1;1786:40;1807:6;::::0;1786:40:::1;::::0;1823:1;;1786:40:::1;1836:6;:19:::0;;;::::1;::::0;;1717:145::o;1085:85::-;1157:6;;;;;;;;1085:85::o;2370:93:2:-;2449:7;2442:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2417:13;;2442:14;;2449:7;;2442:14;;2449:7;2442:14;;;;;;;;;;;;;;;;;;;;;;;;507:180:9;586:7;:5;:7::i;:::-;572:21;;:10;:21;;;569:84;;616:10;:19;;;;608:34;;;;;-1:-1:-1;;;608:34:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;659:21;665:5;672:7;659:5;:21::i;6291:266:2:-;6384:4;6400:129;6409:12;:10;:12::i;:::-;6423:7;6432:96;6471:15;6432:96;;;;;;;;;;;;;;;;;:11;:25;6444:12;:10;:12::i;:::-;6432:25;;;;;;;;;;;;;;;;;;-1:-1:-1;6432:25:2;;;:34;;;;;;;;;;;:96;:38;:96::i;3727:172::-;3813:4;3829:42;3839:12;:10;:12::i;:::-;3853:9;3864:6;3829:9;:42::i;3957:149::-;4072:18;;;;4046:7;4072:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;3957:149::o;2011:240:0:-;1308:12;:10;:12::i;:::-;1297:23;;:7;:5;:7::i;:::-;:23;;;1289:68;;;;;-1:-1:-1;;;1289:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2099:22:::1;::::0;::::1;2091:73;;;;-1:-1:-1::0;;;2091:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2200:6;::::0;2179:38:::1;::::0;::::1;::::0;;::::1;::::0;2200:6:::1;::::0;::::1;;::::0;2179:38:::1;::::0;;;::::1;2227:6;:17:::0;;::::1;::::0;;::::1;;;::::0;;;::::1;::::0;;;::::1;::::0;;2011:240::o;598:104:4:-;685:10;598:104;:::o;9355:340:2:-;9456:19;;;9448:68;;;;-1:-1:-1;;;9448:68:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9534:21;;;9526:68;;;;-1:-1:-1;;;9526:68:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9605:18;;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;9656:32;;;;;;;;;;;;;;;;;9355:340;;;:::o;7031:530::-;7136:20;;;7128:70;;;;-1:-1:-1;;;7128:70:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7216:23;;;7208:71;;;;-1:-1:-1;;;7208:71:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7290:47;7311:6;7319:9;7330:6;7290:20;:47::i;:::-;7368:71;7390:6;7368:71;;;;;;;;;;;;;;;;;:17;;;:9;:17;;;;;;;;;;;;:71;:21;:71::i;:::-;7348:17;;;;:9;:17;;;;;;;;;;;:91;;;;7472:20;;;;;;;:32;;7497:6;7472:24;:32::i;:::-;7449:20;;;;:9;:20;;;;;;;;;;;;:55;;;;7519:35;;;;;;;7449:20;;7519:35;;;;;;;;;;;;;7031:530;;;:::o;5432:163:1:-;5518:7;5553:12;5545:6;;;;5537:29;;;;-1:-1:-1;5537:29:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5583:5:1;;;5432:163::o;2690:175::-;2748:7;2779:5;;;2802:6;;;;2794:46;;;;;-1:-1:-1;;;2794:46:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;2857:1;2690:175;-1:-1:-1;;;2690:175:1:o;7832:370:2:-;7915:21;;;7907:65;;;;;-1:-1:-1;;;7907:65:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;7983:49;8012:1;8016:7;8025:6;7983:20;:49::i;:::-;8058:12;;:24;;8075:6;8058:16;:24::i;:::-;8043:12;:39;8113:18;;;:9;:18;;;;;;;;;;;:30;;8136:6;8113:22;:30::i;:::-;8092:18;;;:9;:18;;;;;;;;;;;:51;;;;8158:37;;;;;;;8092:18;;:9;;8158:37;;;;;;;;;;7832:370;;:::o;8522:410::-;8605:21;;;8597:67;;;;-1:-1:-1;;;8597:67:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8675:49;8696:7;8713:1;8717:6;8675:20;:49::i;:::-;8756:68;8779:6;8756:68;;;;;;;;;;;;;;;;;:18;;;:9;:18;;;;;;;;;;;;:68;:22;:68::i;:::-;8735:18;;;:9;:18;;;;;;;;;;:89;8849:12;;:24;;8866:6;8849:16;:24::i;:::-;8834:12;:39;8888:37;;;;;;;;8914:1;;8888:37;;;;;;;;;;;;;8522:410;;:::o;10701:92::-;;;;:::o;3136:155:1:-;3194:7;3226:1;3221;:6;;3213:49;;;;;-1:-1:-1;;;3213:49:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3279:5:1;;;3136:155::o

Swarm Source

ipfs://85df8449fea57341989f2b795e9a8fcc0b99d1bf7d02d2d3c9d9bbff23ebcc94

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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