More Info
Private Name Tags
ContractCreator:
Sponsored
Latest 1 internal transaction
Parent Txn Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
20005630 | 885 days ago | Contract Creation | 0 FTM |
Loading...
Loading
Contract Name:
NFTCavePoolDuo
Compiler Version
v0.8.0+commit.c7dfd78e
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.0; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "./zap.sol"; import "./interfaces/INFTInterface.sol"; import "./interfaces/IAMMRouter.sol"; contract NFTCavePoolDuo is Ownable,ReentrancyGuard, IERC721Receiver { using SafeMath for uint256; // Info of each user. struct NftUserInfo{ uint256[] nft1; uint256[] nft2; uint256 amountStaked; uint256 rewardDebt; uint256 lastHarvestTime; } // Info of each pool. struct NftPoolInfo{ uint256 lastRewardTime; uint256 amountStaked; uint256 poolRatio; uint256 accPerShare; uint256 poolRarity; address targetLP; address nft1; address nft2; } // The TOKEN! IERC20 public rewardToken; Zap public zapper; // tokens created per block. uint256 public rewardPerSecond; // Deposit burn address address public burnAddress; // Deposit fee to burn uint16 public depositFeeToBurn; // platinum NFT to give a bonus address public platinumNFT; // Info of each pool. NftPoolInfo[] public poolInfo; // Info of each user that stakes LP tokens. mapping (address => NftUserInfo) public userInfo; // Total allocation points. Must be the sum of all allocation points in all pools. uint256 private totalAllocPoint = 0; // The Time number when mining starts. uint256 public startTime; // The Time number when mining ends. uint256 public endTime; //platinum bonus amount uint256 public platinumBonusAmount; uint256 percentageBase = 1000; event Compound(address indexed user, uint256 amount); event Deposit(address indexed user, uint256 amount); event Withdraw(address indexed user, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 amount); constructor( IERC20 _rewardToken, uint256 _rewardPerSecond, address _burnAddress, uint16 _depositFeeBP, uint256 _startTime, uint256 _bonusEndTime, address payable _zapper, address _targetLP, address _nft1, address _nft2 , uint256 _poolRarity ) { rewardToken = _rewardToken; rewardPerSecond = _rewardPerSecond; burnAddress = _burnAddress; depositFeeToBurn = _depositFeeBP; zapper = Zap(_zapper); rewardToken.approve(_zapper,type(uint256).max); if(_startTime <= block.timestamp) startTime = block.timestamp; else startTime = _startTime; endTime = _bonusEndTime; require(depositFeeToBurn <= 1000, "contract: invalid deposit fee basis points"); // staking pool poolInfo.push(NftPoolInfo({ poolRatio: 1000, lastRewardTime: startTime, targetLP: _targetLP, accPerShare: 0, amountStaked: 0, nft1: _nft1, nft2: _nft2, poolRarity: _poolRarity })); totalAllocPoint = 1000; } function stopReward() public onlyOwner { endTime = block.timestamp; } // Return reward multiplier over the given _from to _to block. function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) { if (_to <= endTime) { return _to.sub(_from); } else if (_from >= endTime) { return 0; } else { return endTime.sub(_from); } } // View function to see pending Reward on frontend. function pendingReward(address _user) external view returns (uint256) { NftPoolInfo storage pool = poolInfo[0]; NftUserInfo storage user = userInfo[_user]; uint256 accPerShare = pool.accPerShare; uint256 lpSupply = pool.amountStaked; if (block.timestamp > pool.lastRewardTime && lpSupply != 0) { uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp); uint256 Reward = multiplier.mul(rewardPerSecond); accPerShare = accPerShare.add(Reward.mul(1e12).div(lpSupply)); } uint256 pendingRewards = user.amountStaked.mul(accPerShare).div(1e12).sub(user.rewardDebt); if(pendingRewards > 0 && platinumBonusAmount > 0){ if(INFTInterface(platinumNFT).balanceOf(_user) > 0){ uint256 bonusAmount = pendingRewards.mul(platinumBonusAmount).div(percentageBase); pendingRewards = pendingRewards.add(bonusAmount); } } return pendingRewards; } // Update reward variables of the given pool to be up-to-date. function updatePool(uint256 _pid) public { NftPoolInfo storage pool = poolInfo[_pid]; if (block.timestamp <= pool.lastRewardTime) { return; } uint256 lpSupply = pool.amountStaked; if (lpSupply == 0) { pool.lastRewardTime = block.timestamp; return; } uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp); uint256 Reward = multiplier.mul(rewardPerSecond); pool.accPerShare = pool.accPerShare.add(Reward.mul(1e12).div(lpSupply)); pool.lastRewardTime = block.timestamp; } // Update reward variables for all pools. Be careful of gas spending! function massUpdatePools() public { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { updatePool(pid); } } function deposit(uint256 _amount) public { NftPoolInfo storage pool = poolInfo[0]; NftUserInfo storage user = userInfo[msg.sender]; updatePool(0); if (user.amountStaked > 0) { uint256 pending = user.amountStaked.mul(pool.accPerShare).div(1e12).sub(user.rewardDebt); if(pending > 0) { if(platinumBonusAmount > 0){ if(INFTInterface(platinumNFT).balanceOf(msg.sender) > 0){ uint256 bonusAmount = pending.mul(platinumBonusAmount).div(percentageBase); pending = pending.add(bonusAmount); } } rewardToken.transfer(address(msg.sender), pending); } } //loop over amount and transfer in for deposit one of each NFT required //then add one to the amount user staked. if(_amount > 0) { INFTInterface nft1 = INFTInterface(pool.nft1); INFTInterface nft2 = INFTInterface(pool.nft2); uint256[] memory usernft1 = nft1.getUserNftTokensForRarity(pool.poolRarity, msg.sender); uint256[] memory usernft2 = nft2.getUserNftTokensForRarity(pool.poolRarity,msg.sender); require(usernft1.length >= _amount && usernft2.length >= _amount, "deposit: Not enough NFTs"); for(uint256 t = 0; t < _amount; t++){ nft1.safeTransferFrom(address(msg.sender), address(this), usernft1[t]); nft2.safeTransferFrom(address(msg.sender), address(this), usernft2[t]); user.nft1.push(usernft1[t]); user.nft2.push(usernft2[t]); } user.amountStaked = user.amountStaked + _amount; pool.amountStaked = pool.amountStaked + _amount; } user.rewardDebt = user.amountStaked.mul(pool.accPerShare).div(1e12); emit Deposit(msg.sender, _amount); } function compound() public nonReentrant { NftPoolInfo storage pool = poolInfo[0]; NftUserInfo storage user = userInfo[msg.sender]; updatePool(0); uint256 _amount = 0; if (user.amountStaked > 0) { uint256 pending = user.amountStaked.mul(pool.accPerShare).div(1e12).sub(user.rewardDebt); if(pending > 0) { if(platinumBonusAmount > 0){ if(INFTInterface(platinumNFT).balanceOf(msg.sender) > 0){ uint256 bonusAmount = pending.mul(platinumBonusAmount).div(percentageBase); pending = pending.add(bonusAmount); } } zapper.zapInToken(address(rewardToken), pending, address(pool.targetLP), msg.sender); user.rewardDebt = user.amountStaked.mul(pool.accPerShare).div(1e12); } } emit Compound(msg.sender, _amount); } function getUserStakedTokens1(address user ) external view returns (uint256[] memory){ return userInfo[user].nft1; } function getUserStakedTokens2(address user ) external view returns (uint256[] memory){ return userInfo[user].nft2; } // Withdraw tokens from STAKING. function withdraw(uint256 _amount) public { NftPoolInfo storage pool = poolInfo[0]; NftUserInfo storage user = userInfo[msg.sender]; require(user.amountStaked >= _amount, "withdraw: not good"); updatePool(0); uint256 pending = user.amountStaked.mul(pool.accPerShare).div(1e12).sub(user.rewardDebt); if(pending > 0) { if(platinumBonusAmount > 0){ if(INFTInterface(platinumNFT).balanceOf(msg.sender) > 0){ uint256 bonusAmount = pending.mul(platinumBonusAmount).div(percentageBase); pending = pending.add(bonusAmount); } } rewardToken.transfer(address(msg.sender), pending); } if(_amount > 0) { INFTInterface nft1 = INFTInterface(pool.nft1); INFTInterface nft2 = INFTInterface(pool.nft2); uint256 toPopCounter = user.amountStaked.sub(_amount); for(uint256 ti = user.amountStaked; ti > toPopCounter; ti--){ nft1.safeTransferFrom(address(this), address(msg.sender), user.nft1[ti-1]); nft2.safeTransferFrom(address(this), address(msg.sender), user.nft2[ti-1]); user.nft1.pop(); user.nft2.pop(); } user.amountStaked = user.amountStaked.sub(_amount); pool.amountStaked = pool.amountStaked.sub(_amount); } user.rewardDebt = user.amountStaked.mul(pool.accPerShare).div(1e12); emit Withdraw(msg.sender, _amount); } // Withdraw without caring about rewards. EMERGENCY ONLY. function emergencyWithdraw() public { NftPoolInfo storage pool = poolInfo[0]; NftUserInfo storage user = userInfo[msg.sender]; INFTInterface nft1 = INFTInterface(pool.nft1); INFTInterface nft2 = INFTInterface(pool.nft2); uint256 amount = user.amountStaked; pool.amountStaked = pool.amountStaked.sub(amount); //withdraw all user pairings for(uint256 ti = amount; ti > 0 ; ti--){ nft1.safeTransferFrom(address(this), address(msg.sender), user.nft1[ti-1]); nft2.safeTransferFrom(address(this), address(msg.sender), user.nft2[ti-1]); user.nft1.pop(); user.nft2.pop(); } user.amountStaked = 0; user.rewardDebt = 0; emit EmergencyWithdraw(msg.sender, user.amountStaked); } // V1 Add a function to update rewardPerblock. Can only be called by the owner. function updateRewardPerSecond(uint256 _rewardPerSecond) public onlyOwner { rewardPerSecond = _rewardPerSecond; updatePool(0); } // V1 Add a function to update bonusEndblock. Can only be called by the owner. function updateBonusEndTime(uint256 _bonusEndTime) public onlyOwner { endTime = _bonusEndTime; } function setZapper(address payable _zapper) external onlyOwner { require(_zapper != address(0), "setZapTimeLock: not address 0"); zapper = Zap(_zapper); rewardToken.approve(_zapper,type(uint256).max); } function sweep(address tokenToSweep) public onlyOwner{ IERC20 sweeper = IERC20(tokenToSweep); sweeper.transfer(msg.sender, sweeper.balanceOf(address(this))); } function setPlatinumBonus(address platToken, uint256 bonusAmount) public onlyOwner{ platinumNFT = platToken; platinumBonusAmount = bonusAmount; } /*****IERC721Receiver */ /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. * * Note: Parameters are required by the override, but optional for usage, hence compiler warning as they are not needed in this case. */ function onERC721Received(address /* operator */, address /* from */, uint256 /* tokenId */, bytes calldata /* data */) external pure override returns (bytes4){ return this.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT 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 no longer needed starting with Solidity 0.8. 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; } } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT 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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT 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 make 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; } }
// SPDX-License-Identifier: MIT 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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./interfaces/IERC20Slim.sol"; import "./interfaces/ILPPair.sol"; import "./interfaces/IAMMRouter.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract Zap is Ownable { using SafeMath for uint256; address private WFTM = 0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83; //Mainnet IAMMRouter private constant THE_ROUTER = IAMMRouter(0xF491e7B69E4244ad4002BC14e878a34207E38c29); mapping(address => bool) private notFlip; mapping(address => address) private routePairAddresses; address[] public tokens; constructor() { require(owner() != address(0), "Zap: owner must be set"); setNotFlip(WFTM); } receive() external payable {} function isFlip(address _address) public view returns (bool) { return !notFlip[_address]; } function routePair(address _address) external view returns (address) { return routePairAddresses[_address]; } function zapInToken( address _from, uint256 amount, address _to, address _recipient ) external { if (amount > IERC20Slim(_from).balanceOf(msg.sender)) amount = IERC20Slim(_from).balanceOf(msg.sender); IERC20Slim(_from).transferFrom(msg.sender, address(this), amount); _approveTokenIfNeeded(_from); if (isFlip(_to)) { ILPPair pair = ILPPair(_to); address token0 = pair.token0(); address token1 = pair.token1(); if (_from == token0 || _from == token1) { // swap half amount for other address other = _from == token0 ? token1 : token0; _approveTokenIfNeeded(other); uint256 sellAmount = amount.div(2); uint256 otherAmount = _swap(_from, sellAmount, other, address(this)); THE_ROUTER.addLiquidity(_from, other, amount.sub(sellAmount), otherAmount, 0, 0,_recipient, block.timestamp); } else { uint256 ftmAmount = _swapTokenForFTM(_from, amount, address(this)); _swapFTMToFlip(_to, ftmAmount, _recipient); } } else { _swap(_from, amount, _to, _recipient); } } function zapIn(address _to) external payable { _swapFTMToFlip(_to, msg.value, msg.sender); } function zapOut(address _from, uint256 amount) external { if (amount > IERC20Slim(_from).balanceOf(msg.sender)) amount = IERC20Slim(_from).balanceOf(msg.sender); IERC20Slim(_from).transferFrom(msg.sender, address(this), amount); _approveTokenIfNeeded(_from); if (!isFlip(_from)) { _swapTokenForFTM(_from, amount, msg.sender); } else { ILPPair pair = ILPPair(_from); address token0 = pair.token0(); address token1 = pair.token1(); if (token0 == WFTM || token1 == WFTM) { THE_ROUTER.removeLiquidityETH(token0 != WFTM ? token0 : token1, amount, 0, 0, msg.sender, block.timestamp); } else { THE_ROUTER.removeLiquidity(token0, token1, amount, 0, 0, msg.sender, block.timestamp); } } } function _approveTokenIfNeeded(address token) private { if (IERC20Slim(token).allowance(address(this), address(THE_ROUTER)) == 0) { IERC20Slim(token).approve(address(THE_ROUTER), type(uint256).max); } } function _swapFTMToFlip( address flip, uint256 amount, address receiver ) private { if (!isFlip(flip)) { _swapFTMForToken(flip, amount, receiver); } else { // flip ILPPair pair = ILPPair(flip); address token0 = pair.token0(); address token1 = pair.token1(); if (token0 == WFTM || token1 == WFTM) { address token = token0 == WFTM ? token1 : token0; uint256 swapValue = amount.div(2); uint256 tokenAmount = _swapFTMForToken(token, swapValue, address(this)); _approveTokenIfNeeded(token); THE_ROUTER.addLiquidityETH{value: amount.sub(swapValue)}(token, tokenAmount, 0, 0, receiver, block.timestamp); } else { uint256 swapValue = amount.div(2); uint256 token0Amount = _swapFTMForToken(token0, swapValue, address(this)); uint256 token1Amount = _swapFTMForToken(token1, amount.sub(swapValue), address(this)); _approveTokenIfNeeded(token0); _approveTokenIfNeeded(token1); THE_ROUTER.addLiquidity(token0, token1, token0Amount, token1Amount, 0, 0, receiver, block.timestamp); } } } function _swapFTMForToken( address token, uint256 value, address receiver ) private returns (uint256) { address[] memory path; if (routePairAddresses[token] != address(0)) { path = new address[](3); path[0] = WFTM; path[1] = routePairAddresses[token]; path[2] = token; } else { path = new address[](2); path[0] = WFTM; path[1] = token; } uint256[] memory amounts = THE_ROUTER.swapExactETHForTokens{value: value}(0, path, receiver, block.timestamp); return amounts[amounts.length - 1]; } function _swapTokenForFTM( address token, uint256 amount, address receiver ) private returns (uint256) { address[] memory path; if (routePairAddresses[token] != address(0)) { path = new address[](3); path[0] = token; path[1] = routePairAddresses[token]; path[2] = WFTM; } else { path = new address[](2); path[0] = token; path[1] = WFTM; } uint256[] memory amounts = THE_ROUTER.swapExactTokensForETH(amount, 0, path, receiver, block.timestamp); return amounts[amounts.length - 1]; } function _swap( address _from, uint256 amount, address _to, address receiver ) private returns (uint256) { address intermediate = routePairAddresses[_from]; if (intermediate == address(0)) { intermediate = routePairAddresses[_to]; } address[] memory path; if (intermediate != address(0) && (_from == WFTM || _to == WFTM)) { path = new address[](3); path[0] = _from; path[1] = intermediate; path[2] = _to; } else if (intermediate != address(0) && (_from == intermediate || _to == intermediate)) { path = new address[](2); path[0] = _from; path[1] = _to; } else if (intermediate != address(0) && routePairAddresses[_from] == routePairAddresses[_to]) { path = new address[](3); path[0] = _from; path[1] = intermediate; path[2] = _to; } else if ( routePairAddresses[_from] != address(0) && routePairAddresses[_to] != address(0) && routePairAddresses[_from] != routePairAddresses[_to] ) { // routePairAddresses[xToken] = xRoute path = new address[](5); path[0] = _from; path[1] = routePairAddresses[_from]; path[2] = WFTM; path[3] = routePairAddresses[_to]; path[4] = _to; } else if (intermediate != address(0) && routePairAddresses[_from] != address(0)) { path = new address[](4); path[0] = _from; path[1] = intermediate; path[2] = WFTM; path[3] = _to; } else if (intermediate != address(0) && routePairAddresses[_to] != address(0)) { path = new address[](4); path[0] = _from; path[1] = WFTM; path[2] = intermediate; path[3] = _to; } else if (_from == WFTM || _to == WFTM) { path = new address[](2); path[0] = _from; path[1] = _to; } else { path = new address[](3); path[0] = _from; path[1] = WFTM; path[2] = _to; } uint256[] memory amounts = THE_ROUTER.swapExactTokensForTokens(amount, 0, path, receiver, block.timestamp); return amounts[amounts.length - 1]; } function setRoutePairAddress(address asset, address route) external onlyOwner { routePairAddresses[asset] = route; } function setNotFlip(address token) public onlyOwner { bool needPush = notFlip[token] == false; notFlip[token] = true; if (needPush) { tokens.push(token); } } function removeToken(uint256 i) external onlyOwner { address token = tokens[i]; notFlip[token] = false; tokens[i] = tokens[tokens.length - 1]; tokens.pop(); } function sweep() external onlyOwner { for (uint256 i = 0; i < tokens.length; i++) { address token = tokens[i]; if (token == address(0)) continue; uint256 amount = IERC20Slim(token).balanceOf(address(this)); if (amount > 0) { _swapTokenForFTM(token, amount, owner()); } } } // Emergency only function withdraw(address token) external onlyOwner { if (token == address(0)) { payable(owner()).transfer(address(this).balance); return; } IERC20Slim(token).transfer(owner(), IERC20Slim(token).balanceOf(address(this))); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; interface INFTInterface{ function safeTransferFrom(address from, address to, uint256 tokenId) external; function ownerOf(uint256 tokenId) external view returns (address); function mint(uint256 rarity, address to) external; function balanceOf(address user) external view returns (uint256); function getUserNftTokens(address tokenOwner) external view returns(uint256[] memory); function getRarityRemainingSupply(uint256 rarity) external view returns (uint256); function getRarityOfTokenId(uint256 tokenId) external view returns (uint256); function getUserNftTokensForRarity( uint256 rarity, address tokenOwner) external view returns(uint256[] memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface ILPPair { event Approval(address indexed owner, address indexed spender, uint256 value); event Transfer(address indexed from, address indexed to, uint256 value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint256); function balanceOf(address owner) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function transferFrom( address from, address to, uint256 value ) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint256); function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; event Mint(address indexed sender, uint256 amount0, uint256 amount1); event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to); event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint256); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns ( uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast ); function price0CumulativeLast() external view returns (uint256); function price1CumulativeLast() external view returns (uint256); function kLast() external view returns (uint256); function mint(address to) external returns (uint256 liquidity); function burn(address to) external returns (uint256 amount0, uint256 amount1); function swap( uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data ) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IERC20Slim { function balanceOf(address user) external returns (uint256); function transferFrom(address from, address to, uint256 amoaunt) external returns (bool); function allowance(address owner, address spender) external returns (uint256); function approve(address spender, uint256 amount) external; function transfer(address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IAMMRouter { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns ( uint256 amountA, uint256 amountB, uint256 liquidity ); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns ( uint256 amountToken, uint256 amountETH, uint256 liquidity ); function removeLiquidity( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETH( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountToken, uint256 amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETHWithPermit( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountToken, uint256 amountETH); function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapTokensForExactTokens( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactETHForTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapTokensForExactETH( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactTokensForETH( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapETHForExactTokens( uint256 amountOut, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function quote( uint256 amountA, uint256 reserveA, uint256 reserveB ) external pure returns (uint256 amountB); function getAmountOut( uint256 amountIn, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountOut); function getAmountIn( uint256 amountOut, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountIn); function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns (uint256[] memory amounts); function getAmountsIn(uint256 amountOut, address[] calldata path) external view returns (uint256[] memory amounts); function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_rewardPerSecond","type":"uint256"},{"internalType":"address","name":"_burnAddress","type":"address"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_bonusEndTime","type":"uint256"},{"internalType":"address payable","name":"_zapper","type":"address"},{"internalType":"address","name":"_targetLP","type":"address"},{"internalType":"address","name":"_nft1","type":"address"},{"internalType":"address","name":"_nft2","type":"address"},{"internalType":"uint256","name":"_poolRarity","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Compound","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"burnAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"compound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositFeeToBurn","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserStakedTokens1","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserStakedTokens2","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platinumBonusAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platinumNFT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"amountStaked","type":"uint256"},{"internalType":"uint256","name":"poolRatio","type":"uint256"},{"internalType":"uint256","name":"accPerShare","type":"uint256"},{"internalType":"uint256","name":"poolRarity","type":"uint256"},{"internalType":"address","name":"targetLP","type":"address"},{"internalType":"address","name":"nft1","type":"address"},{"internalType":"address","name":"nft2","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"platToken","type":"address"},{"internalType":"uint256","name":"bonusAmount","type":"uint256"}],"name":"setPlatinumBonus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_zapper","type":"address"}],"name":"setZapper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stopReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenToSweep","type":"address"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bonusEndTime","type":"uint256"}],"name":"updateBonusEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPerSecond","type":"uint256"}],"name":"updateRewardPerSecond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amountStaked","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"lastHarvestTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"zapper","outputs":[{"internalType":"contract Zap","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405260006009556103e8600d553480156200001c57600080fd5b50604051620027e0380380620027e08339810160408190526200003f916200044e565b620000536200004d620003bf565b620003c3565b600180819055508a600260006101000a8154816001600160a01b0302191690836001600160a01b031602179055508960048190555088600560006101000a8154816001600160a01b0302191690836001600160a01b0316021790555087600560146101000a81548161ffff021916908361ffff16021790555084600360006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600260009054906101000a90046001600160a01b03166001600160a01b031663095ea7b3866000196040518363ffffffff1660e01b81526004016200013a9291906200051a565b602060405180830381600087803b1580156200015557600080fd5b505af11580156200016a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000190919062000425565b50428711620001a35742600a55620001a9565b600a8790555b600b8690556005546103e8600160a01b90910461ffff161115620001ea5760405162461bcd60e51b8152600401620001e19062000533565b60405180910390fd5b6040805161010081018252600a5481526000602082018181526103e893830184815260608401838152608085019687526001600160a01b03998a1660a08601908152988a1660c08601908152978a1660e08601908152600780546001810182559552945160089094027fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68881019490945591517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c689840155517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68a830155517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68b82015592517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68c84015593517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68d830180549187166001600160a01b031992831617905592517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68e8301805491871691851691909117905592517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68f909101805491909416911617909155600955506200059695505050505050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b805162000420816200057d565b919050565b60006020828403121562000437578081fd5b8151801515811462000447578182fd5b9392505050565b60008060008060008060008060008060006101608c8e03121562000470578687fd5b8b516200047d816200057d565b60208d015160408e0151919c509a5062000497816200057d565b60608d015190995061ffff81168114620004af578788fd5b60808d015160a08e015191995097509550620004ce60c08d0162000413565b9450620004de60e08d0162000413565b9350620004ef6101008d0162000413565b9250620005006101208d0162000413565b91506101408c015190509295989b509295989b9093969950565b6001600160a01b03929092168252602082015260400190565b6020808252602a908201527f636f6e74726163743a20696e76616c6964206465706f7369742066656520626160408201526973697320706f696e747360b01b606082015260800190565b6001600160a01b03811681146200059357600080fd5b50565b61223a80620005a66000396000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c8063715018a61161010f578063a7a21712116100a2578063f2fde38b11610071578063f2fde38b146103cb578063f40f0f52146103de578063f69e2046146103f1578063f7c618c1146103f9576101e5565b8063a7a21712146103a0578063b6b55f25146103a8578063c2a0fb04146103bb578063db2e21bc146103c3576101e5565b80638da5cb5b116100de5780638da5cb5b146103685780638dbb1e3a146103705780638f10369a14610383578063a4da982d1461038b576101e5565b8063715018a61461033d57806371cad6961461034557806378e979251461035857806380dc067214610360576101e5565b8063375cf3de1161018757806351eb05a61161015657806351eb05a6146102fa57806358c6b6b71461030d578063630b5ba11461032d57806370d5ae0514610335576101e5565b8063375cf3de146102ac5780633c86abfc146102bf5780634004c8e7146102d457806342435175146102e7576101e5565b806315bf0bc1116101c357806315bf0bc11461024f5780631959a002146102625780632e1a7d4d146102845780633197cbb614610297576101e5565b806301681a62146101ea578063150b7a02146101ff5780631526fe2714610228575b600080fd5b6101fd6101f8366004611c6c565b610401565b005b61021261020d366004611c88565b610545565b60405161021f9190611f38565b60405180910390f35b61023b610236366004611e27565b610556565b60405161021f9897969594939291906120de565b6101fd61025d366004611d22565b6105bb565b610275610270366004611c6c565b610620565b60405161021f939291906120c8565b6101fd610292366004611e27565b610644565b61029f610ac6565b60405161021f91906120a8565b6101fd6102ba366004611e27565b610acc565b6102c7610b10565b60405161021f9190611e78565b6101fd6102e2366004611e27565b610b1f565b6101fd6102f5366004611c6c565b610b70565b6101fd610308366004611e27565b610c76565b61032061031b366004611c6c565b610d28565b60405161021f9190611ef4565b6101fd610d97565b6102c7610dbe565b6101fd610dcd565b610320610353366004611c6c565b610e18565b61029f610e82565b6101fd610e88565b6102c7610ecd565b61029f61037e366004611e57565b610edc565b61029f610f1c565b610393610f22565b60405161021f9190612099565b6102c7610f33565b6101fd6103b6366004611e27565b610f42565b61029f6114bf565b6101fd6114c5565b6101fd6103d9366004611c6c565b611748565b61029f6103ec366004611c6c565b6117b6565b6101fd611972565b6102c7611bd2565b610409611be1565b6001600160a01b031661041a610ecd565b6001600160a01b0316146104495760405162461bcd60e51b815260040161044090612001565b60405180910390fd5b6040516370a0823160e01b815281906001600160a01b0382169063a9059cbb90339083906370a0823190610481903090600401611e78565b60206040518083038186803b15801561049957600080fd5b505afa1580156104ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d19190611e3f565b6040518363ffffffff1660e01b81526004016104ee929190611e8c565b602060405180830381600087803b15801561050857600080fd5b505af115801561051c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105409190611e07565b505050565b630a85bd0160e11b95945050505050565b6007818154811061056657600080fd5b60009182526020909120600890910201805460018201546002830154600384015460048501546005860154600687015460079097015495975093959294919390926001600160a01b0391821692908216911688565b6105c3611be1565b6001600160a01b03166105d4610ecd565b6001600160a01b0316146105fa5760405162461bcd60e51b815260040161044090612001565b600680546001600160a01b0319166001600160a01b039390931692909217909155600c55565b60086020526000908152604090206002810154600382015460049092015490919083565b6000600760008154811061066857634e487b7160e01b600052603260045260246000fd5b60009182526020808320338452600891829052604090932060028101549290910290920192508311156106ad5760405162461bcd60e51b815260040161044090612036565b6106b76000610c76565b60006106f182600301546106eb64e8d4a510006106e587600301548760020154611be590919063ffffffff16565b90611bf8565b90611c04565b9050801561083b57600c54156107b5576006546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610732903390600401611e78565b60206040518083038186803b15801561074a57600080fd5b505afa15801561075e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107829190611e3f565b11156107b55760006107a5600d546106e5600c5485611be590919063ffffffff16565b90506107b18282611c10565b9150505b60025460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906107e79033908590600401611e8c565b602060405180830381600087803b15801561080157600080fd5b505af1158015610815573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108399190611e07565b505b8315610a5d576006830154600784015460028401546001600160a01b03928316929091169060009061086d9088611c04565b60028601549091505b81811115610a30576001600160a01b0384166342842e0e30338961089b60018761217a565b815481106108b957634e487b7160e01b600052603260045260246000fd5b90600052602060002001546040518463ffffffff1660e01b81526004016108e293929190611ea5565b600060405180830381600087803b1580156108fc57600080fd5b505af1158015610910573d6000803e3d6000fd5b50505050826001600160a01b03166342842e0e303389600101600186610936919061217a565b8154811061095457634e487b7160e01b600052603260045260246000fd5b90600052602060002001546040518463ffffffff1660e01b815260040161097d93929190611ea5565b600060405180830381600087803b15801561099757600080fd5b505af11580156109ab573d6000803e3d6000fd5b50505050856000018054806109d057634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905585600101805480610a0757634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558080610a2890612191565b915050610876565b506002850154610a409088611c04565b60028601556001860154610a549088611c04565b60018701555050505b610a8164e8d4a510006106e585600301548560020154611be590919063ffffffff16565b600383015560405133907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436490610ab89087906120a8565b60405180910390a250505050565b600b5481565b610ad4611be1565b6001600160a01b0316610ae5610ecd565b6001600160a01b031614610b0b5760405162461bcd60e51b815260040161044090612001565b600b55565b6006546001600160a01b031681565b610b27611be1565b6001600160a01b0316610b38610ecd565b6001600160a01b031614610b5e5760405162461bcd60e51b815260040161044090612001565b6004819055610b6d6000610c76565b50565b610b78611be1565b6001600160a01b0316610b89610ecd565b6001600160a01b031614610baf5760405162461bcd60e51b815260040161044090612001565b6001600160a01b038116610bd55760405162461bcd60e51b815260040161044090611fca565b600380546001600160a01b0319166001600160a01b038381169190911790915560025460405163095ea7b360e01b815291169063095ea7b390610c2090849060001990600401611e8c565b602060405180830381600087803b158015610c3a57600080fd5b505af1158015610c4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c729190611e07565b5050565b600060078281548110610c9957634e487b7160e01b600052603260045260246000fd5b9060005260206000209060080201905080600001544211610cba5750610b6d565b600181015480610ccd5750429055610b6d565b6000610cdd836000015442610edc565b90506000610cf660045483611be590919063ffffffff16565b9050610d19610d0e846106e58464e8d4a51000611be5565b600386015490611c10565b60038501555050429091555050565b6001600160a01b038116600090815260086020908152604091829020600101805483518184028101840190945280845260609392830182828015610d8b57602002820191906000526020600020905b815481526020019060010190808311610d77575b50505050509050919050565b60075460005b81811015610c7257610dae81610c76565b610db7816121a8565b9050610d9d565b6005546001600160a01b031681565b610dd5611be1565b6001600160a01b0316610de6610ecd565b6001600160a01b031614610e0c5760405162461bcd60e51b815260040161044090612001565b610e166000611c1c565b565b6001600160a01b038116600090815260086020908152604091829020805483518184028101840190945280845260609392830182828015610d8b5760200282019190600052602060002090815481526020019060010190808311610d775750505050509050919050565b600a5481565b610e90611be1565b6001600160a01b0316610ea1610ecd565b6001600160a01b031614610ec75760405162461bcd60e51b815260040161044090612001565b42600b55565b6000546001600160a01b031690565b6000600b548211610ef857610ef18284611c04565b9050610f16565b600b548310610f0957506000610f16565b600b54610ef19084611c04565b92915050565b60045481565b600554600160a01b900461ffff1681565b6003546001600160a01b031681565b60006007600081548110610f6657634e487b7160e01b600052603260045260246000fd5b60009182526020808320338452600891829052604084209290910201925090610f8e90610c76565b600281015415611112576000610fc682600301546106eb64e8d4a510006106e587600301548760020154611be590919063ffffffff16565b9050801561111057600c541561108a576006546040516370a0823160e01b81526000916001600160a01b0316906370a0823190611007903390600401611e78565b60206040518083038186803b15801561101f57600080fd5b505afa158015611033573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110579190611e3f565b111561108a57600061107a600d546106e5600c5485611be590919063ffffffff16565b90506110868282611c10565b9150505b60025460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906110bc9033908590600401611e8c565b602060405180830381600087803b1580156110d657600080fd5b505af11580156110ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061110e9190611e07565b505b505b8215611457576006820154600783015460048085015460405163194524e160e21b81526001600160a01b039485169490931692600092859263651493849261115c923391016120b1565b60006040518083038186803b15801561117457600080fd5b505afa158015611188573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111b09190810190611d4d565b90506000826001600160a01b031663651493848760040154336040518363ffffffff1660e01b81526004016111e69291906120b1565b60006040518083038186803b1580156111fe57600080fd5b505afa158015611212573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261123a9190810190611d4d565b90508682511015801561124e575086815110155b61126a5760405162461bcd60e51b815260040161044090611f93565b60005b8781101561142757846001600160a01b03166342842e0e33308685815181106112a657634e487b7160e01b600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b81526004016112cc93929190611ea5565b600060405180830381600087803b1580156112e657600080fd5b505af11580156112fa573d6000803e3d6000fd5b50505050836001600160a01b03166342842e0e333085858151811061132f57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b815260040161135593929190611ea5565b600060405180830381600087803b15801561136f57600080fd5b505af1158015611383573d6000803e3d6000fd5b50505050856000018382815181106113ab57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825460018181018555600094855292909320909201919091558251908701908390839081106113f657634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825460018101845560009384529190922001558061141f816121a8565b91505061126d565b508685600201546114389190612123565b6002860155600186015461144d908890612123565b6001870155505050505b61147b64e8d4a510006106e584600301548460020154611be590919063ffffffff16565b600382015560405133907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c906114b29086906120a8565b60405180910390a2505050565b600c5481565b600060076000815481106114e957634e487b7160e01b600052603260045260246000fd5b600091825260208083203384526008918290526040909320910290910160068101546007820154600284015460018401549395506001600160a01b039283169392909116916115389082611c04565b6001860155805b80156116f7576001600160a01b0384166342842e0e30338861156260018761217a565b8154811061158057634e487b7160e01b600052603260045260246000fd5b90600052602060002001546040518463ffffffff1660e01b81526004016115a993929190611ea5565b600060405180830381600087803b1580156115c357600080fd5b505af11580156115d7573d6000803e3d6000fd5b50505050826001600160a01b03166342842e0e3033886001016001866115fd919061217a565b8154811061161b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001546040518463ffffffff1660e01b815260040161164493929190611ea5565b600060405180830381600087803b15801561165e57600080fd5b505af1158015611672573d6000803e3d6000fd5b505050508460000180548061169757634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055846001018054806116ce57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905580806116ef90612191565b91505061153f565b506000600285018190556003850181905560405133917f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd96959161173991906120a8565b60405180910390a25050505050565b611750611be1565b6001600160a01b0316611761610ecd565b6001600160a01b0316146117875760405162461bcd60e51b815260040161044090612001565b6001600160a01b0381166117ad5760405162461bcd60e51b815260040161044090611f4d565b610b6d81611c1c565b60008060076000815481106117db57634e487b7160e01b600052603260045260246000fd5b600091825260208083206001600160a01b03871684526008918290526040909320910290910160038101546001820154825492945090914211801561181f57508015155b15611871576000611834856000015442610edc565b9050600061184d60045483611be590919063ffffffff16565b905061186c611865846106e58464e8d4a51000611be5565b8590611c10565b935050505b600061189b84600301546106eb64e8d4a510006106e5878960020154611be590919063ffffffff16565b90506000811180156118af57506000600c54115b15611968576006546040516370a0823160e01b81526000916001600160a01b0316906370a08231906118e5908b90600401611e78565b60206040518083038186803b1580156118fd57600080fd5b505afa158015611911573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119359190611e3f565b1115611968576000611958600d546106e5600c5485611be590919063ffffffff16565b90506119648282611c10565b9150505b9695505050505050565b600260015414156119955760405162461bcd60e51b815260040161044090612062565b6002600181905550600060076000815481106119c157634e487b7160e01b600052603260045260246000fd5b600091825260208083203384526008918290526040842092909102019250906119e990610c76565b600281015460009015611b88576000611a2483600301546106eb64e8d4a510006106e588600301548860020154611be590919063ffffffff16565b90508015611b8657600c5415611ae8576006546040516370a0823160e01b81526000916001600160a01b0316906370a0823190611a65903390600401611e78565b60206040518083038186803b158015611a7d57600080fd5b505afa158015611a91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab59190611e3f565b1115611ae8576000611ad8600d546106e5600c5485611be590919063ffffffff16565b9050611ae48282611c10565b9150505b60035460025460058601546040516349a7fc6760e11b81526001600160a01b039384169363934ff8ce93611b2a93908216928792909116903390600401611ec9565b600060405180830381600087803b158015611b4457600080fd5b505af1158015611b58573d6000803e3d6000fd5b50505050611b8064e8d4a510006106e586600301548660020154611be590919063ffffffff16565b60038401555b505b336001600160a01b03167f169f1815ebdea059aac3bb00ec9a9594c7a5ffcb64a17e8392b5d84909a1455682604051611bc191906120a8565b60405180910390a250506001805550565b6002546001600160a01b031681565b3390565b6000611bf1828461215b565b9392505050565b6000611bf1828461213b565b6000611bf1828461217a565b6000611bf18284612123565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215611c7d578081fd5b8135611bf1816121ef565b600080600080600060808688031215611c9f578081fd5b8535611caa816121ef565b94506020860135611cba816121ef565b935060408601359250606086013567ffffffffffffffff80821115611cdd578283fd5b818801915088601f830112611cf0578283fd5b813581811115611cfe578384fd5b896020828501011115611d0f578384fd5b9699959850939650602001949392505050565b60008060408385031215611d34578182fd5b8235611d3f816121ef565b946020939093013593505050565b60006020808385031215611d5f578182fd5b825167ffffffffffffffff80821115611d76578384fd5b818501915085601f830112611d89578384fd5b815181811115611d9b57611d9b6121d9565b83810260405185828201018181108582111715611dba57611dba6121d9565b604052828152858101935084860182860187018a1015611dd8578788fd5b8795505b83861015611dfa578051855260019590950194938601938601611ddc565b5098975050505050505050565b600060208284031215611e18578081fd5b81518015158114611bf1578182fd5b600060208284031215611e38578081fd5b5035919050565b600060208284031215611e50578081fd5b5051919050565b60008060408385031215611e69578182fd5b50508035926020909101359150565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03948516815260208101939093529083166040830152909116606082015260800190565b6020808252825182820181905260009190848201906040850190845b81811015611f2c57835183529284019291840191600101611f10565b50909695505050505050565b6001600160e01b031991909116815260200190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526018908201527f6465706f7369743a204e6f7420656e6f756768204e4654730000000000000000604082015260600190565b6020808252601d908201527f7365745a617054696d654c6f636b3a206e6f7420616464726573732030000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601290820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b61ffff91909116815260200190565b90815260200190565b9182526001600160a01b0316602082015260400190565b9283526020830191909152604082015260600190565b97885260208801969096526040870194909452606086019290925260808501526001600160a01b0390811660a085015290811660c08401521660e08201526101000190565b60008219821115612136576121366121c3565b500190565b60008261215657634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615612175576121756121c3565b500290565b60008282101561218c5761218c6121c3565b500390565b6000816121a0576121a06121c3565b506000190190565b60006000198214156121bc576121bc6121c3565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610b6d57600080fdfea2646970667358221220fc22f5d9e3612a6f4b71e81ec57e48044456fb561c25b347a18bffab35e24f1264736f6c63430008000033000000000000000000000000fc74d58550485e54dc3a001f6f371741dceea094000000000000000000000000000000000000000000000000002972c582612acc000000000000000000000000000000000000000000000000000000000000dead0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000620e85fb000000000000000000000000d3c00fa344c3b73db63b604a84624ee824ddf751000000000000000000000000662db0c6fa77041fe4901149558cc70ca1c8e8740000000000000000000000002ecc9ab9403dac13254742f771f57abf78f263bc00000000000000000000000024186da413e45c42abb6b536643719886763bf810000000000000000000000000000000000000000000000000000000000000002
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101e55760003560e01c8063715018a61161010f578063a7a21712116100a2578063f2fde38b11610071578063f2fde38b146103cb578063f40f0f52146103de578063f69e2046146103f1578063f7c618c1146103f9576101e5565b8063a7a21712146103a0578063b6b55f25146103a8578063c2a0fb04146103bb578063db2e21bc146103c3576101e5565b80638da5cb5b116100de5780638da5cb5b146103685780638dbb1e3a146103705780638f10369a14610383578063a4da982d1461038b576101e5565b8063715018a61461033d57806371cad6961461034557806378e979251461035857806380dc067214610360576101e5565b8063375cf3de1161018757806351eb05a61161015657806351eb05a6146102fa57806358c6b6b71461030d578063630b5ba11461032d57806370d5ae0514610335576101e5565b8063375cf3de146102ac5780633c86abfc146102bf5780634004c8e7146102d457806342435175146102e7576101e5565b806315bf0bc1116101c357806315bf0bc11461024f5780631959a002146102625780632e1a7d4d146102845780633197cbb614610297576101e5565b806301681a62146101ea578063150b7a02146101ff5780631526fe2714610228575b600080fd5b6101fd6101f8366004611c6c565b610401565b005b61021261020d366004611c88565b610545565b60405161021f9190611f38565b60405180910390f35b61023b610236366004611e27565b610556565b60405161021f9897969594939291906120de565b6101fd61025d366004611d22565b6105bb565b610275610270366004611c6c565b610620565b60405161021f939291906120c8565b6101fd610292366004611e27565b610644565b61029f610ac6565b60405161021f91906120a8565b6101fd6102ba366004611e27565b610acc565b6102c7610b10565b60405161021f9190611e78565b6101fd6102e2366004611e27565b610b1f565b6101fd6102f5366004611c6c565b610b70565b6101fd610308366004611e27565b610c76565b61032061031b366004611c6c565b610d28565b60405161021f9190611ef4565b6101fd610d97565b6102c7610dbe565b6101fd610dcd565b610320610353366004611c6c565b610e18565b61029f610e82565b6101fd610e88565b6102c7610ecd565b61029f61037e366004611e57565b610edc565b61029f610f1c565b610393610f22565b60405161021f9190612099565b6102c7610f33565b6101fd6103b6366004611e27565b610f42565b61029f6114bf565b6101fd6114c5565b6101fd6103d9366004611c6c565b611748565b61029f6103ec366004611c6c565b6117b6565b6101fd611972565b6102c7611bd2565b610409611be1565b6001600160a01b031661041a610ecd565b6001600160a01b0316146104495760405162461bcd60e51b815260040161044090612001565b60405180910390fd5b6040516370a0823160e01b815281906001600160a01b0382169063a9059cbb90339083906370a0823190610481903090600401611e78565b60206040518083038186803b15801561049957600080fd5b505afa1580156104ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d19190611e3f565b6040518363ffffffff1660e01b81526004016104ee929190611e8c565b602060405180830381600087803b15801561050857600080fd5b505af115801561051c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105409190611e07565b505050565b630a85bd0160e11b95945050505050565b6007818154811061056657600080fd5b60009182526020909120600890910201805460018201546002830154600384015460048501546005860154600687015460079097015495975093959294919390926001600160a01b0391821692908216911688565b6105c3611be1565b6001600160a01b03166105d4610ecd565b6001600160a01b0316146105fa5760405162461bcd60e51b815260040161044090612001565b600680546001600160a01b0319166001600160a01b039390931692909217909155600c55565b60086020526000908152604090206002810154600382015460049092015490919083565b6000600760008154811061066857634e487b7160e01b600052603260045260246000fd5b60009182526020808320338452600891829052604090932060028101549290910290920192508311156106ad5760405162461bcd60e51b815260040161044090612036565b6106b76000610c76565b60006106f182600301546106eb64e8d4a510006106e587600301548760020154611be590919063ffffffff16565b90611bf8565b90611c04565b9050801561083b57600c54156107b5576006546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610732903390600401611e78565b60206040518083038186803b15801561074a57600080fd5b505afa15801561075e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107829190611e3f565b11156107b55760006107a5600d546106e5600c5485611be590919063ffffffff16565b90506107b18282611c10565b9150505b60025460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906107e79033908590600401611e8c565b602060405180830381600087803b15801561080157600080fd5b505af1158015610815573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108399190611e07565b505b8315610a5d576006830154600784015460028401546001600160a01b03928316929091169060009061086d9088611c04565b60028601549091505b81811115610a30576001600160a01b0384166342842e0e30338961089b60018761217a565b815481106108b957634e487b7160e01b600052603260045260246000fd5b90600052602060002001546040518463ffffffff1660e01b81526004016108e293929190611ea5565b600060405180830381600087803b1580156108fc57600080fd5b505af1158015610910573d6000803e3d6000fd5b50505050826001600160a01b03166342842e0e303389600101600186610936919061217a565b8154811061095457634e487b7160e01b600052603260045260246000fd5b90600052602060002001546040518463ffffffff1660e01b815260040161097d93929190611ea5565b600060405180830381600087803b15801561099757600080fd5b505af11580156109ab573d6000803e3d6000fd5b50505050856000018054806109d057634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905585600101805480610a0757634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558080610a2890612191565b915050610876565b506002850154610a409088611c04565b60028601556001860154610a549088611c04565b60018701555050505b610a8164e8d4a510006106e585600301548560020154611be590919063ffffffff16565b600383015560405133907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436490610ab89087906120a8565b60405180910390a250505050565b600b5481565b610ad4611be1565b6001600160a01b0316610ae5610ecd565b6001600160a01b031614610b0b5760405162461bcd60e51b815260040161044090612001565b600b55565b6006546001600160a01b031681565b610b27611be1565b6001600160a01b0316610b38610ecd565b6001600160a01b031614610b5e5760405162461bcd60e51b815260040161044090612001565b6004819055610b6d6000610c76565b50565b610b78611be1565b6001600160a01b0316610b89610ecd565b6001600160a01b031614610baf5760405162461bcd60e51b815260040161044090612001565b6001600160a01b038116610bd55760405162461bcd60e51b815260040161044090611fca565b600380546001600160a01b0319166001600160a01b038381169190911790915560025460405163095ea7b360e01b815291169063095ea7b390610c2090849060001990600401611e8c565b602060405180830381600087803b158015610c3a57600080fd5b505af1158015610c4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c729190611e07565b5050565b600060078281548110610c9957634e487b7160e01b600052603260045260246000fd5b9060005260206000209060080201905080600001544211610cba5750610b6d565b600181015480610ccd5750429055610b6d565b6000610cdd836000015442610edc565b90506000610cf660045483611be590919063ffffffff16565b9050610d19610d0e846106e58464e8d4a51000611be5565b600386015490611c10565b60038501555050429091555050565b6001600160a01b038116600090815260086020908152604091829020600101805483518184028101840190945280845260609392830182828015610d8b57602002820191906000526020600020905b815481526020019060010190808311610d77575b50505050509050919050565b60075460005b81811015610c7257610dae81610c76565b610db7816121a8565b9050610d9d565b6005546001600160a01b031681565b610dd5611be1565b6001600160a01b0316610de6610ecd565b6001600160a01b031614610e0c5760405162461bcd60e51b815260040161044090612001565b610e166000611c1c565b565b6001600160a01b038116600090815260086020908152604091829020805483518184028101840190945280845260609392830182828015610d8b5760200282019190600052602060002090815481526020019060010190808311610d775750505050509050919050565b600a5481565b610e90611be1565b6001600160a01b0316610ea1610ecd565b6001600160a01b031614610ec75760405162461bcd60e51b815260040161044090612001565b42600b55565b6000546001600160a01b031690565b6000600b548211610ef857610ef18284611c04565b9050610f16565b600b548310610f0957506000610f16565b600b54610ef19084611c04565b92915050565b60045481565b600554600160a01b900461ffff1681565b6003546001600160a01b031681565b60006007600081548110610f6657634e487b7160e01b600052603260045260246000fd5b60009182526020808320338452600891829052604084209290910201925090610f8e90610c76565b600281015415611112576000610fc682600301546106eb64e8d4a510006106e587600301548760020154611be590919063ffffffff16565b9050801561111057600c541561108a576006546040516370a0823160e01b81526000916001600160a01b0316906370a0823190611007903390600401611e78565b60206040518083038186803b15801561101f57600080fd5b505afa158015611033573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110579190611e3f565b111561108a57600061107a600d546106e5600c5485611be590919063ffffffff16565b90506110868282611c10565b9150505b60025460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906110bc9033908590600401611e8c565b602060405180830381600087803b1580156110d657600080fd5b505af11580156110ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061110e9190611e07565b505b505b8215611457576006820154600783015460048085015460405163194524e160e21b81526001600160a01b039485169490931692600092859263651493849261115c923391016120b1565b60006040518083038186803b15801561117457600080fd5b505afa158015611188573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111b09190810190611d4d565b90506000826001600160a01b031663651493848760040154336040518363ffffffff1660e01b81526004016111e69291906120b1565b60006040518083038186803b1580156111fe57600080fd5b505afa158015611212573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261123a9190810190611d4d565b90508682511015801561124e575086815110155b61126a5760405162461bcd60e51b815260040161044090611f93565b60005b8781101561142757846001600160a01b03166342842e0e33308685815181106112a657634e487b7160e01b600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b81526004016112cc93929190611ea5565b600060405180830381600087803b1580156112e657600080fd5b505af11580156112fa573d6000803e3d6000fd5b50505050836001600160a01b03166342842e0e333085858151811061132f57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518463ffffffff1660e01b815260040161135593929190611ea5565b600060405180830381600087803b15801561136f57600080fd5b505af1158015611383573d6000803e3d6000fd5b50505050856000018382815181106113ab57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825460018181018555600094855292909320909201919091558251908701908390839081106113f657634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825460018101845560009384529190922001558061141f816121a8565b91505061126d565b508685600201546114389190612123565b6002860155600186015461144d908890612123565b6001870155505050505b61147b64e8d4a510006106e584600301548460020154611be590919063ffffffff16565b600382015560405133907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c906114b29086906120a8565b60405180910390a2505050565b600c5481565b600060076000815481106114e957634e487b7160e01b600052603260045260246000fd5b600091825260208083203384526008918290526040909320910290910160068101546007820154600284015460018401549395506001600160a01b039283169392909116916115389082611c04565b6001860155805b80156116f7576001600160a01b0384166342842e0e30338861156260018761217a565b8154811061158057634e487b7160e01b600052603260045260246000fd5b90600052602060002001546040518463ffffffff1660e01b81526004016115a993929190611ea5565b600060405180830381600087803b1580156115c357600080fd5b505af11580156115d7573d6000803e3d6000fd5b50505050826001600160a01b03166342842e0e3033886001016001866115fd919061217a565b8154811061161b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001546040518463ffffffff1660e01b815260040161164493929190611ea5565b600060405180830381600087803b15801561165e57600080fd5b505af1158015611672573d6000803e3d6000fd5b505050508460000180548061169757634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055846001018054806116ce57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905580806116ef90612191565b91505061153f565b506000600285018190556003850181905560405133917f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd96959161173991906120a8565b60405180910390a25050505050565b611750611be1565b6001600160a01b0316611761610ecd565b6001600160a01b0316146117875760405162461bcd60e51b815260040161044090612001565b6001600160a01b0381166117ad5760405162461bcd60e51b815260040161044090611f4d565b610b6d81611c1c565b60008060076000815481106117db57634e487b7160e01b600052603260045260246000fd5b600091825260208083206001600160a01b03871684526008918290526040909320910290910160038101546001820154825492945090914211801561181f57508015155b15611871576000611834856000015442610edc565b9050600061184d60045483611be590919063ffffffff16565b905061186c611865846106e58464e8d4a51000611be5565b8590611c10565b935050505b600061189b84600301546106eb64e8d4a510006106e5878960020154611be590919063ffffffff16565b90506000811180156118af57506000600c54115b15611968576006546040516370a0823160e01b81526000916001600160a01b0316906370a08231906118e5908b90600401611e78565b60206040518083038186803b1580156118fd57600080fd5b505afa158015611911573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119359190611e3f565b1115611968576000611958600d546106e5600c5485611be590919063ffffffff16565b90506119648282611c10565b9150505b9695505050505050565b600260015414156119955760405162461bcd60e51b815260040161044090612062565b6002600181905550600060076000815481106119c157634e487b7160e01b600052603260045260246000fd5b600091825260208083203384526008918290526040842092909102019250906119e990610c76565b600281015460009015611b88576000611a2483600301546106eb64e8d4a510006106e588600301548860020154611be590919063ffffffff16565b90508015611b8657600c5415611ae8576006546040516370a0823160e01b81526000916001600160a01b0316906370a0823190611a65903390600401611e78565b60206040518083038186803b158015611a7d57600080fd5b505afa158015611a91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab59190611e3f565b1115611ae8576000611ad8600d546106e5600c5485611be590919063ffffffff16565b9050611ae48282611c10565b9150505b60035460025460058601546040516349a7fc6760e11b81526001600160a01b039384169363934ff8ce93611b2a93908216928792909116903390600401611ec9565b600060405180830381600087803b158015611b4457600080fd5b505af1158015611b58573d6000803e3d6000fd5b50505050611b8064e8d4a510006106e586600301548660020154611be590919063ffffffff16565b60038401555b505b336001600160a01b03167f169f1815ebdea059aac3bb00ec9a9594c7a5ffcb64a17e8392b5d84909a1455682604051611bc191906120a8565b60405180910390a250506001805550565b6002546001600160a01b031681565b3390565b6000611bf1828461215b565b9392505050565b6000611bf1828461213b565b6000611bf1828461217a565b6000611bf18284612123565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215611c7d578081fd5b8135611bf1816121ef565b600080600080600060808688031215611c9f578081fd5b8535611caa816121ef565b94506020860135611cba816121ef565b935060408601359250606086013567ffffffffffffffff80821115611cdd578283fd5b818801915088601f830112611cf0578283fd5b813581811115611cfe578384fd5b896020828501011115611d0f578384fd5b9699959850939650602001949392505050565b60008060408385031215611d34578182fd5b8235611d3f816121ef565b946020939093013593505050565b60006020808385031215611d5f578182fd5b825167ffffffffffffffff80821115611d76578384fd5b818501915085601f830112611d89578384fd5b815181811115611d9b57611d9b6121d9565b83810260405185828201018181108582111715611dba57611dba6121d9565b604052828152858101935084860182860187018a1015611dd8578788fd5b8795505b83861015611dfa578051855260019590950194938601938601611ddc565b5098975050505050505050565b600060208284031215611e18578081fd5b81518015158114611bf1578182fd5b600060208284031215611e38578081fd5b5035919050565b600060208284031215611e50578081fd5b5051919050565b60008060408385031215611e69578182fd5b50508035926020909101359150565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03948516815260208101939093529083166040830152909116606082015260800190565b6020808252825182820181905260009190848201906040850190845b81811015611f2c57835183529284019291840191600101611f10565b50909695505050505050565b6001600160e01b031991909116815260200190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526018908201527f6465706f7369743a204e6f7420656e6f756768204e4654730000000000000000604082015260600190565b6020808252601d908201527f7365745a617054696d654c6f636b3a206e6f7420616464726573732030000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601290820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b61ffff91909116815260200190565b90815260200190565b9182526001600160a01b0316602082015260400190565b9283526020830191909152604082015260600190565b97885260208801969096526040870194909452606086019290925260808501526001600160a01b0390811660a085015290811660c08401521660e08201526101000190565b60008219821115612136576121366121c3565b500190565b60008261215657634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615612175576121756121c3565b500290565b60008282101561218c5761218c6121c3565b500390565b6000816121a0576121a06121c3565b506000190190565b60006000198214156121bc576121bc6121c3565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610b6d57600080fdfea2646970667358221220fc22f5d9e3612a6f4b71e81ec57e48044456fb561c25b347a18bffab35e24f1264736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000fc74d58550485e54dc3a001f6f371741dceea094000000000000000000000000000000000000000000000000002972c582612acc000000000000000000000000000000000000000000000000000000000000dead0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000620e85fb000000000000000000000000d3c00fa344c3b73db63b604a84624ee824ddf751000000000000000000000000662db0c6fa77041fe4901149558cc70ca1c8e8740000000000000000000000002ecc9ab9403dac13254742f771f57abf78f263bc00000000000000000000000024186da413e45c42abb6b536643719886763bf810000000000000000000000000000000000000000000000000000000000000002
-----Decoded View---------------
Arg [0] : _rewardToken (address): 0xfC74d58550485e54dc3A001f6F371741dCEEA094
Arg [1] : _rewardPerSecond (uint256): 11666666666666700
Arg [2] : _burnAddress (address): 0x000000000000000000000000000000000000dEaD
Arg [3] : _depositFeeBP (uint16): 0
Arg [4] : _startTime (uint256): 0
Arg [5] : _bonusEndTime (uint256): 1645118971
Arg [6] : _zapper (address): 0xD3c00FA344C3B73Db63b604A84624ee824ddF751
Arg [7] : _targetLP (address): 0x662dB0c6Fa77041FE4901149558Cc70ca1C8e874
Arg [8] : _nft1 (address): 0x2ECC9aB9403DaC13254742f771f57ABf78F263Bc
Arg [9] : _nft2 (address): 0x24186DA413e45c42aBB6B536643719886763bf81
Arg [10] : _poolRarity (uint256): 2
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 000000000000000000000000fc74d58550485e54dc3a001f6f371741dceea094
Arg [1] : 000000000000000000000000000000000000000000000000002972c582612acc
Arg [2] : 000000000000000000000000000000000000000000000000000000000000dead
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 00000000000000000000000000000000000000000000000000000000620e85fb
Arg [6] : 000000000000000000000000d3c00fa344c3b73db63b604a84624ee824ddf751
Arg [7] : 000000000000000000000000662db0c6fa77041fe4901149558cc70ca1c8e874
Arg [8] : 0000000000000000000000002ecc9ab9403dac13254742f771f57abf78f263bc
Arg [9] : 00000000000000000000000024186da413e45c42abb6b536643719886763bf81
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000002
Loading...
Loading
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.