ETH Price: $2,654.75 (-1.31%)

Contract

0xbb9Bb97BD5A7d94431bB4DD134886522034e7251
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve178066102023-07-30 15:02:11380 days ago1690729331IN
0xbb9Bb97B...2034e7251
0 ETH0.0005813924.00577831
Approve178066092023-07-30 15:01:59380 days ago1690729319IN
0xbb9Bb97B...2034e7251
0 ETH0.0005764323.80092944
Sweep Floor168435022023-03-16 22:54:35515 days ago1679007275IN
0xbb9Bb97B...2034e7251
0 ETH0.0031462351.89330319
Set Floor Calcul...168434802023-03-16 22:50:11515 days ago1679007011IN
0xbb9Bb97B...2034e7251
0 ETH0.0015137652.29600145
Withdraw167730982023-03-07 1:14:59525 days ago1678151699IN
0xbb9Bb97B...2034e7251
0 ETH0.0044246568.99189735
Sweep Floor167730622023-03-07 1:07:47525 days ago1678151267IN
0xbb9Bb97B...2034e7251
0 ETH0.01832744101.34002279
Sweep Floor167729892023-03-07 0:53:11525 days ago1678150391IN
0xbb9Bb97B...2034e7251
0 ETH0.0107409562.78651838
Approve164996142023-01-27 17:22:47563 days ago1674840167IN
0xbb9Bb97B...2034e7251
0 ETH0.0015494633.50981784
Approve164996032023-01-27 17:20:35563 days ago1674840035IN
0xbb9Bb97B...2034e7251
0 ETH0.0014290430.7697741
Deposit164995982023-01-27 17:19:35563 days ago1674839975IN
0xbb9Bb97B...2034e7251
0.4383 ETH0.0025810235.15236459
Sweep Floor164252322023-01-17 8:09:59574 days ago1673942999IN
0xbb9Bb97B...2034e7251
0 ETH0.0019873216.94065863
Set Sweeper164252282023-01-17 8:09:11574 days ago1673942951IN
0xbb9Bb97B...2034e7251
0 ETH0.0008034917.37364772
Withdraw152913702022-08-06 22:11:12737 days ago1659823872IN
0xbb9Bb97B...2034e7251
0 ETH0.000558888.71284298
Approve152913672022-08-06 22:10:19737 days ago1659823819IN
0xbb9Bb97B...2034e7251
0 ETH0.000410678.88161899
Withdraw152912542022-08-06 21:44:07737 days ago1659822247IN
0xbb9Bb97B...2034e7251
0 ETH0.0008515113.2772867
Deposit152912522022-08-06 21:43:02737 days ago1659822182IN
0xbb9Bb97B...2034e7251
0.1 ETH0.0006345411.26590163
Approve152713132022-08-03 19:31:05740 days ago1659555065IN
0xbb9Bb97B...2034e7251
0 ETH0.0010699923.14062709
Approve152699612022-08-03 14:17:29741 days ago1659536249IN
0xbb9Bb97B...2034e7251
0 ETH0.0005296511.38971529
Deposit152698632022-08-03 13:57:21741 days ago1659535041IN
0xbb9Bb97B...2034e7251
61 ETH0.0009366812.75723812
Withdraw152698422022-08-03 13:52:58741 days ago1659534778IN
0xbb9Bb97B...2034e7251
0 ETH0.0008263512.88507405
Deposit152694722022-08-03 12:31:42741 days ago1659529902IN
0xbb9Bb97B...2034e7251
1 ETH0.0009898517.57425972
Claim Ownership152685312022-08-03 8:44:36741 days ago1659516276IN
0xbb9Bb97B...2034e7251
0 ETH0.000252498.90041818
Transfer Ownersh...152639142022-08-02 15:33:01741 days ago1659454381IN
0xbb9Bb97B...2034e7251
0 ETH0.00744212161.6307751
Withdraw149223262022-06-07 18:30:50797 days ago1654626650IN
0xbb9Bb97B...2034e7251
0 ETH0.0046494572.49700009
Approve149223222022-06-07 18:30:42797 days ago1654626642IN
0xbb9Bb97B...2034e7251
0 ETH0.00471482101.96641421
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
167730982023-03-07 1:14:59525 days ago1678151699
0xbb9Bb97B...2034e7251
2.758 ETH
167730982023-03-07 1:14:59525 days ago1678151699
0xbb9Bb97B...2034e7251
2.758 ETH
167469782023-03-03 9:04:59529 days ago1677834299
0xbb9Bb97B...2034e7251
0.08073468 ETH
167469782023-03-03 9:04:59529 days ago1677834299
0xbb9Bb97B...2034e7251
0.08073468 ETH
167460922023-03-03 6:06:23529 days ago1677823583
0xbb9Bb97B...2034e7251
0.26697364 ETH
167460922023-03-03 6:06:23529 days ago1677823583
0xbb9Bb97B...2034e7251
0.26697364 ETH
167440542023-03-02 23:12:35529 days ago1677798755
0xbb9Bb97B...2034e7251
0.03792053 ETH
167440542023-03-02 23:12:35529 days ago1677798755
0xbb9Bb97B...2034e7251
0.03792053 ETH
167198572023-02-27 13:34:59533 days ago1677504899
0xbb9Bb97B...2034e7251
0.05757006 ETH
167198572023-02-27 13:34:59533 days ago1677504899
0xbb9Bb97B...2034e7251
0.05757006 ETH
167172292023-02-27 4:43:23533 days ago1677473003
0xbb9Bb97B...2034e7251
0.33 ETH
167172292023-02-27 4:43:23533 days ago1677473003
0xbb9Bb97B...2034e7251
0.33 ETH
167172262023-02-27 4:42:47533 days ago1677472967
0xbb9Bb97B...2034e7251
0.12588393 ETH
167172262023-02-27 4:42:47533 days ago1677472967
0xbb9Bb97B...2034e7251
0.12588393 ETH
167143352023-02-26 18:57:59533 days ago1677437879
0xbb9Bb97B...2034e7251
0.77666986 ETH
167143352023-02-26 18:57:59533 days ago1677437879
0xbb9Bb97B...2034e7251
0.77666986 ETH
166880252023-02-23 2:07:11537 days ago1677118031
0xbb9Bb97B...2034e7251
0.31041093 ETH
166880252023-02-23 2:07:11537 days ago1677118031
0xbb9Bb97B...2034e7251
0.31041093 ETH
166837592023-02-22 11:42:47538 days ago1677066167
0xbb9Bb97B...2034e7251
0.08103626 ETH
166837592023-02-22 11:42:47538 days ago1677066167
0xbb9Bb97B...2034e7251
0.08103626 ETH
166837422023-02-22 11:39:23538 days ago1677065963
0xbb9Bb97B...2034e7251
0.16728863 ETH
166837422023-02-22 11:39:23538 days ago1677065963
0xbb9Bb97B...2034e7251
0.16728863 ETH
166489922023-02-17 14:22:23543 days ago1676643743
0xbb9Bb97B...2034e7251
0.16873534 ETH
166489922023-02-17 14:22:23543 days ago1676643743
0xbb9Bb97B...2034e7251
0.16873534 ETH
166481712023-02-17 11:35:23543 days ago1676633723
0xbb9Bb97B...2034e7251
0.72149764 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
pETH

Compiler Version
v0.7.4+commit.3f05b770

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : pETH.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity 0.7.4;

import "./openzeppelin/WrappedERC20.sol";
import "./interfaces/IWETH.sol";
import "./libraries/SafeMath.sol";
import "./interfaces/IFloorCalculator.sol";


interface IERC31337BNB is IWrappedERC20
{
    function floorCalculator() external view returns (IFloorCalculator);
    function sweepers(address _sweeper) external view returns (bool);
    
    function setFloorCalculator(IFloorCalculator _floorCalculator) external;
    function setSweeper(address _sweeper, bool _allow) external;
    function sweepFloor(address _to) external returns (uint256 amountSwept);
}

abstract contract ERC31337 is WrappedERC20, IERC31337BNB
{
    using SafeERC20 for IERC20;

    IFloorCalculator public override floorCalculator;
    
    mapping (address => bool) public override sweepers;

    constructor(IERC20 _wrappedToken, string memory _name, string memory _symbol)
        WrappedERC20(_wrappedToken, _name, _symbol)
    {}

    function setFloorCalculator(IFloorCalculator _floorCalculator) public override ownerOnly()
    {
        floorCalculator = _floorCalculator;
    }

    function setSweeper(address sweeper, bool allow) public override ownerOnly()
    {
        sweepers[sweeper] = allow;
    }

    function sweepFloor(address to) public override returns (uint256 amountSwept)
    {
        require (to != address(0));
        require (sweepers[msg.sender], "Sweepers only");
        amountSwept = floorCalculator.calculateSubFloorPETH(wrappedToken, this);

        if (amountSwept > 0) {
            wrappedToken.safeTransfer(to, amountSwept);
        }
    }
}


contract pETH is ERC31337, IWETH
{
    using SafeMath for uint256;
    uint256 public FEE=0; // use denomination = 1000 => 1%
    address public FEE_ADDRESS;
    mapping(address=>bool) IGNORED_ADDRESSES;
    event FeeSet(address feeAddress, uint256 fee);

    constructor (address wethAddress)
        ERC31337(IWETH(wethAddress), "pETH", "pETH")
    {
        FEE_ADDRESS = 0x16352774BF9287E0324E362897c1380ABC8B2b35;
    }

    receive() external payable
    {
        if (msg.sender != address(wrappedToken)) {
            deposit();
        }
    }

    function setFee(address feeAddress, uint256 _fee) external ownerOnly{
        FEE_ADDRESS = feeAddress;
        FEE=_fee;
        emit FeeSet(FEE_ADDRESS,FEE);
    }

    function setIgnoredAddresses(address _ignoredAddress, bool ignore)external ownerOnly{
        IGNORED_ADDRESSES[_ignoredAddress]=ignore;
    }
    
    function setIgnoredAddressBulk(address[] memory _ignoredAddressBulk, bool ignore)external ownerOnly{
        
        for(uint i=0;i<_ignoredAddressBulk.length;i++){
            address _ignoredAddress = _ignoredAddressBulk[i];
            IGNORED_ADDRESSES[_ignoredAddress] = ignore;
        }
    }

    function isIgnored(address _ignoredAddress) public view returns (bool) {
        return IGNORED_ADDRESSES[_ignoredAddress];
    }
   
   // 100 axbnb => 100 bnb is deposited to wbnb contract by this AXBNB contract => 100 AXBNB
    function deposit() public payable override 
    {
        uint256 amount = msg.value;
        if(IGNORED_ADDRESSES[msg.sender]){

            IWETH(address(wrappedToken)).deposit{ value: amount }();
            _mint(msg.sender, amount);
            emit Deposit(msg.sender, amount); 
        }
        else{
            uint256 feeAmount = amount.mul(FEE).div(100000);
            IWETH(address(wrappedToken)).deposit{ value: amount }();

            uint256 amountAfterFee = amount.sub(feeAmount);
            _mint(msg.sender, amountAfterFee);
            emit Deposit(msg.sender, amountAfterFee); 
            if(feeAmount>0){
                _mint(FEE_ADDRESS, feeAmount);
                emit Deposit(FEE_ADDRESS, feeAmount); 
            }
        }
    }

    function withdraw(uint256 _amount) public override
    {
        if(IGNORED_ADDRESSES[msg.sender]){
            _burn(msg.sender, _amount);

            IWETH(address(wrappedToken)).withdraw(_amount);
            
            msg.sender.transfer(_amount);
            emit Withdrawal(msg.sender, _amount);
        }
        else{
            uint256 feeAmount = _amount.mul(FEE).div(100000);
            if(feeAmount>0){
                _balanceOf[FEE_ADDRESS] = _balanceOf[FEE_ADDRESS].add(feeAmount);
                _balanceOf[msg.sender] = _balanceOf[msg.sender].sub(feeAmount);
                emit Transfer(msg.sender, FEE_ADDRESS, feeAmount);
            }
            uint256 amountAfterFee = _amount.sub(feeAmount);
            _burn(msg.sender, amountAfterFee);
            IWETH(address(wrappedToken)).withdraw(amountAfterFee);
            (bool success,) = msg.sender.call{ value: amountAfterFee }("");
            require (success, "Transfer failed");

            emit Withdrawal(msg.sender, amountAfterFee);

        }
    }

    

    function _transfer(address sender, address recipient, uint256 amount) internal override virtual {
        require(sender != address(0), "pETH: transfer from the zero address");
        require(recipient != address(0), "pETH: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        // cut no FEE
        if(IGNORED_ADDRESSES[recipient]){
            _balanceOf[sender] = _balanceOf[sender].sub(amount, "pETH: transfer amount exceeds balance");
            _balanceOf[recipient] = _balanceOf[recipient].add(amount);
            emit Transfer(sender, recipient, amount);
        }
        else{

            // apply fee if there
            _balanceOf[sender] = _balanceOf[sender].sub(amount, "pETH: transfer amount exceeds balance");

            uint256 pETHFee = amount.mul(FEE).div(100000); 
            uint256 remAmount = amount.sub(pETHFee);

            if(pETHFee>0){
                _balanceOf[FEE_ADDRESS] = _balanceOf[FEE_ADDRESS].add(pETHFee);
                emit Transfer(sender, FEE_ADDRESS, pETHFee);
            }
                
            _balanceOf[recipient] = _balanceOf[recipient].add(remAmount);

            emit Transfer(sender, recipient, remAmount);            

        }

        
    }
}

File 2 of 15 : WrappedERC20.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

/* ROOTKIT:
Wraps any ERC20
Similar to WETH except for ERC20 tokens instead of ETH
depositTokens/withdrawTokens are like deposit/withdraw in WETH
Inheriters can hook into depositTokens and withdrawTokens
by overriding _beforeDepositTokens and _beforeWithdrawTokens
*/

import "../interfaces/IERC20.sol";
import "./ERC20.sol";
import "../interfaces/IWrappedERC20.sol";
import "./TokensRecoverable.sol";
import "../libraries/SafeERC20.sol";
import "../libraries/SafeMath.sol";

contract WrappedERC20 is ERC20, IWrappedERC20, TokensRecoverable
{
    using SafeERC20 for IERC20;
    using SafeMath for uint256;

    IERC20 public immutable override wrappedToken;

    constructor (IERC20 _wrappedToken, string memory _name, string memory _symbol)
        ERC20(_name, _symbol)
    {        
        if (_wrappedToken.decimals() != 18) {
            _setupDecimals(_wrappedToken.decimals());
        }
        wrappedToken = _wrappedToken;
    }

    function depositTokens(uint256 _amount) public override
    {
        _beforeDepositTokens(_amount);
        uint256 myBalance = wrappedToken.balanceOf(address(this));
        wrappedToken.safeTransferFrom(msg.sender, address(this), _amount);
        uint256 received = wrappedToken.balanceOf(address(this)).sub(myBalance);
        _mint(msg.sender, received);
        emit Deposit(msg.sender, _amount);
    }

    function withdrawTokens(uint256 _amount) public override
    {
        _beforeWithdrawTokens(_amount);
        _burn(msg.sender, _amount);
        uint256 myBalance = wrappedToken.balanceOf(address(this));
        wrappedToken.safeTransfer(msg.sender, _amount);
        require (wrappedToken.balanceOf(address(this)) == myBalance.sub(_amount), "Transfer not exact");
        emit Withdrawal(msg.sender, _amount);
    }

    function canRecoverTokens(IERC20 token) internal virtual override view returns (bool) 
    {
        return token != this && token != wrappedToken;
    }

    function _beforeDepositTokens(uint256 _amount) internal virtual view { }
    function _beforeWithdrawTokens(uint256 _amount) internal virtual view { }
}

File 3 of 15 : IWETH.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

import "./IERC20.sol";
import "./IWrappedERC20Events.sol";

interface IWETH is IERC20, IWrappedERC20Events
{    
    function deposit() external payable;
    function withdraw(uint256 _amount) external;
}

File 4 of 15 : SafeMath.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

/* ROOTKIT:
O wherefore art thou 8 point O
*/

library SafeMath 
{
    function add(uint256 a, uint256 b) internal pure returns (uint256) 
    {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) 
    {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) 
    {
        require(b <= a, errorMessage);
        uint256 c = a - b;
        return c;
    }

    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;
    }
    
    function div(uint256 a, uint256 b) internal pure returns (uint256) 
    {
        return div(a, b, "SafeMath: division by zero");
    }

    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) 
    {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        return c;
    }

    function mod(uint256 a, uint256 b) internal pure returns (uint256) 
    {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) 
    {
        require(b != 0, errorMessage);
        return a % b;
    }
}

File 5 of 15 : IFloorCalculator.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!

pragma solidity ^0.7.4;
import "./IERC20.sol";

interface IFloorCalculator
{
    function calculateSubFloorPETH(IERC20 wrappedToken, IERC20 backingToken) external view returns (uint256);
    function calculateSubFloorCircleNFT(IERC20[] memory wrappedTokens, IERC20 backingToken) external view returns ( uint256);
}

File 6 of 15 : IERC20.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

interface IERC20 
{
    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);

    function totalSupply() external view returns (uint256);
    function balanceOf(address _account) external view returns (uint256);
    function transfer(address _recipient, uint256 _amount) external returns (bool);
    function allowance(address _owner, address _spender) external view returns (uint256);
    function approve(address _spender, uint256 _amount) external returns (bool);
    function transferFrom(address _sender, address _recipient, uint256 _amount) external returns (bool);

    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);
}

File 7 of 15 : ERC20.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

/* ROOTKIT:
Simplified thanks to higher solidity version
But same functionality
*/

import "../interfaces/IERC20.sol";
import "../libraries/SafeMath.sol";


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

    mapping (address => uint256) internal _balanceOf;
    mapping (address => mapping (address => uint256)) public override allowance;

    uint256 public override totalSupply;

    string public override name;
    string public override symbol;
    uint8 public override decimals = 18;

    /**
     * @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) 
    {
        name = _name;
        symbol = _symbol;
    }

    function balanceOf(address a) public virtual override view returns (uint256) { return _balanceOf[a]; }

    /**
     * @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(msg.sender, recipient, amount);
        return true;
    }

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

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        uint256 oldAllowance = allowance[sender][msg.sender];
        if (oldAllowance != uint256(-1)) {
            _approve(sender, msg.sender, oldAllowance.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(msg.sender, spender, allowance[msg.sender][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(msg.sender, spender, allowance[msg.sender][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);

        _balanceOf[sender] = _balanceOf[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balanceOf[recipient] = _balanceOf[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);
        _balanceOf[account] = _balanceOf[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);

        _balanceOf[account] = _balanceOf[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");

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

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

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

File 8 of 15 : IWrappedERC20.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

import "./IERC20.sol";
import "./IWrappedERC20Events.sol";

interface IWrappedERC20 is IERC20, IWrappedERC20Events
{
    function wrappedToken() external view returns (IERC20);
    function depositTokens(uint256 _amount) external;
    function withdrawTokens(uint256 _amount) external;
}

File 9 of 15 : TokensRecoverable.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

/* ROOTKIT:
Allows recovery of unexpected tokens (airdrops, etc)
Inheriters can customize logic by overriding canRecoverTokens
*/

import "../interfaces/IERC20.sol";
import "../libraries/SafeERC20.sol";
import "./Owned.sol";
import "../interfaces/ITokensRecoverable.sol";

abstract contract TokensRecoverable is Owned, ITokensRecoverable
{
    using SafeERC20 for IERC20;

    function recoverTokens(IERC20 token) public override ownerOnly() 
    {
        require (canRecoverTokens(token));
        
        token.safeTransfer(msg.sender, token.balanceOf(address(this)));
    }

    function recoverETH(uint256 amount) public override ownerOnly() 
    {        
        msg.sender.transfer(amount);
    }

    function canRecoverTokens(IERC20 token) internal virtual view returns (bool) 
    { 
        return address(token) != address(this); 
    }
}

File 10 of 15 : SafeERC20.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

/* ROOTKIT:
Modified to remove some junk
Also modified to remove silly restrictions (traps!) within safeApprove
*/

import "../interfaces/IERC20.sol";
import "./SafeMath.sol";
import "./Address.sol";

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

File 11 of 15 : IWrappedERC20Events.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

interface IWrappedERC20Events
{
    event Deposit(address indexed from, uint256 amount);
    event Withdrawal(address indexed to, uint256 amount);
}

File 12 of 15 : Owned.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

/* ROOTKIT:
Provides ownerOnly() modifier
Allows for ownership transfer but requires the new
owner to claim (accept) ownership
Safer because no accidental transfers or renouncing
*/

import "../interfaces/IOwned.sol";

abstract contract Owned is IOwned
{
    address public override owner = msg.sender;
    address internal pendingOwner;

    modifier ownerOnly()
    {
        require (msg.sender == owner, "Owner only");
        _;
    }

    function transferOwnership(address newOwner) public override ownerOnly()
    {
        pendingOwner = newOwner;
    }

    function claimOwnership() public override
    {
        require (pendingOwner == msg.sender);
        pendingOwner = address(0);
        emit OwnershipTransferred(owner, msg.sender);
        owner = msg.sender;
    }
}

File 13 of 15 : ITokensRecoverable.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

import "./IERC20.sol";

interface ITokensRecoverable
{
    function recoverTokens(IERC20 token) external;
    function recoverETH(uint256 amount) external; 
}

File 14 of 15 : Address.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(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);
            }
        }
    }
}

File 15 of 15 : IOwned.sol
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;

interface IOwned
{
    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    function owner() external view returns (address);

    function transferOwnership(address newOwner) external;
    function claimOwnership() external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"wethAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"address","name":"_spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"feeAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"FeeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"floorCalculator","outputs":[{"internalType":"contract IFloorCalculator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_ignoredAddress","type":"address"}],"name":"isIgnored","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"recoverTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"feeAddress","type":"address"},{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IFloorCalculator","name":"_floorCalculator","type":"address"}],"name":"setFloorCalculator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_ignoredAddressBulk","type":"address[]"},{"internalType":"bool","name":"ignore","type":"bool"}],"name":"setIgnoredAddressBulk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_ignoredAddress","type":"address"},{"internalType":"bool","name":"ignore","type":"bool"}],"name":"setIgnoredAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sweeper","type":"address"},{"internalType":"bool","name":"allow","type":"bool"}],"name":"setSweeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"sweepFloor","outputs":[{"internalType":"uint256","name":"amountSwept","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"sweepers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wrappedToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a060405260058054601260ff1990911617610100600160a81b031916610100330217905560006009553480156200003657600080fd5b5060405162002b4038038062002b40833981810160405260208110156200005c57600080fd5b50516040805180820182526004808252630e08aa8960e31b60208381018281528551808701909652928552840152815184939184918491849183918391620000a79160039162000200565b508051620000bd90600490602084019062000200565b505050826001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015620000fa57600080fd5b505afa1580156200010f573d6000803e3d6000fd5b505050506040513d60208110156200012657600080fd5b505160ff16601214620001a557620001a5836001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156200017157600080fd5b505afa15801562000186573d6000803e3d6000fd5b505050506040513d60208110156200019d57600080fd5b5051620001ea565b505060601b6001600160601b0319166080525050600a80547316352774bf9287e0324e362897c1380abc8b2b356001600160a01b031990911617905550620002ac9050565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f01602090048101928262000238576000855562000283565b82601f106200025357805160ff191683800117855562000283565b8280016001018555821562000283579182015b828111156200028357825182559160200191906001019062000266565b506200029192915062000295565b5090565b5b8082111562000291576000815560010162000296565b60805160601c61283062000310600039806101f752806108be528061098b5280610ccb5280610e855280610fec528061109252806110e35280611426528061159b528061163452806117a2528061184852806118785280611d7e52506128306000f3fe6080604052600436106101e75760003560e01c8063996c6cc311610102578063d0e30db011610095578063e55156b511610064578063e55156b5146107ee578063eb1edd6114610827578063f2fde38b1461083c578063f96ab6761461086f57610226565b8063d0e30db014610757578063d33355531461075f578063dd49756e14610789578063dd62ed3e146107b357610226565b8063b12a22a2116100d1578063b12a22a214610648578063c57981b51461067b578063c94ced9a14610690578063cd2bc5951461074257610226565b8063996c6cc31461058e578063a457c2d7146105a3578063a5b98a5a146105dc578063a9059cbb1461060f57610226565b8063395093511161017a5780638bc3b436116101495780638bc3b436146104da5780638da5cb5b1461051557806393ee5b611461054657806395d89b411461057957610226565b8063395093511461041e578063485e7ba5146104575780634e71e0c81461049257806370a08231146104a757610226565b806323b872dd116101b657806323b872dd1461035c5780632e1a7d4d1461039f578063313ce567146103c9578063315a095d146103f457610226565b806306fdde031461022b578063095ea7b3146102b557806316114acd1461030257806318160ddd1461033557610226565b3661022657336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610224576102246108a2565b005b600080fd5b34801561023757600080fd5b50610240610a95565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561027a578181015183820152602001610262565b50505050905090810190601f1680156102a75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102c157600080fd5b506102ee600480360360408110156102d857600080fd5b506001600160a01b038135169060200135610b23565b604080519115158252519081900360200190f35b34801561030e57600080fd5b506102246004803603602081101561032557600080fd5b50356001600160a01b0316610b3a565b34801561034157600080fd5b5061034a610c2b565b60408051918252519081900360200190f35b34801561036857600080fd5b506102ee6004803603606081101561037f57600080fd5b506001600160a01b03813581169160208101359091169060400135610c31565b3480156103ab57600080fd5b50610224600480360360208110156103c257600080fd5b5035610ca7565b3480156103d557600080fd5b506103de610fcc565b6040805160ff9092168252519081900360200190f35b34801561040057600080fd5b506102246004803603602081101561041757600080fd5b5035610fd5565b34801561042a57600080fd5b506102ee6004803603604081101561044157600080fd5b506001600160a01b0381351690602001356111d6565b34801561046357600080fd5b506102246004803603604081101561047a57600080fd5b506001600160a01b038135169060200135151561120c565b34801561049e57600080fd5b50610224611288565b3480156104b357600080fd5b5061034a600480360360208110156104ca57600080fd5b50356001600160a01b0316611305565b3480156104e657600080fd5b50610224600480360360408110156104fd57600080fd5b506001600160a01b0381351690602001351515611324565b34801561052157600080fd5b5061052a6113a0565b604080516001600160a01b039092168252519081900360200190f35b34801561055257600080fd5b506102ee6004803603602081101561056957600080fd5b50356001600160a01b03166113b4565b34801561058557600080fd5b506102406113c9565b34801561059a57600080fd5b5061052a611424565b3480156105af57600080fd5b506102ee600480360360408110156105c657600080fd5b506001600160a01b038135169060200135611448565b3480156105e857600080fd5b50610224600480360360208110156105ff57600080fd5b50356001600160a01b0316611497565b34801561061b57600080fd5b506102ee6004803603604081101561063257600080fd5b506001600160a01b03813516906020013561150a565b34801561065457600080fd5b5061034a6004803603602081101561066b57600080fd5b50356001600160a01b0316611517565b34801561068757600080fd5b5061034a61165b565b34801561069c57600080fd5b50610224600480360360408110156106b357600080fd5b8101906020810181356401000000008111156106ce57600080fd5b8201836020820111156106e057600080fd5b8035906020019184602083028401116401000000008311171561070257600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295505050503515159050611661565b34801561074e57600080fd5b5061052a611704565b6102246108a2565b34801561076b57600080fd5b506102246004803603602081101561078257600080fd5b5035611713565b34801561079557600080fd5b50610224600480360360208110156107ac57600080fd5b5035611795565b3480156107bf57600080fd5b5061034a600480360360408110156107d657600080fd5b506001600160a01b038135811691602001351661194a565b3480156107fa57600080fd5b506102246004803603604081101561081157600080fd5b506001600160a01b038135169060200135611967565b34801561083357600080fd5b5061052a611a1f565b34801561084857600080fd5b506102246004803603602081101561085f57600080fd5b50356001600160a01b0316611a2e565b34801561087b57600080fd5b506102ee6004803603602081101561089257600080fd5b50356001600160a01b0316611aa1565b336000908152600b6020526040902054349060ff1615610963577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561091757600080fd5b505af115801561092b573d6000803e3d6000fd5b505050505061093a3382611abf565b60408051828152905133916000805160206126b9833981519152919081900360200190a2610a92565b6000610987620186a061098160095485611b9d90919063ffffffff16565b90611bf6565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0836040518263ffffffff1660e01b81526004016000604051808303818588803b1580156109e457600080fd5b505af11580156109f8573d6000803e3d6000fd5b50505050506000610a128284611c3890919063ffffffff16565b9050610a1e3382611abf565b60408051828152905133916000805160206126b9833981519152919081900360200190a28115610a8f57600a54610a5e906001600160a01b031683611abf565b600a546040805184815290516001600160a01b03909216916000805160206126b98339815191529181900360200190a25b50505b50565b6003805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610b1b5780601f10610af057610100808354040283529160200191610b1b565b820191906000526020600020905b815481529060010190602001808311610afe57829003601f168201915b505050505081565b6000610b30338484611c7a565b5060015b92915050565b60055461010090046001600160a01b03163314610b8b576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b610b9481611d66565b610b9d57600080fd5b610a9233826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610bee57600080fd5b505afa158015610c02573d6000803e3d6000fd5b505050506040513d6020811015610c1857600080fd5b50516001600160a01b0384169190611db8565b60025481565b6000610c3e848484611e0a565b6001600160a01b03841660009081526001602090815260408083203384529091529020546000198114610c9a57610c9a8533610c95866040518060600160405280602881526020016126fa602891398691906120d8565b611c7a565b60019150505b9392505050565b336000908152600b602052604090205460ff1615610db057610cc9338261216f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610d2f57600080fd5b505af1158015610d43573d6000803e3d6000fd5b505060405133925083156108fc02915083906000818181858888f19350505050158015610d74573d6000803e3d6000fd5b5060408051828152905133917f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65919081900360200190a2610a92565b6000610dce620186a061098160095485611b9d90919063ffffffff16565b90508015610e6b57600a546001600160a01b0316600090815260208190526040902054610dfb9082612259565b600a546001600160a01b0316600090815260208190526040808220929092553381522054610e299082611c38565b336000818152602081815260409182902093909355600a54815185815291516001600160a01b0390911693600080516020612722833981519152928290030190a35b6000610e778383611c38565b9050610e83338261216f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610ee957600080fd5b505af1158015610efd573d6000803e3d6000fd5b50506040516000925033915083908381818185875af1925050503d8060008114610f43576040519150601f19603f3d011682016040523d82523d6000602084013e610f48565b606091505b5050905080610f90576040805162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015290519081900360640190fd5b60408051838152905133917f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65919081900360200190a250505050565b60055460ff1681565b610fde81610a92565b610fe8338261216f565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561105757600080fd5b505afa15801561106b573d6000803e3d6000fd5b505050506040513d602081101561108157600080fd5b505190506110b96001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163384611db8565b6110c38183611c38565b604080516370a0823160e01b815230600482015290516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a08231916024808301926020929190829003018186803b15801561112957600080fd5b505afa15801561113d573d6000803e3d6000fd5b505050506040513d602081101561115357600080fd5b50511461119c576040805162461bcd60e51b8152602060048201526012602482015271151c985b9cd9995c881b9bdd08195e1858dd60721b604482015290519081900360640190fd5b60408051838152905133917f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65919081900360200190a25050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610b30918590610c959086612259565b60055461010090046001600160a01b0316331461125d576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b6006546001600160a01b0316331461129f57600080fd5b600680546001600160a01b0319169055600554604051339161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a360058054610100600160a81b0319163361010002179055565b6001600160a01b0381166000908152602081905260409020545b919050565b60055461010090046001600160a01b03163314611375576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b60055461010090046001600160a01b031681565b60086020526000908152604090205460ff1681565b6004805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610b1b5780601f10610af057610100808354040283529160200191610b1b565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000610b303384610c95856040518060600160405280602581526020016127d6602591393360009081526001602090815260408083206001600160a01b038d16845290915290205491906120d8565b60055461010090046001600160a01b031633146114e8576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6000610b30338484611e0a565b60006001600160a01b03821661152c57600080fd5b3360009081526008602052604090205460ff16611580576040805162461bcd60e51b815260206004820152600d60248201526c5377656570657273206f6e6c7960981b604482015290519081900360640190fd5b600754604080516375e3bdeb60e11b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301523060248301529151919092169163ebc77bd6916044808301926020929190829003018186803b1580156115f357600080fd5b505afa158015611607573d6000803e3d6000fd5b505050506040513d602081101561161d57600080fd5b50519050801561131f5761131f6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168383611db8565b60095481565b60055461010090046001600160a01b031633146116b2576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b60005b8251811015610a8f5760008382815181106116cc57fe5b6020908102919091018101516001600160a01b03166000908152600b90915260409020805460ff1916841515179055506001016116b5565b6007546001600160a01b031681565b60055461010090046001600160a01b03163314611764576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b604051339082156108fc029083906000818181858888f19350505050158015611791573d6000803e3d6000fd5b5050565b61179e81610a92565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561180d57600080fd5b505afa158015611821573d6000803e3d6000fd5b505050506040513d602081101561183757600080fd5b505190506118706001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330856122b3565b6000611915827f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156118e357600080fd5b505afa1580156118f7573d6000803e3d6000fd5b505050506040513d602081101561190d57600080fd5b505190611c38565b90506119213382611abf565b60408051848152905133916000805160206126b9833981519152919081900360200190a2505050565b600160209081526000928352604080842090915290825290205481565b60055461010090046001600160a01b031633146119b8576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b600a80546001600160a01b0319166001600160a01b0384811691909117918290556009839055604080519290911682526020820183905280517f92e6908704698649c7a3742faeecb2d2cdef5264a5bf9bebbaa5e4b06d3673169281900390910190a15050565b600a546001600160a01b031681565b60055461010090046001600160a01b03163314611a7f576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03166000908152600b602052604090205460ff1690565b6001600160a01b038216611b1a576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611b2660008383610a8f565b600254611b339082612259565b6002556001600160a01b038216600090815260208190526040902054611b599082612259565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391926000805160206127228339815191529281900390910190a35050565b600082611bac57506000610b34565b82820282848281611bb957fe5b0414610ca05760405162461bcd60e51b81526004018080602001828103825260218152602001806126d96021913960400191505060405180910390fd5b6000610ca083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612313565b6000610ca083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506120d8565b6001600160a01b038316611cbf5760405162461bcd60e51b81526004018080602001828103825260248152602001806127636024913960400191505060405180910390fd5b6001600160a01b038216611d045760405162461bcd60e51b815260040180806020018281038252602281526020018061262b6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b60006001600160a01b0382163014801590610b3457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316141592915050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610a8f908490612378565b6001600160a01b038316611e4f5760405162461bcd60e51b815260040180806020018281038252602481526020018061264d6024913960400191505060405180910390fd5b6001600160a01b038216611e945760405162461bcd60e51b81526004018080602001828103825260228152602001806126976022913960400191505060405180910390fd5b611e9f838383610a8f565b6001600160a01b0382166000908152600b602052604090205460ff1615611f7457611efd816040518060600160405280602581526020016127b1602591396001600160a01b03861660009081526020819052604090205491906120d8565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611f2c9082612259565b6001600160a01b0380841660008181526020818152604091829020949094558051858152905191939287169260008051602061272283398151915292918290030190a3610a8f565b611fb1816040518060600160405280602581526020016127b1602591396001600160a01b03861660009081526020819052604090205491906120d8565b6001600160a01b038416600090815260208190526040812091909155600954611fe490620186a090610981908590611b9d565b90506000611ff28383611c38565b9050811561206b57600a546001600160a01b031660009081526020819052604090205461201f9083612259565b600a80546001600160a01b039081166000908152602081815260409182902094909455915482518681529251908216939189169260008051602061272283398151915292908290030190a35b6001600160a01b03841660009081526020819052604090205461208e9082612259565b6001600160a01b0380861660008181526020818152604091829020949094558051858152905191939289169260008051602061272283398151915292918290030190a35050505050565b600081848411156121675760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561212c578181015183820152602001612114565b50505050905090810190601f1680156121595780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0382166121b45760405162461bcd60e51b81526004018080602001828103825260218152602001806127426021913960400191505060405180910390fd5b6121c082600083610a8f565b6121fd81604051806060016040528060228152602001612609602291396001600160a01b03851660009081526020819052604090205491906120d8565b6001600160a01b0383166000908152602081905260409020556002546122239082611c38565b6002556040805182815290516000916001600160a01b038516916000805160206127228339815191529181900360200190a35050565b600082820183811015610ca0576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261230d908590612378565b50505050565b600081836123625760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561212c578181015183820152602001612114565b50600083858161236e57fe5b0495945050505050565b60606123cd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166124299092919063ffffffff16565b805190915015610a8f578080602001905160208110156123ec57600080fd5b5051610a8f5760405162461bcd60e51b815260040180806020018281038252602a815260200180612787602a913960400191505060405180910390fd5b60606124388484600085612440565b949350505050565b6060824710156124815760405162461bcd60e51b81526004018080602001828103825260268152602001806126716026913960400191505060405180910390fd5b61248a8561259c565b6124db576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061251a5780518252601f1990920191602091820191016124fb565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461257c576040519150601f19603f3d011682016040523d82523d6000602084013e612581565b606091505b50915091506125918282866125a2565b979650505050505050565b3b151590565b606083156125b1575081610ca0565b8251156125c15782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561212c57818101518382015260200161211456fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f2061646472657373704554483a207472616e736665722066726f6d20746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c704554483a207472616e7366657220746f20746865207a65726f2061646472657373e1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564704554483a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220289a9cd51d408c8e0bb8d2c108cfd5a82220c98ed9cbcf232d97d5f6e336931564736f6c63430007040033000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

Deployed Bytecode

0x6080604052600436106101e75760003560e01c8063996c6cc311610102578063d0e30db011610095578063e55156b511610064578063e55156b5146107ee578063eb1edd6114610827578063f2fde38b1461083c578063f96ab6761461086f57610226565b8063d0e30db014610757578063d33355531461075f578063dd49756e14610789578063dd62ed3e146107b357610226565b8063b12a22a2116100d1578063b12a22a214610648578063c57981b51461067b578063c94ced9a14610690578063cd2bc5951461074257610226565b8063996c6cc31461058e578063a457c2d7146105a3578063a5b98a5a146105dc578063a9059cbb1461060f57610226565b8063395093511161017a5780638bc3b436116101495780638bc3b436146104da5780638da5cb5b1461051557806393ee5b611461054657806395d89b411461057957610226565b8063395093511461041e578063485e7ba5146104575780634e71e0c81461049257806370a08231146104a757610226565b806323b872dd116101b657806323b872dd1461035c5780632e1a7d4d1461039f578063313ce567146103c9578063315a095d146103f457610226565b806306fdde031461022b578063095ea7b3146102b557806316114acd1461030257806318160ddd1461033557610226565b3661022657336001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc21614610224576102246108a2565b005b600080fd5b34801561023757600080fd5b50610240610a95565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561027a578181015183820152602001610262565b50505050905090810190601f1680156102a75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102c157600080fd5b506102ee600480360360408110156102d857600080fd5b506001600160a01b038135169060200135610b23565b604080519115158252519081900360200190f35b34801561030e57600080fd5b506102246004803603602081101561032557600080fd5b50356001600160a01b0316610b3a565b34801561034157600080fd5b5061034a610c2b565b60408051918252519081900360200190f35b34801561036857600080fd5b506102ee6004803603606081101561037f57600080fd5b506001600160a01b03813581169160208101359091169060400135610c31565b3480156103ab57600080fd5b50610224600480360360208110156103c257600080fd5b5035610ca7565b3480156103d557600080fd5b506103de610fcc565b6040805160ff9092168252519081900360200190f35b34801561040057600080fd5b506102246004803603602081101561041757600080fd5b5035610fd5565b34801561042a57600080fd5b506102ee6004803603604081101561044157600080fd5b506001600160a01b0381351690602001356111d6565b34801561046357600080fd5b506102246004803603604081101561047a57600080fd5b506001600160a01b038135169060200135151561120c565b34801561049e57600080fd5b50610224611288565b3480156104b357600080fd5b5061034a600480360360208110156104ca57600080fd5b50356001600160a01b0316611305565b3480156104e657600080fd5b50610224600480360360408110156104fd57600080fd5b506001600160a01b0381351690602001351515611324565b34801561052157600080fd5b5061052a6113a0565b604080516001600160a01b039092168252519081900360200190f35b34801561055257600080fd5b506102ee6004803603602081101561056957600080fd5b50356001600160a01b03166113b4565b34801561058557600080fd5b506102406113c9565b34801561059a57600080fd5b5061052a611424565b3480156105af57600080fd5b506102ee600480360360408110156105c657600080fd5b506001600160a01b038135169060200135611448565b3480156105e857600080fd5b50610224600480360360208110156105ff57600080fd5b50356001600160a01b0316611497565b34801561061b57600080fd5b506102ee6004803603604081101561063257600080fd5b506001600160a01b03813516906020013561150a565b34801561065457600080fd5b5061034a6004803603602081101561066b57600080fd5b50356001600160a01b0316611517565b34801561068757600080fd5b5061034a61165b565b34801561069c57600080fd5b50610224600480360360408110156106b357600080fd5b8101906020810181356401000000008111156106ce57600080fd5b8201836020820111156106e057600080fd5b8035906020019184602083028401116401000000008311171561070257600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295505050503515159050611661565b34801561074e57600080fd5b5061052a611704565b6102246108a2565b34801561076b57600080fd5b506102246004803603602081101561078257600080fd5b5035611713565b34801561079557600080fd5b50610224600480360360208110156107ac57600080fd5b5035611795565b3480156107bf57600080fd5b5061034a600480360360408110156107d657600080fd5b506001600160a01b038135811691602001351661194a565b3480156107fa57600080fd5b506102246004803603604081101561081157600080fd5b506001600160a01b038135169060200135611967565b34801561083357600080fd5b5061052a611a1f565b34801561084857600080fd5b506102246004803603602081101561085f57600080fd5b50356001600160a01b0316611a2e565b34801561087b57600080fd5b506102ee6004803603602081101561089257600080fd5b50356001600160a01b0316611aa1565b336000908152600b6020526040902054349060ff1615610963577f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561091757600080fd5b505af115801561092b573d6000803e3d6000fd5b505050505061093a3382611abf565b60408051828152905133916000805160206126b9833981519152919081900360200190a2610a92565b6000610987620186a061098160095485611b9d90919063ffffffff16565b90611bf6565b90507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0836040518263ffffffff1660e01b81526004016000604051808303818588803b1580156109e457600080fd5b505af11580156109f8573d6000803e3d6000fd5b50505050506000610a128284611c3890919063ffffffff16565b9050610a1e3382611abf565b60408051828152905133916000805160206126b9833981519152919081900360200190a28115610a8f57600a54610a5e906001600160a01b031683611abf565b600a546040805184815290516001600160a01b03909216916000805160206126b98339815191529181900360200190a25b50505b50565b6003805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610b1b5780601f10610af057610100808354040283529160200191610b1b565b820191906000526020600020905b815481529060010190602001808311610afe57829003601f168201915b505050505081565b6000610b30338484611c7a565b5060015b92915050565b60055461010090046001600160a01b03163314610b8b576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b610b9481611d66565b610b9d57600080fd5b610a9233826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610bee57600080fd5b505afa158015610c02573d6000803e3d6000fd5b505050506040513d6020811015610c1857600080fd5b50516001600160a01b0384169190611db8565b60025481565b6000610c3e848484611e0a565b6001600160a01b03841660009081526001602090815260408083203384529091529020546000198114610c9a57610c9a8533610c95866040518060600160405280602881526020016126fa602891398691906120d8565b611c7a565b60019150505b9392505050565b336000908152600b602052604090205460ff1615610db057610cc9338261216f565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610d2f57600080fd5b505af1158015610d43573d6000803e3d6000fd5b505060405133925083156108fc02915083906000818181858888f19350505050158015610d74573d6000803e3d6000fd5b5060408051828152905133917f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65919081900360200190a2610a92565b6000610dce620186a061098160095485611b9d90919063ffffffff16565b90508015610e6b57600a546001600160a01b0316600090815260208190526040902054610dfb9082612259565b600a546001600160a01b0316600090815260208190526040808220929092553381522054610e299082611c38565b336000818152602081815260409182902093909355600a54815185815291516001600160a01b0390911693600080516020612722833981519152928290030190a35b6000610e778383611c38565b9050610e83338261216f565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610ee957600080fd5b505af1158015610efd573d6000803e3d6000fd5b50506040516000925033915083908381818185875af1925050503d8060008114610f43576040519150601f19603f3d011682016040523d82523d6000602084013e610f48565b606091505b5050905080610f90576040805162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015290519081900360640190fd5b60408051838152905133917f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65919081900360200190a250505050565b60055460ff1681565b610fde81610a92565b610fe8338261216f565b60007f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561105757600080fd5b505afa15801561106b573d6000803e3d6000fd5b505050506040513d602081101561108157600080fd5b505190506110b96001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2163384611db8565b6110c38183611c38565b604080516370a0823160e01b815230600482015290516001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216916370a08231916024808301926020929190829003018186803b15801561112957600080fd5b505afa15801561113d573d6000803e3d6000fd5b505050506040513d602081101561115357600080fd5b50511461119c576040805162461bcd60e51b8152602060048201526012602482015271151c985b9cd9995c881b9bdd08195e1858dd60721b604482015290519081900360640190fd5b60408051838152905133917f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65919081900360200190a25050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610b30918590610c959086612259565b60055461010090046001600160a01b0316331461125d576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b6006546001600160a01b0316331461129f57600080fd5b600680546001600160a01b0319169055600554604051339161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a360058054610100600160a81b0319163361010002179055565b6001600160a01b0381166000908152602081905260409020545b919050565b60055461010090046001600160a01b03163314611375576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b60055461010090046001600160a01b031681565b60086020526000908152604090205460ff1681565b6004805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610b1b5780601f10610af057610100808354040283529160200191610b1b565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6000610b303384610c95856040518060600160405280602581526020016127d6602591393360009081526001602090815260408083206001600160a01b038d16845290915290205491906120d8565b60055461010090046001600160a01b031633146114e8576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6000610b30338484611e0a565b60006001600160a01b03821661152c57600080fd5b3360009081526008602052604090205460ff16611580576040805162461bcd60e51b815260206004820152600d60248201526c5377656570657273206f6e6c7960981b604482015290519081900360640190fd5b600754604080516375e3bdeb60e11b81526001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2811660048301523060248301529151919092169163ebc77bd6916044808301926020929190829003018186803b1580156115f357600080fd5b505afa158015611607573d6000803e3d6000fd5b505050506040513d602081101561161d57600080fd5b50519050801561131f5761131f6001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2168383611db8565b60095481565b60055461010090046001600160a01b031633146116b2576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b60005b8251811015610a8f5760008382815181106116cc57fe5b6020908102919091018101516001600160a01b03166000908152600b90915260409020805460ff1916841515179055506001016116b5565b6007546001600160a01b031681565b60055461010090046001600160a01b03163314611764576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b604051339082156108fc029083906000818181858888f19350505050158015611791573d6000803e3d6000fd5b5050565b61179e81610a92565b60007f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561180d57600080fd5b505afa158015611821573d6000803e3d6000fd5b505050506040513d602081101561183757600080fd5b505190506118706001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2163330856122b3565b6000611915827f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156118e357600080fd5b505afa1580156118f7573d6000803e3d6000fd5b505050506040513d602081101561190d57600080fd5b505190611c38565b90506119213382611abf565b60408051848152905133916000805160206126b9833981519152919081900360200190a2505050565b600160209081526000928352604080842090915290825290205481565b60055461010090046001600160a01b031633146119b8576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b600a80546001600160a01b0319166001600160a01b0384811691909117918290556009839055604080519290911682526020820183905280517f92e6908704698649c7a3742faeecb2d2cdef5264a5bf9bebbaa5e4b06d3673169281900390910190a15050565b600a546001600160a01b031681565b60055461010090046001600160a01b03163314611a7f576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03166000908152600b602052604090205460ff1690565b6001600160a01b038216611b1a576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611b2660008383610a8f565b600254611b339082612259565b6002556001600160a01b038216600090815260208190526040902054611b599082612259565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391926000805160206127228339815191529281900390910190a35050565b600082611bac57506000610b34565b82820282848281611bb957fe5b0414610ca05760405162461bcd60e51b81526004018080602001828103825260218152602001806126d96021913960400191505060405180910390fd5b6000610ca083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612313565b6000610ca083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506120d8565b6001600160a01b038316611cbf5760405162461bcd60e51b81526004018080602001828103825260248152602001806127636024913960400191505060405180910390fd5b6001600160a01b038216611d045760405162461bcd60e51b815260040180806020018281038252602281526020018061262b6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b60006001600160a01b0382163014801590610b3457507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316826001600160a01b0316141592915050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610a8f908490612378565b6001600160a01b038316611e4f5760405162461bcd60e51b815260040180806020018281038252602481526020018061264d6024913960400191505060405180910390fd5b6001600160a01b038216611e945760405162461bcd60e51b81526004018080602001828103825260228152602001806126976022913960400191505060405180910390fd5b611e9f838383610a8f565b6001600160a01b0382166000908152600b602052604090205460ff1615611f7457611efd816040518060600160405280602581526020016127b1602591396001600160a01b03861660009081526020819052604090205491906120d8565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611f2c9082612259565b6001600160a01b0380841660008181526020818152604091829020949094558051858152905191939287169260008051602061272283398151915292918290030190a3610a8f565b611fb1816040518060600160405280602581526020016127b1602591396001600160a01b03861660009081526020819052604090205491906120d8565b6001600160a01b038416600090815260208190526040812091909155600954611fe490620186a090610981908590611b9d565b90506000611ff28383611c38565b9050811561206b57600a546001600160a01b031660009081526020819052604090205461201f9083612259565b600a80546001600160a01b039081166000908152602081815260409182902094909455915482518681529251908216939189169260008051602061272283398151915292908290030190a35b6001600160a01b03841660009081526020819052604090205461208e9082612259565b6001600160a01b0380861660008181526020818152604091829020949094558051858152905191939289169260008051602061272283398151915292918290030190a35050505050565b600081848411156121675760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561212c578181015183820152602001612114565b50505050905090810190601f1680156121595780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0382166121b45760405162461bcd60e51b81526004018080602001828103825260218152602001806127426021913960400191505060405180910390fd5b6121c082600083610a8f565b6121fd81604051806060016040528060228152602001612609602291396001600160a01b03851660009081526020819052604090205491906120d8565b6001600160a01b0383166000908152602081905260409020556002546122239082611c38565b6002556040805182815290516000916001600160a01b038516916000805160206127228339815191529181900360200190a35050565b600082820183811015610ca0576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261230d908590612378565b50505050565b600081836123625760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561212c578181015183820152602001612114565b50600083858161236e57fe5b0495945050505050565b60606123cd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166124299092919063ffffffff16565b805190915015610a8f578080602001905160208110156123ec57600080fd5b5051610a8f5760405162461bcd60e51b815260040180806020018281038252602a815260200180612787602a913960400191505060405180910390fd5b60606124388484600085612440565b949350505050565b6060824710156124815760405162461bcd60e51b81526004018080602001828103825260268152602001806126716026913960400191505060405180910390fd5b61248a8561259c565b6124db576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061251a5780518252601f1990920191602091820191016124fb565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461257c576040519150601f19603f3d011682016040523d82523d6000602084013e612581565b606091505b50915091506125918282866125a2565b979650505050505050565b3b151590565b606083156125b1575081610ca0565b8251156125c15782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561212c57818101518382015260200161211456fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f2061646472657373704554483a207472616e736665722066726f6d20746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c704554483a207472616e7366657220746f20746865207a65726f2061646472657373e1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564704554483a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220289a9cd51d408c8e0bb8d2c108cfd5a82220c98ed9cbcf232d97d5f6e336931564736f6c63430007040033

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

000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

-----Decoded View---------------
Arg [0] : wethAddress (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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