ETH Price: $3,489.21 (+3.66%)
Gas: 3 Gwei

Contract

0xA6B816010Ab51e088C4F19c71ABa87E54b422E14
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00
Transaction Hash
Method
Block
From
To
Value
Claim Reward200378252024-06-07 5:21:3523 days ago1717737695IN
Pepe Coin: BasedAI Staking
0 ETH0.000405359.26931629
Withdraw200270642024-06-05 17:16:5925 days ago1717607819IN
Pepe Coin: BasedAI Staking
0 ETH0.0006730321.84403826
Withdraw200270462024-06-05 17:13:2325 days ago1717607603IN
Pepe Coin: BasedAI Staking
0 ETH0.0007145223.23591724
Withdraw200205812024-06-04 19:35:1126 days ago1717529711IN
Pepe Coin: BasedAI Staking
0 ETH0.001657715.89967978
Withdraw200202572024-06-04 18:29:4726 days ago1717525787IN
Pepe Coin: BasedAI Staking
0 ETH0.0015763813.85379311
Withdraw200201362024-06-04 18:05:3526 days ago1717524335IN
Pepe Coin: BasedAI Staking
0 ETH0.0015207417.46934001
Withdraw200200002024-06-04 17:38:2326 days ago1717522703IN
Pepe Coin: BasedAI Staking
0 ETH0.0015896616.44133256
Withdraw200199762024-06-04 17:33:3526 days ago1717522415IN
Pepe Coin: BasedAI Staking
0 ETH0.0015501414.88353006
Withdraw200199532024-06-04 17:28:5926 days ago1717522139IN
Pepe Coin: BasedAI Staking
0 ETH0.0013204412.6781008
Withdraw200192102024-06-04 14:59:4726 days ago1717513187IN
Pepe Coin: BasedAI Staking
0 ETH0.0011386910.93296952
Withdraw200190252024-06-04 14:22:4726 days ago1717510967IN
Pepe Coin: BasedAI Staking
0 ETH0.0012407711.9131405
Withdraw200188112024-06-04 13:39:3526 days ago1717508375IN
Pepe Coin: BasedAI Staking
0 ETH0.0010617210.19399965
Withdraw200178632024-06-04 10:28:5926 days ago1717496939IN
Pepe Coin: BasedAI Staking
0 ETH0.000616285.91716471
Withdraw200178242024-06-04 10:21:1126 days ago1717496471IN
Pepe Coin: BasedAI Staking
0 ETH0.00055736.40376879
Withdraw200173172024-06-04 8:38:5926 days ago1717490339IN
Pepe Coin: BasedAI Staking
0 ETH0.000616567.08276016
Withdraw200171372024-06-04 8:02:3526 days ago1717488155IN
Pepe Coin: BasedAI Staking
0 ETH0.000824347.91479314
Withdraw200167912024-06-04 6:53:1126 days ago1717483991IN
Pepe Coin: BasedAI Staking
0 ETH0.000533146.12616386
Withdraw200156652024-06-04 3:07:1127 days ago1717470431IN
Pepe Coin: BasedAI Staking
0 ETH0.000874629.04598503
Withdraw200148692024-06-04 0:27:2327 days ago1717460843IN
Pepe Coin: BasedAI Staking
0 ETH0.000642416.1680072
Withdraw200144702024-06-03 23:07:3527 days ago1717456055IN
Pepe Coin: BasedAI Staking
0 ETH0.000560116.43512568
Withdraw200144572024-06-03 23:04:5927 days ago1717455899IN
Pepe Coin: BasedAI Staking
0 ETH0.000544356.25497347
Withdraw200144102024-06-03 22:55:2327 days ago1717455323IN
Pepe Coin: BasedAI Staking
0 ETH0.000718466.89981064
Withdraw200142582024-06-03 22:24:5927 days ago1717453499IN
Pepe Coin: BasedAI Staking
0 ETH0.000907068.70900899
Withdraw200142242024-06-03 22:18:1127 days ago1717453091IN
Pepe Coin: BasedAI Staking
0 ETH0.000807217.74949896
Withdraw200139982024-06-03 21:32:4727 days ago1717450367IN
Pepe Coin: BasedAI Staking
0 ETH0.0012767312.25983572
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
basedAIFarm

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-06-12
*/

//
// ██████╗  █████╗ ███████╗███████╗██████╗      █████╗ ██╗
// ██╔══██╗██╔══██╗██╔════╝██╔════╝██╔══██╗    ██╔══██╗██║
// ██████╔╝███████║███████╗█████╗  ██║  ██║    ███████║██║
// ██╔══██╗██╔══██║╚════██║██╔══╝  ██║  ██║    ██╔══██║██║
// ██████╔╝██║  ██║███████║███████╗██████╔╝    ██║  ██║██║
// ╚═════╝ ╚═╝  ╚═╝╚══════╝╚══════╝╚═════╝     ╚═╝  ╚═╝╚═╝
//                                                       
//  Decentralized Distrubuted AI - an innovative platform designed for GPU mining of AI data and models.
//
// Telegram: https://t.me/TheBasedProject

// File: @openzeppelin/contracts/GSN/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;
    }
}


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


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


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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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




/**
 * @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 returns (string memory) {
        return _name;
    }

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

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

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

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

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

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

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

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

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

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

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

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



/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

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

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}



/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

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

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

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

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

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

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

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



contract basedAIFarm is Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;
    // Info of each user.
    struct UserInfo {
        uint256 amount; // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
        //
        // We do some fancy math here. Basically, any point in time, the amount of basedAI
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (userInfo.amount * pool.accbasedAIPerShare) - userInfo.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's accbasedAIPerShare (and lastRewardBlock) gets updated.
        //   2. User receives the pending reward sent to his/her address.
        //   3. User's amount gets updated.
        //   4. User's rewardDebt gets updated.
    }

    // Info of each pool.
    struct PoolInfo {
        IERC20 token; // Address of token or LP contract
        uint256 allocPoint; // How many allocation points assigned to this pool. basedAI to distribute per block.
        uint256 lastRewardBlock; // Last block number that basedAI distribution occurs.
        uint256 accbasedAIPerShare; // Accumulated basedAI per share, times 1e18. See below.
    }

    // Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;
    // The block number when basedAI mining starts ->

    // max reward block
    uint256 public maxRewardBlockNumber;

    // rewad per block in wei
    uint256 public rewardPerBlock;

    // Accumulated basedAI per share, times 1e18.
    uint256 public accbasedAIPerShareMultiple = 1e18;
    // The basedAI token!
    IERC20 public basedAI;

    // Info on each pool added
    PoolInfo[] public poolInfo;
    // Info of each user that stakes tokens.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event ClaimReward(address indexed user, uint256 indexed pid);

    constructor(
        IERC20 _basedAI,
        uint256 _rewardPerBlock,
        uint256 _maxRewardBlockNumber
    ) public {
        basedAI = _basedAI;
        rewardPerBlock = _rewardPerBlock;
        maxRewardBlockNumber = _maxRewardBlockNumber;
    }

    // Get total reward in selected pool
    function getTotalRewardByPoolId(uint256 _pid, address _address)
        public
        view
        returns (uint256)
    {
        UserInfo storage user = userInfo[_pid][_address];

        uint256 poolRewardPerShare = getPoolRewardPerShare(_pid);
        uint256 totalReward =
            user
                .amount
                .mul(poolRewardPerShare)
                .div(accbasedAIPerShareMultiple)
                .sub(user.rewardDebt);

        return totalReward;
    }

    // Get total reward in all pools
    function getTotalReward(address _address) public view returns (uint256) {
        uint256 totalReward = 0;
        uint256 length = poolInfo.length;

        for (uint256 pid = 0; pid < length; ++pid) {
            UserInfo storage user = userInfo[pid][_address];

            uint256 poolRewardPerShare = getPoolRewardPerShare(pid);

            totalReward = totalReward.add(
                user
                    .amount
                    .mul(poolRewardPerShare)
                    .div(accbasedAIPerShareMultiple)
                    .sub(user.rewardDebt)
            );
        }

        return totalReward;
    }

    // Pool Length
    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    // Update maxRewardBlockNumber
    function updateMaxRewardBlockNumber(uint256 _newMaxRewardBlockNumber)
        public
        onlyOwner
    {
        maxRewardBlockNumber = _newMaxRewardBlockNumber;
    }

    // Update rewardPerBlock
    function updateRewardPerBlock(uint256 _rewardPerBlock) public onlyOwner {
        rewardPerBlock = _rewardPerBlock;
    }

    // Redeem all reward Tokens
    function redeemAllRewards(address _to) public onlyOwner {
        uint256 basedAIBal = basedAI.balanceOf(address(this));
        basedAI.transfer(_to, basedAIBal);
    }

    // Add a new token or LP to the pool. Can only be called by the owner.
    // XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do!
    function add(
        uint256 _allocPoint,
        IERC20 _token, // lp token address
        bool _withUpdate
    ) public onlyOwner {
        require(_allocPoint > 0, "AllocPoint can't be null");

        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock = block.number;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(
            PoolInfo({
                token: _token,
                allocPoint: _allocPoint,
                lastRewardBlock: lastRewardBlock,
                accbasedAIPerShare: 0
            })
        );
    }

    // Update the given pool's basedAI allocation point. Can only be called by the owner.
    function set(
        uint256 _pid,
        uint256 _allocPoint,
        bool _withUpdate
    ) public onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(
            _allocPoint
        );
        poolInfo[_pid].allocPoint = _allocPoint;
    }

    // Update reward vairables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        require(
            pool.lastRewardBlock <= maxRewardBlockNumber,
            "Max pool cap already reached, you cant join this pool"
        );
        pool.accbasedAIPerShare = getPoolRewardPerShare(_pid);
        pool.lastRewardBlock = block.number;
    }

    // Safe basedAI transfer function, just in case if rounding error causes pool to not have enough $basedAI
    function safebasedAITransfer(address _to, uint256 _amount) internal {
        uint256 basedAIBal = basedAI.balanceOf(address(this));
        if (_amount > basedAIBal) {
            basedAI.transfer(_to, basedAIBal);
        } else {
            basedAI.transfer(_to, _amount);
        }
    }

    // Deposit tokens to basedAIFarmTest for basedAI allocation.
    function deposit(uint256 _pid, uint256 _amount) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending =
                user
                    .amount
                    .mul(pool.accbasedAIPerShare)
                    .div(accbasedAIPerShareMultiple)
                    .sub(user.rewardDebt);
            if (pending > 0) {
                safebasedAITransfer(msg.sender, pending);
            }
        }

        pool.token.safeTransferFrom(
            address(msg.sender),
            address(this),
            _amount
        );
        user.amount = user.amount.add(_amount);

        user.rewardDebt = user.amount.mul(pool.accbasedAIPerShare).div(
            accbasedAIPerShareMultiple
        );
        emit Deposit(msg.sender, _pid, _amount);
    }

    // Withdraw tokens from basedAIFarmTest
    function withdraw(uint256 _pid, uint256 _amount) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(_pid);

        uint256 pending =
            user
                .amount
                .mul(pool.accbasedAIPerShare)
                .div(accbasedAIPerShareMultiple)
                .sub(user.rewardDebt);

        if (pending > 0) {
            safebasedAITransfer(msg.sender, pending);
        }

        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.token.safeTransfer(address(msg.sender), _amount);
        }

        user.rewardDebt = user.amount.mul(pool.accbasedAIPerShare).div(
            accbasedAIPerShareMultiple
        );
        emit Withdraw(msg.sender, _pid, _amount);
    }

    // Withdraw tokens from basedAIFarmTest
    function claimReward(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        uint256 poolRewardPerShare = getPoolRewardPerShare(_pid);

        uint256 pending =
            user
                .amount
                .mul(poolRewardPerShare)
                .div(accbasedAIPerShareMultiple)
                .sub(user.rewardDebt);

        if (pending > 0) {
            safebasedAITransfer(msg.sender, pending);
        }

        user.rewardDebt = user.amount.mul(poolRewardPerShare).div(
            accbasedAIPerShareMultiple
        );
        emit ClaimReward(msg.sender, _pid);
    }

    // Safe basedAI transfer function, just in case if rounding error causes pool to not have enough $basedAI
    function getPoolRewardPerShare(uint256 _pid)
        internal
        view
        returns (uint256)
    {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number < pool.lastRewardBlock) {
            return 0;
        }
        uint256 lpSupply = pool.token.balanceOf(address(this));
        if (lpSupply == 0) {
            return 0;
        }
        if (pool.lastRewardBlock > maxRewardBlockNumber) {
            return 0;
        }

        uint256 currentRewardBlock = block.number;
        if (block.number >= maxRewardBlockNumber) {
            currentRewardBlock = maxRewardBlockNumber;
        }

        uint256 totalReward =
            (currentRewardBlock.sub(pool.lastRewardBlock)).mul(rewardPerBlock);

        uint256 basedAIReward =
            totalReward.mul(pool.allocPoint).div(totalAllocPoint);

        return
            pool.accbasedAIPerShare.add(
                basedAIReward.mul(accbasedAIPerShareMultiple).div(lpSupply)
            );
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_basedAI","type":"address"},{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"},{"internalType":"uint256","name":"_maxRewardBlockNumber","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"}],"name":"ClaimReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","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":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"accbasedAIPerShareMultiple","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"basedAI","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getTotalReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_address","type":"address"}],"name":"getTotalRewardByPoolId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxRewardBlockNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accbasedAIPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"redeemAllRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxRewardBlockNumber","type":"uint256"}],"name":"updateMaxRewardBlockNumber","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"}],"name":"updateRewardPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600155670de0b6b3a764000060045534801561002157600080fd5b506040516200296c3803806200296c8339818101604052606081101561004657600080fd5b81019080805190602001909291908051906020019092919080519060200190929190505050600061007b61017060201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35082600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160038190555080600281905550505050610178565b600033905090565b6127e480620001886000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c8063715018a6116100c3578063ae169a501161007c578063ae169a50146104e4578063b2cf6c3414610512578063d34f07b714610530578063d5fcda0f14610564578063e2bbb158146105c6578063f2fde38b146105fe5761014d565b8063715018a6146103bd5780638ae39cac146103c75780638da5cb5b146103e557806393f1a40b14610419578063996b8cd014610482578063a5f8d4e6146104c65761014d565b80631eaaa045116101155780631eaaa0451461025757806334381749146102b1578063441a3e701461030957806351eb05a614610341578063630b5ba11461036f57806364482f79146103795761014d565b806301f8a97614610152578063081e3eda146101805780630d5064001461019e5780631526fe27146101cc57806317caf6f114610239575b600080fd5b61017e6004803603602081101561016857600080fd5b8101908080359060200190929190505050610642565b005b610188610714565b6040518082815260200191505060405180910390f35b6101ca600480360360208110156101b457600080fd5b8101908080359060200190929190505050610721565b005b6101f8600480360360208110156101e257600080fd5b81019080803590602001909291905050506107f3565b604051808573ffffffffffffffffffffffffffffffffffffffff16815260200184815260200183815260200182815260200194505050505060405180910390f35b610241610853565b6040518082815260200191505060405180910390f35b6102af6004803603606081101561026d57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050610859565b005b6102f3600480360360208110156102c757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a96565b6040518082815260200191505060405180910390f35b61033f6004803603604081101561031f57600080fd5b810190808035906020019092919080359060200190929190505050610b80565b005b61036d6004803603602081101561035757600080fd5b8101908080359060200190929190505050610dd8565b005b610377610e74565b005b6103bb6004803603606081101561038f57600080fd5b810190808035906020019092919080359060200190929190803515159060200190929190505050610ea1565b005b6103c5610feb565b005b6103cf611171565b6040518082815260200191505060405180910390f35b6103ed611177565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104656004803603604081101561042f57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506111a0565b604051808381526020018281526020019250505060405180910390f35b6104c46004803603602081101561049857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506111d1565b005b6104ce611434565b6040518082815260200191505060405180910390f35b610510600480360360208110156104fa57600080fd5b810190808035906020019092919050505061143a565b005b61051a611591565b6040518082815260200191505060405180910390f35b610538611597565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105b06004803603604081101561057a57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506115bd565b6040518082815260200191505060405180910390f35b6105fc600480360360408110156105dc57600080fd5b810190808035906020019092919080359060200190929190505050611670565b005b6106406004803603602081101561061457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611854565b005b61064a611a5f565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461070a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8060038190555050565b6000600680549050905090565b610729611a5f565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146107e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8060028190555050565b6006818154811061080357600080fd5b90600052602060002090600402016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154905084565b60015481565b610861611a5f565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610921576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60008311610997576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f416c6c6f63506f696e742063616e2774206265206e756c6c000000000000000081525060200191505060405180910390fd5b80156109a6576109a5610e74565b5b60004390506109c084600154611a6790919063ffffffff16565b600181905550600660405180608001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020018681526020018381526020016000815250908060018154018082558091505060019003906000526020600020906004020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101556040820151816002015560608201518160030155505050505050565b600080600090506000600680549050905060005b81811015610b755760006007600083815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000610b1183611aef565b9050610b66610b578360010154610b49600454610b3b868860000154611cd890919063ffffffff16565b611d5e90919063ffffffff16565b611da890919063ffffffff16565b86611a6790919063ffffffff16565b94505050806001019050610aaa565b508192505050919050565b600060068381548110610b8f57fe5b9060005260206000209060040201905060006007600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508281600001541015610c6d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f77697468647261773a206e6f7420676f6f64000000000000000000000000000081525060200191505060405180910390fd5b610c7684610dd8565b6000610cbd8260010154610caf600454610ca187600301548760000154611cd890919063ffffffff16565b611d5e90919063ffffffff16565b611da890919063ffffffff16565b90506000811115610cd357610cd23382611df2565b5b6000841115610d4b57610cf3848360000154611da890919063ffffffff16565b8260000181905550610d4a33858560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661206b9092919063ffffffff16565b5b610d7a600454610d6c85600301548560000154611cd890919063ffffffff16565b611d5e90919063ffffffff16565b8260010181905550843373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568866040518082815260200191505060405180910390a35050505050565b600060068281548110610de757fe5b9060005260206000209060040201905060025481600201541115610e56576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603581526020018061272f6035913960400191505060405180910390fd5b610e5f82611aef565b81600301819055504381600201819055505050565b6000600680549050905060005b81811015610e9d57610e9281610dd8565b806001019050610e81565b5050565b610ea9611a5f565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f69576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8015610f7857610f77610e74565b5b610fbd82610faf60068681548110610f8c57fe5b906000526020600020906004020160010154600154611da890919063ffffffff16565b611a6790919063ffffffff16565b6001819055508160068481548110610fd157fe5b906000526020600020906004020160010181905550505050565b610ff3611a5f565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60035481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6007602052816000526040600020602052806000526040600020600091509150508060000154908060010154905082565b6111d9611a5f565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611299576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561132457600080fd5b505afa158015611338573d6000803e3d6000fd5b505050506040513d602081101561134e57600080fd5b81019080805190602001909291905050509050600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156113f457600080fd5b505af1158015611408573d6000803e3d6000fd5b505050506040513d602081101561141e57600080fd5b8101908080519060200190929190505050505050565b60025481565b60006006828154811061144957fe5b9060005260206000209060040201905060006007600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060006114b884611aef565b905060006114fd83600101546114ef6004546114e1868860000154611cd890919063ffffffff16565b611d5e90919063ffffffff16565b611da890919063ffffffff16565b90506000811115611513576115123382611df2565b5b61153e600454611530848660000154611cd890919063ffffffff16565b611d5e90919063ffffffff16565b8360010181905550843373ffffffffffffffffffffffffffffffffffffffff167fba8de60c3403ec381d1d484652ea1980e3c3e56359195c92525bff4ce47ad98e60405160405180910390a35050505050565b60045481565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806007600085815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600061161d85611aef565b905060006116628360010154611654600454611646868860000154611cd890919063ffffffff16565b611d5e90919063ffffffff16565b611da890919063ffffffff16565b905080935050505092915050565b60006006838154811061167f57fe5b9060005260206000209060040201905060006007600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506116ec84610dd8565b600081600001541115611758576000611740826001015461173260045461172487600301548760000154611cd890919063ffffffff16565b611d5e90919063ffffffff16565b611da890919063ffffffff16565b90506000811115611756576117553382611df2565b5b505b6117a93330858560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661210d909392919063ffffffff16565b6117c0838260000154611a6790919063ffffffff16565b81600001819055506117f76004546117e984600301548460000154611cd890919063ffffffff16565b611d5e90919063ffffffff16565b8160010181905550833373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15856040518082815260200191505060405180910390a350505050565b61185c611a5f565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461191c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156119a2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806126e36026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b600080828401905083811015611ae5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b60008060068381548110611aff57fe5b906000526020600020906004020190508060020154431015611b25576000915050611cd3565b60008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611bb257600080fd5b505afa158015611bc6573d6000803e3d6000fd5b505050506040513d6020811015611bdc57600080fd5b810190808051906020019092919050505090506000811415611c0357600092505050611cd3565b60025482600201541115611c1c57600092505050611cd3565b60004390506002544310611c305760025490505b6000611c5d600354611c4f866002015485611da890919063ffffffff16565b611cd890919063ffffffff16565b90506000611c8c600154611c7e876001015485611cd890919063ffffffff16565b611d5e90919063ffffffff16565b9050611ccb611cb885611caa60045485611cd890919063ffffffff16565b611d5e90919063ffffffff16565b8660030154611a6790919063ffffffff16565b955050505050505b919050565b600080831415611ceb5760009050611d58565b6000828402905082848281611cfc57fe5b0414611d53576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806127646021913960400191505060405180910390fd5b809150505b92915050565b6000611da083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506121ce565b905092915050565b6000611dea83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612294565b905092915050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611e7d57600080fd5b505afa158015611e91573d6000803e3d6000fd5b505050506040513d6020811015611ea757600080fd5b8101908080519060200190929190505050905080821115611f9657600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015611f5557600080fd5b505af1158015611f69573d6000803e3d6000fd5b505050506040513d6020811015611f7f57600080fd5b810190808051906020019092919050505050612066565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561202957600080fd5b505af115801561203d573d6000803e3d6000fd5b505050506040513d602081101561205357600080fd5b8101908080519060200190929190505050505b505050565b6121088363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612354565b505050565b6121c8846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612354565b50505050565b6000808311829061227a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561223f578082015181840152602081019050612224565b50505050905090810190601f16801561226c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161228657fe5b049050809150509392505050565b6000838311158290612341576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156123065780820151818401526020810190506122eb565b50505050905090810190601f1680156123335780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b60006123b6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166124439092919063ffffffff16565b905060008151111561243e578080602001905160208110156123d757600080fd5b810190808051906020019092919050505061243d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612785602a913960400191505060405180910390fd5b5b505050565b6060612452848460008561245b565b90509392505050565b6060824710156124b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806127096026913960400191505060405180910390fd5b6124bf85612603565b612531576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310612580578051825260208201915060208101905060208303925061255d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146125e2576040519150601f19603f3d011682016040523d82523d6000602084013e6125e7565b606091505b50915091506125f7828286612616565b92505050949350505050565b600080823b905060008111915050919050565b60608315612626578290506126db565b6000835111156126395782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156126a0578082015181840152602081019050612685565b50505050905090810190601f1680156126cd5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4d617820706f6f6c2063617020616c726561647920726561636865642c20796f752063616e74206a6f696e207468697320706f6f6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212204e78c45d927083f870760d445fe265d7f0f860c9c4d47001a0fe94cc51e031c764736f6c6343000706003300000000000000000000000044971abf0251958492fee97da3e5c5ada88b9185000000000000000000000000000000000000000000000000d02ab486cedc00000000000000000000000000000000000000000000000000000000000001317cc7

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061014d5760003560e01c8063715018a6116100c3578063ae169a501161007c578063ae169a50146104e4578063b2cf6c3414610512578063d34f07b714610530578063d5fcda0f14610564578063e2bbb158146105c6578063f2fde38b146105fe5761014d565b8063715018a6146103bd5780638ae39cac146103c75780638da5cb5b146103e557806393f1a40b14610419578063996b8cd014610482578063a5f8d4e6146104c65761014d565b80631eaaa045116101155780631eaaa0451461025757806334381749146102b1578063441a3e701461030957806351eb05a614610341578063630b5ba11461036f57806364482f79146103795761014d565b806301f8a97614610152578063081e3eda146101805780630d5064001461019e5780631526fe27146101cc57806317caf6f114610239575b600080fd5b61017e6004803603602081101561016857600080fd5b8101908080359060200190929190505050610642565b005b610188610714565b6040518082815260200191505060405180910390f35b6101ca600480360360208110156101b457600080fd5b8101908080359060200190929190505050610721565b005b6101f8600480360360208110156101e257600080fd5b81019080803590602001909291905050506107f3565b604051808573ffffffffffffffffffffffffffffffffffffffff16815260200184815260200183815260200182815260200194505050505060405180910390f35b610241610853565b6040518082815260200191505060405180910390f35b6102af6004803603606081101561026d57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050610859565b005b6102f3600480360360208110156102c757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a96565b6040518082815260200191505060405180910390f35b61033f6004803603604081101561031f57600080fd5b810190808035906020019092919080359060200190929190505050610b80565b005b61036d6004803603602081101561035757600080fd5b8101908080359060200190929190505050610dd8565b005b610377610e74565b005b6103bb6004803603606081101561038f57600080fd5b810190808035906020019092919080359060200190929190803515159060200190929190505050610ea1565b005b6103c5610feb565b005b6103cf611171565b6040518082815260200191505060405180910390f35b6103ed611177565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104656004803603604081101561042f57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506111a0565b604051808381526020018281526020019250505060405180910390f35b6104c46004803603602081101561049857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506111d1565b005b6104ce611434565b6040518082815260200191505060405180910390f35b610510600480360360208110156104fa57600080fd5b810190808035906020019092919050505061143a565b005b61051a611591565b6040518082815260200191505060405180910390f35b610538611597565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105b06004803603604081101561057a57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506115bd565b6040518082815260200191505060405180910390f35b6105fc600480360360408110156105dc57600080fd5b810190808035906020019092919080359060200190929190505050611670565b005b6106406004803603602081101561061457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611854565b005b61064a611a5f565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461070a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8060038190555050565b6000600680549050905090565b610729611a5f565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146107e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8060028190555050565b6006818154811061080357600080fd5b90600052602060002090600402016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154905084565b60015481565b610861611a5f565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610921576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60008311610997576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f416c6c6f63506f696e742063616e2774206265206e756c6c000000000000000081525060200191505060405180910390fd5b80156109a6576109a5610e74565b5b60004390506109c084600154611a6790919063ffffffff16565b600181905550600660405180608001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020018681526020018381526020016000815250908060018154018082558091505060019003906000526020600020906004020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101556040820151816002015560608201518160030155505050505050565b600080600090506000600680549050905060005b81811015610b755760006007600083815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000610b1183611aef565b9050610b66610b578360010154610b49600454610b3b868860000154611cd890919063ffffffff16565b611d5e90919063ffffffff16565b611da890919063ffffffff16565b86611a6790919063ffffffff16565b94505050806001019050610aaa565b508192505050919050565b600060068381548110610b8f57fe5b9060005260206000209060040201905060006007600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508281600001541015610c6d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f77697468647261773a206e6f7420676f6f64000000000000000000000000000081525060200191505060405180910390fd5b610c7684610dd8565b6000610cbd8260010154610caf600454610ca187600301548760000154611cd890919063ffffffff16565b611d5e90919063ffffffff16565b611da890919063ffffffff16565b90506000811115610cd357610cd23382611df2565b5b6000841115610d4b57610cf3848360000154611da890919063ffffffff16565b8260000181905550610d4a33858560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661206b9092919063ffffffff16565b5b610d7a600454610d6c85600301548560000154611cd890919063ffffffff16565b611d5e90919063ffffffff16565b8260010181905550843373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568866040518082815260200191505060405180910390a35050505050565b600060068281548110610de757fe5b9060005260206000209060040201905060025481600201541115610e56576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603581526020018061272f6035913960400191505060405180910390fd5b610e5f82611aef565b81600301819055504381600201819055505050565b6000600680549050905060005b81811015610e9d57610e9281610dd8565b806001019050610e81565b5050565b610ea9611a5f565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f69576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8015610f7857610f77610e74565b5b610fbd82610faf60068681548110610f8c57fe5b906000526020600020906004020160010154600154611da890919063ffffffff16565b611a6790919063ffffffff16565b6001819055508160068481548110610fd157fe5b906000526020600020906004020160010181905550505050565b610ff3611a5f565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60035481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6007602052816000526040600020602052806000526040600020600091509150508060000154908060010154905082565b6111d9611a5f565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611299576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561132457600080fd5b505afa158015611338573d6000803e3d6000fd5b505050506040513d602081101561134e57600080fd5b81019080805190602001909291905050509050600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156113f457600080fd5b505af1158015611408573d6000803e3d6000fd5b505050506040513d602081101561141e57600080fd5b8101908080519060200190929190505050505050565b60025481565b60006006828154811061144957fe5b9060005260206000209060040201905060006007600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060006114b884611aef565b905060006114fd83600101546114ef6004546114e1868860000154611cd890919063ffffffff16565b611d5e90919063ffffffff16565b611da890919063ffffffff16565b90506000811115611513576115123382611df2565b5b61153e600454611530848660000154611cd890919063ffffffff16565b611d5e90919063ffffffff16565b8360010181905550843373ffffffffffffffffffffffffffffffffffffffff167fba8de60c3403ec381d1d484652ea1980e3c3e56359195c92525bff4ce47ad98e60405160405180910390a35050505050565b60045481565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806007600085815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600061161d85611aef565b905060006116628360010154611654600454611646868860000154611cd890919063ffffffff16565b611d5e90919063ffffffff16565b611da890919063ffffffff16565b905080935050505092915050565b60006006838154811061167f57fe5b9060005260206000209060040201905060006007600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506116ec84610dd8565b600081600001541115611758576000611740826001015461173260045461172487600301548760000154611cd890919063ffffffff16565b611d5e90919063ffffffff16565b611da890919063ffffffff16565b90506000811115611756576117553382611df2565b5b505b6117a93330858560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661210d909392919063ffffffff16565b6117c0838260000154611a6790919063ffffffff16565b81600001819055506117f76004546117e984600301548460000154611cd890919063ffffffff16565b611d5e90919063ffffffff16565b8160010181905550833373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15856040518082815260200191505060405180910390a350505050565b61185c611a5f565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461191c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156119a2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806126e36026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b600080828401905083811015611ae5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b60008060068381548110611aff57fe5b906000526020600020906004020190508060020154431015611b25576000915050611cd3565b60008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611bb257600080fd5b505afa158015611bc6573d6000803e3d6000fd5b505050506040513d6020811015611bdc57600080fd5b810190808051906020019092919050505090506000811415611c0357600092505050611cd3565b60025482600201541115611c1c57600092505050611cd3565b60004390506002544310611c305760025490505b6000611c5d600354611c4f866002015485611da890919063ffffffff16565b611cd890919063ffffffff16565b90506000611c8c600154611c7e876001015485611cd890919063ffffffff16565b611d5e90919063ffffffff16565b9050611ccb611cb885611caa60045485611cd890919063ffffffff16565b611d5e90919063ffffffff16565b8660030154611a6790919063ffffffff16565b955050505050505b919050565b600080831415611ceb5760009050611d58565b6000828402905082848281611cfc57fe5b0414611d53576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806127646021913960400191505060405180910390fd5b809150505b92915050565b6000611da083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506121ce565b905092915050565b6000611dea83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612294565b905092915050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611e7d57600080fd5b505afa158015611e91573d6000803e3d6000fd5b505050506040513d6020811015611ea757600080fd5b8101908080519060200190929190505050905080821115611f9657600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015611f5557600080fd5b505af1158015611f69573d6000803e3d6000fd5b505050506040513d6020811015611f7f57600080fd5b810190808051906020019092919050505050612066565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561202957600080fd5b505af115801561203d573d6000803e3d6000fd5b505050506040513d602081101561205357600080fd5b8101908080519060200190929190505050505b505050565b6121088363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612354565b505050565b6121c8846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612354565b50505050565b6000808311829061227a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561223f578082015181840152602081019050612224565b50505050905090810190601f16801561226c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161228657fe5b049050809150509392505050565b6000838311158290612341576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156123065780820151818401526020810190506122eb565b50505050905090810190601f1680156123335780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b60006123b6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166124439092919063ffffffff16565b905060008151111561243e578080602001905160208110156123d757600080fd5b810190808051906020019092919050505061243d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612785602a913960400191505060405180910390fd5b5b505050565b6060612452848460008561245b565b90509392505050565b6060824710156124b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806127096026913960400191505060405180910390fd5b6124bf85612603565b612531576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310612580578051825260208201915060208101905060208303925061255d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146125e2576040519150601f19603f3d011682016040523d82523d6000602084013e6125e7565b606091505b50915091506125f7828286612616565b92505050949350505050565b600080823b905060008111915050919050565b60608315612626578290506126db565b6000835111156126395782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156126a0578082015181840152602081019050612685565b50505050905090810190601f1680156126cd5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4d617820706f6f6c2063617020616c726561647920726561636865642c20796f752063616e74206a6f696e207468697320706f6f6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212204e78c45d927083f870760d445fe265d7f0f860c9c4d47001a0fe94cc51e031c764736f6c63430007060033

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

00000000000000000000000044971abf0251958492fee97da3e5c5ada88b9185000000000000000000000000000000000000000000000000d02ab486cedc00000000000000000000000000000000000000000000000000000000000001317cc7

-----Decoded View---------------
Arg [0] : _basedAI (address): 0x44971ABF0251958492FeE97dA3e5C5adA88B9185
Arg [1] : _rewardPerBlock (uint256): 15000000000000000000
Arg [2] : _maxRewardBlockNumber (uint256): 20020423

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000044971abf0251958492fee97da3e5c5ada88b9185
Arg [1] : 000000000000000000000000000000000000000000000000d02ab486cedc0000
Arg [2] : 0000000000000000000000000000000000000000000000000000000001317cc7


Deployed Bytecode Sourcemap

33869:10731:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38002:123;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;37649:95;;;:::i;:::-;;;;;;;;;;;;;;;;;;;37788:176;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;35742:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35311:34;;;:::i;:::-;;;;;;;;;;;;;;;;;;;38516:632;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;36976:645;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;41800:910;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;39948:366;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;39692:180;;;:::i;:::-;;39247:362;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;3822:148;;;:::i;:::-;;35509:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;3180:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;35821:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;38166:172;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;35434:35;;;:::i;:::-;;;;;;;;;;;;;;;;;;;42763:696;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;35598:48;;;:::i;:::-;;;;;;;;;;;;;;;;;;;35680:21;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;36431:499;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;40806:941;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;4125:244;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;38002:123;3402:12;:10;:12::i;:::-;3392:22;;:6;;;;;;;;;;:22;;;3384:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38102:15:::1;38085:14;:32;;;;38002:123:::0;:::o;37649:95::-;37694:7;37721:8;:15;;;;37714:22;;37649:95;:::o;37788:176::-;3402:12;:10;:12::i;:::-;3392:22;;:6;;;;;;;;;;:22;;;3384:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37932:24:::1;37909:20;:47;;;;37788:176:::0;:::o;35742:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;35311:34::-;;;;:::o;38516:632::-;3402:12;:10;:12::i;:::-;3392:22;;:6;;;;;;;;;;:22;;;3384:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38687:1:::1;38673:11;:15;38665:52;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;38734:11;38730:61;;;38762:17;:15;:17::i;:::-;38730:61;38801:23;38827:12;38801:38;;38868:32;38888:11;38868:15;;:19;;:32;;;;:::i;:::-;38850:15;:50;;;;38911:8;38939:190;;;;;;;;38974:6;38939:190;;;;;;39011:11;38939:190;;;;39058:15;38939:190;;;;39112:1;38939:190;;::::0;38911:229:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3462:1;38516:632:::0;;;:::o;36976:645::-;37039:7;37059:19;37081:1;37059:23;;37093:14;37110:8;:15;;;;37093:32;;37143:11;37138:445;37166:6;37160:3;:12;37138:445;;;37196:21;37220:8;:13;37229:3;37220:13;;;;;;;;;;;:23;37234:8;37220:23;;;;;;;;;;;;;;;37196:47;;37260:26;37289;37311:3;37289:21;:26::i;:::-;37260:55;;37346:225;37380:176;37540:4;:15;;;37380:133;37486:26;;37380:79;37440:18;37380:4;:33;;;:59;;:79;;;;:::i;:::-;:105;;:133;;;;:::i;:::-;:159;;:176;;;;:::i;:::-;37346:11;:15;;:225;;;;:::i;:::-;37332:239;;37138:445;;37174:5;;;;;37138:445;;;;37602:11;37595:18;;;;36976:645;;;:::o;41800:910::-;41867:21;41891:8;41900:4;41891:14;;;;;;;;;;;;;;;;;;41867:38;;41916:21;41940:8;:14;41949:4;41940:14;;;;;;;;;;;:26;41955:10;41940:26;;;;;;;;;;;;;;;41916:50;;42000:7;41985:4;:11;;;:22;;41977:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42041:16;42052:4;42041:10;:16::i;:::-;42070:15;42101:165;42250:4;:15;;;42101:126;42200:26;;42101:76;42153:4;:23;;;42101:4;:29;;;:51;;:76;;;;:::i;:::-;:98;;:126;;;;:::i;:::-;:148;;:165;;;;:::i;:::-;42070:196;;42293:1;42283:7;:11;42279:84;;;42311:40;42331:10;42343:7;42311:19;:40::i;:::-;42279:84;42389:1;42379:7;:11;42375:150;;;42421:24;42437:7;42421:4;:11;;;:15;;:24;;;;:::i;:::-;42407:4;:11;;:38;;;;42460:53;42492:10;42505:7;42460:4;:10;;;;;;;;;;;;:23;;;;:53;;;;;:::i;:::-;42375:150;42555:96;42614:26;;42555:40;42571:4;:23;;;42555:4;:11;;;:15;;:40;;;;:::i;:::-;:44;;:96;;;;:::i;:::-;42537:4;:15;;:114;;;;42688:4;42676:10;42667:35;;;42694:7;42667:35;;;;;;;;;;;;;;;;;;41800:910;;;;;:::o;39948:366::-;40000:21;40024:8;40033:4;40024:14;;;;;;;;;;;;;;;;;;40000:38;;40095:20;;40071:4;:20;;;:44;;40049:147;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40233:27;40255:4;40233:21;:27::i;:::-;40207:4;:23;;:53;;;;40294:12;40271:4;:20;;:35;;;;39948:366;;:::o;39692:180::-;39737:14;39754:8;:15;;;;39737:32;;39785:11;39780:85;39808:6;39802:3;:12;39780:85;;;39838:15;39849:3;39838:10;:15::i;:::-;39816:5;;;;;39780:85;;;;39692:180;:::o;39247:362::-;3402:12;:10;:12::i;:::-;3392:22;;:6;;;;;;;;;;:22;;;3384:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39379:11:::1;39375:61;;;39407:17;:15;:17::i;:::-;39375:61;39464:87;39529:11;39464:46;39484:8;39493:4;39484:14;;;;;;;;;;;;;;;;;;:25;;;39464:15;;:19;;:46;;;;:::i;:::-;:50;;:87;;;;:::i;:::-;39446:15;:105;;;;39590:11;39562:8;39571:4;39562:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;39247:362:::0;;;:::o;3822:148::-;3402:12;:10;:12::i;:::-;3392:22;;:6;;;;;;;;;;:22;;;3384:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3929:1:::1;3892:40;;3913:6;::::0;::::1;;;;;;;;3892:40;;;;;;;;;;;;3960:1;3943:6:::0;::::1;:19;;;;;;;;;;;;;;;;;;3822:148::o:0;35509:29::-;;;;:::o;3180:79::-;3218:7;3245:6;;;;;;;;;;;3238:13;;3180:79;:::o;35821:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;38166:172::-;3402:12;:10;:12::i;:::-;3392:22;;:6;;;;;;;;;;:22;;;3384:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38233:18:::1;38254:7;;;;;;;;;;;:17;;;38280:4;38254:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;38233:53;;38297:7;;;;;;;;;;;:16;;;38314:3;38319:10;38297:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;3462:1;38166:172:::0;:::o;35434:35::-;;;;:::o;42763:696::-;42816:21;42840:8;42849:4;42840:14;;;;;;;;;;;;;;;;;;42816:38;;42865:21;42889:8;:14;42898:4;42889:14;;;;;;;;;;;:26;42904:10;42889:26;;;;;;;;;;;;;;;42865:50;;42928:26;42957:27;42979:4;42957:21;:27::i;:::-;42928:56;;42997:15;43028:160;43172:4;:15;;;43028:121;43122:26;;43028:71;43080:18;43028:4;:29;;;:51;;:71;;;;:::i;:::-;:93;;:121;;;;:::i;:::-;:143;;:160;;;;:::i;:::-;42997:191;;43215:1;43205:7;:11;43201:84;;;43233:40;43253:10;43265:7;43233:19;:40::i;:::-;43201:84;43315:91;43369:26;;43315:35;43331:18;43315:4;:11;;;:15;;:35;;;;:::i;:::-;:39;;:91;;;;:::i;:::-;43297:4;:15;;:109;;;;43446:4;43434:10;43422:29;;;;;;;;;;;;42763:696;;;;;:::o;35598:48::-;;;;:::o;35680:21::-;;;;;;;;;;;;;:::o;36431:499::-;36543:7;36568:21;36592:8;:14;36601:4;36592:14;;;;;;;;;;;:24;36607:8;36592:24;;;;;;;;;;;;;;;36568:48;;36629:26;36658:27;36680:4;36658:21;:27::i;:::-;36629:56;;36696:19;36731:160;36875:4;:15;;;36731:121;36825:26;;36731:71;36783:18;36731:4;:29;;;:51;;:71;;;;:::i;:::-;:93;;:121;;;;:::i;:::-;:143;;:160;;;;:::i;:::-;36696:195;;36911:11;36904:18;;;;;36431:499;;;;:::o;40806:941::-;40872:21;40896:8;40905:4;40896:14;;;;;;;;;;;;;;;;;;40872:38;;40921:21;40945:8;:14;40954:4;40945:14;;;;;;;;;;;:26;40960:10;40945:26;;;;;;;;;;;;;;;40921:50;;40982:16;40993:4;40982:10;:16::i;:::-;41027:1;41013:4;:11;;;:15;41009:370;;;41045:15;41080:181;41245:4;:15;;;41080:138;41191:26;;41080:84;41140:4;:23;;;41080:4;:33;;;:59;;:84;;;;:::i;:::-;:110;;:138;;;;:::i;:::-;:164;;:181;;;;:::i;:::-;41045:216;;41290:1;41280:7;:11;41276:92;;;41312:40;41332:10;41344:7;41312:19;:40::i;:::-;41276:92;41009:370;;41391:122;41441:10;41475:4;41495:7;41391:4;:10;;;;;;;;;;;;:27;;;;:122;;;;;;:::i;:::-;41538:24;41554:7;41538:4;:11;;;:15;;:24;;;;:::i;:::-;41524:4;:11;;:38;;;;41593:96;41652:26;;41593:40;41609:4;:23;;;41593:4;:11;;;:15;;:40;;;;:::i;:::-;:44;;:96;;;;:::i;:::-;41575:4;:15;;:114;;;;41725:4;41713:10;41705:34;;;41731:7;41705:34;;;;;;;;;;;;;;;;;;40806:941;;;;:::o;4125:244::-;3402:12;:10;:12::i;:::-;3392:22;;:6;;;;;;;;;;:22;;;3384:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4234:1:::1;4214:22;;:8;:22;;;;4206:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4324:8;4295:38;;4316:6;::::0;::::1;;;;;;;;4295:38;;;;;;;;;;;;4353:8;4344:6;::::0;:17:::1;;;;;;;;;;;;;;;;;;4125:244:::0;:::o;1807:106::-;1860:15;1895:10;1888:17;;1807:106;:::o;7933:181::-;7991:7;8011:9;8027:1;8023;:5;8011:17;;8052:1;8047;:6;;8039:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8105:1;8098:8;;;7933:181;;;;:::o;43578:1019::-;43673:7;43698:21;43722:8;43731:4;43722:14;;;;;;;;;;;;;;;;;;43698:38;;43766:4;:20;;;43751:12;:35;43747:76;;;43810:1;43803:8;;;;;43747:76;43833:16;43852:4;:10;;;;;;;;;;;;:20;;;43881:4;43852:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43833:54;;43914:1;43902:8;:13;43898:54;;;43939:1;43932:8;;;;;;43898:54;43989:20;;43966:4;:20;;;:43;43962:84;;;44033:1;44026:8;;;;;;43962:84;44058:26;44087:12;44058:41;;44130:20;;44114:12;:36;44110:110;;44188:20;;44167:41;;44110:110;44232:19;44267:66;44318:14;;44268:44;44291:4;:20;;;44268:18;:22;;:44;;;;:::i;:::-;44267:50;;:66;;;;:::i;:::-;44232:101;;44346:21;44383:53;44420:15;;44383:32;44399:4;:15;;;44383:11;:15;;:32;;;;:::i;:::-;:36;;:53;;;;:::i;:::-;44346:90;;44469:120;44515:59;44565:8;44515:45;44533:26;;44515:13;:17;;:45;;;;:::i;:::-;:49;;:59;;;;:::i;:::-;44469:4;:23;;;:27;;:120;;;;:::i;:::-;44449:140;;;;;;;43578:1019;;;;:::o;9287:471::-;9345:7;9595:1;9590;:6;9586:47;;;9620:1;9613:8;;;;9586:47;9645:9;9661:1;9657;:5;9645:17;;9690:1;9685;9681;:5;;;;;;:10;9673:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9749:1;9742:8;;;9287:471;;;;;:::o;10234:132::-;10292:7;10319:39;10323:1;10326;10319:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;10312:46;;10234:132;;;;:::o;8397:136::-;8455:7;8482:43;8486:1;8489;8482:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;8475:50;;8397:136;;;;:::o;40433:299::-;40512:18;40533:7;;;;;;;;;;;:17;;;40559:4;40533:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40512:53;;40590:10;40580:7;:20;40576:149;;;40617:7;;;;;;;;;;;:16;;;40634:3;40639:10;40617:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40576:149;;;40683:7;;;;;;;;;;;:16;;;40700:3;40705:7;40683:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40576:149;40433:299;;;:::o;30792:177::-;30875:86;30895:5;30925:23;;;30950:2;30954:5;30902:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30875:19;:86::i;:::-;30792:177;;;:::o;30977:205::-;31078:96;31098:5;31128:27;;;31157:4;31163:2;31167:5;31105:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31078:19;:96::i;:::-;30977:205;;;;:::o;10862:278::-;10948:7;10980:1;10976;:5;10983:12;10968:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11007:9;11023:1;11019;:5;;;;;;11007:17;;11131:1;11124:8;;;10862:278;;;;;:::o;8836:192::-;8922:7;8955:1;8950;:6;;8958:12;8942:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8982:9;8998:1;8994;:5;8982:17;;9019:1;9012:8;;;8836:192;;;;;:::o;33097:761::-;33521:23;33547:69;33575:4;33547:69;;;;;;;;;;;;;;;;;33555:5;33547:27;;;;:69;;;;;:::i;:::-;33521:95;;33651:1;33631:10;:17;:21;33627:224;;;33773:10;33762:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33754:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33627:224;33097:761;;;:::o;26892:195::-;26995:12;27027:52;27049:6;27057:4;27063:1;27066:12;27027:21;:52::i;:::-;27020:59;;26892:195;;;;;:::o;27944:530::-;28071:12;28129:5;28104:21;:30;;28096:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28196:18;28207:6;28196:10;:18::i;:::-;28188:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28322:12;28336:23;28363:6;:11;;28383:5;28391:4;28363:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28321:75;;;;28414:52;28432:7;28441:10;28453:12;28414:17;:52::i;:::-;28407:59;;;;27944:530;;;;;;:::o;23974:422::-;24034:4;24242:12;24353:7;24341:20;24333:28;;24387:1;24380:4;:8;24373:15;;;23974:422;;;:::o;29480:742::-;29595:12;29624:7;29620:595;;;29655:10;29648:17;;;;29620:595;29789:1;29769:10;:17;:21;29765:439;;;30032:10;30026:17;30093:15;30080:10;30076:2;30072:19;30065:44;29980:148;30175:12;30168:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29480:742;;;;;;:::o

Swarm Source

ipfs://4e78c45d927083f870760d445fe265d7f0f860c9c4d47001a0fe94cc51e031c7

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

BasedAI is a custom-engineered Layer 1 network being developed by the gigabrains at PepeCoin

Validator Index Block Amount
View All Withdrawals

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

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