S Price: $0.498885 (-11.69%)

Contract

0x8e2C7B3731c0e3aA7B7d59ebE4888E11ccE146De

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GenericDrippingVault

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 777 runs

Other Settings:
default evmVersion
File 1 of 8 : GenericDrippingVault.sol
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity 0.8.9;

import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { Initializable } from "@openzeppelin/contracts/proxy/utils/Initializable.sol";
import { ReentrancyGuard } from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

// ERC20 virtual deposit contract, with 11% in and out fees, 1% burned, 7% to drip pool, 1% to boosted stakers (boost by depositing another ERC20) 2% instant divs
contract GenericDrippingVault is Initializable, Ownable, ReentrancyGuard
{
	using SafeERC20 for IERC20;

	struct AccountInfo {
		uint256 amount; // vdc token staked
		uint256 burned; // boost burned
		uint256 drip; // drip pool accumulated but not claimed
		uint256 boost; // boost accumulated but not claimed
		uint256 accDripDebt; // reward debt from PCS distribution algorithm
		uint256 accBoostDebt; // reward debt from PCS distribution algorithm
		bool whitelisted; // flag indicating whether or not account pays withdraw penalties
		bool exists; // flag to index account
		uint256 reserved0;
		uint256 reserved1;
		uint256 reserved2;
	}

	address constant FURNACE = 0x000000000000000000000000000000000000dEaD;

	uint256 constant DEFAULT_LAUNCH_TIME = 1731337200; // Thu NOV 11 2024 15:00:00 GMT+0000

	uint256 constant DEFAULT_DRIP_RATE_PER_DAY = 1e16; // 1% per day
	uint256 constant DEFAULT_DRIP_BOOST_RATE_PER_DAY = 1e16; // 1% per day

	uint256 constant DAY = 1 days;
	uint256 constant TZ_OFFSET = 16 hours; // UTC-8

	address public reserveToken; 
	address public boostToken; 

	uint256 public launchTime;

	uint256 public dripRatePerDay;
	uint256 public dripBoostRatePerDay;

	bool public whitelistAll;

	uint256 public totalStaked; // total staked balance
	uint256 public totalBurned; // total burned balance

	uint256 public totalDrip; // total drip pool balance
	uint256 public allocDrip; // total drip pool balance allocated

	uint256 public totalBoost; // total boost balance

	uint256 public accDripPerShare; // cumulative drip pool per staked from PCS distribution algorithm
	uint256 public accBoostPerShare; // cumulative boost per burned from PCS distribution algorithm

	uint64 public day;

	address[] public accountIndex;
	mapping(address => AccountInfo) public accountInfo;

	function accountIndexLength() external view returns (uint256 _length)
	{
		return accountIndex.length;
	}

	function getAccountByIndex(uint256 _index) external view returns (AccountInfo memory _accountInfo)
	{
		return accountInfo[accountIndex[_index]];
	}

	function today() public view returns (uint64 _today)
	{
		return uint64((block.timestamp + TZ_OFFSET) / DAY);
	}

	modifier hasLaunched()
	{
		require(block.timestamp >= launchTime, "unavailable");
		_;
	}

	constructor(address _reserveToken, address _boostToken)
	{
		initialize(msg.sender, _reserveToken, _boostToken);
	}

	function initialize(address _owner, address _reserveToken, address _boostToken) public initializer
	{
		_transferOwnership(_owner);

		launchTime = DEFAULT_LAUNCH_TIME;

		dripRatePerDay = DEFAULT_DRIP_RATE_PER_DAY;
		dripBoostRatePerDay = DEFAULT_DRIP_BOOST_RATE_PER_DAY;

		whitelistAll = false;

		totalStaked = 0;
		totalBurned = 0;

		totalDrip = 0;
		allocDrip = 0;

		totalBoost = 0;

		accDripPerShare = 0;
		accBoostPerShare = 0;

		day = today();

		reserveToken = _reserveToken;
		boostToken = _boostToken;
	}

	// updates the launch time
	function setLaunchTime(uint256 _launchTime) external onlyOwner
	{
		require(block.timestamp < launchTime, "unavailable");
		require(_launchTime >= block.timestamp, "invalid time");
		launchTime = _launchTime;
	}

	// updates the percentual rate of distribution from the drip pool
	function setDripRatePerDay(uint256 _dripRatePerDay) external onlyOwner
	{
		require(_dripRatePerDay + dripBoostRatePerDay <= 100e16, "invalid rate");
		dripRatePerDay = _dripRatePerDay;
	}

	// updates the percentual rate of distribution from the drip pool
	function setDripBoostRatePerDay(uint256 _dripBoostRatePerDay) external onlyOwner
	{
		require(dripRatePerDay + _dripBoostRatePerDay <= 100e16, "invalid rate");
		dripBoostRatePerDay = _dripBoostRatePerDay;
	}

	// flags all accounts for withdrawing without penalty (useful for migration)
	function updateWhitelistAll(bool _whitelistAll) external onlyOwner
	{
		whitelistAll = _whitelistAll;
	}

	// flags multiple accounts for withdrawing without penalty
	function updateWhitelist(address[] calldata _accounts, bool _whitelisted) external onlyOwner
	{
		for (uint256 _i; _i < _accounts.length; _i++) {
			accountInfo[_accounts[_i]].whitelisted = _whitelisted;
		}
	}

	// this is a safety net method for recovering funds that are not being used
	function recoverFunds(address _token) external onlyOwner nonReentrant
	{
		uint256 _amount = IERC20(_token).balanceOf(address(this));
		if (_token == reserveToken) _amount -= totalStaked + totalDrip + totalBoost;
		require(_amount > 0, "no balance");
		IERC20(_token).safeTransfer(msg.sender, _amount);
	}

	// burns
	function burn(uint256 _amount) external
	{
		burnOnBehalfOf(_amount, msg.sender);
	}

	// burns on behalf of another account
	function burnOnBehalfOf(uint256 _amount, address _account) public hasLaunched nonReentrant
	{
		require(_amount > 0, "invalid amount");

		_updateDay();

		_updateAccount(_account, 0, _amount);

		totalBurned += _amount;

		IERC20(boostToken).safeTransferFrom(msg.sender, FURNACE, _amount);

		emit Burn(_account, boostToken, _amount);
	}

	// stakes
	function deposit(uint256 _amount) external hasLaunched nonReentrant
	{
		_deposit(msg.sender, _amount, msg.sender);

		emit Deposit(msg.sender, reserveToken, _amount);
	}

	// stakes on behalf of another account
	function depositOnBehalfOf(uint256 _amount, address _account) external hasLaunched nonReentrant
	{
		_deposit(msg.sender, _amount, _account);

		emit Deposit(_account, reserveToken, _amount);
	}

	function _deposit(address _sender, uint256 _amount, address _account) internal
	{
		require(_amount > 0, "invalid amount");

		_updateDay();

		if (_sender != address(this)) {
			uint256 _balance = IERC20(reserveToken).balanceOf(address(this));
			IERC20(reserveToken).safeTransferFrom(_sender, address(this), _amount);
			_amount = IERC20(reserveToken).balanceOf(address(this)) - _balance;
		}

		uint256 _1percent = _amount * 1e16 / 100e16;
		uint256 _dripAmount = 9 * _1percent;
		uint256 _netAmount = _amount - (11 * _1percent);

		// 9% accounted for the drip pool
		totalDrip += _dripAmount;

		// 2% instant rewards (only 7% actually go to the drip pool)
		if (totalStaked > 0) {
			accDripPerShare += (2 * _1percent) * 1e36 / totalStaked;
			allocDrip += 2 * _1percent;
		}

		// rewards users for burned
		if (totalBurned > 0) {
			accBoostPerShare += _1percent * 1e36 / totalBurned;
			totalBoost += _1percent;
		}

		_updateAccount(_account, int256(_netAmount), 0);

		totalStaked += _netAmount;

		IERC20(reserveToken).safeTransfer(FURNACE, _1percent);
	}

	// unstakes 
	function withdraw(uint256 _amount) external nonReentrant
	{
		require(_amount > 0, "invalid amount");

		AccountInfo storage _accountInfo = accountInfo[msg.sender];
		uint256 _available  = _accountInfo.amount;
		require(_amount <= _available, "insufficient balance");

		_updateDay();

		_updateAccount(msg.sender, -int256(_amount), 0);

		totalStaked -= _amount;

		if (_accountInfo.whitelisted || whitelistAll) {
			IERC20(reserveToken).safeTransfer(msg.sender, _amount);
		} else {
			uint256 _1percent = _amount * 1e16 / 100e16;
			uint256 _dripAmount = 9 * _1percent;
			uint256 _netAmount = _amount - (11 * _1percent);

			// 9% accounted for the drip pool
			totalDrip += _dripAmount;

			// 2% instant rewards (only 7% actually go to the drip pool)
			if (totalStaked > 0) {
				accDripPerShare += (2 * _1percent) * 1e36 / totalStaked;
				allocDrip += 2 * _1percent;
			}

			// rewards users for burned
			if (totalBurned > 0) {
				accBoostPerShare += _1percent * 1e36 / totalBurned;
				totalBoost += _1percent;
			}

			IERC20(reserveToken).safeTransfer(FURNACE, _1percent);

			IERC20(reserveToken).safeTransfer(msg.sender, _netAmount);
		}

		emit Withdraw(msg.sender, reserveToken, _amount);
	}

	// claims
	function claimReserve() external nonReentrant returns (uint256 _dripAmount, uint256 _boostAmount)
	{
		_updateDay();

		_updateAccount(msg.sender, 0, 0);

		AccountInfo storage _accountInfo = accountInfo[msg.sender];

		_dripAmount = _accountInfo.drip;
		_boostAmount = _accountInfo.boost;

		if (_dripAmount > 0) {
			_accountInfo.drip = 0;

			totalDrip -= _dripAmount;
			allocDrip -= _dripAmount;
		}

		if (_boostAmount > 0) {
			_accountInfo.boost = 0;

			totalBoost -= _boostAmount;
		}

		uint256 _dripPlusBoostAmount = _dripAmount + _boostAmount;
		if (_dripPlusBoostAmount > 0) {
			IERC20(reserveToken).safeTransfer(msg.sender, _dripPlusBoostAmount);
		}

		emit Claim(msg.sender, reserveToken, _dripAmount);
		emit Claim(msg.sender, reserveToken, _boostAmount);

		return (_dripAmount, _boostAmount);
	}

	// compounds
	function compoundReserve() external nonReentrant returns (uint256 _dripAmount, uint256 _boostAmount)
	{
		_updateDay();

		_updateAccount(msg.sender, 0, 0);

		AccountInfo storage _accountInfo = accountInfo[msg.sender];

		_dripAmount = _accountInfo.drip;
		_boostAmount = _accountInfo.boost;

		if (_dripAmount > 0) {
			_accountInfo.drip = 0;

			totalDrip -= _dripAmount;
			allocDrip -= _dripAmount;
		}

		if (_boostAmount > 0) {
			_accountInfo.boost = 0;

			totalBoost -= _boostAmount;
		}

		uint256 _dripPlusBoostAmount = _dripAmount + _boostAmount;
		if (_dripPlusBoostAmount > 0) {
			_deposit(address(this), _dripPlusBoostAmount, msg.sender);
		}

		emit Compound(msg.sender, reserveToken, _dripAmount);
		emit Compound(msg.sender, reserveToken, _boostAmount);

		return (_dripAmount, _boostAmount);
	}

	// sends to the drip pool
	function donateDrip(uint256 _amount) external nonReentrant
	{
		require(_amount > 0, "invalid amount");

		_updateDay();

		{
		uint256 _balance = IERC20(reserveToken).balanceOf(address(this));
		IERC20(reserveToken).safeTransferFrom(msg.sender, address(this), _amount);
		_amount = IERC20(reserveToken).balanceOf(address(this)) - _balance;
		}

		totalDrip += _amount;

		emit DonateDrip(msg.sender, reserveToken, _amount);
	}

	// performs the daily distribution from the drip pool
	function updateDay() external nonReentrant
	{
		_updateDay();
	}

	function _updateDay() internal
	{
		uint64 _today = today();

		if (day == _today) return;

		uint256 _ratePerDay = dripRatePerDay + dripBoostRatePerDay;
		if (_ratePerDay > 0) {
			// calculates the percentage of the drip pool and distributes
			{
				// formula: drip_reward = drip_pool_balance * (1 - (1 - drip_rate_per_day) ^ days_ellapsed)
				uint64 _days = _today - day;
				uint256 _rate = 100e16 - _exp(100e16 - _ratePerDay, _days);
				uint256 _amount = (totalDrip - allocDrip) * _rate / 100e16;

				uint256 _amountDrip = _amount * dripRatePerDay / _ratePerDay;
				if (totalStaked > 0) {
					accDripPerShare += _amountDrip * 1e36 / totalStaked;
					allocDrip += _amountDrip;
				}

				uint256 _amountBoost = _amount - _amountDrip;
				if (totalBurned > 0) {
					accBoostPerShare += _amountBoost * 1e36 / totalBurned;
					totalDrip -= _amountBoost;
					totalBoost += _amountBoost;
				}
			}
		}

		day = _today;
	}

	// updates the account balances while accumulating reward/drip/boost using PCS distribution algorithm
	function _updateAccount(address _account, int256 _amount, uint256 _burned) internal
	{
		AccountInfo storage _accountInfo = accountInfo[_account];
		if (!_accountInfo.exists) {
			// adds account to index
			_accountInfo.exists = true;
			accountIndex.push(_account);
		}

		_accountInfo.drip += _accountInfo.amount * accDripPerShare / 1e36 - _accountInfo.accDripDebt;
		_accountInfo.boost += _accountInfo.burned * accBoostPerShare / 1e36 - _accountInfo.accBoostDebt;
		if (_amount > 0) {
			_accountInfo.amount += uint256(_amount);
		}
		else
		if (_amount < 0) {
			_accountInfo.amount -= uint256(-_amount);
		}
		_accountInfo.burned += _burned;
		_accountInfo.accDripDebt = _accountInfo.amount * accDripPerShare / 1e36;
		_accountInfo.accBoostDebt = _accountInfo.burned * accBoostPerShare / 1e36;
	}

	// exponentiation with integer exponent
	function _exp(uint256 _x, uint256 _n) internal pure returns (uint256 _y)
	{
		_y = 1e18;
		while (_n > 0) {
			if (_n & 1 != 0) _y = _y * _x / 1e18;
			_n >>= 1;
			_x = _x * _x / 1e18;
		}
		return _y;
	}

	event Burn(address indexed _account, address indexed _boostToken, uint256 _amount);
	event Deposit(address indexed _account, address indexed _reserveToken, uint256 _amount);
	event Withdraw(address indexed _account, address indexed _reserveToken, uint256 _amount);
	event Claim(address indexed _account, address indexed _reserveToken, uint256 _amount);
	event Compound(address indexed _account, address indexed _reserveToken, uint256 _amount);
	event DonateDrip(address indexed _account, address indexed _reserveToken, uint256 _amount);
}

File 2 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

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

File 3 of 8 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }
}

File 4 of 8 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

File 6 of 8 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

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

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

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

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

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

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

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

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

File 7 of 8 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

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

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 8 of 8 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_reserveToken","type":"address"},{"internalType":"address","name":"_boostToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"},{"indexed":true,"internalType":"address","name":"_boostToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"},{"indexed":true,"internalType":"address","name":"_reserveToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"},{"indexed":true,"internalType":"address","name":"_reserveToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Compound","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"},{"indexed":true,"internalType":"address","name":"_reserveToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"},{"indexed":true,"internalType":"address","name":"_reserveToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"DonateDrip","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"},{"indexed":true,"internalType":"address","name":"_reserveToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"accBoostPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accDripPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"accountIndex","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accountIndexLength","outputs":[{"internalType":"uint256","name":"_length","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accountInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"burned","type":"uint256"},{"internalType":"uint256","name":"drip","type":"uint256"},{"internalType":"uint256","name":"boost","type":"uint256"},{"internalType":"uint256","name":"accDripDebt","type":"uint256"},{"internalType":"uint256","name":"accBoostDebt","type":"uint256"},{"internalType":"bool","name":"whitelisted","type":"bool"},{"internalType":"bool","name":"exists","type":"bool"},{"internalType":"uint256","name":"reserved0","type":"uint256"},{"internalType":"uint256","name":"reserved1","type":"uint256"},{"internalType":"uint256","name":"reserved2","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allocDrip","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boostToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_account","type":"address"}],"name":"burnOnBehalfOf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimReserve","outputs":[{"internalType":"uint256","name":"_dripAmount","type":"uint256"},{"internalType":"uint256","name":"_boostAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"compoundReserve","outputs":[{"internalType":"uint256","name":"_dripAmount","type":"uint256"},{"internalType":"uint256","name":"_boostAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"day","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_account","type":"address"}],"name":"depositOnBehalfOf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"donateDrip","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dripBoostRatePerDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dripRatePerDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getAccountByIndex","outputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"burned","type":"uint256"},{"internalType":"uint256","name":"drip","type":"uint256"},{"internalType":"uint256","name":"boost","type":"uint256"},{"internalType":"uint256","name":"accDripDebt","type":"uint256"},{"internalType":"uint256","name":"accBoostDebt","type":"uint256"},{"internalType":"bool","name":"whitelisted","type":"bool"},{"internalType":"bool","name":"exists","type":"bool"},{"internalType":"uint256","name":"reserved0","type":"uint256"},{"internalType":"uint256","name":"reserved1","type":"uint256"},{"internalType":"uint256","name":"reserved2","type":"uint256"}],"internalType":"struct GenericDrippingVault.AccountInfo","name":"_accountInfo","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_reserveToken","type":"address"},{"internalType":"address","name":"_boostToken","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"launchTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"recoverFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_dripBoostRatePerDay","type":"uint256"}],"name":"setDripBoostRatePerDay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_dripRatePerDay","type":"uint256"}],"name":"setDripRatePerDay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_launchTime","type":"uint256"}],"name":"setLaunchTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"today","outputs":[{"internalType":"uint64","name":"_today","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBoost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDrip","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateDay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_accounts","type":"address[]"},{"internalType":"bool","name":"_whitelisted","type":"bool"}],"name":"updateWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_whitelistAll","type":"bool"}],"name":"updateWhitelistAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002d5338038062002d5383398101604081905262000034916200025f565b6200003f3362000058565b6001805562000050338383620000b3565b5050620002e1565b600080546001600160a01b038381166201000081810262010000600160b01b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b600054610100900460ff1680620000cd575060005460ff16155b620001355760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600054610100900460ff1615801562000158576000805461ffff19166101011790555b620001638462000058565b6367321bf0600455662386f26fc1000060058190556006556007805460ff19169055600060088190556009819055600a819055600b819055600c819055600d819055600e55620001b26200021d565b600f80546001600160401b03929092166001600160401b0319909216919091179055600280546001600160a01b038086166001600160a01b0319928316179092556003805492851692909116919091179055801562000217576000805461ff00191690555b50505050565b6000620151806200023161e1004262000297565b6200023d9190620002be565b905090565b80516001600160a01b03811681146200025a57600080fd5b919050565b600080604083850312156200027357600080fd5b6200027e8362000242565b91506200028e6020840162000242565b90509250929050565b60008219821115620002b957634e487b7160e01b600052601160045260246000fd5b500190565b600082620002dc57634e487b7160e01b600052601260045260246000fd5b500490565b612a6280620002f16000396000f3fe608060405234801561001057600080fd5b50600436106102925760003560e01c80638da5cb5b11610160578063c0c53b8b116100d8578063edc017521161008c578063f2fde38b11610071578063f2fde38b146105b9578063f3b570eb146105cc578063f4325d67146105d557600080fd5b8063edc0175214610586578063f1ddf840146105a657600080fd5b8063d89135cd116100bd578063d89135cd14610561578063e14dbe801461056a578063e72f6e301461057357600080fd5b8063c0c53b8b1461053b578063d0464ab71461054e57600080fd5b8063ad607d9d1161012f578063b6b55f2511610114578063b6b55f251461050d578063b74e452b14610520578063bd05b2ae1461052857600080fd5b8063ad607d9d146104e7578063aff177ca146104fa57600080fd5b80638da5cb5b146103f357806394dbcdc01461040a5780639ff46e7414610413578063a7310b581461042657600080fd5b80635d54e6121161020e578063715018a6116101c25780637b210b4d116101a75780637b210b4d146103b45780637b76ac91146103bd578063817b1cd2146103ea57600080fd5b8063715018a6146103a3578063790ca413146103ab57600080fd5b806368c958ee116101f357806368c958ee1461037f5780636d9873c5146103925780636ecb16371461039a57600080fd5b80635d54e6121461035957806360a22e501461037657600080fd5b806336f9825f116102655780633fe5f0541161024a5780633fe5f0541461033657806341632d331461033e57806342966c681461034657600080fd5b806336f9825f146102f85780633a589b971461032357600080fd5b806319fd81e91461029757806322ac7b8f146102b35780632e1a7d4d146102c857806336aa6928146102db575b600080fd5b6102a0600b5481565b6040519081526020015b60405180910390f35b6102c66102c136600461266d565b6105e8565b005b6102c66102d636600461268a565b610661565b6102e3610967565b604080519283526020830191909152016102aa565b61030b61030636600461268a565b610afc565b6040516001600160a01b0390911681526020016102aa565b60035461030b906001600160a01b031681565b6102e3610b26565b6010546102a0565b6102c661035436600461268a565b610cb9565b6007546103669060ff1681565b60405190151581526020016102aa565b6102a0600a5481565b6102c661038d3660046126bf565b610cc6565b6102c6610e1d565b6102a0600d5481565b6102c6610e71565b6102a060045481565b6102a0600c5481565b600f546103d19067ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020016102aa565b6102a060085481565b6000546201000090046001600160a01b031661030b565b6102a0600e5481565b6102c661042136600461268a565b610ede565b6104906104343660046126eb565b601160205260009081526040902080546001820154600283015460038401546004850154600586015460068701546007880154600889015460099099015497989697959694959394929360ff808416946101009094041692908b565b604080519b8c5260208c019a909a52988a01979097526060890195909552608088019390935260a0870191909152151560c0860152151560e0850152610100840152610120830152610140820152610160016102aa565b6102c66104f536600461268a565b610fd3565b6102c6610508366004612706565b61108d565b6102c661051b36600461268a565b611168565b6103d1611245565b6102c661053636600461268a565b611266565b6102c661054936600461278c565b611469565b6102c661055c36600461268a565b6115e4565b6102a060095481565b6102a060065481565b6102c66105813660046126eb565b61169e565b61059961059436600461268a565b61186e565b6040516102aa91906127cf565b6102c66105b43660046126bf565b611994565b6102c66105c73660046126eb565b611a67565b6102a060055481565b60025461030b906001600160a01b031681565b6000546001600160a01b036201000090910416331461064e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6007805460ff1916911515919091179055565b600260015414156106a25760405162461bcd60e51b815260206004820152601f6024820152600080516020612a0d8339815191526044820152606401610645565b6002600155806106e55760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610645565b3360009081526011602052604090208054808311156107465760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610645565b61074e611b4d565b6107623361075b85612874565b6000611d44565b82600860008282546107749190612891565b9091555050600682015460ff168061078e575060075460ff165b156107af576002546107aa906001600160a01b03163385611f4d565b61091a565b6000670de0b6b3a76400006107cb85662386f26fc100006128a8565b6107d591906128c7565b905060006107e48260096128a8565b905060006107f383600b6128a8565b6107fd9087612891565b905081600a600082825461081191906128e9565b9091555050600854156108885760085461082c8460026128a8565b610845906ec097ce7bc90715b34b9f10000000006128a8565b61084f91906128c7565b600d600082825461086091906128e9565b9091555061087190508360026128a8565b600b600082825461088291906128e9565b90915550505b600954156108e6576009546108ac846ec097ce7bc90715b34b9f10000000006128a8565b6108b691906128c7565b600e60008282546108c791906128e9565b9250508190555082600c60008282546108e091906128e9565b90915550505b6002546108ff906001600160a01b031661dead85611f4d565b600254610916906001600160a01b03163383611f4d565b5050505b6002546040518481526001600160a01b039091169033907f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb9060200160405180910390a350506001805550565b600080600260015414156109ab5760405162461bcd60e51b815260206004820152601f6024820152600080516020612a0d8339815191526044820152606401610645565b60026001556109b8611b4d565b6109c433600080611d44565b50503360009081526011602052604090206002810154600382015490918215610a22576000816002018190555082600a6000828254610a039190612891565b9250508190555082600b6000828254610a1c9190612891565b90915550505b8115610a4a576000816003018190555081600c6000828254610a449190612891565b90915550505b6000610a5683856128e9565b90508015610a6957610a69308233611fe2565b6002546040518581526001600160a01b039091169033907f6c7e7d4cb83a668aef31739dd35dc3fc3d5f31d62b69e438b7b24d35b40dcc639060200160405180910390a36002546040518481526001600160a01b039091169033907f6c7e7d4cb83a668aef31739dd35dc3fc3d5f31d62b69e438b7b24d35b40dcc63906020015b60405180910390a35050600180559091565b60108181548110610b0c57600080fd5b6000918252602090912001546001600160a01b0316905081565b60008060026001541415610b6a5760405162461bcd60e51b815260206004820152601f6024820152600080516020612a0d8339815191526044820152606401610645565b6002600155610b77611b4d565b610b8333600080611d44565b50503360009081526011602052604090206002810154600382015490918215610be1576000816002018190555082600a6000828254610bc29190612891565b9250508190555082600b6000828254610bdb9190612891565b90915550505b8115610c09576000816003018190555081600c6000828254610c039190612891565b90915550505b6000610c1583856128e9565b90508015610c3457600254610c34906001600160a01b03163383611f4d565b6002546040518581526001600160a01b039091169033907f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd9870689060200160405180910390a36002546040518481526001600160a01b039091169033907f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd98706890602001610aea565b610cc38133610cc6565b50565b600454421015610d065760405162461bcd60e51b815260206004820152600b60248201526a756e617661696c61626c6560a81b6044820152606401610645565b60026001541415610d475760405162461bcd60e51b815260206004820152601f6024820152600080516020612a0d8339815191526044820152606401610645565b600260015581610d8a5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610645565b610d92611b4d565b610d9e81600084611d44565b8160096000828254610db091906128e9565b9091555050600354610dcf906001600160a01b03163361dead856122d6565b6003546040518381526001600160a01b03918216918316907fbac40739b0d4ca32fa2d82fc91630465ba3eddd1598da6fca393b26fb63b9453906020015b60405180910390a3505060018055565b60026001541415610e5e5760405162461bcd60e51b815260206004820152601f6024820152600080516020612a0d8339815191526044820152606401610645565b6002600155610e6b611b4d565b60018055565b6000546001600160a01b0362010000909104163314610ed25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610645565b610edc600061230e565b565b6000546001600160a01b0362010000909104163314610f3f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610645565b6004544210610f7e5760405162461bcd60e51b815260206004820152600b60248201526a756e617661696c61626c6560a81b6044820152606401610645565b42811015610fce5760405162461bcd60e51b815260206004820152600c60248201527f696e76616c69642074696d6500000000000000000000000000000000000000006044820152606401610645565b600455565b6000546001600160a01b03620100009091041633146110345760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610645565b670de0b6b3a76400006006548261104b91906128e9565b11156110885760405162461bcd60e51b815260206004820152600c60248201526b696e76616c6964207261746560a01b6044820152606401610645565b600555565b6000546001600160a01b03620100009091041633146110ee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610645565b60005b8281101561116257816011600086868581811061111057611110612901565b905060200201602081019061112591906126eb565b6001600160a01b031681526020810191909152604001600020600601805460ff19169115159190911790558061115a81612917565b9150506110f1565b50505050565b6004544210156111a85760405162461bcd60e51b815260206004820152600b60248201526a756e617661696c61626c6560a81b6044820152606401610645565b600260015414156111e95760405162461bcd60e51b815260206004820152601f6024820152600080516020612a0d8339815191526044820152606401610645565b60026001556111f9338281611fe2565b6002546040518281526001600160a01b039091169033907f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62906020015b60405180910390a35060018055565b60006201518061125761e100426128e9565b61126191906128c7565b905090565b600260015414156112a75760405162461bcd60e51b815260206004820152601f6024820152600080516020612a0d8339815191526044820152606401610645565b6002600155806112ea5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610645565b6112f2611b4d565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561133657600080fd5b505afa15801561134a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136e9190612932565b600254909150611389906001600160a01b03163330856122d6565b6002546040516370a0823160e01b815230600482015282916001600160a01b0316906370a082319060240160206040518083038186803b1580156113cc57600080fd5b505afa1580156113e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114049190612932565b61140e9190612891565b91505080600a600082825461142391906128e9565b90915550506002546040518281526001600160a01b039091169033907f88923243846ae6dc2129c36897f0c50381bac23792669a4ab5bc456dd997617790602001611236565b600054610100900460ff1680611482575060005460ff16155b6114f45760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610645565b600054610100900460ff16158015611516576000805461ffff19166101011790555b61151f8461230e565b6367321bf0600455662386f26fc1000060058190556006556007805460ff19169055600060088190556009819055600a819055600b819055600c819055600d819055600e5561156c611245565b600f805467ffffffffffffffff9290921667ffffffffffffffff19909216919091179055600280546001600160a01b0380861673ffffffffffffffffffffffffffffffffffffffff199283161790925560038054928516929091169190911790558015611162576000805461ff001916905550505050565b6000546001600160a01b03620100009091041633146116455760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610645565b670de0b6b3a76400008160055461165c91906128e9565b11156116995760405162461bcd60e51b815260206004820152600c60248201526b696e76616c6964207261746560a01b6044820152606401610645565b600655565b6000546001600160a01b03620100009091041633146116ff5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610645565b600260015414156117405760405162461bcd60e51b815260206004820152601f6024820152600080516020612a0d8339815191526044820152606401610645565b60026001556040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561178757600080fd5b505afa15801561179b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117bf9190612932565b6002549091506001600160a01b038381169116141561180257600c54600a546008546117eb91906128e9565b6117f591906128e9565b6117ff9082612891565b90505b600081116118525760405162461bcd60e51b815260206004820152600a60248201527f6e6f2062616c616e6365000000000000000000000000000000000000000000006044820152606401610645565b6118666001600160a01b0383163383611f4d565b505060018055565b6118cf6040518061016001604052806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000151581526020016000151581526020016000815260200160008152602001600081525090565b60116000601084815481106118e6576118e6612901565b60009182526020808320909101546001600160a01b031683528281019390935260409182019020815161016081018352815481526001820154938101939093526002810154918301919091526003810154606083015260048101546080830152600581015460a0830152600681015460ff808216151560c08501526101009182900416151560e084015260078201549083015260088101546101208301526009015461014082015292915050565b6004544210156119d45760405162461bcd60e51b815260206004820152600b60248201526a756e617661696c61626c6560a81b6044820152606401610645565b60026001541415611a155760405162461bcd60e51b815260206004820152601f6024820152600080516020612a0d8339815191526044820152606401610645565b6002600155611a25338383611fe2565b6002546040518381526001600160a01b03918216918316907f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f6290602001610e0d565b6000546001600160a01b0362010000909104163314611ac85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610645565b6001600160a01b038116611b445760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610645565b610cc38161230e565b6000611b57611245565b600f5490915067ffffffffffffffff80831691161415611b745750565b6000600654600554611b8691906128e9565b90508015611d1f57600f54600090611ba89067ffffffffffffffff168461294b565b90506000611bd1611bc184670de0b6b3a7640000612891565b8367ffffffffffffffff1661237f565b611be390670de0b6b3a7640000612891565b90506000670de0b6b3a764000082600b54600a54611c019190612891565b611c0b91906128a8565b611c1591906128c7565b905060008460055483611c2891906128a8565b611c3291906128c7565b60085490915015611c9357600854611c59826ec097ce7bc90715b34b9f10000000006128a8565b611c6391906128c7565b600d6000828254611c7491906128e9565b9250508190555080600b6000828254611c8d91906128e9565b90915550505b6000611c9f8284612891565b60095490915015611d1957600954611cc6826ec097ce7bc90715b34b9f10000000006128a8565b611cd091906128c7565b600e6000828254611ce191906128e9565b9250508190555080600a6000828254611cfa9190612891565b9250508190555080600c6000828254611d1391906128e9565b90915550505b50505050505b50600f805467ffffffffffffffff191667ffffffffffffffff92909216919091179055565b6001600160a01b03831660009081526011602052604090206006810154610100900460ff16611dd95760068101805461ff001916610100179055601080546001810182556000919091527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6720180546001600160a01b03861673ffffffffffffffffffffffffffffffffffffffff199091161790555b6004810154600d5482546ec097ce7bc90715b34b9f100000000091611dfd916128a8565b611e0791906128c7565b611e119190612891565b816002016000828254611e2491906128e9565b90915550506005810154600e5460018301546ec097ce7bc90715b34b9f100000000091611e50916128a8565b611e5a91906128c7565b611e649190612891565b816003016000828254611e7791906128e9565b90915550506000831315611ea45782816000016000828254611e9991906128e9565b90915550611ecf9050565b6000831215611ecf57611eb683612874565b816000016000828254611ec99190612891565b90915550505b81816001016000828254611ee391906128e9565b9091555050600d5481546ec097ce7bc90715b34b9f100000000091611f07916128a8565b611f1191906128c7565b6004820155600e5460018201546ec097ce7bc90715b34b9f100000000091611f38916128a8565b611f4291906128c7565b600590910155505050565b6040516001600160a01b038316602482015260448101829052611fdd90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526123e9565b505050565b600082116120235760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610645565b61202b611b4d565b6001600160a01b038316301461215b576002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561207f57600080fd5b505afa158015612093573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120b79190612932565b6002549091506120d2906001600160a01b03168530866122d6565b6002546040516370a0823160e01b815230600482015282916001600160a01b0316906370a082319060240160206040518083038186803b15801561211557600080fd5b505afa158015612129573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061214d9190612932565b6121579190612891565b9250505b6000670de0b6b3a764000061217784662386f26fc100006128a8565b61218191906128c7565b905060006121908260096128a8565b9050600061219f83600b6128a8565b6121a99086612891565b905081600a60008282546121bd91906128e9565b909155505060085415612234576008546121d88460026128a8565b6121f1906ec097ce7bc90715b34b9f10000000006128a8565b6121fb91906128c7565b600d600082825461220c91906128e9565b9091555061221d90508360026128a8565b600b600082825461222e91906128e9565b90915550505b6009541561229257600954612258846ec097ce7bc90715b34b9f10000000006128a8565b61226291906128c7565b600e600082825461227391906128e9565b9250508190555082600c600082825461228c91906128e9565b90915550505b61229e84826000611d44565b80600860008282546122b091906128e9565b90915550506002546122ce906001600160a01b031661dead85611f4d565b505050505050565b6040516001600160a01b03808516602483015283166044820152606481018290526111629085906323b872dd60e01b90608401611f79565b600080546001600160a01b03838116620100008181027fffffffffffffffffffff0000000000000000000000000000000000000000ffff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b670de0b6b3a76400005b81156123e35760018216156123b857670de0b6b3a76400006123ab84836128a8565b6123b591906128c7565b90505b60019190911c90670de0b6b3a76400006123d284806128a8565b6123dc91906128c7565b9250612389565b92915050565b600061243e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166124ce9092919063ffffffff16565b805190915015611fdd578080602001905181019061245c9190612974565b611fdd5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610645565b60606124dd84846000856124e7565b90505b9392505050565b60608247101561255f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610645565b843b6125ad5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610645565b600080866001600160a01b031685876040516125c991906129bd565b60006040518083038185875af1925050503d8060008114612606576040519150601f19603f3d011682016040523d82523d6000602084013e61260b565b606091505b509150915061261b828286612626565b979650505050505050565b606083156126355750816124e0565b8251156126455782518084602001fd5b8160405162461bcd60e51b815260040161064591906129d9565b8015158114610cc357600080fd5b60006020828403121561267f57600080fd5b81356124e08161265f565b60006020828403121561269c57600080fd5b5035919050565b80356001600160a01b03811681146126ba57600080fd5b919050565b600080604083850312156126d257600080fd5b823591506126e2602084016126a3565b90509250929050565b6000602082840312156126fd57600080fd5b6124e0826126a3565b60008060006040848603121561271b57600080fd5b833567ffffffffffffffff8082111561273357600080fd5b818601915086601f83011261274757600080fd5b81358181111561275657600080fd5b8760208260051b850101111561276b57600080fd5b602092830195509350508401356127818161265f565b809150509250925092565b6000806000606084860312156127a157600080fd5b6127aa846126a3565b92506127b8602085016126a3565b91506127c6604085016126a3565b90509250925092565b600061016082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015260c083015161282160c084018215159052565b5060e083015161283560e084018215159052565b506101008381015190830152610120808401519083015261014092830151929091019190915290565b634e487b7160e01b600052601160045260246000fd5b6000600160ff1b82141561288a5761288a61285e565b5060000390565b6000828210156128a3576128a361285e565b500390565b60008160001904831182151516156128c2576128c261285e565b500290565b6000826128e457634e487b7160e01b600052601260045260246000fd5b500490565b600082198211156128fc576128fc61285e565b500190565b634e487b7160e01b600052603260045260246000fd5b600060001982141561292b5761292b61285e565b5060010190565b60006020828403121561294457600080fd5b5051919050565b600067ffffffffffffffff8381169083168181101561296c5761296c61285e565b039392505050565b60006020828403121561298657600080fd5b81516124e08161265f565b60005b838110156129ac578181015183820152602001612994565b838111156111625750506000910152565b600082516129cf818460208701612991565b9190910192915050565b60208152600082518060208401526129f8816040850160208701612991565b601f01601f1916919091016040019291505056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00a264697066735822122080b452ec1d775583217644b3f644c3476f7da8381f5617f696347ddb34edf83264736f6c634300080900330000000000000000000000003ad2234ebfed9deefab94b9719aebc07f8510d470000000000000000000000003ad2234ebfed9deefab94b9719aebc07f8510d47

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102925760003560e01c80638da5cb5b11610160578063c0c53b8b116100d8578063edc017521161008c578063f2fde38b11610071578063f2fde38b146105b9578063f3b570eb146105cc578063f4325d67146105d557600080fd5b8063edc0175214610586578063f1ddf840146105a657600080fd5b8063d89135cd116100bd578063d89135cd14610561578063e14dbe801461056a578063e72f6e301461057357600080fd5b8063c0c53b8b1461053b578063d0464ab71461054e57600080fd5b8063ad607d9d1161012f578063b6b55f2511610114578063b6b55f251461050d578063b74e452b14610520578063bd05b2ae1461052857600080fd5b8063ad607d9d146104e7578063aff177ca146104fa57600080fd5b80638da5cb5b146103f357806394dbcdc01461040a5780639ff46e7414610413578063a7310b581461042657600080fd5b80635d54e6121161020e578063715018a6116101c25780637b210b4d116101a75780637b210b4d146103b45780637b76ac91146103bd578063817b1cd2146103ea57600080fd5b8063715018a6146103a3578063790ca413146103ab57600080fd5b806368c958ee116101f357806368c958ee1461037f5780636d9873c5146103925780636ecb16371461039a57600080fd5b80635d54e6121461035957806360a22e501461037657600080fd5b806336f9825f116102655780633fe5f0541161024a5780633fe5f0541461033657806341632d331461033e57806342966c681461034657600080fd5b806336f9825f146102f85780633a589b971461032357600080fd5b806319fd81e91461029757806322ac7b8f146102b35780632e1a7d4d146102c857806336aa6928146102db575b600080fd5b6102a0600b5481565b6040519081526020015b60405180910390f35b6102c66102c136600461266d565b6105e8565b005b6102c66102d636600461268a565b610661565b6102e3610967565b604080519283526020830191909152016102aa565b61030b61030636600461268a565b610afc565b6040516001600160a01b0390911681526020016102aa565b60035461030b906001600160a01b031681565b6102e3610b26565b6010546102a0565b6102c661035436600461268a565b610cb9565b6007546103669060ff1681565b60405190151581526020016102aa565b6102a0600a5481565b6102c661038d3660046126bf565b610cc6565b6102c6610e1d565b6102a0600d5481565b6102c6610e71565b6102a060045481565b6102a0600c5481565b600f546103d19067ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020016102aa565b6102a060085481565b6000546201000090046001600160a01b031661030b565b6102a0600e5481565b6102c661042136600461268a565b610ede565b6104906104343660046126eb565b601160205260009081526040902080546001820154600283015460038401546004850154600586015460068701546007880154600889015460099099015497989697959694959394929360ff808416946101009094041692908b565b604080519b8c5260208c019a909a52988a01979097526060890195909552608088019390935260a0870191909152151560c0860152151560e0850152610100840152610120830152610140820152610160016102aa565b6102c66104f536600461268a565b610fd3565b6102c6610508366004612706565b61108d565b6102c661051b36600461268a565b611168565b6103d1611245565b6102c661053636600461268a565b611266565b6102c661054936600461278c565b611469565b6102c661055c36600461268a565b6115e4565b6102a060095481565b6102a060065481565b6102c66105813660046126eb565b61169e565b61059961059436600461268a565b61186e565b6040516102aa91906127cf565b6102c66105b43660046126bf565b611994565b6102c66105c73660046126eb565b611a67565b6102a060055481565b60025461030b906001600160a01b031681565b6000546001600160a01b036201000090910416331461064e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6007805460ff1916911515919091179055565b600260015414156106a25760405162461bcd60e51b815260206004820152601f6024820152600080516020612a0d8339815191526044820152606401610645565b6002600155806106e55760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610645565b3360009081526011602052604090208054808311156107465760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610645565b61074e611b4d565b6107623361075b85612874565b6000611d44565b82600860008282546107749190612891565b9091555050600682015460ff168061078e575060075460ff165b156107af576002546107aa906001600160a01b03163385611f4d565b61091a565b6000670de0b6b3a76400006107cb85662386f26fc100006128a8565b6107d591906128c7565b905060006107e48260096128a8565b905060006107f383600b6128a8565b6107fd9087612891565b905081600a600082825461081191906128e9565b9091555050600854156108885760085461082c8460026128a8565b610845906ec097ce7bc90715b34b9f10000000006128a8565b61084f91906128c7565b600d600082825461086091906128e9565b9091555061087190508360026128a8565b600b600082825461088291906128e9565b90915550505b600954156108e6576009546108ac846ec097ce7bc90715b34b9f10000000006128a8565b6108b691906128c7565b600e60008282546108c791906128e9565b9250508190555082600c60008282546108e091906128e9565b90915550505b6002546108ff906001600160a01b031661dead85611f4d565b600254610916906001600160a01b03163383611f4d565b5050505b6002546040518481526001600160a01b039091169033907f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb9060200160405180910390a350506001805550565b600080600260015414156109ab5760405162461bcd60e51b815260206004820152601f6024820152600080516020612a0d8339815191526044820152606401610645565b60026001556109b8611b4d565b6109c433600080611d44565b50503360009081526011602052604090206002810154600382015490918215610a22576000816002018190555082600a6000828254610a039190612891565b9250508190555082600b6000828254610a1c9190612891565b90915550505b8115610a4a576000816003018190555081600c6000828254610a449190612891565b90915550505b6000610a5683856128e9565b90508015610a6957610a69308233611fe2565b6002546040518581526001600160a01b039091169033907f6c7e7d4cb83a668aef31739dd35dc3fc3d5f31d62b69e438b7b24d35b40dcc639060200160405180910390a36002546040518481526001600160a01b039091169033907f6c7e7d4cb83a668aef31739dd35dc3fc3d5f31d62b69e438b7b24d35b40dcc63906020015b60405180910390a35050600180559091565b60108181548110610b0c57600080fd5b6000918252602090912001546001600160a01b0316905081565b60008060026001541415610b6a5760405162461bcd60e51b815260206004820152601f6024820152600080516020612a0d8339815191526044820152606401610645565b6002600155610b77611b4d565b610b8333600080611d44565b50503360009081526011602052604090206002810154600382015490918215610be1576000816002018190555082600a6000828254610bc29190612891565b9250508190555082600b6000828254610bdb9190612891565b90915550505b8115610c09576000816003018190555081600c6000828254610c039190612891565b90915550505b6000610c1583856128e9565b90508015610c3457600254610c34906001600160a01b03163383611f4d565b6002546040518581526001600160a01b039091169033907f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd9870689060200160405180910390a36002546040518481526001600160a01b039091169033907f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd98706890602001610aea565b610cc38133610cc6565b50565b600454421015610d065760405162461bcd60e51b815260206004820152600b60248201526a756e617661696c61626c6560a81b6044820152606401610645565b60026001541415610d475760405162461bcd60e51b815260206004820152601f6024820152600080516020612a0d8339815191526044820152606401610645565b600260015581610d8a5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610645565b610d92611b4d565b610d9e81600084611d44565b8160096000828254610db091906128e9565b9091555050600354610dcf906001600160a01b03163361dead856122d6565b6003546040518381526001600160a01b03918216918316907fbac40739b0d4ca32fa2d82fc91630465ba3eddd1598da6fca393b26fb63b9453906020015b60405180910390a3505060018055565b60026001541415610e5e5760405162461bcd60e51b815260206004820152601f6024820152600080516020612a0d8339815191526044820152606401610645565b6002600155610e6b611b4d565b60018055565b6000546001600160a01b0362010000909104163314610ed25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610645565b610edc600061230e565b565b6000546001600160a01b0362010000909104163314610f3f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610645565b6004544210610f7e5760405162461bcd60e51b815260206004820152600b60248201526a756e617661696c61626c6560a81b6044820152606401610645565b42811015610fce5760405162461bcd60e51b815260206004820152600c60248201527f696e76616c69642074696d6500000000000000000000000000000000000000006044820152606401610645565b600455565b6000546001600160a01b03620100009091041633146110345760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610645565b670de0b6b3a76400006006548261104b91906128e9565b11156110885760405162461bcd60e51b815260206004820152600c60248201526b696e76616c6964207261746560a01b6044820152606401610645565b600555565b6000546001600160a01b03620100009091041633146110ee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610645565b60005b8281101561116257816011600086868581811061111057611110612901565b905060200201602081019061112591906126eb565b6001600160a01b031681526020810191909152604001600020600601805460ff19169115159190911790558061115a81612917565b9150506110f1565b50505050565b6004544210156111a85760405162461bcd60e51b815260206004820152600b60248201526a756e617661696c61626c6560a81b6044820152606401610645565b600260015414156111e95760405162461bcd60e51b815260206004820152601f6024820152600080516020612a0d8339815191526044820152606401610645565b60026001556111f9338281611fe2565b6002546040518281526001600160a01b039091169033907f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62906020015b60405180910390a35060018055565b60006201518061125761e100426128e9565b61126191906128c7565b905090565b600260015414156112a75760405162461bcd60e51b815260206004820152601f6024820152600080516020612a0d8339815191526044820152606401610645565b6002600155806112ea5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610645565b6112f2611b4d565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561133657600080fd5b505afa15801561134a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136e9190612932565b600254909150611389906001600160a01b03163330856122d6565b6002546040516370a0823160e01b815230600482015282916001600160a01b0316906370a082319060240160206040518083038186803b1580156113cc57600080fd5b505afa1580156113e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114049190612932565b61140e9190612891565b91505080600a600082825461142391906128e9565b90915550506002546040518281526001600160a01b039091169033907f88923243846ae6dc2129c36897f0c50381bac23792669a4ab5bc456dd997617790602001611236565b600054610100900460ff1680611482575060005460ff16155b6114f45760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610645565b600054610100900460ff16158015611516576000805461ffff19166101011790555b61151f8461230e565b6367321bf0600455662386f26fc1000060058190556006556007805460ff19169055600060088190556009819055600a819055600b819055600c819055600d819055600e5561156c611245565b600f805467ffffffffffffffff9290921667ffffffffffffffff19909216919091179055600280546001600160a01b0380861673ffffffffffffffffffffffffffffffffffffffff199283161790925560038054928516929091169190911790558015611162576000805461ff001916905550505050565b6000546001600160a01b03620100009091041633146116455760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610645565b670de0b6b3a76400008160055461165c91906128e9565b11156116995760405162461bcd60e51b815260206004820152600c60248201526b696e76616c6964207261746560a01b6044820152606401610645565b600655565b6000546001600160a01b03620100009091041633146116ff5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610645565b600260015414156117405760405162461bcd60e51b815260206004820152601f6024820152600080516020612a0d8339815191526044820152606401610645565b60026001556040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561178757600080fd5b505afa15801561179b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117bf9190612932565b6002549091506001600160a01b038381169116141561180257600c54600a546008546117eb91906128e9565b6117f591906128e9565b6117ff9082612891565b90505b600081116118525760405162461bcd60e51b815260206004820152600a60248201527f6e6f2062616c616e6365000000000000000000000000000000000000000000006044820152606401610645565b6118666001600160a01b0383163383611f4d565b505060018055565b6118cf6040518061016001604052806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000151581526020016000151581526020016000815260200160008152602001600081525090565b60116000601084815481106118e6576118e6612901565b60009182526020808320909101546001600160a01b031683528281019390935260409182019020815161016081018352815481526001820154938101939093526002810154918301919091526003810154606083015260048101546080830152600581015460a0830152600681015460ff808216151560c08501526101009182900416151560e084015260078201549083015260088101546101208301526009015461014082015292915050565b6004544210156119d45760405162461bcd60e51b815260206004820152600b60248201526a756e617661696c61626c6560a81b6044820152606401610645565b60026001541415611a155760405162461bcd60e51b815260206004820152601f6024820152600080516020612a0d8339815191526044820152606401610645565b6002600155611a25338383611fe2565b6002546040518381526001600160a01b03918216918316907f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f6290602001610e0d565b6000546001600160a01b0362010000909104163314611ac85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610645565b6001600160a01b038116611b445760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610645565b610cc38161230e565b6000611b57611245565b600f5490915067ffffffffffffffff80831691161415611b745750565b6000600654600554611b8691906128e9565b90508015611d1f57600f54600090611ba89067ffffffffffffffff168461294b565b90506000611bd1611bc184670de0b6b3a7640000612891565b8367ffffffffffffffff1661237f565b611be390670de0b6b3a7640000612891565b90506000670de0b6b3a764000082600b54600a54611c019190612891565b611c0b91906128a8565b611c1591906128c7565b905060008460055483611c2891906128a8565b611c3291906128c7565b60085490915015611c9357600854611c59826ec097ce7bc90715b34b9f10000000006128a8565b611c6391906128c7565b600d6000828254611c7491906128e9565b9250508190555080600b6000828254611c8d91906128e9565b90915550505b6000611c9f8284612891565b60095490915015611d1957600954611cc6826ec097ce7bc90715b34b9f10000000006128a8565b611cd091906128c7565b600e6000828254611ce191906128e9565b9250508190555080600a6000828254611cfa9190612891565b9250508190555080600c6000828254611d1391906128e9565b90915550505b50505050505b50600f805467ffffffffffffffff191667ffffffffffffffff92909216919091179055565b6001600160a01b03831660009081526011602052604090206006810154610100900460ff16611dd95760068101805461ff001916610100179055601080546001810182556000919091527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6720180546001600160a01b03861673ffffffffffffffffffffffffffffffffffffffff199091161790555b6004810154600d5482546ec097ce7bc90715b34b9f100000000091611dfd916128a8565b611e0791906128c7565b611e119190612891565b816002016000828254611e2491906128e9565b90915550506005810154600e5460018301546ec097ce7bc90715b34b9f100000000091611e50916128a8565b611e5a91906128c7565b611e649190612891565b816003016000828254611e7791906128e9565b90915550506000831315611ea45782816000016000828254611e9991906128e9565b90915550611ecf9050565b6000831215611ecf57611eb683612874565b816000016000828254611ec99190612891565b90915550505b81816001016000828254611ee391906128e9565b9091555050600d5481546ec097ce7bc90715b34b9f100000000091611f07916128a8565b611f1191906128c7565b6004820155600e5460018201546ec097ce7bc90715b34b9f100000000091611f38916128a8565b611f4291906128c7565b600590910155505050565b6040516001600160a01b038316602482015260448101829052611fdd90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526123e9565b505050565b600082116120235760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b6044820152606401610645565b61202b611b4d565b6001600160a01b038316301461215b576002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561207f57600080fd5b505afa158015612093573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120b79190612932565b6002549091506120d2906001600160a01b03168530866122d6565b6002546040516370a0823160e01b815230600482015282916001600160a01b0316906370a082319060240160206040518083038186803b15801561211557600080fd5b505afa158015612129573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061214d9190612932565b6121579190612891565b9250505b6000670de0b6b3a764000061217784662386f26fc100006128a8565b61218191906128c7565b905060006121908260096128a8565b9050600061219f83600b6128a8565b6121a99086612891565b905081600a60008282546121bd91906128e9565b909155505060085415612234576008546121d88460026128a8565b6121f1906ec097ce7bc90715b34b9f10000000006128a8565b6121fb91906128c7565b600d600082825461220c91906128e9565b9091555061221d90508360026128a8565b600b600082825461222e91906128e9565b90915550505b6009541561229257600954612258846ec097ce7bc90715b34b9f10000000006128a8565b61226291906128c7565b600e600082825461227391906128e9565b9250508190555082600c600082825461228c91906128e9565b90915550505b61229e84826000611d44565b80600860008282546122b091906128e9565b90915550506002546122ce906001600160a01b031661dead85611f4d565b505050505050565b6040516001600160a01b03808516602483015283166044820152606481018290526111629085906323b872dd60e01b90608401611f79565b600080546001600160a01b03838116620100008181027fffffffffffffffffffff0000000000000000000000000000000000000000ffff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b670de0b6b3a76400005b81156123e35760018216156123b857670de0b6b3a76400006123ab84836128a8565b6123b591906128c7565b90505b60019190911c90670de0b6b3a76400006123d284806128a8565b6123dc91906128c7565b9250612389565b92915050565b600061243e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166124ce9092919063ffffffff16565b805190915015611fdd578080602001905181019061245c9190612974565b611fdd5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610645565b60606124dd84846000856124e7565b90505b9392505050565b60608247101561255f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610645565b843b6125ad5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610645565b600080866001600160a01b031685876040516125c991906129bd565b60006040518083038185875af1925050503d8060008114612606576040519150601f19603f3d011682016040523d82523d6000602084013e61260b565b606091505b509150915061261b828286612626565b979650505050505050565b606083156126355750816124e0565b8251156126455782518084602001fd5b8160405162461bcd60e51b815260040161064591906129d9565b8015158114610cc357600080fd5b60006020828403121561267f57600080fd5b81356124e08161265f565b60006020828403121561269c57600080fd5b5035919050565b80356001600160a01b03811681146126ba57600080fd5b919050565b600080604083850312156126d257600080fd5b823591506126e2602084016126a3565b90509250929050565b6000602082840312156126fd57600080fd5b6124e0826126a3565b60008060006040848603121561271b57600080fd5b833567ffffffffffffffff8082111561273357600080fd5b818601915086601f83011261274757600080fd5b81358181111561275657600080fd5b8760208260051b850101111561276b57600080fd5b602092830195509350508401356127818161265f565b809150509250925092565b6000806000606084860312156127a157600080fd5b6127aa846126a3565b92506127b8602085016126a3565b91506127c6604085016126a3565b90509250925092565b600061016082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015260c083015161282160c084018215159052565b5060e083015161283560e084018215159052565b506101008381015190830152610120808401519083015261014092830151929091019190915290565b634e487b7160e01b600052601160045260246000fd5b6000600160ff1b82141561288a5761288a61285e565b5060000390565b6000828210156128a3576128a361285e565b500390565b60008160001904831182151516156128c2576128c261285e565b500290565b6000826128e457634e487b7160e01b600052601260045260246000fd5b500490565b600082198211156128fc576128fc61285e565b500190565b634e487b7160e01b600052603260045260246000fd5b600060001982141561292b5761292b61285e565b5060010190565b60006020828403121561294457600080fd5b5051919050565b600067ffffffffffffffff8381169083168181101561296c5761296c61285e565b039392505050565b60006020828403121561298657600080fd5b81516124e08161265f565b60005b838110156129ac578181015183820152602001612994565b838111156111625750506000910152565b600082516129cf818460208701612991565b9190910192915050565b60208152600082518060208401526129f8816040850160208701612991565b601f01601f1916919091016040019291505056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00a264697066735822122080b452ec1d775583217644b3f644c3476f7da8381f5617f696347ddb34edf83264736f6c63430008090033

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

0000000000000000000000003ad2234ebfed9deefab94b9719aebc07f8510d470000000000000000000000003ad2234ebfed9deefab94b9719aebc07f8510d47

-----Decoded View---------------
Arg [0] : _reserveToken (address): 0x3Ad2234eBFED9dEEfab94B9719aEbc07f8510D47
Arg [1] : _boostToken (address): 0x3Ad2234eBFED9dEEfab94B9719aEbc07f8510D47

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000003ad2234ebfed9deefab94b9719aebc07f8510d47
Arg [1] : 0000000000000000000000003ad2234ebfed9deefab94b9719aebc07f8510d47


Block Transaction 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

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.