Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
3.727356302499361138 ETH
Eth Value
$12,971.16 (@ $3,479.99/ETH)Token Holdings
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 332 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Unstake | 18328499 | 440 days ago | IN | 0 ETH | 0.00405776 | ||||
Unstake | 17513799 | 555 days ago | IN | 0 ETH | 0.01183418 | ||||
Unstake | 17513739 | 555 days ago | IN | 0 ETH | 0.01132196 | ||||
Claim Reward | 17446008 | 564 days ago | IN | 0 ETH | 0.00154363 | ||||
Unstake | 17372575 | 574 days ago | IN | 0 ETH | 0.04735791 | ||||
Unstake | 17372517 | 574 days ago | IN | 0 ETH | 0.01012178 | ||||
Claim Reward | 17372510 | 574 days ago | IN | 0 ETH | 0.00438318 | ||||
Unstake | 17366898 | 575 days ago | IN | 0 ETH | 0.02914116 | ||||
Claim Reward | 17251673 | 591 days ago | IN | 0 ETH | 0.00221961 | ||||
Claim Reward | 17107279 | 612 days ago | IN | 0 ETH | 0.00426131 | ||||
Claim Reward | 16882771 | 644 days ago | IN | 0 ETH | 0.00078082 | ||||
Unstake | 16878151 | 644 days ago | IN | 0 ETH | 0.01406579 | ||||
Claim Reward | 16816544 | 653 days ago | IN | 0 ETH | 0.00109972 | ||||
Stake | 16769397 | 659 days ago | IN | 0 ETH | 0.02246868 | ||||
Unstake | 16756653 | 661 days ago | IN | 0 ETH | 0.01013761 | ||||
Claim Reward | 16756635 | 661 days ago | IN | 0 ETH | 0.00132884 | ||||
Claim Reward | 16754461 | 662 days ago | IN | 0 ETH | 0.00117539 | ||||
Unstake | 16721841 | 666 days ago | IN | 0 ETH | 0.01691681 | ||||
Stake | 16681013 | 672 days ago | IN | 0 ETH | 0.02518882 | ||||
Unstake | 16680899 | 672 days ago | IN | 0 ETH | 0.02459291 | ||||
Unstake | 16680727 | 672 days ago | IN | 0 ETH | 0.0202584 | ||||
Claim Reward | 16561574 | 689 days ago | IN | 0 ETH | 0.0014309 | ||||
Claim Reward | 16534495 | 692 days ago | IN | 0 ETH | 0.00125492 | ||||
Deposit Rewards | 16534294 | 692 days ago | IN | 1 ETH | 0.00057396 | ||||
Unstake | 16516203 | 695 days ago | IN | 0 ETH | 0.00391438 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
20302638 | 164 days ago | 0.00145002 ETH | ||||
18483218 | 419 days ago | 0.00225463 ETH | ||||
18328499 | 440 days ago | 0.00745971 ETH | ||||
17513833 | 554 days ago | 0.00208008 ETH | ||||
17513799 | 555 days ago | 0.00145799 ETH | ||||
17513773 | 555 days ago | 0.00157329 ETH | ||||
17513739 | 555 days ago | 0.49617224 ETH | ||||
17452114 | 563 days ago | 0.00151319 ETH | ||||
17446008 | 564 days ago | 0.54600826 ETH | ||||
17443236 | 564 days ago | 0.00102952 ETH | ||||
17443193 | 564 days ago | 0.0005685 ETH | ||||
17443160 | 564 days ago | 0.00086074 ETH | ||||
17443155 | 564 days ago | 0.00377798 ETH | ||||
17443142 | 564 days ago | 0.00687668 ETH | ||||
17443125 | 564 days ago | 0.01715665 ETH | ||||
17443122 | 564 days ago | 0.00017594 ETH | ||||
17443121 | 564 days ago | 0.00352453 ETH | ||||
17443112 | 564 days ago | 0.03241807 ETH | ||||
17443111 | 564 days ago | 0.00004314 ETH | ||||
17443105 | 564 days ago | 0.00125338 ETH | ||||
17443105 | 564 days ago | 0.00126354 ETH | ||||
17443105 | 564 days ago | 0.00136425 ETH | ||||
17443105 | 564 days ago | 0.0020566 ETH | ||||
17443100 | 564 days ago | 0.00456215 ETH | ||||
17443098 | 564 days ago | 0.01344177 ETH |
Loading...
Loading
Contract Name:
OKLGRewardDistributor
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import '@openzeppelin/contracts/interfaces/IERC721.sol'; import '@openzeppelin/contracts/utils/math/SafeMath.sol'; import '@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol'; import './interfaces/IConditional.sol'; import './interfaces/IMultiplier.sol'; import './interfaces/IOKLGRewardDistributor.sol'; import './OKLGWithdrawable.sol'; contract OKLGRewardDistributor is IOKLGRewardDistributor, OKLGWithdrawable { using SafeMath for uint256; struct Reward { uint256 totalExcluded; // excluded reward uint256 totalRealised; uint256 lastClaim; // used for boosting logic } struct Share { uint256 amount; uint256 amountBase; uint256 stakedTime; uint256[] nftBoostTokenIds; } uint256 public minSecondsBeforeUnstake = 43200; address public shareholderToken; address public nftBoosterToken; uint256 public totalStakedUsers; uint256 public totalSharesBoosted; uint256 public totalSharesDeposited; // will only be actual deposited tokens without handling any reflections or otherwise address wrappedNative; IUniswapV2Router02 router; // amount of shares a user has mapping(address => Share) shares; // reward information per user mapping(address => Reward) public rewards; address public boostContract; address public boostMultiplierContract; uint256 public totalRewards; uint256 public totalDistributed; // to be shown in UI uint256 public rewardsPerShare; uint256 public constant ACC_FACTOR = 10**36; address public constant DEAD = 0x000000000000000000000000000000000000dEaD; constructor( address _dexRouter, address _shareholderToken, address _nftBoosterToken, address _wrappedNative ) { router = IUniswapV2Router02(_dexRouter); shareholderToken = _shareholderToken; nftBoosterToken = _nftBoosterToken; wrappedNative = _wrappedNative; } function stake(uint256 amount, uint256[] memory nftTokenIds) external { _stake(msg.sender, amount, nftTokenIds, false); } function _stake( address shareholder, uint256 amount, uint256[] memory nftTokenIds, bool overrideTransfers ) private { if (shares[shareholder].amount > 0 && !overrideTransfers) { distributeReward(shareholder, false); } IERC20 shareContract = IERC20(shareholderToken); uint256 stakeAmount = amount == 0 ? shareContract.balanceOf(shareholder) : amount; uint256 sharesBefore = shares[shareholder].amount; // for compounding we will pass in this contract override flag and assume the tokens // received by the contract during the compounding process are already here, therefore // whatever the amount is passed in is what we care about and leave it at that. If a normal // staking though by a user, transfer tokens from the user to the contract. uint256 finalBaseAmount = stakeAmount; if (!overrideTransfers) { uint256 shareBalanceBefore = shareContract.balanceOf(address(this)); shareContract.transferFrom(shareholder, address(this), stakeAmount); finalBaseAmount = shareContract.balanceOf(address(this)).sub( shareBalanceBefore ); IERC721 nftContract = IERC721(nftBoosterToken); for (uint256 i = 0; i < nftTokenIds.length; i++) { nftContract.transferFrom(shareholder, address(this), nftTokenIds[i]); shares[shareholder].nftBoostTokenIds.push(nftTokenIds[i]); } } // NOTE: temporarily setting shares[shareholder].amount to base deposited to get elevated shares. // They depend on shares[shareholder].amount being populated, but we're simply reversing this // after calculating boosted amount uint256 currentAmountWithBoost = shares[shareholder].amount; shares[shareholder].amount = shares[shareholder].amountBase.add( finalBaseAmount ); // this is the final amount AFTER adding the new base amount, not just the additional uint256 finalBoostedAmount = getElevatedSharesWithBooster( shareholder, shares[shareholder].amount ); shares[shareholder].amount = currentAmountWithBoost; totalSharesDeposited = totalSharesDeposited.add(finalBaseAmount); totalSharesBoosted = totalSharesBoosted.sub(shares[shareholder].amount).add( finalBoostedAmount ); shares[shareholder].amountBase += finalBaseAmount; shares[shareholder].amount = finalBoostedAmount; shares[shareholder].stakedTime = block.timestamp; if (sharesBefore == 0 && shares[shareholder].amount > 0) { totalStakedUsers++; } rewards[shareholder].totalExcluded = getCumulativeRewards( shares[shareholder].amount ); } function unstake(uint256 boostedAmount, bool relinquishRewards) external { require( shares[msg.sender].amount > 0 && (boostedAmount == 0 || boostedAmount <= shares[msg.sender].amount), 'you can only unstake if you have some staked' ); require( block.timestamp > shares[msg.sender].stakedTime + minSecondsBeforeUnstake, 'must be staked for minimum time and at least one block if no min' ); if (!relinquishRewards) { distributeReward(msg.sender, false); } IERC20 shareContract = IERC20(shareholderToken); uint256 boostedAmountToUnstake = boostedAmount == 0 ? shares[msg.sender].amount : boostedAmount; // NOTE: temporarily setting shares[shareholder].amount to base deposited to get elevated shares. // They depend on shares[shareholder].amount being populated, but we're simply reversing this // after calculating boosted amount uint256 currentAmountWithBoost = shares[msg.sender].amount; shares[msg.sender].amount = shares[msg.sender].amountBase; uint256 baseAmount = getBaseSharesFromBoosted( msg.sender, boostedAmountToUnstake ); shares[msg.sender].amount = currentAmountWithBoost; // handle reflections tokens uint256 finalWithdrawAmount = getAppreciatedShares(baseAmount); if (boostedAmount == 0) { uint256[] memory tokenIds = shares[msg.sender].nftBoostTokenIds; IERC721 nftContract = IERC721(nftBoosterToken); for (uint256 i = 0; i < tokenIds.length; i++) { nftContract.safeTransferFrom(address(this), msg.sender, tokenIds[i]); } totalStakedUsers--; delete shares[msg.sender].nftBoostTokenIds; } shareContract.transfer(msg.sender, finalWithdrawAmount); totalSharesDeposited = totalSharesDeposited.sub(baseAmount); totalSharesBoosted = totalSharesBoosted.sub(boostedAmountToUnstake); shares[msg.sender].amountBase -= baseAmount; shares[msg.sender].amount -= boostedAmountToUnstake; rewards[msg.sender].totalExcluded = getCumulativeRewards( shares[msg.sender].amount ); } function depositRewards() external payable override { require(msg.value > 0, 'value must be greater than 0'); require( totalSharesBoosted > 0, 'must be shares deposited to be rewarded rewards' ); uint256 amount = msg.value; totalRewards = totalRewards.add(amount); rewardsPerShare = rewardsPerShare.add( ACC_FACTOR.mul(amount).div(totalSharesBoosted) ); } function distributeReward(address shareholder, bool compound) internal { require( block.timestamp > rewards[shareholder].lastClaim, 'can only claim once per block' ); if (shares[shareholder].amount == 0) { return; } uint256 amount = getUnpaid(shareholder); rewards[shareholder].totalRealised = rewards[shareholder].totalRealised.add( amount ); rewards[shareholder].totalExcluded = getCumulativeRewards( shares[shareholder].amount ); rewards[shareholder].lastClaim = block.timestamp; if (amount > 0) { totalDistributed = totalDistributed.add(amount); uint256 balanceBefore = address(this).balance; if (compound) { IERC20 shareToken = IERC20(shareholderToken); uint256 balBefore = shareToken.balanceOf(address(this)); address[] memory path = new address[](2); path[0] = wrappedNative; path[1] = shareholderToken; router.swapExactETHForTokensSupportingFeeOnTransferTokens{ value: amount }(0, path, address(this), block.timestamp); uint256 amountReceived = shareToken.balanceOf(address(this)).sub( balBefore ); if (amountReceived > 0) { uint256[] memory _empty = new uint256[](0); _stake(shareholder, amountReceived, _empty, true); } } else { (bool sent, ) = payable(shareholder).call{ value: amount }(''); require(sent, 'ETH was not successfully sent'); } require( address(this).balance >= balanceBefore - amount, 'only take proper amount from contract' ); } } function claimReward(bool compound) external { distributeReward(msg.sender, compound); } function getAppreciatedShares(uint256 amount) public view returns (uint256) { IERC20 shareContract = IERC20(shareholderToken); uint256 totalSharesBalance = shareContract.balanceOf(address(this)); uint256 appreciationRatio18 = totalSharesBalance.mul(10**18).div( totalSharesDeposited ); return amount.mul(appreciationRatio18).div(10**18); } // getElevatedSharesWithBooster: // A + Ax = B // ------------------------ // getBaseSharesFromBoosted: // A + Ax = B // A(1 + x) = B // A = B/(1 + x) function getElevatedSharesWithBooster(address shareholder, uint256 baseAmount) internal view returns (uint256) { return eligibleForRewardBooster(shareholder) ? baseAmount.add( baseAmount.mul(getBoostMultiplier(shareholder)).div(10**2) ) : baseAmount; } function getBaseSharesFromBoosted(address shareholder, uint256 boostedAmount) public view returns (uint256) { uint256 multiplier = 10**18; return eligibleForRewardBooster(shareholder) ? boostedAmount.mul(multiplier).div( multiplier.add( multiplier.mul(getBoostMultiplier(shareholder)).div(10**2) ) ) : boostedAmount; } // NOTE: 2022-01-31 LW: new boost contract assumes OKLG and booster NFTs are staked in this contract function getBoostMultiplier(address wallet) public view returns (uint256) { return boostMultiplierContract == address(0) ? 0 : IMultiplier(boostMultiplierContract).getMultiplier(wallet); } // NOTE: 2022-01-31 LW: new boost contract assumes OKLG and booster NFTs are staked in this contract function eligibleForRewardBooster(address shareholder) public view returns (bool) { return boostContract != address(0) && IConditional(boostContract).passesTest(shareholder); } // returns the unpaid rewards function getUnpaid(address shareholder) public view returns (uint256) { if (shares[shareholder].amount == 0) { return 0; } uint256 earnedRewards = getCumulativeRewards(shares[shareholder].amount); uint256 rewardsExcluded = rewards[shareholder].totalExcluded; if (earnedRewards <= rewardsExcluded) { return 0; } return earnedRewards.sub(rewardsExcluded); } function getCumulativeRewards(uint256 share) internal view returns (uint256) { return share.mul(rewardsPerShare).div(ACC_FACTOR); } function getBaseShares(address user) external view returns (uint256) { return shares[user].amountBase; } function getShares(address user) external view override returns (uint256) { return shares[user].amount; } function getBoostNfts(address user) external view override returns (uint256[] memory) { return shares[user].nftBoostTokenIds; } function setShareholderToken(address _token) external onlyOwner { shareholderToken = _token; } function setBoostContract(address _contract) external onlyOwner { if (_contract != address(0)) { IConditional _contCheck = IConditional(_contract); // allow setting to zero address to effectively turn off check logic require( _contCheck.passesTest(address(0)) == true || _contCheck.passesTest(address(0)) == false, 'contract does not implement interface' ); } boostContract = _contract; } function setBoostMultiplierContract(address _contract) external onlyOwner { if (_contract != address(0)) { IMultiplier _contCheck = IMultiplier(_contract); // allow setting to zero address to effectively turn off check logic require( _contCheck.getMultiplier(address(0)) >= 0, 'contract does not implement interface' ); } boostMultiplierContract = _contract; } function setMinSecondsBeforeUnstake(uint256 _seconds) external onlyOwner { minSecondsBeforeUnstake = _seconds; } function stakeOverride(address[] memory users, Share[] memory shareholderInfo) external onlyOwner { require(users.length == shareholderInfo.length, 'must be same length'); uint256[] memory _empty = new uint256[](0); for (uint256 i = 0; i < users.length; i++) { shares[users[i]].nftBoostTokenIds = shareholderInfo[i].nftBoostTokenIds; _stake(users[i], shareholderInfo[i].amountBase, _empty, true); } } function withdrawNfts(address nftContractAddy, uint256[] memory _tokenIds) external onlyOwner { IERC721 nftContract = IERC721(nftContractAddy); for (uint256 i = 0; i < _tokenIds.length; i++) { nftContract.transferFrom(address(this), owner(), _tokenIds[i]); } } receive() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol) pragma solidity ^0.8.0; import "../token/ERC721/IERC721.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /** * @dev Interface for the Buy Back Reward contract that can be used to build * custom logic to elevate user rewards */ interface IConditional { /** * @dev Returns whether a wallet passes the test. */ function passesTest(address wallet) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; interface IMultiplier { function getMultiplier(address wallet) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; interface IOKLGRewardDistributor { function depositRewards() external payable; function getShares(address wallet) external view returns (uint256); function getBoostNfts(address wallet) external view returns (uint256[] memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/interfaces/IERC20.sol'; /** * @title OKLGWithdrawable * @dev Supports being able to get tokens or ETH out of a contract with ease */ contract OKLGWithdrawable is Ownable { function withdrawTokens(address _tokenAddy, uint256 _amount) external onlyOwner { IERC20 _token = IERC20(_tokenAddy); _amount = _amount > 0 ? _amount : _token.balanceOf(address(this)); require(_amount > 0, 'make sure there is a balance available to withdraw'); _token.transfer(owner(), _amount); } function withdrawETH() external onlyOwner { payable(owner()).call{ value: address(this).balance }(''); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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); }
{ "metadata": { "bytecodeHash": "none" }, "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_dexRouter","type":"address"},{"internalType":"address","name":"_shareholderToken","type":"address"},{"internalType":"address","name":"_nftBoosterToken","type":"address"},{"internalType":"address","name":"_wrappedNative","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"ACC_FACTOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEAD","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boostContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boostMultiplierContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"compound","type":"bool"}],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositRewards","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"shareholder","type":"address"}],"name":"eligibleForRewardBooster","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getAppreciatedShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getBaseShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"shareholder","type":"address"},{"internalType":"uint256","name":"boostedAmount","type":"uint256"}],"name":"getBaseSharesFromBoosted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"getBoostMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getBoostNfts","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"shareholder","type":"address"}],"name":"getUnpaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minSecondsBeforeUnstake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftBoosterToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"totalExcluded","type":"uint256"},{"internalType":"uint256","name":"totalRealised","type":"uint256"},{"internalType":"uint256","name":"lastClaim","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"setBoostContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"setBoostMultiplierContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_seconds","type":"uint256"}],"name":"setMinSecondsBeforeUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"setShareholderToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shareholderToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256[]","name":"nftTokenIds","type":"uint256[]"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"},{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"amountBase","type":"uint256"},{"internalType":"uint256","name":"stakedTime","type":"uint256"},{"internalType":"uint256[]","name":"nftBoostTokenIds","type":"uint256[]"}],"internalType":"struct OKLGRewardDistributor.Share[]","name":"shareholderInfo","type":"tuple[]"}],"name":"stakeOverride","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSharesBoosted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSharesDeposited","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStakedUsers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"boostedAmount","type":"uint256"},{"internalType":"bool","name":"relinquishRewards","type":"bool"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nftContractAddy","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"withdrawNfts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddy","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405261a8c06001553480156200001757600080fd5b5060405162002a2c38038062002a2c8339810160408190526200003a9162000106565b620000453362000099565b600880546001600160a01b039586166001600160a01b031991821617909155600280549486169482169490941790935560038054928516928416929092179091556007805491909316911617905562000162565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200010157600080fd5b919050565b600080600080608085870312156200011c578384fd5b6200012785620000e9565b93506200013760208601620000e9565b92506200014760408601620000e9565b91506200015760608601620000e9565b905092959194509250565b6128ba80620001726000396000f3fe60806040526004361061021e5760003560e01c806388b0e46f11610123578063c7e1d0b1116100ab578063e086e5ec1161006f578063e086e5ec1461065c578063e8ce3e5a14610671578063efca2eed14610691578063f04da65b146106a7578063f2fde38b146106dd57600080fd5b8063c7e1d0b1146105c3578063c9e39302146105d9578063def7869d146105f9578063df83bf6e14610619578063dfcedeee1461063c57600080fd5b80639ebea88c116100f25780639ebea88c14610516578063af17e3b714610536578063b99567a414610556578063beb68d0514610583578063c5a0ffd7146105a357600080fd5b806388b0e46f1461047f57806389d96917146104b85780638da5cb5b146104d85780639e75fd77146104f657600080fd5b80633c6e6789116101a657806361e4029b1161017557806361e4029b146103f45780636f371efe14610414578063715018a61461043457806380bb40551461044957806387cdb3481461045f57600080fd5b80633c6e6789146103925780633cbabf3f146103a85780633d97f969146103be5780634da881a8146103de57600080fd5b8063152111f7116101ed578063152111f7146102fa57806316f60557146103025780631f0cff7214610322578063294c494d146103525780632be639a71461037257600080fd5b806303fd2a451461022a57806306b091f91461025d5780630700037d1461027f5780630e15561a146102d657600080fd5b3661022557005b600080fd5b34801561023657600080fd5b5061024061dead81565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561026957600080fd5b5061027d610278366004612464565b6106fd565b005b34801561028b57600080fd5b506102bb61029a3660046123fe565b600a6020526000908152604090208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610254565b3480156102e257600080fd5b506102ec600d5481565b604051908152602001610254565b61027d6108c8565b34801561030e57600080fd5b5061027d61031d3660046125ac565b6109cd565b34801561032e57600080fd5b5061034261033d3660046123fe565b6109de565b6040519015158152602001610254565b34801561035e57600080fd5b5061027d61036d36600461257c565b610a79565b34801561037e57600080fd5b50600c54610240906001600160a01b031681565b34801561039e57600080fd5b506102ec60065481565b3480156103b457600080fd5b506102ec60055481565b3480156103ca57600080fd5b5061027d6103d93660046123fe565b610aa8565b3480156103ea57600080fd5b506102ec60015481565b34801561040057600080fd5b506102ec61040f366004612464565b610b9f565b34801561042057600080fd5b506102ec61042f3660046123fe565b610bf4565b34801561044057600080fd5b5061027d610c92565b34801561045557600080fd5b506102ec60045481565b34801561046b57600080fd5b5061027d61047a366004612418565b610cc8565b34801561048b57600080fd5b506102ec61049a3660046123fe565b6001600160a01b031660009081526009602052604090206001015490565b3480156104c457600080fd5b506102ec6104d33660046123fe565b610dac565b3480156104e457600080fd5b506000546001600160a01b0316610240565b34801561050257600080fd5b5061027d6105113660046123fe565b610e2a565b34801561052257600080fd5b5061027d6105313660046125db565b610e76565b34801561054257600080fd5b50600354610240906001600160a01b031681565b34801561056257600080fd5b506105766105713660046123fe565b611298565b604051610254919061262e565b34801561058f57600080fd5b50600254610240906001600160a01b031681565b3480156105af57600080fd5b5061027d6105be366004612544565b611307565b3480156105cf57600080fd5b506102ec600f5481565b3480156105e557600080fd5b506102ec6105f436600461257c565b611314565b34801561060557600080fd5b5061027d6106143660046123fe565b6113da565b34801561062557600080fd5b506102ec6ec097ce7bc90715b34b9f100000000081565b34801561064857600080fd5b50600b54610240906001600160a01b031681565b34801561066857600080fd5b5061027d611552565b34801561067d57600080fd5b5061027d61068c36600461248d565b6115dc565b34801561069d57600080fd5b506102ec600e5481565b3480156106b357600080fd5b506102ec6106c23660046123fe565b6001600160a01b031660009081526009602052604090205490565b3480156106e957600080fd5b5061027d6106f83660046123fe565b611768565b6000546001600160a01b031633146107305760405162461bcd60e51b8152600401610727906126db565b60405180910390fd5b81816107b2576040516370a0823160e01b81523060048201526001600160a01b038216906370a082319060240160206040518083038186803b15801561077557600080fd5b505afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad9190612594565b6107b4565b815b9150600082116108215760405162461bcd60e51b815260206004820152603260248201527f6d616b65207375726520746865726520697320612062616c616e636520617661604482015271696c61626c6520746f20776974686472617760701b6064820152608401610727565b806001600160a01b031663a9059cbb6108426000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101859052604401602060405180830381600087803b15801561088a57600080fd5b505af115801561089e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c29190612560565b50505050565b600034116109185760405162461bcd60e51b815260206004820152601c60248201527f76616c7565206d7573742062652067726561746572207468616e2030000000006044820152606401610727565b6000600554116109825760405162461bcd60e51b815260206004820152602f60248201527f6d75737420626520736861726573206465706f736974656420746f206265207260448201526e65776172646564207265776172647360881b6064820152608401610727565b600d5434906109919082611800565b600d556005546109c7906109be906109b86ec097ce7bc90715b34b9f100000000085611813565b9061181f565b600f5490611800565b600f5550565b6109da338383600061182b565b5050565b600b546000906001600160a01b031615801590610a735750600b54604051632b35867560e11b81526001600160a01b0384811660048301529091169063566b0cea9060240160206040518083038186803b158015610a3b57600080fd5b505afa158015610a4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a739190612560565b92915050565b6000546001600160a01b03163314610aa35760405162461bcd60e51b8152600401610727906126db565b600155565b6000546001600160a01b03163314610ad25760405162461bcd60e51b8152600401610727906126db565b6001600160a01b03811615610b7d5760405163a9d637e160e01b815260006004820181905282916001600160a01b0383169063a9d637e19060240160206040518083038186803b158015610b2557600080fd5b505afa158015610b39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5d9190612594565b1015610b7b5760405162461bcd60e51b815260040161072790612710565b505b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6000670de0b6b3a7640000610bb3846109de565b610bbd5782610bec565b610bec610be2610bdb60646109b8610bd489610bf4565b8690611813565b8390611800565b6109b88584611813565b949350505050565b600c546000906001600160a01b031615610c8a57600c5460405163a9d637e160e01b81526001600160a01b0384811660048301529091169063a9d637e19060240160206040518083038186803b158015610c4d57600080fd5b505afa158015610c61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c859190612594565b610a73565b600092915050565b6000546001600160a01b03163314610cbc5760405162461bcd60e51b8152600401610727906126db565b610cc66000611d49565b565b6000546001600160a01b03163314610cf25760405162461bcd60e51b8152600401610727906126db565b8160005b82518110156108c257816001600160a01b03166323b872dd30610d216000546001600160a01b031690565b868581518110610d4157634e487b7160e01b600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b8152600401610d679392919061260a565b600060405180830381600087803b158015610d8157600080fd5b505af1158015610d95573d6000803e3d6000fd5b505050508080610da490612858565b915050610cf6565b6001600160a01b038116600090815260096020526040812054610dd157506000919050565b6001600160a01b038216600090815260096020526040812054610df390611d99565b6001600160a01b0384166000908152600a6020526040902054909150808211610e20575060009392505050565b610bec8282611dc3565b6000546001600160a01b03163314610e545760405162461bcd60e51b8152600401610727906126db565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526009602052604090205415801590610eab5750811580610eab5750336000908152600960205260409020548211155b610f0c5760405162461bcd60e51b815260206004820152602c60248201527f796f752063616e206f6e6c7920756e7374616b6520696620796f75206861766560448201526b081cdbdb59481cdd185ad95960a21b6064820152608401610727565b60015433600090815260096020526040902060020154610f2c91906127d3565b4211610fa2576040805162461bcd60e51b81526020600482015260248101919091527f6d757374206265207374616b656420666f72206d696e696d756d2074696d652060448201527f616e64206174206c65617374206f6e6520626c6f636b206966206e6f206d696e6064820152608401610727565b80610fb257610fb2336000611dcf565b6002546001600160a01b031660008315610fcc5783610fdd565b336000908152600960205260409020545b33600081815260096020526040812080546001820154909155929350906110049084610b9f565b33600090815260096020526040812084905590915061102282611314565b90508661117a573360009081526009602090815260408083206003018054825181850281018501909352808352919290919083018282801561108357602002820191906000526020600020905b81548152602001906001019080831161106f575b5050600354939450506001600160a01b039092169150600090505b825181101561114357816001600160a01b03166342842e0e30338685815181106110d857634e487b7160e01b600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b81526004016110fe9392919061260a565b600060405180830381600087803b15801561111857600080fd5b505af115801561112c573d6000803e3d6000fd5b50505050808061113b90612858565b91505061109e565b506004805490600061115483612841565b909155505033600090815260096020526040812061117791600390910190612222565b50505b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0386169063a9059cbb90604401602060405180830381600087803b1580156111c257600080fd5b505af11580156111d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111fa9190612560565b506006546112089083611dc3565b6006556005546112189085611dc3565b600555336000908152600960205260408120600101805484929061123d90849061282a565b9091555050336000908152600960205260408120805486929061126190849061282a565b90915550503360009081526009602052604090205461127f90611d99565b336000908152600a602052604090205550505050505050565b6001600160a01b0381166000908152600960209081526040918290206003018054835181840281018401909452808452606093928301828280156112fb57602002820191906000526020600020905b8154815260200190600101908083116112e7575b50505050509050919050565b6113113382611dcf565b50565b6002546040516370a0823160e01b81523060048201526000916001600160a01b031690829082906370a082319060240160206040518083038186803b15801561135c57600080fd5b505afa158015611370573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113949190612594565b905060006113b96006546109b8670de0b6b3a76400008561181390919063ffffffff16565b90506113d1670de0b6b3a76400006109b88784611813565b95945050505050565b6000546001600160a01b031633146114045760405162461bcd60e51b8152600401610727906126db565b6001600160a01b0381161561153057604051632b35867560e11b81526000600482015281906001600160a01b0382169063566b0cea9060240160206040518083038186803b15801561145557600080fd5b505afa158015611469573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148d9190612560565b1515600114806115125750604051632b35867560e11b8152600060048201526001600160a01b0382169063566b0cea9060240160206040518083038186803b1580156114d857600080fd5b505afa1580156114ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115109190612560565b155b61152e5760405162461bcd60e51b815260040161072790612710565b505b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461157c5760405162461bcd60e51b8152600401610727906126db565b6000546001600160a01b03166001600160a01b03164760405160006040518083038185875af1925050503d80600081146115d2576040519150601f19603f3d011682016040523d82523d6000602084013e505050565b606091505b505050565b6000546001600160a01b031633146116065760405162461bcd60e51b8152600401610727906126db565b805182511461164d5760405162461bcd60e51b81526020600482015260136024820152720daeae6e840c4ca40e6c2daca40d8cadccee8d606b1b6044820152606401610727565b60408051600080825260208201909252905b83518110156108c25782818151811061168857634e487b7160e01b600052603260045260246000fd5b602002602001015160600151600960008684815181106116b857634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060030190805190602001906116f6929190612240565b5061175684828151811061171a57634e487b7160e01b600052603260045260246000fd5b602002602001015184838151811061174257634e487b7160e01b600052603260045260246000fd5b60200260200101516020015184600161182b565b8061176081612858565b91505061165f565b6000546001600160a01b031633146117925760405162461bcd60e51b8152600401610727906126db565b6001600160a01b0381166117f75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610727565b61131181611d49565b600061180c82846127d3565b9392505050565b600061180c828461280b565b600061180c82846127eb565b6001600160a01b03841660009081526009602052604090205415801590611850575080155b1561186057611860846000611dcf565b6002546001600160a01b03166000841561187a57846118f3565b6040516370a0823160e01b81526001600160a01b0387811660048301528316906370a082319060240160206040518083038186803b1580156118bb57600080fd5b505afa1580156118cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f39190612594565b6001600160a01b0387166000908152600960205260409020549091508184611bba576040516370a0823160e01b81523060048201526000906001600160a01b038616906370a082319060240160206040518083038186803b15801561195757600080fd5b505afa15801561196b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061198f9190612594565b6040516323b872dd60e01b81529091506001600160a01b038616906323b872dd906119c2908c903090899060040161260a565b602060405180830381600087803b1580156119dc57600080fd5b505af11580156119f0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a149190612560565b506040516370a0823160e01b8152306004820152611a999082906001600160a01b038816906370a08231906024015b60206040518083038186803b158015611a5b57600080fd5b505afa158015611a6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a939190612594565b90611dc3565b6003549092506001600160a01b031660005b8851811015611bb657816001600160a01b03166323b872dd8c308c8581518110611ae557634e487b7160e01b600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b8152600401611b0b9392919061260a565b600060405180830381600087803b158015611b2557600080fd5b505af1158015611b39573d6000803e3d6000fd5b50505050600960008c6001600160a01b03166001600160a01b03168152602001908152602001600020600301898281518110611b8557634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518254600181018455600093845291909220015580611bae81612858565b915050611aab565b5050505b6001600160a01b03881660009081526009602052604090208054600190910154611be49083611800565b6001600160a01b038a16600090815260096020526040812082905590611c0b908b906121f9565b6001600160a01b038b166000908152600960205260409020839055600654909150611c369084611800565b6006556001600160a01b038a16600090815260096020526040902054600554611c6a918391611c6491611dc3565b90611800565b6005556001600160a01b038a1660009081526009602052604081206001018054859290611c989084906127d3565b90915550506001600160a01b038a1660009081526009602052604090208181554260029091015583158015611ce457506001600160a01b038a1660009081526009602052604090205415155b15611cff5760048054906000611cf983612858565b91905055505b6001600160a01b038a16600090815260096020526040902054611d2190611d99565b6001600160a01b03909a166000908152600a6020526040902099909955505050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610a736ec097ce7bc90715b34b9f10000000006109b8600f548561181390919063ffffffff16565b600061180c828461282a565b6001600160a01b0382166000908152600a60205260409020600201544211611e395760405162461bcd60e51b815260206004820152601d60248201527f63616e206f6e6c7920636c61696d206f6e63652070657220626c6f636b0000006044820152606401610727565b6001600160a01b038216600090815260096020526040902054611e5a575050565b6000611e6583610dac565b6001600160a01b0384166000908152600a6020526040902060010154909150611e8e9082611800565b6001600160a01b0384166000908152600a6020908152604080832060010193909355600990522054611ebf90611d99565b6001600160a01b0384166000908152600a602052604090209081554260029091015580156115d757600e54611ef49082611800565b600e554782156120ed576002546040516370a0823160e01b81523060048201526001600160a01b039091169060009082906370a082319060240160206040518083038186803b158015611f4657600080fd5b505afa158015611f5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f7e9190612594565b6040805160028082526060820183529293506000929091602083019080368337505060075482519293506001600160a01b031691839150600090611fd257634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201015260025482519116908290600190811061201157634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201015260085460405163b6f9de9560e01b815291169063b6f9de9590879061205790600090869030904290600401612672565b6000604051808303818588803b15801561207057600080fd5b505af1158015612084573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152600093506120be92508591506001600160a01b038716906370a0823190602401611a43565b905080156120e4576040805160008152602081019091526120e2898383600161182b565b505b50505050612192565b6000846001600160a01b03168360405160006040518083038185875af1925050503d806000811461213a576040519150601f19603f3d011682016040523d82523d6000602084013e61213f565b606091505b50509050806121905760405162461bcd60e51b815260206004820152601d60248201527f45544820776173206e6f74207375636365737366756c6c792073656e740000006044820152606401610727565b505b61219c828261282a565b4710156108c25760405162461bcd60e51b815260206004820152602560248201527f6f6e6c792074616b652070726f70657220616d6f756e742066726f6d20636f6e6044820152641d1c9858dd60da1b6064820152608401610727565b6000612204836109de565b61220e578161180c565b61180c610bdb60646109b8610bd487610bf4565b5080546000825590600052602060002090810190611311919061228b565b82805482825590600052602060002090810192821561227b579160200282015b8281111561227b578251825591602001919060010190612260565b5061228792915061228b565b5090565b5b80821115612287576000815560010161228c565b80356001600160a01b03811681146122b757600080fd5b919050565b600082601f8301126122cc578081fd5b813560206122e16122dc836127af565b61277e565b80838252828201915082860187848660051b8901011115612300578586fd5b855b8581101561239457813567ffffffffffffffff80821115612321578889fd5b908901906080828c03601f190181131561233957898afd5b612341612755565b838901358152604080850135828b01526060808601358284015292850135928484111561236c578c8dfd5b61237a8f8c868901016123a1565b908301525087525050509284019290840190600101612302565b5090979650505050505050565b600082601f8301126123b1578081fd5b813560206123c16122dc836127af565b80838252828201915082860187848660051b89010111156123e0578586fd5b855b85811015612394578135845292840192908401906001016123e2565b60006020828403121561240f578081fd5b61180c826122a0565b6000806040838503121561242a578081fd5b612433836122a0565b9150602083013567ffffffffffffffff81111561244e578182fd5b61245a858286016123a1565b9150509250929050565b60008060408385031215612476578182fd5b61247f836122a0565b946020939093013593505050565b6000806040838503121561249f578182fd5b823567ffffffffffffffff808211156124b6578384fd5b818501915085601f8301126124c9578384fd5b813560206124d96122dc836127af565b8083825282820191508286018a848660051b89010111156124f8578889fd5b8896505b848710156125215761250d816122a0565b8352600196909601959183019183016124fc565b5096505086013592505080821115612537578283fd5b5061245a858286016122bc565b600060208284031215612555578081fd5b813561180c8161289f565b600060208284031215612571578081fd5b815161180c8161289f565b60006020828403121561258d578081fd5b5035919050565b6000602082840312156125a5578081fd5b5051919050565b600080604083850312156125be578182fd5b82359150602083013567ffffffffffffffff81111561244e578182fd5b600080604083850312156125ed578182fd5b8235915060208301356125ff8161289f565b809150509250929050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6020808252825182820181905260009190848201906040850190845b818110156126665783518352928401929184019160010161264a565b50909695505050505050565b600060808201868352602060808185015281875180845260a0860191508289019350845b818110156126bb5784516001600160a01b031683529383019391830191600101612696565b50506001600160a01b039690961660408501525050506060015292915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526025908201527f636f6e747261637420646f6573206e6f7420696d706c656d656e7420696e7465604082015264726661636560d81b606082015260800190565b6040516080810167ffffffffffffffff8111828210171561277857612778612889565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156127a7576127a7612889565b604052919050565b600067ffffffffffffffff8211156127c9576127c9612889565b5060051b60200190565b600082198211156127e6576127e6612873565b500190565b60008261280657634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561282557612825612873565b500290565b60008282101561283c5761283c612873565b500390565b60008161285057612850612873565b506000190190565b600060001982141561286c5761286c612873565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461131157600080fdfea164736f6c6343000804000a0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000005dbb9f64cd96e2dbbca58d14863d615b67b42f2e000000000000000000000000daf531fd52eaa4b33a5158b0da3305caaaf96cd6000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Deployed Bytecode
0x60806040526004361061021e5760003560e01c806388b0e46f11610123578063c7e1d0b1116100ab578063e086e5ec1161006f578063e086e5ec1461065c578063e8ce3e5a14610671578063efca2eed14610691578063f04da65b146106a7578063f2fde38b146106dd57600080fd5b8063c7e1d0b1146105c3578063c9e39302146105d9578063def7869d146105f9578063df83bf6e14610619578063dfcedeee1461063c57600080fd5b80639ebea88c116100f25780639ebea88c14610516578063af17e3b714610536578063b99567a414610556578063beb68d0514610583578063c5a0ffd7146105a357600080fd5b806388b0e46f1461047f57806389d96917146104b85780638da5cb5b146104d85780639e75fd77146104f657600080fd5b80633c6e6789116101a657806361e4029b1161017557806361e4029b146103f45780636f371efe14610414578063715018a61461043457806380bb40551461044957806387cdb3481461045f57600080fd5b80633c6e6789146103925780633cbabf3f146103a85780633d97f969146103be5780634da881a8146103de57600080fd5b8063152111f7116101ed578063152111f7146102fa57806316f60557146103025780631f0cff7214610322578063294c494d146103525780632be639a71461037257600080fd5b806303fd2a451461022a57806306b091f91461025d5780630700037d1461027f5780630e15561a146102d657600080fd5b3661022557005b600080fd5b34801561023657600080fd5b5061024061dead81565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561026957600080fd5b5061027d610278366004612464565b6106fd565b005b34801561028b57600080fd5b506102bb61029a3660046123fe565b600a6020526000908152604090208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610254565b3480156102e257600080fd5b506102ec600d5481565b604051908152602001610254565b61027d6108c8565b34801561030e57600080fd5b5061027d61031d3660046125ac565b6109cd565b34801561032e57600080fd5b5061034261033d3660046123fe565b6109de565b6040519015158152602001610254565b34801561035e57600080fd5b5061027d61036d36600461257c565b610a79565b34801561037e57600080fd5b50600c54610240906001600160a01b031681565b34801561039e57600080fd5b506102ec60065481565b3480156103b457600080fd5b506102ec60055481565b3480156103ca57600080fd5b5061027d6103d93660046123fe565b610aa8565b3480156103ea57600080fd5b506102ec60015481565b34801561040057600080fd5b506102ec61040f366004612464565b610b9f565b34801561042057600080fd5b506102ec61042f3660046123fe565b610bf4565b34801561044057600080fd5b5061027d610c92565b34801561045557600080fd5b506102ec60045481565b34801561046b57600080fd5b5061027d61047a366004612418565b610cc8565b34801561048b57600080fd5b506102ec61049a3660046123fe565b6001600160a01b031660009081526009602052604090206001015490565b3480156104c457600080fd5b506102ec6104d33660046123fe565b610dac565b3480156104e457600080fd5b506000546001600160a01b0316610240565b34801561050257600080fd5b5061027d6105113660046123fe565b610e2a565b34801561052257600080fd5b5061027d6105313660046125db565b610e76565b34801561054257600080fd5b50600354610240906001600160a01b031681565b34801561056257600080fd5b506105766105713660046123fe565b611298565b604051610254919061262e565b34801561058f57600080fd5b50600254610240906001600160a01b031681565b3480156105af57600080fd5b5061027d6105be366004612544565b611307565b3480156105cf57600080fd5b506102ec600f5481565b3480156105e557600080fd5b506102ec6105f436600461257c565b611314565b34801561060557600080fd5b5061027d6106143660046123fe565b6113da565b34801561062557600080fd5b506102ec6ec097ce7bc90715b34b9f100000000081565b34801561064857600080fd5b50600b54610240906001600160a01b031681565b34801561066857600080fd5b5061027d611552565b34801561067d57600080fd5b5061027d61068c36600461248d565b6115dc565b34801561069d57600080fd5b506102ec600e5481565b3480156106b357600080fd5b506102ec6106c23660046123fe565b6001600160a01b031660009081526009602052604090205490565b3480156106e957600080fd5b5061027d6106f83660046123fe565b611768565b6000546001600160a01b031633146107305760405162461bcd60e51b8152600401610727906126db565b60405180910390fd5b81816107b2576040516370a0823160e01b81523060048201526001600160a01b038216906370a082319060240160206040518083038186803b15801561077557600080fd5b505afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad9190612594565b6107b4565b815b9150600082116108215760405162461bcd60e51b815260206004820152603260248201527f6d616b65207375726520746865726520697320612062616c616e636520617661604482015271696c61626c6520746f20776974686472617760701b6064820152608401610727565b806001600160a01b031663a9059cbb6108426000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101859052604401602060405180830381600087803b15801561088a57600080fd5b505af115801561089e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c29190612560565b50505050565b600034116109185760405162461bcd60e51b815260206004820152601c60248201527f76616c7565206d7573742062652067726561746572207468616e2030000000006044820152606401610727565b6000600554116109825760405162461bcd60e51b815260206004820152602f60248201527f6d75737420626520736861726573206465706f736974656420746f206265207260448201526e65776172646564207265776172647360881b6064820152608401610727565b600d5434906109919082611800565b600d556005546109c7906109be906109b86ec097ce7bc90715b34b9f100000000085611813565b9061181f565b600f5490611800565b600f5550565b6109da338383600061182b565b5050565b600b546000906001600160a01b031615801590610a735750600b54604051632b35867560e11b81526001600160a01b0384811660048301529091169063566b0cea9060240160206040518083038186803b158015610a3b57600080fd5b505afa158015610a4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a739190612560565b92915050565b6000546001600160a01b03163314610aa35760405162461bcd60e51b8152600401610727906126db565b600155565b6000546001600160a01b03163314610ad25760405162461bcd60e51b8152600401610727906126db565b6001600160a01b03811615610b7d5760405163a9d637e160e01b815260006004820181905282916001600160a01b0383169063a9d637e19060240160206040518083038186803b158015610b2557600080fd5b505afa158015610b39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5d9190612594565b1015610b7b5760405162461bcd60e51b815260040161072790612710565b505b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6000670de0b6b3a7640000610bb3846109de565b610bbd5782610bec565b610bec610be2610bdb60646109b8610bd489610bf4565b8690611813565b8390611800565b6109b88584611813565b949350505050565b600c546000906001600160a01b031615610c8a57600c5460405163a9d637e160e01b81526001600160a01b0384811660048301529091169063a9d637e19060240160206040518083038186803b158015610c4d57600080fd5b505afa158015610c61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c859190612594565b610a73565b600092915050565b6000546001600160a01b03163314610cbc5760405162461bcd60e51b8152600401610727906126db565b610cc66000611d49565b565b6000546001600160a01b03163314610cf25760405162461bcd60e51b8152600401610727906126db565b8160005b82518110156108c257816001600160a01b03166323b872dd30610d216000546001600160a01b031690565b868581518110610d4157634e487b7160e01b600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b8152600401610d679392919061260a565b600060405180830381600087803b158015610d8157600080fd5b505af1158015610d95573d6000803e3d6000fd5b505050508080610da490612858565b915050610cf6565b6001600160a01b038116600090815260096020526040812054610dd157506000919050565b6001600160a01b038216600090815260096020526040812054610df390611d99565b6001600160a01b0384166000908152600a6020526040902054909150808211610e20575060009392505050565b610bec8282611dc3565b6000546001600160a01b03163314610e545760405162461bcd60e51b8152600401610727906126db565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526009602052604090205415801590610eab5750811580610eab5750336000908152600960205260409020548211155b610f0c5760405162461bcd60e51b815260206004820152602c60248201527f796f752063616e206f6e6c7920756e7374616b6520696620796f75206861766560448201526b081cdbdb59481cdd185ad95960a21b6064820152608401610727565b60015433600090815260096020526040902060020154610f2c91906127d3565b4211610fa2576040805162461bcd60e51b81526020600482015260248101919091527f6d757374206265207374616b656420666f72206d696e696d756d2074696d652060448201527f616e64206174206c65617374206f6e6520626c6f636b206966206e6f206d696e6064820152608401610727565b80610fb257610fb2336000611dcf565b6002546001600160a01b031660008315610fcc5783610fdd565b336000908152600960205260409020545b33600081815260096020526040812080546001820154909155929350906110049084610b9f565b33600090815260096020526040812084905590915061102282611314565b90508661117a573360009081526009602090815260408083206003018054825181850281018501909352808352919290919083018282801561108357602002820191906000526020600020905b81548152602001906001019080831161106f575b5050600354939450506001600160a01b039092169150600090505b825181101561114357816001600160a01b03166342842e0e30338685815181106110d857634e487b7160e01b600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b81526004016110fe9392919061260a565b600060405180830381600087803b15801561111857600080fd5b505af115801561112c573d6000803e3d6000fd5b50505050808061113b90612858565b91505061109e565b506004805490600061115483612841565b909155505033600090815260096020526040812061117791600390910190612222565b50505b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0386169063a9059cbb90604401602060405180830381600087803b1580156111c257600080fd5b505af11580156111d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111fa9190612560565b506006546112089083611dc3565b6006556005546112189085611dc3565b600555336000908152600960205260408120600101805484929061123d90849061282a565b9091555050336000908152600960205260408120805486929061126190849061282a565b90915550503360009081526009602052604090205461127f90611d99565b336000908152600a602052604090205550505050505050565b6001600160a01b0381166000908152600960209081526040918290206003018054835181840281018401909452808452606093928301828280156112fb57602002820191906000526020600020905b8154815260200190600101908083116112e7575b50505050509050919050565b6113113382611dcf565b50565b6002546040516370a0823160e01b81523060048201526000916001600160a01b031690829082906370a082319060240160206040518083038186803b15801561135c57600080fd5b505afa158015611370573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113949190612594565b905060006113b96006546109b8670de0b6b3a76400008561181390919063ffffffff16565b90506113d1670de0b6b3a76400006109b88784611813565b95945050505050565b6000546001600160a01b031633146114045760405162461bcd60e51b8152600401610727906126db565b6001600160a01b0381161561153057604051632b35867560e11b81526000600482015281906001600160a01b0382169063566b0cea9060240160206040518083038186803b15801561145557600080fd5b505afa158015611469573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148d9190612560565b1515600114806115125750604051632b35867560e11b8152600060048201526001600160a01b0382169063566b0cea9060240160206040518083038186803b1580156114d857600080fd5b505afa1580156114ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115109190612560565b155b61152e5760405162461bcd60e51b815260040161072790612710565b505b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461157c5760405162461bcd60e51b8152600401610727906126db565b6000546001600160a01b03166001600160a01b03164760405160006040518083038185875af1925050503d80600081146115d2576040519150601f19603f3d011682016040523d82523d6000602084013e505050565b606091505b505050565b6000546001600160a01b031633146116065760405162461bcd60e51b8152600401610727906126db565b805182511461164d5760405162461bcd60e51b81526020600482015260136024820152720daeae6e840c4ca40e6c2daca40d8cadccee8d606b1b6044820152606401610727565b60408051600080825260208201909252905b83518110156108c25782818151811061168857634e487b7160e01b600052603260045260246000fd5b602002602001015160600151600960008684815181106116b857634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060030190805190602001906116f6929190612240565b5061175684828151811061171a57634e487b7160e01b600052603260045260246000fd5b602002602001015184838151811061174257634e487b7160e01b600052603260045260246000fd5b60200260200101516020015184600161182b565b8061176081612858565b91505061165f565b6000546001600160a01b031633146117925760405162461bcd60e51b8152600401610727906126db565b6001600160a01b0381166117f75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610727565b61131181611d49565b600061180c82846127d3565b9392505050565b600061180c828461280b565b600061180c82846127eb565b6001600160a01b03841660009081526009602052604090205415801590611850575080155b1561186057611860846000611dcf565b6002546001600160a01b03166000841561187a57846118f3565b6040516370a0823160e01b81526001600160a01b0387811660048301528316906370a082319060240160206040518083038186803b1580156118bb57600080fd5b505afa1580156118cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f39190612594565b6001600160a01b0387166000908152600960205260409020549091508184611bba576040516370a0823160e01b81523060048201526000906001600160a01b038616906370a082319060240160206040518083038186803b15801561195757600080fd5b505afa15801561196b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061198f9190612594565b6040516323b872dd60e01b81529091506001600160a01b038616906323b872dd906119c2908c903090899060040161260a565b602060405180830381600087803b1580156119dc57600080fd5b505af11580156119f0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a149190612560565b506040516370a0823160e01b8152306004820152611a999082906001600160a01b038816906370a08231906024015b60206040518083038186803b158015611a5b57600080fd5b505afa158015611a6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a939190612594565b90611dc3565b6003549092506001600160a01b031660005b8851811015611bb657816001600160a01b03166323b872dd8c308c8581518110611ae557634e487b7160e01b600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b8152600401611b0b9392919061260a565b600060405180830381600087803b158015611b2557600080fd5b505af1158015611b39573d6000803e3d6000fd5b50505050600960008c6001600160a01b03166001600160a01b03168152602001908152602001600020600301898281518110611b8557634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518254600181018455600093845291909220015580611bae81612858565b915050611aab565b5050505b6001600160a01b03881660009081526009602052604090208054600190910154611be49083611800565b6001600160a01b038a16600090815260096020526040812082905590611c0b908b906121f9565b6001600160a01b038b166000908152600960205260409020839055600654909150611c369084611800565b6006556001600160a01b038a16600090815260096020526040902054600554611c6a918391611c6491611dc3565b90611800565b6005556001600160a01b038a1660009081526009602052604081206001018054859290611c989084906127d3565b90915550506001600160a01b038a1660009081526009602052604090208181554260029091015583158015611ce457506001600160a01b038a1660009081526009602052604090205415155b15611cff5760048054906000611cf983612858565b91905055505b6001600160a01b038a16600090815260096020526040902054611d2190611d99565b6001600160a01b03909a166000908152600a6020526040902099909955505050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610a736ec097ce7bc90715b34b9f10000000006109b8600f548561181390919063ffffffff16565b600061180c828461282a565b6001600160a01b0382166000908152600a60205260409020600201544211611e395760405162461bcd60e51b815260206004820152601d60248201527f63616e206f6e6c7920636c61696d206f6e63652070657220626c6f636b0000006044820152606401610727565b6001600160a01b038216600090815260096020526040902054611e5a575050565b6000611e6583610dac565b6001600160a01b0384166000908152600a6020526040902060010154909150611e8e9082611800565b6001600160a01b0384166000908152600a6020908152604080832060010193909355600990522054611ebf90611d99565b6001600160a01b0384166000908152600a602052604090209081554260029091015580156115d757600e54611ef49082611800565b600e554782156120ed576002546040516370a0823160e01b81523060048201526001600160a01b039091169060009082906370a082319060240160206040518083038186803b158015611f4657600080fd5b505afa158015611f5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f7e9190612594565b6040805160028082526060820183529293506000929091602083019080368337505060075482519293506001600160a01b031691839150600090611fd257634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201015260025482519116908290600190811061201157634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201015260085460405163b6f9de9560e01b815291169063b6f9de9590879061205790600090869030904290600401612672565b6000604051808303818588803b15801561207057600080fd5b505af1158015612084573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152600093506120be92508591506001600160a01b038716906370a0823190602401611a43565b905080156120e4576040805160008152602081019091526120e2898383600161182b565b505b50505050612192565b6000846001600160a01b03168360405160006040518083038185875af1925050503d806000811461213a576040519150601f19603f3d011682016040523d82523d6000602084013e61213f565b606091505b50509050806121905760405162461bcd60e51b815260206004820152601d60248201527f45544820776173206e6f74207375636365737366756c6c792073656e740000006044820152606401610727565b505b61219c828261282a565b4710156108c25760405162461bcd60e51b815260206004820152602560248201527f6f6e6c792074616b652070726f70657220616d6f756e742066726f6d20636f6e6044820152641d1c9858dd60da1b6064820152608401610727565b6000612204836109de565b61220e578161180c565b61180c610bdb60646109b8610bd487610bf4565b5080546000825590600052602060002090810190611311919061228b565b82805482825590600052602060002090810192821561227b579160200282015b8281111561227b578251825591602001919060010190612260565b5061228792915061228b565b5090565b5b80821115612287576000815560010161228c565b80356001600160a01b03811681146122b757600080fd5b919050565b600082601f8301126122cc578081fd5b813560206122e16122dc836127af565b61277e565b80838252828201915082860187848660051b8901011115612300578586fd5b855b8581101561239457813567ffffffffffffffff80821115612321578889fd5b908901906080828c03601f190181131561233957898afd5b612341612755565b838901358152604080850135828b01526060808601358284015292850135928484111561236c578c8dfd5b61237a8f8c868901016123a1565b908301525087525050509284019290840190600101612302565b5090979650505050505050565b600082601f8301126123b1578081fd5b813560206123c16122dc836127af565b80838252828201915082860187848660051b89010111156123e0578586fd5b855b85811015612394578135845292840192908401906001016123e2565b60006020828403121561240f578081fd5b61180c826122a0565b6000806040838503121561242a578081fd5b612433836122a0565b9150602083013567ffffffffffffffff81111561244e578182fd5b61245a858286016123a1565b9150509250929050565b60008060408385031215612476578182fd5b61247f836122a0565b946020939093013593505050565b6000806040838503121561249f578182fd5b823567ffffffffffffffff808211156124b6578384fd5b818501915085601f8301126124c9578384fd5b813560206124d96122dc836127af565b8083825282820191508286018a848660051b89010111156124f8578889fd5b8896505b848710156125215761250d816122a0565b8352600196909601959183019183016124fc565b5096505086013592505080821115612537578283fd5b5061245a858286016122bc565b600060208284031215612555578081fd5b813561180c8161289f565b600060208284031215612571578081fd5b815161180c8161289f565b60006020828403121561258d578081fd5b5035919050565b6000602082840312156125a5578081fd5b5051919050565b600080604083850312156125be578182fd5b82359150602083013567ffffffffffffffff81111561244e578182fd5b600080604083850312156125ed578182fd5b8235915060208301356125ff8161289f565b809150509250929050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6020808252825182820181905260009190848201906040850190845b818110156126665783518352928401929184019160010161264a565b50909695505050505050565b600060808201868352602060808185015281875180845260a0860191508289019350845b818110156126bb5784516001600160a01b031683529383019391830191600101612696565b50506001600160a01b039690961660408501525050506060015292915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526025908201527f636f6e747261637420646f6573206e6f7420696d706c656d656e7420696e7465604082015264726661636560d81b606082015260800190565b6040516080810167ffffffffffffffff8111828210171561277857612778612889565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156127a7576127a7612889565b604052919050565b600067ffffffffffffffff8211156127c9576127c9612889565b5060051b60200190565b600082198211156127e6576127e6612873565b500190565b60008261280657634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561282557612825612873565b500290565b60008282101561283c5761283c612873565b500390565b60008161285057612850612873565b506000190190565b600060001982141561286c5761286c612873565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461131157600080fdfea164736f6c6343000804000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000005dbb9f64cd96e2dbbca58d14863d615b67b42f2e000000000000000000000000daf531fd52eaa4b33a5158b0da3305caaaf96cd6000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
-----Decoded View---------------
Arg [0] : _dexRouter (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [1] : _shareholderToken (address): 0x5dBB9F64cd96E2DbBcA58d14863d615B67B42f2e
Arg [2] : _nftBoosterToken (address): 0xdAf531FD52eAa4B33a5158B0Da3305CaaAf96cD6
Arg [3] : _wrappedNative (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [1] : 0000000000000000000000005dbb9f64cd96e2dbbca58d14863d615b67b42f2e
Arg [2] : 000000000000000000000000daf531fd52eaa4b33a5158b0da3305caaaf96cd6
Arg [3] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,479.99 | 3.7274 | $12,971.16 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.