ETH Price: $3,399.61 (-0.54%)
Gas: 16 Gwei

Contract

0x9bfF498262f41DEe6BEB2b81d2166C4287b8209a
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Unlock Tokens182666962023-10-03 1:21:11289 days ago1696296071IN
0x9bfF4982...287b8209a
0 ETH0.0006379617.26809366
Unstake Query180554172023-09-03 10:36:59319 days ago1693737419IN
0x9bfF4982...287b8209a
0 ETH0.0016433210.35985119
Unlock Tokens180553992023-09-03 10:33:11319 days ago1693737191IN
0x9bfF4982...287b8209a
0 ETH0.000367589.94953864
Unstake171596082023-04-30 14:58:35445 days ago1682866715IN
0x9bfF4982...287b8209a
0 ETH0.0097655367.36944169
Unstake Query151134482022-07-10 7:05:34739 days ago1657436734IN
0x9bfF4982...287b8209a
0 ETH0.001154157.98723032
Unstake143297442022-03-05 23:05:41865 days ago1646521541IN
0x9bfF4982...287b8209a
0 ETH0.0077502647.6687029
Stake143296482022-03-05 22:43:39865 days ago1646520219IN
0x9bfF4982...287b8209a
0 ETH0.0091076545.56883066
Unstake141255352022-02-02 8:24:56897 days ago1643790296IN
0x9bfF4982...287b8209a
0 ETH0.0128164788.42299407
Unstake140690342022-01-24 15:08:16906 days ago1643036896IN
0x9bfF4982...287b8209a
0 ETH0.02855199179.35456498
Unstake138930992021-12-28 10:10:35933 days ago1640686235IN
0x9bfF4982...287b8209a
0 ETH0.0132749683.38914593
Unstake138449592021-12-20 22:59:57940 days ago1640041197IN
0x9bfF4982...287b8209a
0 ETH0.0118015974.13388748
Unstake138368972021-12-19 17:17:04942 days ago1639934224IN
0x9bfF4982...287b8209a
0 ETH0.01607243104.05024358
Unstake137895652021-12-12 9:44:55949 days ago1639302295IN
0x9bfF4982...287b8209a
0 ETH0.0074804944.48757283
Unstake137672542021-12-08 21:49:39952 days ago1639000179IN
0x9bfF4982...287b8209a
0 ETH0.0137326694.73740476
Unstake136652002021-11-22 15:11:19969 days ago1637593879IN
0x9bfF4982...287b8209a
0 ETH0.02085428131
Unstake136633872021-11-22 8:20:12969 days ago1637569212IN
0x9bfF4982...287b8209a
0 ETH0.01853921127.89635836
Unstake136371032021-11-18 4:02:59973 days ago1637208179IN
0x9bfF4982...287b8209a
0 ETH0.02120866133.2260943
Unstake136363152021-11-18 1:07:48973 days ago1637197668IN
0x9bfF4982...287b8209a
0 ETH0.00293522133.41932546
Unstake136361782021-11-18 0:33:50973 days ago1637195630IN
0x9bfF4982...287b8209a
0 ETH0.00375132172
Stake136166922021-11-14 22:38:32976 days ago1636929512IN
0x9bfF4982...287b8209a
0 ETH0.02731038125.86705701
Unstake136085602021-11-13 15:50:18978 days ago1636818618IN
0x9bfF4982...287b8209a
0 ETH0.00442514147.5097104
Unstake136073012021-11-13 11:02:34978 days ago1636801354IN
0x9bfF4982...287b8209a
0 ETH0.01807658122.404547
Stake136072922021-11-13 11:00:33978 days ago1636801233IN
0x9bfF4982...287b8209a
0 ETH0.02274421113.7904943
Unstake136071322021-11-13 10:22:55978 days ago1636798975IN
0x9bfF4982...287b8209a
0 ETH0.01295342144.73742784
Unstake136071142021-11-13 10:19:20978 days ago1636798760IN
0x9bfF4982...287b8209a
0 ETH0.01846592127.36089061
View all transactions

Latest 3 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
112650382020-11-15 21:56:561340 days ago1605477416
0x9bfF4982...287b8209a
 Contract Creation0 ETH
112650382020-11-15 21:56:561340 days ago1605477416
0x9bfF4982...287b8209a
 Contract Creation0 ETH
112650382020-11-15 21:56:561340 days ago1605477416
0x9bfF4982...287b8209a
 Contract Creation0 ETH
Loading...
Loading

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

Contract Name:
TokenGeyser

Compiler Version
v0.5.0+commit.1d4f565a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU GPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-11-12
*/

pragma solidity 0.5.0;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * 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.
 */
contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        _owner = _msgSender();
        emit OwnershipTransferred(address(0), _owner);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(isOwner(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _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 onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

/**
 * @title Staking interface, as defined by EIP-900.
 * @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-900.md
 */
contract IStaking {
    event Staked(address indexed user, uint256 amount, uint256 total, bytes data);
    event Unstaked(address indexed user, uint256 amount, uint256 total, bytes data);

    function stake(uint256 amount, bytes calldata data) external;
    function stakeFor(address user, uint256 amount, bytes calldata data) external;
    function unstake(uint256 amount, bytes calldata data) external;
    function totalStakedFor(address addr) public view returns (uint256);
    function totalStaked() public view returns (uint256);
    function token() external view returns (address);

    /**
     * @return False. This application does not support staking history.
     */
    function supportsHistory() external pure returns (bool) {
        return false;
    }
}

/**
 * @title A simple holder of tokens.
 * This is a simple contract to hold tokens. It's useful in the case where a separate contract
 * needs to hold multiple distinct pools of the same token.
 */
contract TokenPool is Ownable {
    IERC20 public token;

    constructor(IERC20 _token) public {
        token = _token;
    }

    function balance() public view returns (uint256) {
        return token.balanceOf(address(this));
    }

    function transfer(address to, uint256 value) external onlyOwner returns (bool) {
        return token.transfer(to, value);
    }

    function rescueFunds(address tokenToRescue, address to, uint256 amount) external onlyOwner returns (bool) {
        require(address(token) != tokenToRescue, 'TokenPool: Cannot claim token held by the contract');

        return IERC20(tokenToRescue).transfer(to, amount);
    }
}


/**
 * @title Token Geyser
 * @dev A smart-contract based mechanism to distribute tokens over time, inspired loosely by
 *      Compound and Uniswap.
 *
 *      Distribution tokens are added to a locked pool in the contract and become unlocked over time
 *      according to a once-configurable unlock schedule. Once unlocked, they are available to be
 *      claimed by users.
 *
 *      A user may deposit tokens to accrue ownership share over the unlocked pool. This owner share
 *      is a function of the number of tokens deposited as well as the length of time deposited.
 *      Specifically, a user's share of the currently-unlocked pool equals their "deposit-seconds"
 *      divided by the global "deposit-seconds". This aligns the new token distribution with long
 *      term supporters of the project, addressing one of the major drawbacks of simple airdrops.
 *
 *      More background and motivation available at:
 *      https://github.com/ampleforth/RFCs/blob/master/RFCs/rfc-1.md
 */
contract TokenGeyser is IStaking, Ownable {
    using SafeMath for uint256;

    event Staked(address indexed user, uint256 amount, uint256 total, bytes data);
    event Unstaked(address indexed user, uint256 amount, uint256 total, bytes data);
    event TokensClaimed(address indexed user, uint256 amount);
    event TokensLocked(uint256 amount, uint256 durationSec, uint256 total);
    // amount: Unlocked tokens, total: Total locked tokens
    event TokensUnlocked(uint256 amount, uint256 total);

    TokenPool private _stakingPool;
    TokenPool private _unlockedPool;
    TokenPool private _lockedPool;

    //
    // Time-bonus params
    //
    uint256 public constant BONUS_DECIMALS = 2;
    uint256 public startBonus = 0;
    uint256 public bonusPeriodSec = 0;

    //
    // Global accounting state
    //
    uint256 public totalLockedShares = 0;
    uint256 public totalStakingShares = 0;
    uint256 private _totalStakingShareSeconds = 0;
    uint256 private _lastAccountingTimestampSec = now;
    uint256 private _maxUnlockSchedules = 0;
    uint256 private _initialSharesPerToken = 0;

    //
    // User accounting state
    //
    // Represents a single stake for a user. A user may have multiple.
    struct Stake {
        uint256 stakingShares;
        uint256 timestampSec;
    }

    // Caches aggregated values from the User->Stake[] map to save computation.
    // If lastAccountingTimestampSec is 0, there's no entry for that user.
    struct UserTotals {
        uint256 stakingShares;
        uint256 stakingShareSeconds;
        uint256 lastAccountingTimestampSec;
    }

    // Aggregated staking values per user
    mapping(address => UserTotals) private _userTotals;

    // The collection of stakes for each user. Ordered by timestamp, earliest to latest.
    mapping(address => Stake[]) private _userStakes;

    //
    // Locked/Unlocked Accounting state
    //
    struct UnlockSchedule {
        uint256 initialLockedShares;
        uint256 unlockedShares;
        uint256 lastUnlockTimestampSec;
        uint256 endAtSec;
        uint256 durationSec;
    }

    UnlockSchedule[] public unlockSchedules;

    /**
     * @param stakingToken The token users deposit as stake.
     * @param distributionToken The token users receive as they unstake.
     * @param maxUnlockSchedules Max number of unlock stages, to guard against hitting gas limit.
     * @param startBonus_ Starting time bonus, BONUS_DECIMALS fixed point.
     *                    e.g. 25% means user gets 25% of max distribution tokens.
     * @param bonusPeriodSec_ Length of time for bonus to increase linearly to max.
     * @param initialSharesPerToken Number of shares to mint per staking token on first stake.
     */
    constructor(IERC20 stakingToken, IERC20 distributionToken, uint256 maxUnlockSchedules,
                uint256 startBonus_, uint256 bonusPeriodSec_, uint256 initialSharesPerToken) public {
        // The start bonus must be some fraction of the max. (i.e. <= 100%)
        require(startBonus_ <= 10**BONUS_DECIMALS, 'TokenGeyser: start bonus too high');
        // If no period is desired, instead set startBonus = 100%
        // and bonusPeriod to a small value like 1sec.
        require(bonusPeriodSec_ != 0, 'TokenGeyser: bonus period is zero');
        require(initialSharesPerToken > 0, 'TokenGeyser: initialSharesPerToken is zero');

        _stakingPool = new TokenPool(stakingToken);
        _unlockedPool = new TokenPool(distributionToken);
        _lockedPool = new TokenPool(distributionToken);
        startBonus = startBonus_;
        bonusPeriodSec = bonusPeriodSec_;
        _maxUnlockSchedules = maxUnlockSchedules;
        _initialSharesPerToken = initialSharesPerToken;
    }

    /**
     * @return The token users deposit as stake.
     */
    function getStakingToken() public view returns (IERC20) {
        return _stakingPool.token();
    }

    /**
     * @return The token users receive as they unstake.
     */
    function getDistributionToken() public view returns (IERC20) {
        assert(_unlockedPool.token() == _lockedPool.token());
        return _unlockedPool.token();
    }

    /**
     * @dev Transfers amount of deposit tokens from the user.
     * @param amount Number of deposit tokens to stake.
     * @param data Not used.
     */
    function stake(uint256 amount, bytes calldata data) external {
        _stakeFor(msg.sender, msg.sender, amount);
    }

    /**
     * @dev Transfers amount of deposit tokens from the caller on behalf of user.
     * @param user User address who gains credit for this stake operation.
     * @param amount Number of deposit tokens to stake.
     * @param data Not used.
     */
    function stakeFor(address user, uint256 amount, bytes calldata data) external onlyOwner {
        _stakeFor(msg.sender, user, amount);
    }

    /**
     * @dev Private implementation of staking methods.
     * @param staker User address who deposits tokens to stake.
     * @param beneficiary User address who gains credit for this stake operation.
     * @param amount Number of deposit tokens to stake.
     */
    function _stakeFor(address staker, address beneficiary, uint256 amount) private {
        require(amount > 0, 'TokenGeyser: stake amount is zero');
        require(beneficiary != address(0), 'TokenGeyser: beneficiary is zero address');
        require(totalStakingShares == 0 || totalStaked() > 0,
                'TokenGeyser: Invalid state. Staking shares exist, but no staking tokens do');

        uint256 mintedStakingShares = (totalStakingShares > 0)
            ? totalStakingShares.mul(amount).div(totalStaked())
            : amount.mul(_initialSharesPerToken);
        require(mintedStakingShares > 0, 'TokenGeyser: Stake amount is too small');

        updateAccounting();

        // 1. User Accounting
        UserTotals storage totals = _userTotals[beneficiary];
        totals.stakingShares = totals.stakingShares.add(mintedStakingShares);
        totals.lastAccountingTimestampSec = now;

        Stake memory newStake = Stake(mintedStakingShares, now);
        _userStakes[beneficiary].push(newStake);

        // 2. Global Accounting
        totalStakingShares = totalStakingShares.add(mintedStakingShares);
        // Already set in updateAccounting()
        // _lastAccountingTimestampSec = now;

        // interactions
        require(_stakingPool.token().transferFrom(staker, address(_stakingPool), amount),
            'TokenGeyser: transfer into staking pool failed');

        emit Staked(beneficiary, amount, totalStakedFor(beneficiary), "");
    }

    /**
     * @dev Unstakes a certain amount of previously deposited tokens. User also receives their
     * alotted number of distribution tokens.
     * @param amount Number of deposit tokens to unstake / withdraw.
     * @param data Not used.
     */
    function unstake(uint256 amount, bytes calldata data) external {
        _unstake(amount);
    }

    /**
     * @param amount Number of deposit tokens to unstake / withdraw.
     * @return The total number of distribution tokens that would be rewarded.
     */
    function unstakeQuery(uint256 amount) public returns (uint256) {
        return _unstake(amount);
    }

    /**
     * @dev Unstakes a certain amount of previously deposited tokens. User also receives their
     * alotted number of distribution tokens.
     * @param amount Number of deposit tokens to unstake / withdraw.
     * @return The total number of distribution tokens rewarded.
     */
    function _unstake(uint256 amount) private returns (uint256) {
        updateAccounting();

        // checks
        require(amount > 0, 'TokenGeyser: unstake amount is zero');
        require(totalStakedFor(msg.sender) >= amount,
            'TokenGeyser: unstake amount is greater than total user stakes');
        uint256 stakingSharesToBurn = totalStakingShares.mul(amount).div(totalStaked());
        require(stakingSharesToBurn > 0, 'TokenGeyser: Unable to unstake amount this small');

        // 1. User Accounting
        UserTotals storage totals = _userTotals[msg.sender];
        Stake[] storage accountStakes = _userStakes[msg.sender];

        // Redeem from most recent stake and go backwards in time.
        uint256 stakingShareSecondsToBurn = 0;
        uint256 sharesLeftToBurn = stakingSharesToBurn;
        uint256 rewardAmount = 0;
        while (sharesLeftToBurn > 0) {
            Stake storage lastStake = accountStakes[accountStakes.length - 1];
            uint256 stakeTimeSec = now.sub(lastStake.timestampSec);
            uint256 newStakingShareSecondsToBurn = 0;
            if (lastStake.stakingShares <= sharesLeftToBurn) {
                // fully redeem a past stake
                newStakingShareSecondsToBurn = lastStake.stakingShares.mul(stakeTimeSec);
                rewardAmount = computeNewReward(rewardAmount, newStakingShareSecondsToBurn, stakeTimeSec);
                stakingShareSecondsToBurn = stakingShareSecondsToBurn.add(newStakingShareSecondsToBurn);
                sharesLeftToBurn = sharesLeftToBurn.sub(lastStake.stakingShares);
                accountStakes.length--;
            } else {
                // partially redeem a past stake
                newStakingShareSecondsToBurn = sharesLeftToBurn.mul(stakeTimeSec);
                rewardAmount = computeNewReward(rewardAmount, newStakingShareSecondsToBurn, stakeTimeSec);
                stakingShareSecondsToBurn = stakingShareSecondsToBurn.add(newStakingShareSecondsToBurn);
                lastStake.stakingShares = lastStake.stakingShares.sub(sharesLeftToBurn);
                sharesLeftToBurn = 0;
            }
        }
        totals.stakingShareSeconds = totals.stakingShareSeconds.sub(stakingShareSecondsToBurn);
        totals.stakingShares = totals.stakingShares.sub(stakingSharesToBurn);
        // Already set in updateAccounting
        // totals.lastAccountingTimestampSec = now;

        // 2. Global Accounting
        _totalStakingShareSeconds = _totalStakingShareSeconds.sub(stakingShareSecondsToBurn);
        totalStakingShares = totalStakingShares.sub(stakingSharesToBurn);
        // Already set in updateAccounting
        // _lastAccountingTimestampSec = now;

        // interactions
        require(_stakingPool.transfer(msg.sender, amount),
            'TokenGeyser: transfer out of staking pool failed');
        require(_unlockedPool.transfer(msg.sender, rewardAmount),
            'TokenGeyser: transfer out of unlocked pool failed');

        emit Unstaked(msg.sender, amount, totalStakedFor(msg.sender), "");
        emit TokensClaimed(msg.sender, rewardAmount);

        require(totalStakingShares == 0 || totalStaked() > 0,
                "TokenGeyser: Error unstaking. Staking shares exist, but no staking tokens do");
        return rewardAmount;
    }

    /**
     * @dev Applies an additional time-bonus to a distribution amount. This is necessary to
     *      encourage long-term deposits instead of constant unstake/restakes.
     *      The bonus-multiplier is the result of a linear function that starts at startBonus and
     *      ends at 100% over bonusPeriodSec, then stays at 100% thereafter.
     * @param currentRewardTokens The current number of distribution tokens already alotted for this
     *                            unstake op. Any bonuses are already applied.
     * @param stakingShareSeconds The stakingShare-seconds that are being burned for new
     *                            distribution tokens.
     * @param stakeTimeSec Length of time for which the tokens were staked. Needed to calculate
     *                     the time-bonus.
     * @return Updated amount of distribution tokens to award, with any bonus included on the
     *         newly added tokens.
     */
    function computeNewReward(uint256 currentRewardTokens,
                                uint256 stakingShareSeconds,
                                uint256 stakeTimeSec) private view returns (uint256) {

        uint256 newRewardTokens =
            totalUnlocked()
            .mul(stakingShareSeconds)
            .div(_totalStakingShareSeconds);

        if (stakeTimeSec >= bonusPeriodSec) {
            return currentRewardTokens.add(newRewardTokens);
        }

        uint256 oneHundredPct = 10**BONUS_DECIMALS;
        uint256 bonusedReward =
            startBonus
            .add(oneHundredPct.sub(startBonus).mul(stakeTimeSec).div(bonusPeriodSec))
            .mul(newRewardTokens)
            .div(oneHundredPct);
        return currentRewardTokens.add(bonusedReward);
    }

    /**
     * @param addr The user to look up staking information for.
     * @return The number of staking tokens deposited for addr.
     */
    function totalStakedFor(address addr) public view returns (uint256) {
        return totalStakingShares > 0 ?
            totalStaked().mul(_userTotals[addr].stakingShares).div(totalStakingShares) : 0;
    }

    /**
     * @return The total number of deposit tokens staked globally, by all users.
     */
    function totalStaked() public view returns (uint256) {
        return _stakingPool.balance();
    }

    /**
     * @dev Note that this application has a staking token as well as a distribution token, which
     * may be different. This function is required by EIP-900.
     * @return The deposit token used for staking.
     */
    function token() external view returns (address) {
        return address(getStakingToken());
    }

    /**
     * @dev A globally callable function to update the accounting state of the system.
     *      Global state and state for the caller are updated.
     * @return [0] balance of the locked pool
     * @return [1] balance of the unlocked pool
     * @return [2] caller's staking share seconds
     * @return [3] global staking share seconds
     * @return [4] Rewards caller has accumulated, optimistically assumes max time-bonus.
     * @return [5] block timestamp
     */
    function updateAccounting() public returns (
        uint256, uint256, uint256, uint256, uint256, uint256) {

        unlockTokens();

        // Global accounting
        uint256 newStakingShareSeconds =
            now
            .sub(_lastAccountingTimestampSec)
            .mul(totalStakingShares);
        _totalStakingShareSeconds = _totalStakingShareSeconds.add(newStakingShareSeconds);
        _lastAccountingTimestampSec = now;

        // User Accounting
        UserTotals storage totals = _userTotals[msg.sender];
        uint256 newUserStakingShareSeconds =
            now
            .sub(totals.lastAccountingTimestampSec)
            .mul(totals.stakingShares);
        totals.stakingShareSeconds =
            totals.stakingShareSeconds
            .add(newUserStakingShareSeconds);
        totals.lastAccountingTimestampSec = now;

        uint256 totalUserRewards = (_totalStakingShareSeconds > 0)
            ? totalUnlocked().mul(totals.stakingShareSeconds).div(_totalStakingShareSeconds)
            : 0;

        return (
            totalLocked(),
            totalUnlocked(),
            totals.stakingShareSeconds,
            _totalStakingShareSeconds,
            totalUserRewards,
            now
        );
    }

    /**
     * @return Total number of locked distribution tokens.
     */
    function totalLocked() public view returns (uint256) {
        return _lockedPool.balance();
    }

    /**
     * @return Total number of unlocked distribution tokens.
     */
    function totalUnlocked() public view returns (uint256) {
        return _unlockedPool.balance();
    }

    /**
     * @return Number of unlock schedules.
     */
    function unlockScheduleCount() public view returns (uint256) {
        return unlockSchedules.length;
    }

    /**
     * @dev This funcion allows the contract owner to add more locked distribution tokens, along
     *      with the associated "unlock schedule". These locked tokens immediately begin unlocking
     *      linearly over the duraction of durationSec timeframe.
     * @param amount Number of distribution tokens to lock. These are transferred from the caller.
     * @param durationSec Length of time to linear unlock the tokens.
     */
    function lockTokens(uint256 amount, uint256 durationSec) external onlyOwner {
        require(unlockSchedules.length < _maxUnlockSchedules,
            'TokenGeyser: reached maximum unlock schedules');

        // Update lockedTokens amount before using it in computations after.
        updateAccounting();

        uint256 lockedTokens = totalLocked();
        uint256 mintedLockedShares = (lockedTokens > 0)
            ? totalLockedShares.mul(amount).div(lockedTokens)
            : amount.mul(_initialSharesPerToken);

        UnlockSchedule memory schedule;
        schedule.initialLockedShares = mintedLockedShares;
        schedule.lastUnlockTimestampSec = now;
        schedule.endAtSec = now.add(durationSec);
        schedule.durationSec = durationSec;
        unlockSchedules.push(schedule);

        totalLockedShares = totalLockedShares.add(mintedLockedShares);

        require(_lockedPool.token().transferFrom(msg.sender, address(_lockedPool), amount),
            'TokenGeyser: transfer into locked pool failed');
        emit TokensLocked(amount, durationSec, totalLocked());
    }

    /**
     * @dev Moves distribution tokens from the locked pool to the unlocked pool, according to the
     *      previously defined unlock schedules. Publicly callable.
     * @return Number of newly unlocked distribution tokens.
     */
    function unlockTokens() public returns (uint256) {
        uint256 unlockedTokens = 0;
        uint256 lockedTokens = totalLocked();

        if (totalLockedShares == 0) {
            unlockedTokens = lockedTokens;
        } else {
            uint256 unlockedShares = 0;
            for (uint256 s = 0; s < unlockSchedules.length; s++) {
                unlockedShares = unlockedShares.add(unlockScheduleShares(s));
            }
            unlockedTokens = unlockedShares.mul(lockedTokens).div(totalLockedShares);
            totalLockedShares = totalLockedShares.sub(unlockedShares);
        }

        if (unlockedTokens > 0) {
            require(_lockedPool.transfer(address(_unlockedPool), unlockedTokens),
                'TokenGeyser: transfer out of locked pool failed');
            emit TokensUnlocked(unlockedTokens, totalLocked());
        }

        return unlockedTokens;
    }

    /**
     * @dev Returns the number of unlockable shares from a given schedule. The returned value
     *      depends on the time since the last unlock. This function updates schedule accounting,
     *      but does not actually transfer any tokens.
     * @param s Index of the unlock schedule.
     * @return The number of unlocked shares.
     */
    function unlockScheduleShares(uint256 s) private returns (uint256) {
        UnlockSchedule storage schedule = unlockSchedules[s];

        if(schedule.unlockedShares >= schedule.initialLockedShares) {
            return 0;
        }

        uint256 sharesToUnlock = 0;
        // Special case to handle any leftover dust from integer division
        if (now >= schedule.endAtSec) {
            sharesToUnlock = (schedule.initialLockedShares.sub(schedule.unlockedShares));
            schedule.lastUnlockTimestampSec = schedule.endAtSec;
        } else {
            sharesToUnlock = now.sub(schedule.lastUnlockTimestampSec)
                .mul(schedule.initialLockedShares)
                .div(schedule.durationSec);
            schedule.lastUnlockTimestampSec = now;
        }

        schedule.unlockedShares = schedule.unlockedShares.add(sharesToUnlock);
        return sharesToUnlock;
    }

    /**
     * @dev Lets the owner rescue funds air-dropped to the staking pool.
     * @param tokenToRescue Address of the token to be rescued.
     * @param to Address to which the rescued funds are to be sent.
     * @param amount Amount of tokens to be rescued.
     * @return Transfer success.
     */
    function rescueFundsFromStakingPool(address tokenToRescue, address to, uint256 amount)
        public onlyOwner returns (bool) {

        return _stakingPool.rescueFunds(tokenToRescue, to, amount);
    }
}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"amount","type":"uint256"},{"name":"data","type":"bytes"}],"name":"stake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"user","type":"address"},{"name":"amount","type":"uint256"},{"name":"data","type":"bytes"}],"name":"stakeFor","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"BONUS_DECIMALS","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getDistributionToken","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"startBonus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"updateAccounting","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"}],"name":"totalStakedFor","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalLocked","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"tokenToRescue","type":"address"},{"name":"to","type":"address"},{"name":"amount","type":"uint256"}],"name":"rescueFundsFromStakingPool","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"unlockSchedules","outputs":[{"name":"initialLockedShares","type":"uint256"},{"name":"unlockedShares","type":"uint256"},{"name":"lastUnlockTimestampSec","type":"uint256"},{"name":"endAtSec","type":"uint256"},{"name":"durationSec","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"supportsHistory","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"totalStakingShares","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"bonusPeriodSec","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalStaked","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalLockedShares","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"unstakeQuery","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"},{"name":"durationSec","type":"uint256"}],"name":"lockTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getStakingToken","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalUnlocked","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"unlockScheduleCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"},{"name":"data","type":"bytes"}],"name":"unstake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"unlockTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"stakingToken","type":"address"},{"name":"distributionToken","type":"address"},{"name":"maxUnlockSchedules","type":"uint256"},{"name":"startBonus_","type":"uint256"},{"name":"bonusPeriodSec_","type":"uint256"},{"name":"initialSharesPerToken","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"user","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"total","type":"uint256"},{"indexed":false,"name":"data","type":"bytes"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"user","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"total","type":"uint256"},{"indexed":false,"name":"data","type":"bytes"}],"name":"Unstaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"user","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"TokensClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"durationSec","type":"uint256"},{"indexed":false,"name":"total","type":"uint256"}],"name":"TokensLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"total","type":"uint256"}],"name":"TokensUnlocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

Deployed Bytecode

0x60806040526004361061015e5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630e89439b81146101635780630ef96356146101e95780631dc27fde1461027b57806322c12b84146102a257806338b45fde146102d3578063494347e7146102e85780634b341aed1461033057806356891412146103635780635a72bbef146103785780635c94bcb2146103cf5780637033e4a61461042457806370c6a17e14610439578063715018a61461044e5780637c6aa6f414610463578063817b1cd21461047857806381c39bec1461048d57806386805dd1146104a257806389158d8e146104cc5780638da5cb5b146104fc5780638f32d59b146105115780639f9106d114610526578063a779d0801461053b578063c7ae200714610550578063c8fd6ed014610565578063f2fde38b146105e9578063f968f4931461061c578063fc0c546a14610631575b600080fd5b34801561016f57600080fd5b506101e76004803603604081101561018657600080fd5b813591908101906040810160208201356401000000008111156101a857600080fd5b8201836020820111156101ba57600080fd5b803590602001918460018302840111640100000000831117156101dc57600080fd5b509092509050610646565b005b3480156101f557600080fd5b506101e76004803603606081101561020c57600080fd5b600160a060020a038235169160208101359181019060608101604082013564010000000081111561023c57600080fd5b82018360208201111561024e57600080fd5b8035906020019184600183028401116401000000008311171561027057600080fd5b509092509050610656565b34801561028757600080fd5b506102906106b3565b60408051918252519081900360200190f35b3480156102ae57600080fd5b506102b76106b8565b60408051600160a060020a039092168252519081900360200190f35b3480156102df57600080fd5b50610290610850565b3480156102f457600080fd5b506102fd610856565b604080519687526020870195909552858501939093526060850191909152608084015260a0830152519081900360c00190f35b34801561033c57600080fd5b506102906004803603602081101561035357600080fd5b5035600160a060020a0316610964565b34801561036f57600080fd5b506102906109ab565b34801561038457600080fd5b506103bb6004803603606081101561039b57600080fd5b50600160a060020a03813581169160208101359091169060400135610a09565b604080519115158252519081900360200190f35b3480156103db57600080fd5b506103f9600480360360208110156103f257600080fd5b5035610b04565b6040805195865260208601949094528484019290925260608401526080830152519081900360a00190f35b34801561043057600080fd5b506103bb610b43565b34801561044557600080fd5b50610290610b48565b34801561045a57600080fd5b506101e7610b4e565b34801561046f57600080fd5b50610290610bf1565b34801561048457600080fd5b50610290610bf7565b34801561049957600080fd5b50610290610c55565b3480156104ae57600080fd5b50610290600480360360208110156104c557600080fd5b5035610c5b565b3480156104d857600080fd5b506101e7600480360360408110156104ef57600080fd5b5080359060200135610c66565b34801561050857600080fd5b506102b7611085565b34801561051d57600080fd5b506103bb611094565b34801561053257600080fd5b506102b76110b8565b34801561054757600080fd5b50610290611100565b34801561055c57600080fd5b5061029061115e565b34801561057157600080fd5b506101e76004803603604081101561058857600080fd5b813591908101906040810160208201356401000000008111156105aa57600080fd5b8201836020820111156105bc57600080fd5b803590602001918460018302840111640100000000831117156105de57600080fd5b509092509050611164565b3480156105f557600080fd5b506101e76004803603602081101561060c57600080fd5b5035600160a060020a031661116d565b34801561062857600080fd5b506102906111c5565b34801561063d57600080fd5b506102b76113b6565b6106513333856113c5565b505050565b61065e611094565b15156106a2576040805160e560020a62461bcd02815260206004820181905260248201526000805160206124f4833981519152604482015290519081900360640190fd5b6106ad3385856113c5565b50505050565b600281565b6003546040805160e160020a637e062a350281529051600092600160a060020a03169163fc0c546a916004808301926020929190829003018186803b15801561070057600080fd5b505afa158015610714573d6000803e3d6000fd5b505050506040513d602081101561072a57600080fd5b50516002546040805160e160020a637e062a350281529051600160a060020a03938416939092169163fc0c546a91600480820192602092909190829003018186803b15801561077857600080fd5b505afa15801561078c573d6000803e3d6000fd5b505050506040513d60208110156107a257600080fd5b5051600160a060020a0316146107b457fe5b600260009054906101000a9004600160a060020a0316600160a060020a031663fc0c546a6040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b15801561081e57600080fd5b505afa158015610832573d6000803e3d6000fd5b505050506040513d602081101561084857600080fd5b505190505b90565b60045481565b6000806000806000806108676111c5565b506000610891600754610885600954426118e390919063ffffffff16565b9063ffffffff61192e16565b6008549091506108a7908263ffffffff6119ca16565b600855426009819055336000908152600c602052604081208054600282015491936108dc92610885919063ffffffff6118e316565b60018301549091506108f4908263ffffffff6119ca16565b60018301554260028301556008546000908110610912576000610934565b6109346008546109288560010154610885611100565b9063ffffffff611a2716565b905061093e6109ab565b610946611100565b600190940154600854919c949b509950975095504294509092505050565b600080600754116109765760006109a3565b600754600160a060020a0383166000908152600c60205260409020546109a3919061092890610885610bf7565b90505b919050565b600354604080517fb69ef8a80000000000000000000000000000000000000000000000000000000081529051600092600160a060020a03169163b69ef8a8916004808301926020929190829003018186803b15801561081e57600080fd5b6000610a13611094565b1515610a57576040805160e560020a62461bcd02815260206004820181905260248201526000805160206124f4833981519152604482015290519081900360640190fd5b600154604080517f6ccae054000000000000000000000000000000000000000000000000000000008152600160a060020a03878116600483015286811660248301526044820186905291519190921691636ccae0549160648083019260209291908290030181600087803b158015610ace57600080fd5b505af1158015610ae2573d6000803e3d6000fd5b505050506040513d6020811015610af857600080fd5b505190505b9392505050565b600e805482908110610b1257fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401549294509092909185565b600090565b60075481565b610b56611094565b1515610b9a576040805160e560020a62461bcd02815260206004820181905260248201526000805160206124f4833981519152604482015290519081900360640190fd5b60008054604051600160a060020a03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b60055481565b600154604080517fb69ef8a80000000000000000000000000000000000000000000000000000000081529051600092600160a060020a03169163b69ef8a8916004808301926020929190829003018186803b15801561081e57600080fd5b60065481565b60006109a382611a69565b610c6e611094565b1515610cb2576040805160e560020a62461bcd02815260206004820181905260248201526000805160206124f4833981519152604482015290519081900360640190fd5b600a54600e5410610d33576040805160e560020a62461bcd02815260206004820152602d60248201527f546f6b656e4765797365723a2072656163686564206d6178696d756d20756e6c60448201527f6f636b207363686564756c657300000000000000000000000000000000000000606482015290519081900360840190fd5b610d3b610856565b5050505050506000610d4b6109ab565b90506000808211610d6f57600b54610d6a90859063ffffffff61192e16565b610d88565b610d88826109288660065461192e90919063ffffffff16565b9050610d92612464565b8181524260408201819052610dad908563ffffffff6119ca16565b6060820190815260808201858152600e805460018101825560009190915283517fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd60059092029182015560208401517fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fe82015560408401517fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3ff82015591517fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c400830155517fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c40190910155600654610ea290836119ca565b6006556003546040805160e160020a637e062a350281529051600160a060020a039092169163fc0c546a91600480820192602092909190829003018186803b158015610eed57600080fd5b505afa158015610f01573d6000803e3d6000fd5b505050506040513d6020811015610f1757600080fd5b5051600354604080517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152600160a060020a03928316602482015260448101899052905191909216916323b872dd9160648083019260209291908290030181600087803b158015610f8e57600080fd5b505af1158015610fa2573d6000803e3d6000fd5b505050506040513d6020811015610fb857600080fd5b50511515611036576040805160e560020a62461bcd02815260206004820152602d60248201527f546f6b656e4765797365723a207472616e7366657220696e746f206c6f636b6560448201527f6420706f6f6c206661696c656400000000000000000000000000000000000000606482015290519081900360840190fd5b7ff346961af4c52f314df1b45964746280fe409abb959d4a2458d58f79408b1fe885856110616109ab565b60408051938452602084019290925282820152519081900360600190a15050505050565b600054600160a060020a031690565b60008054600160a060020a03166110a9612115565b600160a060020a031614905090565b6001546040805160e160020a637e062a350281529051600092600160a060020a03169163fc0c546a916004808301926020929190829003018186803b15801561081e57600080fd5b600254604080517fb69ef8a80000000000000000000000000000000000000000000000000000000081529051600092600160a060020a03169163b69ef8a8916004808301926020929190829003018186803b15801561081e57600080fd5b600e5490565b6106ad83611a69565b611175611094565b15156111b9576040805160e560020a62461bcd02815260206004820181905260248201526000805160206124f4833981519152604482015290519081900360640190fd5b6111c281612119565b50565b600080806111d16109ab565b9050600654600014156111e65780915061124a565b6000805b600e548110156112175761120d61120082612207565b839063ffffffff6119ca16565b91506001016111ea565b5060065461122f90610928838563ffffffff61192e16565b600654909350611245908263ffffffff6118e316565b600655505b60008211156113b057600354600254604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a039283166004820152602481018690529051919092169163a9059cbb9160448083019260209291908290030181600087803b1580156112c557600080fd5b505af11580156112d9573d6000803e3d6000fd5b505050506040513d60208110156112ef57600080fd5b5051151561136d576040805160e560020a62461bcd02815260206004820152602f60248201527f546f6b656e4765797365723a207472616e73666572206f7574206f66206c6f6360448201527f6b656420706f6f6c206661696c65640000000000000000000000000000000000606482015290519081900360840190fd5b7f2e444eb379b177e88ce0649c6110a3b01099f03e297127919dd5e3b63a761a9c826113976109ab565b6040805192835260208301919091528051918290030190a15b50905090565b60006113c06110b8565b905090565b60008111611443576040805160e560020a62461bcd02815260206004820152602160248201527f546f6b656e4765797365723a207374616b6520616d6f756e74206973207a657260448201527f6f00000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600160a060020a03821615156114c9576040805160e560020a62461bcd02815260206004820152602860248201527f546f6b656e4765797365723a2062656e6566696369617279206973207a65726f60448201527f2061646472657373000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b60075415806114df575060006114dd610bf7565b115b1515611581576040805160e560020a62461bcd02815260206004820152604a60248201527f546f6b656e4765797365723a20496e76616c69642073746174652e205374616b60448201527f696e67207368617265732065786973742c20627574206e6f207374616b696e6760648201527f20746f6b656e7320646f00000000000000000000000000000000000000000000608482015290519081900360a40190fd5b600080600754116115a557600b546115a090839063ffffffff61192e16565b6115c3565b6115c36115b0610bf7565b600754610928908563ffffffff61192e16565b905060008111611643576040805160e560020a62461bcd02815260206004820152602660248201527f546f6b656e4765797365723a205374616b6520616d6f756e7420697320746f6f60448201527f20736d616c6c0000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b61164b610856565b50505050600160a060020a0385166000908152600c6020526040902080549092506116779150836119ca565b8155426002820155611687612494565b50604080518082018252838152426020808301918252600160a060020a0388166000908152600d825293842080546001818101835591865291909420835160029092020190815590519201919091556007546116e9908463ffffffff6119ca16565b6007556001546040805160e160020a637e062a350281529051600160a060020a039092169163fc0c546a91600480820192602092909190829003018186803b15801561173457600080fd5b505afa158015611748573d6000803e3d6000fd5b505050506040513d602081101561175e57600080fd5b5051600154604080517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a038a81166004830152928316602482015260448101889052905191909216916323b872dd9160648083019260209291908290030181600087803b1580156117d757600080fd5b505af11580156117eb573d6000803e3d6000fd5b505050506040513d602081101561180157600080fd5b5051151561187f576040805160e560020a62461bcd02815260206004820152602e60248201527f546f6b656e4765797365723a207472616e7366657220696e746f207374616b6960448201527f6e6720706f6f6c206661696c6564000000000000000000000000000000000000606482015290519081900360840190fd5b84600160a060020a03167fc65e53b88159e7d2c0fc12a0600072e28ae53ff73b4c1715369c30f160935142856118b488610964565b6040805192835260208301919091526060828201819052600090830152519081900360a00190a2505050505050565b600061192583836040805190810160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506122ce565b90505b92915050565b600082151561193f57506000611928565b82820282848281151561194e57fe5b0414611925576040805160e560020a62461bcd02815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60448201527f7700000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600082820183811015611925576040805160e560020a62461bcd02815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061192583836040805190810160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612368565b6000611a73610856565b505050505050600082111515611af9576040805160e560020a62461bcd02815260206004820152602360248201527f546f6b656e4765797365723a20756e7374616b6520616d6f756e74206973207a60448201527f65726f0000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b81611b0333610964565b1015611b7f576040805160e560020a62461bcd02815260206004820152603d60248201527f546f6b656e4765797365723a20756e7374616b6520616d6f756e74206973206760448201527f726561746572207468616e20746f74616c2075736572207374616b6573000000606482015290519081900360840190fd5b6000611b9f611b8c610bf7565b600754610928908663ffffffff61192e16565b905060008111611c1f576040805160e560020a62461bcd02815260206004820152603060248201527f546f6b656e4765797365723a20556e61626c6520746f20756e7374616b65206160448201527f6d6f756e74207468697320736d616c6c00000000000000000000000000000000606482015290519081900360840190fd5b336000908152600c60209081526040808320600d9092528220909183815b6000821115611d4557835460009085906000198101908110611c5b57fe5b906000526020600020906002020190506000611c848260010154426118e390919063ffffffff16565b82549091506000908510611cf2578254611ca4908363ffffffff61192e16565b9050611cb18482846123d5565b9350611cc3868263ffffffff6119ca16565b8354909650611cd990869063ffffffff6118e316565b8754909550611cec8860001983016124ab565b50611d3d565b611d02858363ffffffff61192e16565b9050611d0f8482846123d5565b9350611d21868263ffffffff6119ca16565b8354909650611d36908663ffffffff6118e316565b8355600094505b505050611c3d565b6001850154611d5a908463ffffffff6118e316565b60018601558454611d71908763ffffffff6118e316565b8555600854611d86908463ffffffff6118e316565b600855600754611d9c908763ffffffff6118e316565b600755600154604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018b90529051600160a060020a039092169163a9059cbb916044808201926020929091908290030181600087803b158015611e0c57600080fd5b505af1158015611e20573d6000803e3d6000fd5b505050506040513d6020811015611e3657600080fd5b50511515611eb4576040805160e560020a62461bcd02815260206004820152603060248201527f546f6b656e4765797365723a207472616e73666572206f7574206f662073746160448201527f6b696e6720706f6f6c206661696c656400000000000000000000000000000000606482015290519081900360840190fd5b600254604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018490529051600160a060020a039092169163a9059cbb916044808201926020929091908290030181600087803b158015611f2157600080fd5b505af1158015611f35573d6000803e3d6000fd5b505050506040513d6020811015611f4b57600080fd5b50511515611fc9576040805160e560020a62461bcd02815260206004820152603160248201527f546f6b656e4765797365723a207472616e73666572206f7574206f6620756e6c60448201527f6f636b656420706f6f6c206661696c6564000000000000000000000000000000606482015290519081900360840190fd5b337faf01bfc8475df280aca00b578c4a948e6d95700f0db8c13365240f7f973c875489611ff583610964565b6040805192835260208301919091526060828201819052600090830152519081900360a00190a260408051828152905133917f896e034966eaaf1adc54acc0f257056febbd300c9e47182cf761982cf1f5e430919081900360200190a2600754158061206857506000612066610bf7565b115b151561210a576040805160e560020a62461bcd02815260206004820152604c60248201527f546f6b656e4765797365723a204572726f7220756e7374616b696e672e20537460448201527f616b696e67207368617265732065786973742c20627574206e6f207374616b6960648201527f6e6720746f6b656e7320646f0000000000000000000000000000000000000000608482015290519081900360a40190fd5b979650505050505050565b3390565b600160a060020a038116151561219f576040805160e560020a62461bcd02815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600080600e8381548110151561221957fe5b90600052602060002090600502019050806000015481600101541015156122445760009150506109a6565b6003810154600090421061227957600182015482546122689163ffffffff6118e316565b6003830154600284015590506122a9565b6122a0826004015461092884600001546108858660020154426118e390919063ffffffff16565b42600284015590505b60018201546122be908263ffffffff6119ca16565b6001909201919091559050919050565b600081848411156123605760405160e560020a62461bcd0281526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561232557818101518382015260200161230d565b50505050905090810190601f1680156123525780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000818184116123bd5760405160e560020a62461bcd0281526004018080602001828103825283818151815260200191508051906020019080838360008381101561232557818101518382015260200161230d565b50600083858115156123cb57fe5b0495945050505050565b6000806123ea60085461092886610885611100565b600554909150831061240e57612406858263ffffffff6119ca16565b915050610afd565b60006002600a0a9050600061245282610928856108856124436005546109288c6108856004548c6118e390919063ffffffff16565b6004549063ffffffff6119ca16565b905061210a878263ffffffff6119ca16565b60a06040519081016040528060008152602001600081526020016000815260200160008152602001600081525090565b604080518082019091526000808252602082015290565b815481835581811115610651576000838152602090206106519161084d9160029182028101918502015b808211156124ef57600080825560018201556002016124d5565b509056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a165627a7a72305820ead74bea06ecd3545fda3318a4b0941fafe467c768b03a881b7381d57fbd1fc70029

Deployed Bytecode Sourcemap

14584:20694:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19010:121;;8:9:-1;5:2;;;30:1;27;20:12;5:2;19010:121:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;19010:121:0;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;19010:121:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;19010:121:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;19010:121:0;;-1:-1:-1;19010:121:0;-1:-1:-1;19010:121:0;;;;19403:142;;8:9:-1;5:2;;;30:1;27;20:12;5:2;19403:142:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;19403:142:0;;;;;;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;19403:142:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;19403:142:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;19403:142:0;;-1:-1:-1;19403:142:0;-1:-1:-1;19403:142:0;;15254:42;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15254:42:0;;;;;;;;;;;;;;;;;;;;18663:171;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18663:171:0;;;;;;;;-1:-1:-1;;;;;18663:171:0;;;;;;;;;;;;;;15303:29;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15303:29:0;;;;28861:1281;;8:9:-1;5:2;;;30:1;27;20:12;5:2;28861:1281:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27599:210;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27599:210:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;27599:210:0;-1:-1:-1;;;;;27599:210:0;;;30228:100;;8:9:-1;5:2;;;30:1;27;20:12;5:2;30228:100:0;;;;35068:207;;8:9:-1;5:2;;;30:1;27;20:12;5:2;35068:207:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;35068:207:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16749:39;;8:9:-1;5:2;;;30:1;27;20:12;5:2;16749:39:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;16749:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12583:87;;8:9:-1;5:2;;;30:1;27;20:12;5:2;12583:87:0;;;;15472:37;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15472:37:0;;;;11005:140;;8:9:-1;5:2;;;30:1;27;20:12;5:2;11005:140:0;;;;15339:33;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15339:33:0;;;;27917:101;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27917:101:0;;;;15429:36;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15429:36:0;;;;21882:105;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21882:105:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21882:105:0;;;31161:1123;;8:9:-1;5:2;;;30:1;27;20:12;5:2;31161:1123:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;31161:1123:0;;;;;;;;10194:79;;8:9:-1;5:2;;;30:1;27;20:12;5:2;10194:79:0;;;;10560:94;;8:9:-1;5:2;;;30:1;27;20:12;5:2;10560:94:0;;;;18478:102;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18478:102:0;;;;30416:104;;8:9:-1;5:2;;;30:1;27;20:12;5:2;30416:104:0;;;;30590:109;;8:9:-1;5:2;;;30:1;27;20:12;5:2;30590:109:0;;;;21608:98;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21608:98:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;21608:98:0;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;21608:98:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;21608:98:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;21608:98:0;;-1:-1:-1;21608:98:0;-1:-1:-1;21608:98:0;;11300:109;;8:9:-1;5:2;;;30:1;27;20:12;5:2;11300:109:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;11300:109:0;-1:-1:-1;;;;;11300:109:0;;;32540:916;;8:9:-1;5:2;;;30:1;27;20:12;5:2;32540:916:0;;;;28259:101;;8:9:-1;5:2;;;30:1;27;20:12;5:2;28259:101:0;;;;19010:121;19082:41;19092:10;19104;19116:6;19082:9;:41::i;:::-;19010:121;;;:::o;19403:142::-;10406:9;:7;:9::i;:::-;10398:54;;;;;;;-1:-1:-1;;;;;10398:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10398:54:0;;;;;;;;;;;;;;;19502:35;19512:10;19524:4;19530:6;19502:9;:35::i;:::-;19403:142;;;;:::o;15254:42::-;15295:1;15254:42;:::o;18663:171::-;18767:11;;:19;;;-1:-1:-1;;;;;18767:19:0;;;;18716:6;;-1:-1:-1;;;;;18767:11:0;;:17;;:19;;;;;;;;;;;;;;:11;:19;;;5:2:-1;;;;30:1;27;20:12;5:2;18767:19:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;18767:19:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18767:19:0;18742:13;;:21;;;-1:-1:-1;;;;;18742:21:0;;;;-1:-1:-1;;;;;18742:44:0;;;;:13;;;;:19;;:21;;;;;18767:19;;18742:21;;;;;;;;:13;:21;;;5:2:-1;;;;30:1;27;20:12;5:2;18742:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;18742:21:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18742:21:0;-1:-1:-1;;;;;18742:44:0;;18735:52;;;;18805:13;;;;;;;;;-1:-1:-1;;;;;18805:13:0;-1:-1:-1;;;;;18805:19:0;;:21;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18805:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;18805:21:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18805:21:0;;-1:-1:-1;18663:171:0;;:::o;15303:29::-;;;;:::o;28861:1281::-;28915:7;28924;28933;28942;28951;28960;28982:14;:12;:14::i;:::-;;29039:30;29085:88;29154:18;;29085:50;29107:27;;29085:3;:21;;:50;;;;:::i;:::-;:68;:88;:68;:88;:::i;:::-;29212:25;;29039:134;;-1:-1:-1;29212:53:0;;29039:134;29212:53;:29;:53;:::i;:::-;29184:25;:81;29306:3;29276:27;:33;;;29390:10;-1:-1:-1;29378:23:0;;;:11;:23;;;;;29537:20;;29484:33;;;;29378:23;;29462:96;;:56;;29306:3;29462:56;:21;:56;:::i;:96::-;29611:26;;;;29412:146;;-1:-1:-1;29611:72:0;;29412:146;29611:72;:44;:72;:::i;:::-;29569:26;;;:114;29730:3;29694:33;;;:39;29774:25;;-1:-1:-1;;29774:29:0;-1:-1:-1;29773:142:0;;29914:1;29773:142;;;29820:78;29872:25;;29820:47;29840:6;:26;;;29820:15;:13;:15::i;:47::-;:51;:78;:51;:78;:::i;:::-;29746:169;;29950:13;:11;:13::i;:::-;29978:15;:13;:15::i;:::-;30008:26;;;;;30049:25;;29928:206;;;;-1:-1:-1;30008:26:0;-1:-1:-1;30049:25:0;-1:-1:-1;30089:16:0;-1:-1:-1;30120:3:0;;-1:-1:-1;28861:1281:0;;-1:-1:-1;;;28861:1281:0:o;27599:210::-;27658:7;27706:1;27685:18;;:22;:116;;27800:1;27685:116;;;27778:18;;-1:-1:-1;;;;;27741:17:0;;;;;;:11;:17;;;;;:31;27723:74;;27778:18;27723:50;;:13;:11;:13::i;:74::-;27678:123;;27599:210;;;;:::o;30228:100::-;30299:11;;:21;;;;;;;;30272:7;;-1:-1:-1;;;;;30299:11:0;;:19;;:21;;;;;;;;;;;;;;:11;:21;;;5:2:-1;;;;30:1;27;20:12;35068:207:0;35190:4;10406:9;:7;:9::i;:::-;10398:54;;;;;;;-1:-1:-1;;;;;10398:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10398:54:0;;;;;;;;;;;;;;;35216:12;;:51;;;;;;-1:-1:-1;;;;;35216:51:0;;;;;;;;;;;;;;;;;;;;;;:12;;;;;:24;;:51;;;;;;;;;;;;;;:12;;:51;;;5:2:-1;;;;30:1;27;20:12;5:2;35216:51:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;35216:51:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;35216:51:0;;-1:-1:-1;10463:1:0;35068:207;;;;;:::o;16749:39::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;16749:39:0;;;;;:::o;12583:87::-;12633:4;12583:87;:::o;15472:37::-;;;;:::o;11005:140::-;10406:9;:7;:9::i;:::-;10398:54;;;;;;;-1:-1:-1;;;;;10398:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10398:54:0;;;;;;;;;;;;;;;11104:1;11088:6;;11067:40;;-1:-1:-1;;;;;11088:6:0;;;;11067:40;;11104:1;;11067:40;11135:1;11118:19;;-1:-1:-1;;11118:19:0;;;11005:140::o;15339:33::-;;;;:::o;27917:101::-;27988:12;;:22;;;;;;;;27961:7;;-1:-1:-1;;;;;27988:12:0;;:20;;:22;;;;;;;;;;;;;;:12;:22;;;5:2:-1;;;;30:1;27;20:12;15429:36:0;;;;:::o;21882:105::-;21936:7;21963:16;21972:6;21963:8;:16::i;31161:1123::-;10406:9;:7;:9::i;:::-;10398:54;;;;;;;-1:-1:-1;;;;;10398:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10398:54:0;;;;;;;;;;;;;;;31281:19;;31256:15;:22;:44;31248:115;;;;;-1:-1:-1;;;;;31248:115:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31454:18;:16;:18::i;:::-;;;;;;;31485:20;31508:13;:11;:13::i;:::-;31485:36;;31532:26;31577:1;31562:12;:16;31561:131;;31669:22;;31658:34;;:6;;:34;:10;:34;:::i;:::-;31561:131;;;31595:47;31629:12;31595:29;31617:6;31595:17;;:21;;:29;;;;:::i;:47::-;31532:160;;31705:30;;:::i;:::-;31746:49;;;31840:3;31806:31;;;:37;;;31874:20;;31882:11;31874:20;:7;:20;:::i;:::-;31854:17;;;:40;;;31905:20;;;:34;;;31950:15;27:10:-1;;39:1;23:18;;45:23;;-1:-1;31950:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32013:17;;:41;;32035:18;32013:21;:41::i;:::-;31993:17;:61;32075:11;;:19;;;-1:-1:-1;;;;;32075:19:0;;;;-1:-1:-1;;;;;32075:11:0;;;;:17;;:19;;;;;;;;;;;;;;;:11;:19;;;5:2:-1;;;;30:1;27;20:12;5:2;32075:19:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32075:19:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32075:19:0;32128:11;;32075:74;;;;;;32108:10;32075:74;;;;-1:-1:-1;;;;;32128:11:0;;;32075:74;;;;;;;;;;;;:32;;;;;;;:74;;;;;:19;;:74;;;;;;;32128:11;32075:32;:74;;;5:2:-1;;;;30:1;27;20:12;5:2;32075:74:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32075:74:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32075:74:0;32067:145;;;;;;;-1:-1:-1;;;;;32067:145:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32228:48;32241:6;32249:11;32262:13;:11;:13::i;:::-;32228:48;;;;;;;;;;;;;;;;;;;;;;;;;;10463:1;;;31161:1123;;:::o;10194:79::-;10232:7;10259:6;-1:-1:-1;;;;;10259:6:0;10194:79;:::o;10560:94::-;10600:4;10640:6;;-1:-1:-1;;;;;10640:6:0;10624:12;:10;:12::i;:::-;-1:-1:-1;;;;;10624:22:0;;10617:29;;10560:94;:::o;18478:102::-;18552:12;;:20;;;-1:-1:-1;;;;;18552:20:0;;;;18526:6;;-1:-1:-1;;;;;18552:12:0;;:18;;:20;;;;;;;;;;;;;;:12;:20;;;5:2:-1;;;;30:1;27;20:12;30416:104:0;30489:13;;:23;;;;;;;;30462:7;;-1:-1:-1;;;;;30489:13:0;;:21;;:23;;;;;;;;;;;;;;:13;:23;;;5:2:-1;;;;30:1;27;20:12;30590:109:0;30669:15;:22;30590:109;:::o;21608:98::-;21682:16;21691:6;21682:8;:16::i;11300:109::-;10406:9;:7;:9::i;:::-;10398:54;;;;;;;-1:-1:-1;;;;;10398:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10398:54:0;;;;;;;;;;;;;;;11373:28;11392:8;11373:18;:28::i;:::-;11300:109;:::o;32540:916::-;32580:7;;;32660:13;:11;:13::i;:::-;32637:36;;32690:17;;32711:1;32690:22;32686:464;;;32746:12;32729:29;;32686:464;;;32791:22;;32832:148;32856:15;:22;32852:26;;32832:148;;;32921:43;32940:23;32961:1;32940:20;:23::i;:::-;32921:14;;:43;:18;:43;:::i;:::-;32904:60;-1:-1:-1;32880:3:0;;32832:148;;;-1:-1:-1;33048:17:0;;33011:55;;:32;:14;33030:12;33011:32;:18;:32;:::i;:55::-;33101:17;;32994:72;;-1:-1:-1;33101:37:0;;33123:14;33101:37;:21;:37;:::i;:::-;33081:17;:57;-1:-1:-1;32686:464:0;33183:1;33166:14;:18;33162:253;;;33209:11;;33238:13;;33209:60;;;;;;-1:-1:-1;;;;;33238:13:0;;;33209:60;;;;;;;;;;;;:11;;;;;:20;;:60;;;;;;;;;;;;;;:11;;:60;;;5:2:-1;;;;30:1;27;20:12;5:2;33209:60:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;33209:60:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;33209:60:0;33201:137;;;;;;;-1:-1:-1;;;;;33201:137:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33358:45;33373:14;33389:13;:11;:13::i;:::-;33358:45;;;;;;;;;;;;;;;;;;;;;;33162:253;-1:-1:-1;33434:14:0;-1:-1:-1;32540:916:0;:::o;28259:101::-;28299:7;28334:17;:15;:17::i;:::-;28319:33;;28259:101;:::o;19832:1507::-;19940:1;19931:10;;19923:56;;;;;-1:-1:-1;;;;;19923:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19998:25:0;;;;19990:78;;;;;-1:-1:-1;;;;;19990:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20087:18;;:23;;:44;;;20130:1;20114:13;:11;:13::i;:::-;:17;20087:44;20079:148;;;;;;;-1:-1:-1;;;;;20079:148:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20240:27;20292:1;20271:18;;:22;20270:139;;20386:22;;20375:34;;:6;;:34;:10;:34;:::i;:::-;20270:139;;;20310:49;20345:13;:11;:13::i;:::-;20310:18;;:30;;20333:6;20310:30;:22;:30;:::i;:49::-;20240:169;-1:-1:-1;20450:1:0;20428:23;;20420:74;;;;;-1:-1:-1;;;;;20420:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20507:18;:16;:18::i;:::-;-1:-1:-1;;;;;;;;;20597:24:0;;20569:25;20597:24;;;:11;:24;;;;;20655:20;;20597:24;;-1:-1:-1;20655:45:0;;-1:-1:-1;20680:19:0;20655:24;:45::i;:::-;20632:68;;20747:3;20711:33;;;:39;20763:21;;:::i;:::-;-1:-1:-1;20787:31:0;;;;;;;;;;;20814:3;20787:31;;;;;;;-1:-1:-1;;;;;20829:24:0;;-1:-1:-1;20829:24:0;;;:11;:24;;;;;27:10:-1;;39:1;23:18;;;45:23;;20829:39:0;;;;;;;;;;;;;;;;;;;;;;;;;20935:18;;:43;;20793:19;20935:43;:22;:43;:::i;:::-;20914:18;:64;21117:12;;:20;;;-1:-1:-1;;;;;21117:20:0;;;;-1:-1:-1;;;;;21117:12:0;;;;:18;;:20;;;;;;;;;;;;;;;:12;:20;;;5:2:-1;;;;30:1;27;20:12;5:2;21117:20:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;21117:20:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21117:20:0;21167:12;;21117:72;;;;;;-1:-1:-1;;;;;21117:72:0;;;;;;;21167:12;;;21117:72;;;;;;;;;;;;:33;;;;;;;:72;;;;;:20;;:72;;;;;;;21167:12;21117:33;:72;;;5:2:-1;;;;30:1;27;20:12;5:2;21117:72:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;21117:72:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21117:72:0;21109:144;;;;;;;-1:-1:-1;;;;;21109:144:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21278:11;-1:-1:-1;;;;;21271:60:0;;21291:6;21299:27;21314:11;21299:14;:27::i;:::-;21271:60;;;;;;;;;;;;;;;;;;;;-1:-1:-1;21271:60:0;;;;;;;;;;;;;19832:1507;;;;;;:::o;1314:136::-;1372:7;1399:43;1403:1;1406;1399:43;;;;;;;;;;;;;;;;;;:3;:43::i;:::-;1392:50;;1314:136;;;;;:::o;2230:471::-;2288:7;2533:6;;2529:47;;;-1:-1:-1;2563:1:0;2556:8;;2529:47;2600:5;;;2604:1;2600;:5;2624;;;;;;;;:10;2616:56;;;;;-1:-1:-1;;;;;2616:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;858:181;916:7;948:5;;;972:6;;;;964:46;;;;;-1:-1:-1;;;;;964:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;3169:132;3227:7;3254:39;3258:1;3261;3254:39;;;;;;;;;;;;;;;;;;:3;:39::i;22292:3367::-;22343:7;22363:18;:16;:18::i;:::-;;;;;;;22430:1;22421:6;:10;22413:58;;;;;;;-1:-1:-1;;;;;22413:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22520:6;22490:26;22505:10;22490:14;:26::i;:::-;:36;;22482:123;;;;;-1:-1:-1;;;;;22482:123:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22616:27;22646:49;22681:13;:11;:13::i;:::-;22646:18;;:30;;22669:6;22646:30;:22;:30;:::i;:49::-;22616:79;-1:-1:-1;22736:1:0;22714:23;;22706:84;;;;;-1:-1:-1;;;;;22706:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22874:10;22834:25;22862:23;;;:11;:23;;;;;;;;22928:11;:23;;;;;22862;;23107:19;22834:25;23172:1298;23198:1;23179:16;:20;23172:1298;;;23256:20;;23216:23;;23242:13;;-1:-1:-1;;23256:24:0;;;23242:39;;;;;;;;;;;;;;;;23216:65;;23296:20;23319:31;23327:9;:22;;;23319:3;:7;;:31;;;;:::i;:::-;23424:23;;23296:54;;-1:-1:-1;23365:36:0;;23424:43;-1:-1:-1;23420:1039:0;;23565:23;;:41;;23593:12;23565:41;:27;:41;:::i;:::-;23534:72;;23640:74;23657:12;23671:28;23701:12;23640:16;:74::i;:::-;23625:89;-1:-1:-1;23761:59:0;:25;23791:28;23761:59;:29;:59;:::i;:::-;23879:23;;23733:87;;-1:-1:-1;23858:45:0;;:16;;:45;:20;:45;:::i;:::-;23922:22;;23839:64;;-1:-1:-1;23922:22:0;:13;-1:-1:-1;;23922:22:0;;;:::i;:::-;;23420:1039;;;24066:34;:16;24087:12;24066:34;:20;:34;:::i;:::-;24035:65;;24134:74;24151:12;24165:28;24195:12;24134:16;:74::i;:::-;24119:89;-1:-1:-1;24255:59:0;:25;24285:28;24255:59;:29;:59;:::i;:::-;24359:23;;24227:87;;-1:-1:-1;24359:45:0;;24387:16;24359:45;:27;:45;:::i;:::-;24333:71;;:23;;-1:-1:-1;23420:1039:0;23172:1298;;;;;;24509:26;;;;:57;;24540:25;24509:57;:30;:57;:::i;:::-;24480:26;;;:86;24600:20;;:45;;24625:19;24600:45;:24;:45;:::i;:::-;24577:68;;24816:25;;:56;;24846:25;24816:56;:29;:56;:::i;:::-;24788:25;:84;24904:18;;:43;;24927:19;24904:43;:22;:43;:::i;:::-;24883:18;:64;25084:12;;:41;;;;;;25106:10;25084:41;;;;;;;;;;;;-1:-1:-1;;;;;25084:12:0;;;;:21;;:41;;;;;;;;;;;;;;;:12;;:41;;;5:2:-1;;;;30:1;27;20:12;5:2;25084:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;25084:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;25084:41:0;25076:115;;;;;;;-1:-1:-1;;;;;25076:115:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25210:13;;:48;;;;;;25233:10;25210:48;;;;;;;;;;;;-1:-1:-1;;;;;25210:13:0;;;;:22;;:48;;;;;;;;;;;;;;;:13;;:48;;;5:2:-1;;;;30:1;27;20:12;5:2;25210:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;25210:48:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;25210:48:0;25202:123;;;;;;;-1:-1:-1;;;;;25202:123:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25352:10;25343:60;25364:6;25372:26;25352:10;25372:14;:26::i;:::-;25343:60;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25343:60:0;;;;;;;;;;;;;25419:39;;;;;;;;25433:10;;25419:39;;;;;;;;;;25479:18;;:23;;:44;;;25522:1;25506:13;:11;:13::i;:::-;:17;25479:44;25471:150;;;;;;;-1:-1:-1;;;;;25471:150:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25639:12;22292:3367;-1:-1:-1;;;;;;;22292:3367:0:o;9028:98::-;9108:10;9028:98;:::o;11515:229::-;-1:-1:-1;;;;;11589:22:0;;;;11581:73;;;;;-1:-1:-1;;;;;11581:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11691:6;;;11670:38;;-1:-1:-1;;;;;11670:38:0;;;;11691:6;;;11670:38;;;11719:6;:17;;-1:-1:-1;;11719:17:0;-1:-1:-1;;;;;11719:17:0;;;;;;;;;;11515:229::o;33826:920::-;33884:7;33904:31;33938:15;33954:1;33938:18;;;;;;;;;;;;;;;;;;;;33904:52;;33999:8;:28;;;33972:8;:23;;;:55;;33969:95;;;34051:1;34044:8;;;;;33969:95;34199:17;;;;34076:22;;34192:3;:24;34188:437;;34284:23;;;;34251:28;;:57;;;:32;:57;:::i;:::-;34358:17;;;;34324:31;;;:51;34233:76;-1:-1:-1;34188:437:0;;;34425:136;34540:8;:20;;;34425:92;34488:8;:28;;;34425:40;34433:8;:31;;;34425:3;:7;;:40;;;;:::i;:136::-;34610:3;34576:31;;;:37;34408:153;-1:-1:-1;34188:437:0;34663:23;;;;:43;;34691:14;34663:43;:27;:43;:::i;:::-;34637:23;;;;:69;;;;34724:14;-1:-1:-1;33826:920:0;;;:::o;1787:192::-;1873:7;1909:12;1901:6;;;;1893:29;;;;-1:-1:-1;;;;;1893:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;1893:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1945:5:0;;;1787:192::o;3831:345::-;3917:7;4019:12;4012:5;;;4004:28;;;;-1:-1:-1;;;;;4004:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;4004:28:0;;4043:9;4059:1;4055;:5;;;;;;;;;3831:345;-1:-1:-1;;;;;3831:345:0:o;26635:808::-;26829:7;26851:23;26890:99;26963:25;;26890:54;26924:19;26890:15;:13;:15::i;:99::-;27022:14;;26851:138;;-1:-1:-1;27006:30:0;;27002:110;;27060:40;:19;27084:15;27060:40;:23;:40;:::i;:::-;27053:47;;;;;27002:110;27124:21;15295:1;27148:2;:18;27124:42;;27177:21;27214:165;27365:13;27214:132;27330:15;27214:97;27243:67;27295:14;;27243:47;27277:12;27243:29;27261:10;;27243:13;:17;;:29;;;;:::i;:67::-;27214:10;;;:97;:28;:97;:::i;:165::-;27177:202;-1:-1:-1;27397:38:0;:19;27177:202;27397:38;:23;:38;:::i;14584:20694::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;-1:-1:-1;14584:20694:0;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

bzzr://090a13d26e72c39fcafdaef0f062e6c9a8f2a227ff709669842c4509a1c0d611

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.