ETH Price: $2,893.24 (-1.44%)

Contract

0x5110cDC96303F8E64252a41Bf1920280a484eCDD

Overview

ETH Balance

Linea Mainnet LogoLinea Mainnet LogoLinea Mainnet Logo0 ETH

ETH Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Withdraw226928392025-08-30 8:04:08148 days ago1756541048IN
0x5110cDC9...0a484eCDD
0 ETH0.000004020.04077395
Withdraw212150372025-07-24 2:39:48186 days ago1753324788IN
0x5110cDC9...0a484eCDD
0 ETH0.000004460.04523404
Withdraw211071152025-07-21 10:57:40188 days ago1753095460IN
0x5110cDC9...0a484eCDD
0 ETH0.000004670.04738804
Withdraw175007312025-03-29 17:42:45302 days ago1743270165IN
0x5110cDC9...0a484eCDD
0 ETH0.000004190.0425269
Withdraw165727022025-03-05 11:06:25326 days ago1741172785IN
0x5110cDC9...0a484eCDD
0 ETH0.000010750.109
Withdraw155525682025-02-07 22:53:59352 days ago1738968839IN
0x5110cDC9...0a484eCDD
0 ETH0.000005260.04341977
Withdraw135425862024-12-20 6:25:29402 days ago1734675929IN
0x5110cDC9...0a484eCDD
0 ETH0.000008490.08609482
Withdraw134685082024-12-18 12:21:44403 days ago1734524504IN
0x5110cDC9...0a484eCDD
0 ETH0.000004690.04759567
Withdraw134533692024-12-18 3:52:45404 days ago1734493965IN
0x5110cDC9...0a484eCDD
0 ETH0.000004510.04579884
Withdraw133478992024-12-15 15:19:09406 days ago1734275949IN
0x5110cDC9...0a484eCDD
0 ETH0.000007610.06276445
Withdraw132875412024-12-14 4:22:10408 days ago1734150130IN
0x5110cDC9...0a484eCDD
0 ETH0.000010610.1076289
Withdraw132828402024-12-14 1:40:16408 days ago1734140416IN
0x5110cDC9...0a484eCDD
0 ETH0.000006030.04971064
Withdraw132363192024-12-12 22:48:22409 days ago1734043702IN
0x5110cDC9...0a484eCDD
0 ETH0.000006580.06673817
Withdraw130842682024-12-09 7:39:15412 days ago1733729955IN
0x5110cDC9...0a484eCDD
0 ETH0.00000710.07200162
Withdraw128431012024-12-03 8:52:50418 days ago1733215970IN
0x5110cDC9...0a484eCDD
0 ETH0.000014190.1438182
Withdraw128175242024-12-02 17:36:26419 days ago1733160986IN
0x5110cDC9...0a484eCDD
0 ETH0.000034760.35236457
Withdraw122253342024-11-18 15:29:04433 days ago1731943744IN
0x5110cDC9...0a484eCDD
0 ETH0.0000150.15206378
Withdraw122053802024-11-18 4:22:48434 days ago1731903768IN
0x5110cDC9...0a484eCDD
0 ETH0.000030120.30531885
Withdraw121673202024-11-17 6:50:54435 days ago1731826254IN
0x5110cDC9...0a484eCDD
0 ETH0.000016950.17179995
Withdraw119736852024-11-12 16:26:13439 days ago1731428773IN
0x5110cDC9...0a484eCDD
0 ETH0.000055060.558
Withdraw114677732024-10-31 18:57:54451 days ago1730401074IN
0x5110cDC9...0a484eCDD
0 ETH0.000005910.05989863
Withdraw112607932024-10-26 23:02:38456 days ago1729983758IN
0x5110cDC9...0a484eCDD
0 ETH0.000013480.13668902
Withdraw104296592024-10-07 8:11:07475 days ago1728288667IN
0x5110cDC9...0a484eCDD
0 ETH0.000014080.116
Withdraw103060602024-10-04 10:52:35478 days ago1728039155IN
0x5110cDC9...0a484eCDD
0 ETH0.000004820.04886649
Deposit All101622472024-10-01 2:18:06482 days ago1727749086IN
0x5110cDC9...0a484eCDD
0 ETH0.000014280.11517098
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
247160892025-10-19 23:13:0498 days ago1760915584
0x5110cDC9...0a484eCDD
0 ETH
226928392025-08-30 8:04:08148 days ago1756541048
0x5110cDC9...0a484eCDD
0 ETH
226928392025-08-30 8:04:08148 days ago1756541048
0x5110cDC9...0a484eCDD
0 ETH
212150372025-07-24 2:39:48186 days ago1753324788
0x5110cDC9...0a484eCDD
0 ETH
212150372025-07-24 2:39:48186 days ago1753324788
0x5110cDC9...0a484eCDD
0 ETH
212150142025-07-24 2:39:02186 days ago1753324742
0x5110cDC9...0a484eCDD
0 ETH
211071152025-07-21 10:57:40188 days ago1753095460
0x5110cDC9...0a484eCDD
0 ETH
211071152025-07-21 10:57:40188 days ago1753095460
0x5110cDC9...0a484eCDD
0 ETH
175007312025-03-29 17:42:45302 days ago1743270165
0x5110cDC9...0a484eCDD
0 ETH
175007312025-03-29 17:42:45302 days ago1743270165
0x5110cDC9...0a484eCDD
0 ETH
165727152025-03-05 11:06:51326 days ago1741172811
0x5110cDC9...0a484eCDD
0 ETH
165727022025-03-05 11:06:25326 days ago1741172785
0x5110cDC9...0a484eCDD
0 ETH
165727022025-03-05 11:06:25326 days ago1741172785
0x5110cDC9...0a484eCDD
0 ETH
155525682025-02-07 22:53:59352 days ago1738968839
0x5110cDC9...0a484eCDD
0 ETH
155525682025-02-07 22:53:59352 days ago1738968839
0x5110cDC9...0a484eCDD
0 ETH
135425862024-12-20 6:25:29402 days ago1734675929
0x5110cDC9...0a484eCDD
0 ETH
135425862024-12-20 6:25:29402 days ago1734675929
0x5110cDC9...0a484eCDD
0 ETH
135323222024-12-20 0:33:45402 days ago1734654825
0x5110cDC9...0a484eCDD
0 ETH
134685082024-12-18 12:21:44403 days ago1734524504
0x5110cDC9...0a484eCDD
0 ETH
134685082024-12-18 12:21:44403 days ago1734524504
0x5110cDC9...0a484eCDD
0 ETH
134533692024-12-18 3:52:45404 days ago1734493965
0x5110cDC9...0a484eCDD
0 ETH
134533692024-12-18 3:52:45404 days ago1734493965
0x5110cDC9...0a484eCDD
0 ETH
133478992024-12-15 15:19:09406 days ago1734275949
0x5110cDC9...0a484eCDD
0 ETH
133478992024-12-15 15:19:09406 days ago1734275949
0x5110cDC9...0a484eCDD
0 ETH
132875412024-12-14 4:22:10408 days ago1734150130
0x5110cDC9...0a484eCDD
0 ETH
View All Internal Transactions
Cross-Chain Transactions
Loading...
Loading

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

Contract Name:
TowerPool

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";
import "./interfaces/IERC20.sol";

interface ITowerPoolFactory {
    function emitDeposit(address account, uint256 amount) external;

    function emitWithdraw(address account, uint256 amount) external;
}

// TowerPools are used for rewards, they emit reward tokens over 7 days for staked tokens
contract TowerPool {
    address public stake; // the token that needs to be staked for rewards
    address public factory; // the TowerPoolFactory

    uint256 internal constant DURATION = 7 days; // rewards are released over 7 days
    uint256 internal constant PRECISION = 10 ** 18;

    mapping(address => uint256) public pendingRewardRate;
    mapping(address => bool) public isStarted;
    mapping(address => uint256) public rewardRate;
    mapping(address => uint256) public periodFinish;
    mapping(address => uint256) public lastUpdateTime;
    mapping(address => uint256) public rewardPerTokenStored;
    mapping(address => mapping(address => uint256)) public storedRewardsPerUser;

    mapping(address => mapping(address => uint256))
        public userRewardPerTokenStored;

    uint256 public totalSupply;
    mapping(address => uint256) public balanceOf;

    address[] public rewards;
    mapping(address => bool) public isReward;

    uint256 internal _unlocked;

    event Deposit(address indexed from, uint256 amount);
    event Withdraw(address indexed from, uint256 amount);
    event NotifyReward(
        address indexed from,
        address indexed reward,
        uint256 amount
    );
    event ClaimRewards(
        address indexed from,
        address indexed reward,
        uint256 amount
    );

    struct RewardInfo {
      address towerPool;
      address rewardTokenAddress;
      string rewardTokenSymbol;
      uint256 rewardTokenDecimals;
      uint256 periodFinish;
      uint256 rewardRate;
      uint256 lastUpdateTime;
      uint256 rewardPerTokenStored;
      uint256 pendingReward;
      uint256 reinvestBounty;
      bool isStarted;
    }

    function _initialize(
        address _stake,
        address[] memory _allowedRewardTokens
    ) external {
        require(factory == address(0), "TowerPool: FACTORY_ALREADY_SET");
        factory = msg.sender;
        stake = _stake;

        for (uint256 i; i < _allowedRewardTokens.length; ++i) {
            if (_allowedRewardTokens[i] != address(0)) {
                rewards.push(_allowedRewardTokens[i]);
                isReward[_allowedRewardTokens[i]] = true;
            }
        }

        _unlocked = 1;
    }

    // simple re-entrancy check
    modifier lock() {
        require(_unlocked == 1);
        _unlocked = 2;
        _;
        _unlocked = 1;
    }

    function rewardsListLength() external view returns (uint256) {
        return rewards.length;
    }

    // returns the last time the reward was modified or periodFinish if the reward has ended
    function lastTimeRewardApplicable(
        address token
    ) public view returns (uint256) {
        return Math.min(block.timestamp, periodFinish[token]);
    }

    function earned(address account) external view returns (uint256[] memory earnedList) {
        uint256 len = rewards.length;
        earnedList = new uint256[](len);

        for (uint256 i = 0; i < len; i++) {
            earnedList[i] = earned(rewards[i], account);
        }
    }

    function earned(
        address token,
        address account
    ) public view returns (uint256) {
        return
            (balanceOf[account] *
                (rewardPerToken(token) -
                    userRewardPerTokenStored[account][token])) /
            PRECISION +
            storedRewardsPerUser[account][token];
    }

    // Only the tokens you claim will get updated.
    function getReward(address account, address[] memory tokens) public lock {
        require(msg.sender == account || msg.sender == factory);

        // update all user rewards regardless of tokens they are claiming
        address[] memory _rewards = rewards;
        uint256 len = _rewards.length;
        for (uint256 i; i < len; ++i) {
            if (isReward[_rewards[i]]) {
                if (!isStarted[_rewards[i]]) {
                    initializeRewardsDistribution(_rewards[i]);
                }
                updateRewardPerToken(_rewards[i], account);
            }
        }
        // transfer only the rewards they are claiming
        len = tokens.length;
        for (uint256 i; i < len; ++i){
            uint256 _reward = storedRewardsPerUser[account][tokens[i]];
            if (_reward > 0) {
                storedRewardsPerUser[account][tokens[i]] = 0;
                _safeTransfer(tokens[i], account, _reward);
                emit ClaimRewards(account, tokens[i], _reward);
            }        
        }
    }

    function rewardPerToken(address token) public view returns (uint256) {
        if (totalSupply == 0) {
            return rewardPerTokenStored[token];
        }
        return
            rewardPerTokenStored[token] +
            (((lastTimeRewardApplicable(token) -
                Math.min(lastUpdateTime[token], periodFinish[token])) *
                rewardRate[token] *
                PRECISION) / totalSupply);
    }

    function depositAll() external {
        deposit(IERC20(stake).balanceOf(msg.sender));
    }

    function deposit(uint256 amount) public lock {
        require(amount > 0);

        address[] memory _rewards = rewards;
        uint256 len = _rewards.length;

        for (uint256 i; i < len; ++i) {
            if (!isStarted[_rewards[i]]) {
                initializeRewardsDistribution(_rewards[i]);
            }
            updateRewardPerToken(_rewards[i], msg.sender);
        }

        _safeTransferFrom(stake, msg.sender, address(this), amount);
        totalSupply += amount;
        balanceOf[msg.sender] += amount;

        ITowerPoolFactory(factory).emitDeposit(msg.sender, amount);
        emit Deposit(msg.sender, amount);
    }

    function withdrawAll() external {
        withdraw(balanceOf[msg.sender]);
    }

    function withdraw(uint256 amount) public lock {
        require(amount > 0);

        address[] memory _rewards = rewards;
        uint256 len = _rewards.length;

        for (uint256 i; i < len; ++i) {
            updateRewardPerToken(_rewards[i], msg.sender);
        }

        totalSupply -= amount;
        balanceOf[msg.sender] -= amount;
        _safeTransfer(stake, msg.sender, amount);

        ITowerPoolFactory(factory).emitWithdraw(msg.sender, amount);
        emit Withdraw(msg.sender, amount);
    }

    function left(address token) external view returns (uint256) {
        if (block.timestamp >= periodFinish[token]) return 0;
        uint256 _remaining = periodFinish[token] - block.timestamp;
        return _remaining * rewardRate[token];
    }

    // @dev rewardRate and periodFinish is set on first deposit if totalSupply == 0 or first interaction after whitelisting.
    function notifyRewardAmount(address token, uint256 amount) external lock {
        require(token != stake);
        require(amount > 0);
        rewardPerTokenStored[token] = rewardPerToken(token);
        
        // Check actual amount transferred for compatibility with fee on transfer tokens.
        uint balanceBefore = IERC20(token).balanceOf(address(this));
        _safeTransferFrom(token, msg.sender, address(this), amount);
        uint balanceAfter = IERC20(token).balanceOf(address(this));
        amount = balanceAfter - balanceBefore;
        uint _rewardRate = amount / DURATION;

        if (isStarted[token]) {
            if (block.timestamp >= periodFinish[token]) {
                rewardRate[token] = _rewardRate;
            } else {
                uint256 _remaining = periodFinish[token] - block.timestamp;
                uint256 _left = _remaining * rewardRate[token];
                require(amount > _left);
                rewardRate[token] = (amount + _left) / DURATION;
            }
            periodFinish[token] = block.timestamp + DURATION;
            lastUpdateTime[token] = block.timestamp;
        } else {
            if (pendingRewardRate[token] > 0) {
                uint256 _left = DURATION * pendingRewardRate[token];
                pendingRewardRate[token] = (amount + _left) / DURATION;
            } else {
                pendingRewardRate[token] = _rewardRate;
            }
        }
        uint256 balance = IERC20(token).balanceOf(address(this));
        require(
            rewardRate[token] <= balance / DURATION,
            "Provided reward too high"
        );
        if (!isStarted[token]) {
            require(
                pendingRewardRate[token] <= balance / DURATION,
                "Provided reward too high"
            );
        }

        emit NotifyReward(msg.sender, token, amount);
    }

    function initializeRewardsDistribution(address token) internal {
        isStarted[token] = true;
        rewardRate[token] = pendingRewardRate[token];
        lastUpdateTime[token] = block.timestamp;
        periodFinish[token] = block.timestamp + DURATION;
        pendingRewardRate[token] = 0;
    }

    function whitelistNotifiedRewards(address token) external {
        require(msg.sender == factory);
        if (!isReward[token]) {
            isReward[token] = true;
            rewards.push(token);
        }
        if (!isStarted[token] && totalSupply > 0) {
            initializeRewardsDistribution(token);
        }
    }

    function getRewardTokenIndex(address token) public view returns (uint256) {
        address[] memory _rewards = rewards;
        uint256 len = _rewards.length;

        for (uint256 i; i < len; ++i) {
            if (_rewards[i] == token) {
                return i;
            }
        }
        return 0;
    }

    function removeRewardWhitelist(address token) external {
        require(msg.sender == factory);
        if (!isReward[token]) {
            return;
        }
        isReward[token] = false;
        uint256 idx = getRewardTokenIndex(token);
        uint256 len = rewards.length;
        for (uint256 i = idx; i < len - 1; ++i) {
            rewards[i] = rewards[i + 1];
        }
        rewards.pop();
    }

    function poke(address account) external {
        // Update reward rates and user rewards
        for (uint256 i; i < rewards.length; ++i) {
            updateRewardPerToken(rewards[i], account);
        }
    }

    function updateRewardPerToken(address token, address account) internal {
        rewardPerTokenStored[token] = rewardPerToken(token);
        lastUpdateTime[token] = lastTimeRewardApplicable(token);
        storedRewardsPerUser[account][token] = earned(token, account);
        userRewardPerTokenStored[account][token] = rewardPerTokenStored[token];
    }

    function _safeTransfer(address token, address to, uint256 value) internal {
        require(token.code.length > 0);
        (bool success, bytes memory data) = token.call(
            abi.encodeWithSelector(IERC20.transfer.selector, to, value)
        );
        require(success && (data.length == 0 || abi.decode(data, (bool))));
    }

    function _safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        require(token.code.length > 0);
        (bool success, bytes memory data) = token.call(
            abi.encodeWithSelector(
                IERC20.transferFrom.selector,
                from,
                to,
                value
            )
        );
        require(success && (data.length == 0 || abi.decode(data, (bool))));
    }

    function _safeApprove(
        address token,
        address spender,
        uint256 value
    ) internal {
        require(token.code.length > 0);
        (bool success, bytes memory data) = token.call(
            abi.encodeWithSelector(IERC20.approve.selector, spender, value)
        );
        require(success && (data.length == 0 || abi.decode(data, (bool))));
    }

    function removeExtraRewardToken(
        uint256 index,
        uint256 duplicateIndex
    ) external onlyFactoryOwner {
        require(index < duplicateIndex);
        require(rewards[index] == rewards[duplicateIndex]);

        uint len = rewards.length;
        for (uint i = duplicateIndex; i < len - 1; ++i) {
            rewards[i] = rewards[i + 1];
        }
        rewards.pop();
    }

    function getRewardInfoList() external view returns (RewardInfo[] memory rewardInfoList) {
        uint256 len = rewards.length;
        rewardInfoList = new RewardInfo[](len);

        for (uint256 i = 0; i < len; i++) {
            address rewardToken = rewards[i];
            RewardInfo memory rewardInfo = rewardInfoList[i];
            rewardInfo.towerPool = address(this);
            rewardInfo.rewardTokenAddress = rewardToken;
            rewardInfo.rewardTokenSymbol = IERC20(rewardToken).symbol();
            rewardInfo.rewardTokenDecimals = IERC20(rewardToken).decimals();
            rewardInfo.isStarted = isStarted[rewardToken];
            rewardInfo.rewardRate = rewardRate[rewardToken];
            rewardInfo.lastUpdateTime = lastUpdateTime[rewardToken];
            rewardInfo.periodFinish = periodFinish[rewardToken];
            rewardInfo.rewardPerTokenStored = rewardPerTokenStored[rewardToken];
        }
    }

    modifier onlyFactoryOwner() {
        require(Ownable(factory).owner() == msg.sender, "NOT_AUTHORIZED");
        _;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

pragma solidity >=0.5.0;

interface IERC20 {
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );
    event Transfer(address indexed from, address indexed to, uint256 value);

    function name() external view returns (string memory);

    function symbol() external view returns (string memory);

    function decimals() external view returns (uint8);

    function totalSupply() external view returns (uint256);

    function balanceOf(address owner) external view returns (uint256);

    function allowance(address owner, address spender)
        external
        view
        returns (uint256);

    function approve(address spender, uint256 value) external returns (bool);

    function transfer(address to, uint256 value) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool);
}

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

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"reward","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimRewards","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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"reward","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"NotifyReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"address","name":"_stake","type":"address"},{"internalType":"address[]","name":"_allowedRewardTokens","type":"address[]"}],"name":"_initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256[]","name":"earnedList","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardInfoList","outputs":[{"components":[{"internalType":"address","name":"towerPool","type":"address"},{"internalType":"address","name":"rewardTokenAddress","type":"address"},{"internalType":"string","name":"rewardTokenSymbol","type":"string"},{"internalType":"uint256","name":"rewardTokenDecimals","type":"uint256"},{"internalType":"uint256","name":"periodFinish","type":"uint256"},{"internalType":"uint256","name":"rewardRate","type":"uint256"},{"internalType":"uint256","name":"lastUpdateTime","type":"uint256"},{"internalType":"uint256","name":"rewardPerTokenStored","type":"uint256"},{"internalType":"uint256","name":"pendingReward","type":"uint256"},{"internalType":"uint256","name":"reinvestBounty","type":"uint256"},{"internalType":"bool","name":"isStarted","type":"bool"}],"internalType":"struct TowerPool.RewardInfo[]","name":"rewardInfoList","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"getRewardTokenIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"left","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pendingRewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"poke","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"duplicateIndex","type":"uint256"}],"name":"removeExtraRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"removeRewardWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsListLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stake","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"storedRewardsPerUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"whitelistNotifiedRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

0x608060405234801561001057600080fd5b50612598806100206000396000f3fe608060405234801561001057600080fd5b50600436106101fa5760003560e01c8063619913c21161011a578063b66503cf116100ad578063da09d19d1161007c578063da09d19d146104df578063de5f6268146104ff578063e688639614610507578063f12297771461050f578063f301af421461052257600080fd5b8063b66503cf14610491578063b6b55f25146104a4578063c2cd097f146104b7578063c45a0155146104cc57600080fd5b8063853828b6116100e9578063853828b61461044357806399bcc0521461044b5780639ce43f901461045e578063b1a997ac1461047e57600080fd5b8063619913c2146103dd578063638634ee146103fd57806370a0823114610410578063798e44fe1461043057600080fd5b80632e1a7d4d116101925780633a4b66f1116101615780633a4b66f1146103515780633ca068b61461037c5780634d5ce038146103a75780635aa2e87a146103ca57600080fd5b80632e1a7d4d146102ed57806331279d3d146103005780633688121714610313578063369252591461032657600080fd5b806318160ddd116101ce57806318160ddd14610291578063211dc32d1461029a578063221ca18c146102ad5780632ce9aead146102cd57600080fd5b80628cc262146101ff5780630279cb7d1461022857806303c698d21461025b5780630c96238f1461027c575b600080fd5b61021261020d366004612016565b610535565b60405161021f9190612033565b60405180910390f35b61024b610236366004612016565b60036020526000908152604090205460ff1681565b604051901515815260200161021f565b61026e610269366004612016565b6105f2565b60405190815260200161021f565b61028f61028a366004612016565b6106b6565b005b61026e600a5481565b61026e6102a8366004612077565b6107ee565b61026e6102bb366004612016565b60046020526000908152604090205481565b61026e6102db366004612016565b60066020526000908152604090205481565b61028f6102fb3660046120b0565b610886565b61028f61030e366004612110565b610a3c565b61028f6103213660046121d7565b610d33565b61026e610334366004612077565b600860209081526000928352604080842090915290825290205481565b600054610364906001600160a01b031681565b6040516001600160a01b03909116815260200161021f565b61026e61038a366004612077565b600960209081526000928352604080842090915290825290205481565b61024b6103b5366004612016565b600d6020526000908152604090205460ff1681565b61028f6103d8366004612110565b610eef565b61026e6103eb366004612016565b60026020526000908152604090205481565b61026e61040b366004612016565b611070565b61026e61041e366004612016565b600b6020526000908152604090205481565b61028f61043e366004612016565b61109a565b61028f611173565b61026e610459366004612016565b61118e565b61026e61046c366004612016565b60076020526000908152604090205481565b61028f61048c366004612016565b6111ff565b61028f61049f3660046121f9565b611251565b61028f6104b23660046120b0565b61171f565b6104bf611910565b60405161021f9190612281565b600154610364906001600160a01b031681565b61026e6104ed366004612016565b60056020526000908152604090205481565b61028f611b9a565b600c5461026e565b61026e61051d366004612016565b611c08565b6103646105303660046120b0565b611cc7565b600c546060908067ffffffffffffffff811115610554576105546120c9565b60405190808252806020026020018201604052801561057d578160200160208202803683370190505b50915060005b818110156105eb576105bc600c82815481106105a1576105a161236c565b6000918252602090912001546001600160a01b0316856107ee565b8382815181106105ce576105ce61236c565b6020908102919091010152806105e381612398565b915050610583565b5050919050565b600080600c80548060200260200160405190810160405280929190818152602001828054801561064b57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161062d575b505083519394506000925050505b818110156106ab57846001600160a01b031683828151811061067d5761067d61236c565b60200260200101516001600160a01b03160361069b57949350505050565b6106a481612398565b9050610659565b506000949350505050565b6001546001600160a01b031633146106cd57600080fd5b6001600160a01b0381166000908152600d602052604090205460ff166106f05750565b6001600160a01b0381166000908152600d60205260408120805460ff19169055610719826105f2565b600c54909150815b61072c6001836123b1565b8110156107b557600c6107408260016123c8565b815481106107505761075061236c565b600091825260209091200154600c80546001600160a01b03909216918390811061077c5761077c61236c565b600091825260209091200180546001600160a01b0319166001600160a01b03929092169190911790556107ae81612398565b9050610721565b50600c8054806107c7576107c76123e0565b600082815260209020810160001990810180546001600160a01b0319169055019055505050565b6001600160a01b038082166000818152600860209081526040808320948716808452948252808320549383526009825280832094835293905291822054670de0b6b3a76400009061083e86611c08565b61084891906123b1565b6001600160a01b0385166000908152600b602052604090205461086b91906123f6565b6108759190612415565b61087f91906123c8565b9392505050565b600e5460011461089557600080fd5b6002600e55806108a457600080fd5b6000600c8054806020026020016040519081016040528092919081815260200182805480156108fc57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116108de575b505083519394506000925050505b81811015610945576109358382815181106109275761092761236c565b602002602001015133611cf1565b61093e81612398565b905061090a565b5082600a600082825461095891906123b1565b9091555050336000908152600b60205260408120805485929061097c9084906123b1565b9091555050600054610998906001600160a01b03163385611d8a565b60015460405163b014da2160e01b8152336004820152602481018590526001600160a01b039091169063b014da2190604401600060405180830381600087803b1580156109e457600080fd5b505af11580156109f8573d6000803e3d6000fd5b50506040518581523392507f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436491506020015b60405180910390a250506001600e5550565b600e54600114610a4b57600080fd5b6002600e55336001600160a01b0383161480610a7157506001546001600160a01b031633145b610a7a57600080fd5b6000600c805480602002602001604051908101604052809291908181526020018280548015610ad257602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610ab4575b505083519394506000925050505b81811015610bc057600d6000848381518110610afe57610afe61236c565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff1615610bb05760036000848381518110610b4057610b4061236c565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16610b8d57610b8d838281518110610b8057610b8061236c565b6020026020010151611e79565b610bb0838281518110610ba257610ba261236c565b602002602001015186611cf1565b610bb981612398565b9050610ae0565b5050815160005b81811015610d27576001600160a01b038516600090815260086020526040812085518290879085908110610bfd57610bfd61236c565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205490506000811115610d16576001600160a01b038616600090815260086020526040812086518290889086908110610c5f57610c5f61236c565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002081905550610caf858381518110610ca057610ca061236c565b60200260200101518783611d8a565b848281518110610cc157610cc161236c565b60200260200101516001600160a01b0316866001600160a01b03167f9aa05b3d70a9e3e2f004f039648839560576334fb45c81f91b6db03ad9e2efc983604051610d0d91815260200190565b60405180910390a35b50610d2081612398565b9050610bc7565b50506001600e55505050565b60015460408051638da5cb5b60e01b8152905133926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa158015610d7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da09190612437565b6001600160a01b031614610dec5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b808210610df857600080fd5b600c8181548110610e0b57610e0b61236c565b600091825260209091200154600c80546001600160a01b039092169184908110610e3757610e3761236c565b6000918252602090912001546001600160a01b031614610e5657600080fd5b600c54815b610e666001836123b1565b8110156107b557600c610e7a8260016123c8565b81548110610e8a57610e8a61236c565b600091825260209091200154600c80546001600160a01b039092169183908110610eb657610eb661236c565b600091825260209091200180546001600160a01b0319166001600160a01b0392909216919091179055610ee881612398565b9050610e5b565b6001546001600160a01b031615610f485760405162461bcd60e51b815260206004820152601e60248201527f546f776572506f6f6c3a20464143544f52595f414c52454144595f53455400006044820152606401610de3565b60018054336001600160a01b031991821617909155600080549091166001600160a01b0384161781555b81518110156110665760006001600160a01b0316828281518110610f9857610f9861236c565b60200260200101516001600160a01b03161461105657600c828281518110610fc257610fc261236c565b60209081029190910181015182546001808201855560009485529284200180546001600160a01b0319166001600160a01b0390921691909117905583519091600d918590859081106110165761101661236c565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055505b61105f81612398565b9050610f72565b50506001600e5550565b6001600160a01b038116600090815260056020526040812054611094904290611ef3565b92915050565b6001546001600160a01b031633146110b157600080fd5b6001600160a01b0381166000908152600d602052604090205460ff16611137576001600160a01b0381166000818152600d60205260408120805460ff19166001908117909155600c805491820181559091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b03191690911790555b6001600160a01b03811660009081526003602052604090205460ff1615801561116257506000600a54115b156111705761117081611e79565b50565b336000908152600b602052604090205461118c90610886565b565b6001600160a01b03811660009081526005602052604081205442106111b557506000919050565b6001600160a01b0382166000908152600560205260408120546111d99042906123b1565b6001600160a01b03841660009081526004602052604090205490915061087f90826123f6565b60005b600c5481101561124d5761123d600c82815481106112225761122261236c565b6000918252602090912001546001600160a01b031683611cf1565b61124681612398565b9050611202565b5050565b600e5460011461126057600080fd5b6002600e556000546001600160a01b039081169083160361128057600080fd5b6000811161128d57600080fd5b61129682611c08565b6001600160a01b0383166000818152600760205260408082209390935591516370a0823160e01b81523060048201526370a0823190602401602060405180830381865afa1580156112eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061130f9190612454565b905061131d83333085611f09565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a0823190602401602060405180830381865afa158015611364573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113889190612454565b905061139482826123b1565b925060006113a562093a8085612415565b6001600160a01b03861660009081526003602052604090205490915060ff16156114ce576001600160a01b0385166000908152600560205260409020544210611408576001600160a01b0385166000908152600460205260409020819055611495565b6001600160a01b03851660009081526005602052604081205461142c9042906123b1565b6001600160a01b0387166000908152600460205260408120549192509061145390836123f6565b905080861161146157600080fd5b62093a8061146f82886123c8565b6114799190612415565b6001600160a01b03881660009081526004602052604090205550505b6114a262093a80426123c8565b6001600160a01b0386166000908152600560209081526040808320939093556006905220429055611567565b6001600160a01b0385166000908152600260205260409020541561154b576001600160a01b0385166000908152600260205260408120546115129062093a806123f6565b905062093a8061152282876123c8565b61152c9190612415565b6001600160a01b03871660009081526002602052604090205550611567565b6001600160a01b03851660009081526002602052604090208190555b6040516370a0823160e01b81523060048201526000906001600160a01b038716906370a0823190602401602060405180830381865afa1580156115ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d29190612454565b90506115e162093a8082612415565b6001600160a01b03871660009081526004602052604090205411156116435760405162461bcd60e51b81526020600482015260186024820152770a0e4deecd2c8cac840e4caeec2e4c840e8dede40d0d2ced60431b6044820152606401610de3565b6001600160a01b03861660009081526003602052604090205460ff166116d25761167062093a8082612415565b6001600160a01b03871660009081526002602052604090205411156116d25760405162461bcd60e51b81526020600482015260186024820152770a0e4deecd2c8cac840e4caeec2e4c840e8dede40d0d2ced60431b6044820152606401610de3565b6040518581526001600160a01b0387169033907ff70d5c697de7ea828df48e5c4573cb2194c659f1901f70110c52b066dcf508269060200160405180910390a350506001600e5550505050565b600e5460011461172e57600080fd5b6002600e558061173d57600080fd5b6000600c80548060200260200160405190810160405280929190818152602001828054801561179557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611777575b505083519394506000925050505b8181101561182657600360008483815181106117c1576117c161236c565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff1661180157611801838281518110610b8057610b8061236c565b6118168382815181106109275761092761236c565b61181f81612398565b90506117a3565b5060005461183f906001600160a01b0316333086611f09565b82600a600082825461185191906123c8565b9091555050336000908152600b6020526040812080548592906118759084906123c8565b909155505060015460405163145d426560e11b8152336004820152602481018590526001600160a01b03909116906328ba84ca90604401600060405180830381600087803b1580156118c657600080fd5b505af11580156118da573d6000803e3d6000fd5b50506040518581523392507fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9150602001610a2a565b600c546060908067ffffffffffffffff81111561192f5761192f6120c9565b6040519080825280602002602001820160405280156119d157816020015b6119be60405180610160016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160608152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000151581525090565b81526020019060019003908161194d5790505b50915060005b81811015611b95576000600c82815481106119f4576119f461236c565b600091825260208220015485516001600160a01b039091169250859084908110611a2057611a2061236c565b6020908102919091018101513081526001600160a01b038416918101829052604080516395d89b4160e01b815290519193506395d89b419160048083019260009291908290030181865afa158015611a7c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611aa4919081019061246d565b8160400181905250816001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015611aea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b0e9190612501565b60ff90811660608301526001600160a01b039092166000818152600360209081526040808320549095161515610140850152828252600481528482205460a0850152828252600681528482205460c0850152828252600581528482205460808501529181526007909152919091205460e09091015280611b8d81612398565b9150506119d7565b505090565b6000546040516370a0823160e01b815233600482015261118c916001600160a01b0316906370a0823190602401602060405180830381865afa158015611be4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b29190612454565b6000600a54600003611c3057506001600160a01b031660009081526007602052604090205490565b600a546001600160a01b03831660009081526004602090815260408083205460068352818420546005909352922054670de0b6b3a76400009291611c7391611ef3565b611c7c86611070565b611c8691906123b1565b611c9091906123f6565b611c9a91906123f6565b611ca49190612415565b6001600160a01b03831660009081526007602052604090205461109491906123c8565b600c8181548110611cd757600080fd5b6000918252602090912001546001600160a01b0316905081565b611cfa82611c08565b6001600160a01b038316600090815260076020526040902055611d1c82611070565b6001600160a01b038316600090815260066020526040902055611d3f82826107ee565b6001600160a01b039182166000818152600860209081526040808320969095168083529581528482209390935560078352838120549181526009835283812094815293909152912055565b6000836001600160a01b03163b11611da157600080fd5b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092839290871691611dfd9190612524565b6000604051808303816000865af19150503d8060008114611e3a576040519150601f19603f3d011682016040523d82523d6000602084013e611e3f565b606091505b5091509150818015611e69575080511580611e69575080806020019051810190611e699190612540565b611e7257600080fd5b5050505050565b6001600160a01b0381166000908152600360209081526040808320805460ff1916600117905560028252808320546004835281842055600690915290204290819055611ec99062093a80906123c8565b6001600160a01b039091166000908152600560209081526040808320939093556002905290812055565b6000818310611f02578161087f565b5090919050565b6000846001600160a01b03163b11611f2057600080fd5b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b1790529151600092839290881691611f849190612524565b6000604051808303816000865af19150503d8060008114611fc1576040519150601f19603f3d011682016040523d82523d6000602084013e611fc6565b606091505b5091509150818015611ff0575080511580611ff0575080806020019051810190611ff09190612540565b611ff957600080fd5b505050505050565b6001600160a01b038116811461117057600080fd5b60006020828403121561202857600080fd5b813561087f81612001565b6020808252825182820181905260009190848201906040850190845b8181101561206b5783518352928401929184019160010161204f565b50909695505050505050565b6000806040838503121561208a57600080fd5b823561209581612001565b915060208301356120a581612001565b809150509250929050565b6000602082840312156120c257600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612108576121086120c9565b604052919050565b6000806040838503121561212357600080fd5b823561212e81612001565b915060208381013567ffffffffffffffff8082111561214c57600080fd5b818601915086601f83011261216057600080fd5b813581811115612172576121726120c9565b8060051b91506121838483016120df565b818152918301840191848101908984111561219d57600080fd5b938501935b838510156121c757843592506121b783612001565b82825293850193908501906121a2565b8096505050505050509250929050565b600080604083850312156121ea57600080fd5b50508035926020909101359150565b6000806040838503121561220c57600080fd5b823561221781612001565b946020939093013593505050565b60005b83811015612240578181015183820152602001612228565b8381111561224f576000848401525b50505050565b6000815180845261226d816020860160208601612225565b601f01601f19169290920160200192915050565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b8381101561235e57888303603f19018552815180516001600160a01b03168452610160818901516001600160a01b038116868b0152508782015181898701526122f382870182612255565b606084810151908801526080808501519088015260a0808501519088015260c0808501519088015260e08085015190880152610100808501519088015261012080850151908801526101409384015115159390960192909252505093860193908601906001016122a8565b509098975050505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016123aa576123aa612382565b5060010190565b6000828210156123c3576123c3612382565b500390565b600082198211156123db576123db612382565b500190565b634e487b7160e01b600052603160045260246000fd5b600081600019048311821515161561241057612410612382565b500290565b60008261243257634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561244957600080fd5b815161087f81612001565b60006020828403121561246657600080fd5b5051919050565b60006020828403121561247f57600080fd5b815167ffffffffffffffff8082111561249757600080fd5b818401915084601f8301126124ab57600080fd5b8151818111156124bd576124bd6120c9565b6124d0601f8201601f19166020016120df565b91508082528560208285010111156124e757600080fd5b6124f8816020840160208601612225565b50949350505050565b60006020828403121561251357600080fd5b815160ff8116811461087f57600080fd5b60008251612536818460208701612225565b9190910192915050565b60006020828403121561255257600080fd5b8151801515811461087f57600080fdfea264697066735822122015aa0a41cb4c10a230f21897e80c34b58202893396034a054d1163a95e0600df64736f6c634300080d0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101fa5760003560e01c8063619913c21161011a578063b66503cf116100ad578063da09d19d1161007c578063da09d19d146104df578063de5f6268146104ff578063e688639614610507578063f12297771461050f578063f301af421461052257600080fd5b8063b66503cf14610491578063b6b55f25146104a4578063c2cd097f146104b7578063c45a0155146104cc57600080fd5b8063853828b6116100e9578063853828b61461044357806399bcc0521461044b5780639ce43f901461045e578063b1a997ac1461047e57600080fd5b8063619913c2146103dd578063638634ee146103fd57806370a0823114610410578063798e44fe1461043057600080fd5b80632e1a7d4d116101925780633a4b66f1116101615780633a4b66f1146103515780633ca068b61461037c5780634d5ce038146103a75780635aa2e87a146103ca57600080fd5b80632e1a7d4d146102ed57806331279d3d146103005780633688121714610313578063369252591461032657600080fd5b806318160ddd116101ce57806318160ddd14610291578063211dc32d1461029a578063221ca18c146102ad5780632ce9aead146102cd57600080fd5b80628cc262146101ff5780630279cb7d1461022857806303c698d21461025b5780630c96238f1461027c575b600080fd5b61021261020d366004612016565b610535565b60405161021f9190612033565b60405180910390f35b61024b610236366004612016565b60036020526000908152604090205460ff1681565b604051901515815260200161021f565b61026e610269366004612016565b6105f2565b60405190815260200161021f565b61028f61028a366004612016565b6106b6565b005b61026e600a5481565b61026e6102a8366004612077565b6107ee565b61026e6102bb366004612016565b60046020526000908152604090205481565b61026e6102db366004612016565b60066020526000908152604090205481565b61028f6102fb3660046120b0565b610886565b61028f61030e366004612110565b610a3c565b61028f6103213660046121d7565b610d33565b61026e610334366004612077565b600860209081526000928352604080842090915290825290205481565b600054610364906001600160a01b031681565b6040516001600160a01b03909116815260200161021f565b61026e61038a366004612077565b600960209081526000928352604080842090915290825290205481565b61024b6103b5366004612016565b600d6020526000908152604090205460ff1681565b61028f6103d8366004612110565b610eef565b61026e6103eb366004612016565b60026020526000908152604090205481565b61026e61040b366004612016565b611070565b61026e61041e366004612016565b600b6020526000908152604090205481565b61028f61043e366004612016565b61109a565b61028f611173565b61026e610459366004612016565b61118e565b61026e61046c366004612016565b60076020526000908152604090205481565b61028f61048c366004612016565b6111ff565b61028f61049f3660046121f9565b611251565b61028f6104b23660046120b0565b61171f565b6104bf611910565b60405161021f9190612281565b600154610364906001600160a01b031681565b61026e6104ed366004612016565b60056020526000908152604090205481565b61028f611b9a565b600c5461026e565b61026e61051d366004612016565b611c08565b6103646105303660046120b0565b611cc7565b600c546060908067ffffffffffffffff811115610554576105546120c9565b60405190808252806020026020018201604052801561057d578160200160208202803683370190505b50915060005b818110156105eb576105bc600c82815481106105a1576105a161236c565b6000918252602090912001546001600160a01b0316856107ee565b8382815181106105ce576105ce61236c565b6020908102919091010152806105e381612398565b915050610583565b5050919050565b600080600c80548060200260200160405190810160405280929190818152602001828054801561064b57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161062d575b505083519394506000925050505b818110156106ab57846001600160a01b031683828151811061067d5761067d61236c565b60200260200101516001600160a01b03160361069b57949350505050565b6106a481612398565b9050610659565b506000949350505050565b6001546001600160a01b031633146106cd57600080fd5b6001600160a01b0381166000908152600d602052604090205460ff166106f05750565b6001600160a01b0381166000908152600d60205260408120805460ff19169055610719826105f2565b600c54909150815b61072c6001836123b1565b8110156107b557600c6107408260016123c8565b815481106107505761075061236c565b600091825260209091200154600c80546001600160a01b03909216918390811061077c5761077c61236c565b600091825260209091200180546001600160a01b0319166001600160a01b03929092169190911790556107ae81612398565b9050610721565b50600c8054806107c7576107c76123e0565b600082815260209020810160001990810180546001600160a01b0319169055019055505050565b6001600160a01b038082166000818152600860209081526040808320948716808452948252808320549383526009825280832094835293905291822054670de0b6b3a76400009061083e86611c08565b61084891906123b1565b6001600160a01b0385166000908152600b602052604090205461086b91906123f6565b6108759190612415565b61087f91906123c8565b9392505050565b600e5460011461089557600080fd5b6002600e55806108a457600080fd5b6000600c8054806020026020016040519081016040528092919081815260200182805480156108fc57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116108de575b505083519394506000925050505b81811015610945576109358382815181106109275761092761236c565b602002602001015133611cf1565b61093e81612398565b905061090a565b5082600a600082825461095891906123b1565b9091555050336000908152600b60205260408120805485929061097c9084906123b1565b9091555050600054610998906001600160a01b03163385611d8a565b60015460405163b014da2160e01b8152336004820152602481018590526001600160a01b039091169063b014da2190604401600060405180830381600087803b1580156109e457600080fd5b505af11580156109f8573d6000803e3d6000fd5b50506040518581523392507f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436491506020015b60405180910390a250506001600e5550565b600e54600114610a4b57600080fd5b6002600e55336001600160a01b0383161480610a7157506001546001600160a01b031633145b610a7a57600080fd5b6000600c805480602002602001604051908101604052809291908181526020018280548015610ad257602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610ab4575b505083519394506000925050505b81811015610bc057600d6000848381518110610afe57610afe61236c565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff1615610bb05760036000848381518110610b4057610b4061236c565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16610b8d57610b8d838281518110610b8057610b8061236c565b6020026020010151611e79565b610bb0838281518110610ba257610ba261236c565b602002602001015186611cf1565b610bb981612398565b9050610ae0565b5050815160005b81811015610d27576001600160a01b038516600090815260086020526040812085518290879085908110610bfd57610bfd61236c565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205490506000811115610d16576001600160a01b038616600090815260086020526040812086518290889086908110610c5f57610c5f61236c565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002081905550610caf858381518110610ca057610ca061236c565b60200260200101518783611d8a565b848281518110610cc157610cc161236c565b60200260200101516001600160a01b0316866001600160a01b03167f9aa05b3d70a9e3e2f004f039648839560576334fb45c81f91b6db03ad9e2efc983604051610d0d91815260200190565b60405180910390a35b50610d2081612398565b9050610bc7565b50506001600e55505050565b60015460408051638da5cb5b60e01b8152905133926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa158015610d7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da09190612437565b6001600160a01b031614610dec5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b808210610df857600080fd5b600c8181548110610e0b57610e0b61236c565b600091825260209091200154600c80546001600160a01b039092169184908110610e3757610e3761236c565b6000918252602090912001546001600160a01b031614610e5657600080fd5b600c54815b610e666001836123b1565b8110156107b557600c610e7a8260016123c8565b81548110610e8a57610e8a61236c565b600091825260209091200154600c80546001600160a01b039092169183908110610eb657610eb661236c565b600091825260209091200180546001600160a01b0319166001600160a01b0392909216919091179055610ee881612398565b9050610e5b565b6001546001600160a01b031615610f485760405162461bcd60e51b815260206004820152601e60248201527f546f776572506f6f6c3a20464143544f52595f414c52454144595f53455400006044820152606401610de3565b60018054336001600160a01b031991821617909155600080549091166001600160a01b0384161781555b81518110156110665760006001600160a01b0316828281518110610f9857610f9861236c565b60200260200101516001600160a01b03161461105657600c828281518110610fc257610fc261236c565b60209081029190910181015182546001808201855560009485529284200180546001600160a01b0319166001600160a01b0390921691909117905583519091600d918590859081106110165761101661236c565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055505b61105f81612398565b9050610f72565b50506001600e5550565b6001600160a01b038116600090815260056020526040812054611094904290611ef3565b92915050565b6001546001600160a01b031633146110b157600080fd5b6001600160a01b0381166000908152600d602052604090205460ff16611137576001600160a01b0381166000818152600d60205260408120805460ff19166001908117909155600c805491820181559091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b03191690911790555b6001600160a01b03811660009081526003602052604090205460ff1615801561116257506000600a54115b156111705761117081611e79565b50565b336000908152600b602052604090205461118c90610886565b565b6001600160a01b03811660009081526005602052604081205442106111b557506000919050565b6001600160a01b0382166000908152600560205260408120546111d99042906123b1565b6001600160a01b03841660009081526004602052604090205490915061087f90826123f6565b60005b600c5481101561124d5761123d600c82815481106112225761122261236c565b6000918252602090912001546001600160a01b031683611cf1565b61124681612398565b9050611202565b5050565b600e5460011461126057600080fd5b6002600e556000546001600160a01b039081169083160361128057600080fd5b6000811161128d57600080fd5b61129682611c08565b6001600160a01b0383166000818152600760205260408082209390935591516370a0823160e01b81523060048201526370a0823190602401602060405180830381865afa1580156112eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061130f9190612454565b905061131d83333085611f09565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a0823190602401602060405180830381865afa158015611364573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113889190612454565b905061139482826123b1565b925060006113a562093a8085612415565b6001600160a01b03861660009081526003602052604090205490915060ff16156114ce576001600160a01b0385166000908152600560205260409020544210611408576001600160a01b0385166000908152600460205260409020819055611495565b6001600160a01b03851660009081526005602052604081205461142c9042906123b1565b6001600160a01b0387166000908152600460205260408120549192509061145390836123f6565b905080861161146157600080fd5b62093a8061146f82886123c8565b6114799190612415565b6001600160a01b03881660009081526004602052604090205550505b6114a262093a80426123c8565b6001600160a01b0386166000908152600560209081526040808320939093556006905220429055611567565b6001600160a01b0385166000908152600260205260409020541561154b576001600160a01b0385166000908152600260205260408120546115129062093a806123f6565b905062093a8061152282876123c8565b61152c9190612415565b6001600160a01b03871660009081526002602052604090205550611567565b6001600160a01b03851660009081526002602052604090208190555b6040516370a0823160e01b81523060048201526000906001600160a01b038716906370a0823190602401602060405180830381865afa1580156115ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d29190612454565b90506115e162093a8082612415565b6001600160a01b03871660009081526004602052604090205411156116435760405162461bcd60e51b81526020600482015260186024820152770a0e4deecd2c8cac840e4caeec2e4c840e8dede40d0d2ced60431b6044820152606401610de3565b6001600160a01b03861660009081526003602052604090205460ff166116d25761167062093a8082612415565b6001600160a01b03871660009081526002602052604090205411156116d25760405162461bcd60e51b81526020600482015260186024820152770a0e4deecd2c8cac840e4caeec2e4c840e8dede40d0d2ced60431b6044820152606401610de3565b6040518581526001600160a01b0387169033907ff70d5c697de7ea828df48e5c4573cb2194c659f1901f70110c52b066dcf508269060200160405180910390a350506001600e5550505050565b600e5460011461172e57600080fd5b6002600e558061173d57600080fd5b6000600c80548060200260200160405190810160405280929190818152602001828054801561179557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611777575b505083519394506000925050505b8181101561182657600360008483815181106117c1576117c161236c565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff1661180157611801838281518110610b8057610b8061236c565b6118168382815181106109275761092761236c565b61181f81612398565b90506117a3565b5060005461183f906001600160a01b0316333086611f09565b82600a600082825461185191906123c8565b9091555050336000908152600b6020526040812080548592906118759084906123c8565b909155505060015460405163145d426560e11b8152336004820152602481018590526001600160a01b03909116906328ba84ca90604401600060405180830381600087803b1580156118c657600080fd5b505af11580156118da573d6000803e3d6000fd5b50506040518581523392507fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9150602001610a2a565b600c546060908067ffffffffffffffff81111561192f5761192f6120c9565b6040519080825280602002602001820160405280156119d157816020015b6119be60405180610160016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160608152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000151581525090565b81526020019060019003908161194d5790505b50915060005b81811015611b95576000600c82815481106119f4576119f461236c565b600091825260208220015485516001600160a01b039091169250859084908110611a2057611a2061236c565b6020908102919091018101513081526001600160a01b038416918101829052604080516395d89b4160e01b815290519193506395d89b419160048083019260009291908290030181865afa158015611a7c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611aa4919081019061246d565b8160400181905250816001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015611aea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b0e9190612501565b60ff90811660608301526001600160a01b039092166000818152600360209081526040808320549095161515610140850152828252600481528482205460a0850152828252600681528482205460c0850152828252600581528482205460808501529181526007909152919091205460e09091015280611b8d81612398565b9150506119d7565b505090565b6000546040516370a0823160e01b815233600482015261118c916001600160a01b0316906370a0823190602401602060405180830381865afa158015611be4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b29190612454565b6000600a54600003611c3057506001600160a01b031660009081526007602052604090205490565b600a546001600160a01b03831660009081526004602090815260408083205460068352818420546005909352922054670de0b6b3a76400009291611c7391611ef3565b611c7c86611070565b611c8691906123b1565b611c9091906123f6565b611c9a91906123f6565b611ca49190612415565b6001600160a01b03831660009081526007602052604090205461109491906123c8565b600c8181548110611cd757600080fd5b6000918252602090912001546001600160a01b0316905081565b611cfa82611c08565b6001600160a01b038316600090815260076020526040902055611d1c82611070565b6001600160a01b038316600090815260066020526040902055611d3f82826107ee565b6001600160a01b039182166000818152600860209081526040808320969095168083529581528482209390935560078352838120549181526009835283812094815293909152912055565b6000836001600160a01b03163b11611da157600080fd5b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092839290871691611dfd9190612524565b6000604051808303816000865af19150503d8060008114611e3a576040519150601f19603f3d011682016040523d82523d6000602084013e611e3f565b606091505b5091509150818015611e69575080511580611e69575080806020019051810190611e699190612540565b611e7257600080fd5b5050505050565b6001600160a01b0381166000908152600360209081526040808320805460ff1916600117905560028252808320546004835281842055600690915290204290819055611ec99062093a80906123c8565b6001600160a01b039091166000908152600560209081526040808320939093556002905290812055565b6000818310611f02578161087f565b5090919050565b6000846001600160a01b03163b11611f2057600080fd5b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b1790529151600092839290881691611f849190612524565b6000604051808303816000865af19150503d8060008114611fc1576040519150601f19603f3d011682016040523d82523d6000602084013e611fc6565b606091505b5091509150818015611ff0575080511580611ff0575080806020019051810190611ff09190612540565b611ff957600080fd5b505050505050565b6001600160a01b038116811461117057600080fd5b60006020828403121561202857600080fd5b813561087f81612001565b6020808252825182820181905260009190848201906040850190845b8181101561206b5783518352928401929184019160010161204f565b50909695505050505050565b6000806040838503121561208a57600080fd5b823561209581612001565b915060208301356120a581612001565b809150509250929050565b6000602082840312156120c257600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612108576121086120c9565b604052919050565b6000806040838503121561212357600080fd5b823561212e81612001565b915060208381013567ffffffffffffffff8082111561214c57600080fd5b818601915086601f83011261216057600080fd5b813581811115612172576121726120c9565b8060051b91506121838483016120df565b818152918301840191848101908984111561219d57600080fd5b938501935b838510156121c757843592506121b783612001565b82825293850193908501906121a2565b8096505050505050509250929050565b600080604083850312156121ea57600080fd5b50508035926020909101359150565b6000806040838503121561220c57600080fd5b823561221781612001565b946020939093013593505050565b60005b83811015612240578181015183820152602001612228565b8381111561224f576000848401525b50505050565b6000815180845261226d816020860160208601612225565b601f01601f19169290920160200192915050565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b8381101561235e57888303603f19018552815180516001600160a01b03168452610160818901516001600160a01b038116868b0152508782015181898701526122f382870182612255565b606084810151908801526080808501519088015260a0808501519088015260c0808501519088015260e08085015190880152610100808501519088015261012080850151908801526101409384015115159390960192909252505093860193908601906001016122a8565b509098975050505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016123aa576123aa612382565b5060010190565b6000828210156123c3576123c3612382565b500390565b600082198211156123db576123db612382565b500190565b634e487b7160e01b600052603160045260246000fd5b600081600019048311821515161561241057612410612382565b500290565b60008261243257634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561244957600080fd5b815161087f81612001565b60006020828403121561246657600080fd5b5051919050565b60006020828403121561247f57600080fd5b815167ffffffffffffffff8082111561249757600080fd5b818401915084601f8301126124ab57600080fd5b8151818111156124bd576124bd6120c9565b6124d0601f8201601f19166020016120df565b91508082528560208285010111156124e757600080fd5b6124f8816020840160208601612225565b50949350505050565b60006020828403121561251357600080fd5b815160ff8116811461087f57600080fd5b60008251612536818460208701612225565b9190910192915050565b60006020828403121561255257600080fd5b8151801515811461087f57600080fdfea264697066735822122015aa0a41cb4c10a230f21897e80c34b58202893396034a054d1163a95e0600df64736f6c634300080d0033

Block Transaction Gas Used Reward
view all blocks sequenced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
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.