More Info
Private Name Tags
ContractCreator
Latest 9 from a total of 9 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Unstake | 20229583 | 108 days ago | IN | 0 ETH | 0.00033164 | ||||
Stake | 20228682 | 108 days ago | IN | 0 ETH | 0.00147568 | ||||
Unstake | 20228664 | 108 days ago | IN | 0 ETH | 0.00065411 | ||||
Stake | 20228632 | 108 days ago | IN | 0 ETH | 0.00157015 | ||||
Unstake | 20228550 | 108 days ago | IN | 0 ETH | 0.00198488 | ||||
Stake | 20228535 | 108 days ago | IN | 0 ETH | 0.00332148 | ||||
Stake | 20228521 | 108 days ago | IN | 0 ETH | 0.00200991 | ||||
Start Staking Pe... | 20228453 | 108 days ago | IN | 0 ETH | 0.00067067 | ||||
0x60e06040 | 20228404 | 108 days ago | IN | 0 ETH | 0.01411609 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
FTStaking
Compiler Version
v0.8.16+commit.07a7930e
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/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; /// @author Serhii /// @title ERC721 NFT Staking Contract /// @notice Staking Contract that uses the Synthetix Staking model to distribute ERC20 token rewards in a dynamic way, /// proportionally based on the amount of ERC721 tokens staked by each staker at any given time. contract FTStaking is ERC721Holder, Ownable { using SafeERC20 for IERC20; using SafeMath for uint256; IERC20 public immutable rewardToken; IERC721 public immutable nftCollection; IERC20 public immutable ftStaked; uint256 public maxSupply; uint256 public initialReward; uint256 public claimedTime; mapping(address => uint256) private rewards; mapping(uint256 => address) public stakedAssets; mapping(address => uint256[]) private tokensStaked; mapping(uint256 => uint256) public tokenIdToIndex; mapping(uint256 => uint256) public tokenIdTimeStamp; mapping(address => uint256) public totalEarned; /// @param _nftCollection the address of the ERC721 Contract /// @param _rewardToken the address of the ERC20 token used for rewards constructor(IERC721 _nftCollection, IERC20 _rewardToken, IERC20 _ftStaked) { nftCollection = _nftCollection; rewardToken = _rewardToken; ftStaked = _ftStaked; claimedTime = 60 * 60 * 24 * 30; } /// @notice functon called by the users to Stake NFTs /// @param tokenIds array of Token IDs of the NFTs to be staked /// @dev the Token IDs have to be prevoiusly approved for transfer in the /// ERC721 contract with the address of this contract function stake(uint256[] calldata tokenIds) external updateReward(msg.sender) { require(tokenIds.length != 0, "Staking: No tokenIds provided"); require(maxSupply > 0, "Staking: Max supply exceed"); uint256 amount = tokenIds.length; for (uint256 i; i < amount;) { nftCollection.safeTransferFrom(msg.sender, address(this), tokenIds[i]); stakedAssets[tokenIds[i]] = msg.sender; tokensStaked[msg.sender].push(tokenIds[i]); tokenIdToIndex[tokenIds[i]] = tokensStaked[msg.sender].length - 1; tokenIdTimeStamp[tokenIds[i]] = block.timestamp; unchecked { i++; } } ftStaked.transfer(msg.sender, amount * 1e1); emit Staked(msg.sender, tokenIds); } /// @notice function called by the user to unstake NFTs from staking /// @param tokenIds array of Token IDs of the NFTs to be unstake function unstake(uint256[] memory tokenIds) public updateReward(msg.sender) { require(tokenIds.length != 0, "Staking: No tokenIds provided"); if(rewards[msg.sender] > 0 ) { claimRewards(); totalEarned[msg.sender] = 0; } for (uint256 i; i < tokenIds.length;) { require(stakedAssets[tokenIds[i]] == msg.sender, "Staking: Not the staker of the token"); delete stakedAssets[tokenIds[i]]; uint256[] storage userTokens = tokensStaked[msg.sender]; uint256 userTokensAmount = userTokens.length - 1; if (tokenIdToIndex[tokenIds[i]] != userTokensAmount) { userTokens[tokenIdToIndex[tokenIds[i]]] = userTokens[userTokensAmount]; tokenIdToIndex[userTokens[userTokensAmount]] = tokenIdToIndex[tokenIds[i]]; } userTokens.pop(); nftCollection.safeTransferFrom(address(this), msg.sender, tokenIds[i]); unchecked { i++; } } ftStaked.transferFrom(msg.sender, address(this), tokenIds.length * 1e1); emit Unstaked(msg.sender, tokenIds); } /// @notice function called by the user to claim his accumulated rewards function claimRewards() public updateReward(msg.sender) { require(rewards[msg.sender] > 0, "Empty rewards"); totalEarned[msg.sender] += rewards[msg.sender]; rewardToken.safeTransfer(msg.sender, rewards[msg.sender]); emit RewardPaid(msg.sender, rewards[msg.sender]); delete rewards[msg.sender]; } /// @notice function called by the user to unstake all NFTs and claim the rewards in one transaction function unstakeAll() external updateReward(msg.sender) { unstake(tokensStaked[msg.sender]); } /// @notice function useful for Front End to see the stake and rewards for users /// @param _user the address of the user to get informations for /// @return _tokensStaked an array of NFT Token IDs that are staked by the user /// @return _availableRewards the rewards accumulated by the user /// @return _totalEarned the sum of rewards function userStakeInfo(address _user) public view returns (uint256[] memory _tokensStaked, uint256 _availableRewards, uint256 _totalEarned) { uint256 availableRewards; if(calculateRewards(_user) > totalEarned[_user] ) { availableRewards = calculateRewards(_user) - totalEarned[_user]; } _tokensStaked = tokensStaked[_user]; _availableRewards= availableRewards; _totalEarned = totalEarned[_user]; } /// @notice getter function to get the reward per month for staking one NFT /// @param _stakedMonth the period of token staked /// @return _rewardPerToken the amount of token per month rewarded for staking one NFT function getRewardPerToken(uint256 _stakedMonth) public view returns (uint256 _rewardPerToken) { if(_stakedMonth == 1) { return initialReward; } else if( _stakedMonth > 1 && _stakedMonth <= 3 ) { return ( initialReward + initialReward / 2 ) * _stakedMonth - ( initialReward / 2 ); } else if(_stakedMonth > 3 && _stakedMonth <= 6) { return initialReward * (_stakedMonth * 2 - 2) ; } else if(_stakedMonth > 6) { return initialReward * (_stakedMonth * 3 - 8); } else { return 0; } } /// @notice function for the Owner of the Contract to start a Staking period and set the /// amount of ERC20 Tokens to be distributed as rewards in said period /// @param _maxSupply the maximum rewards amount for the staking /// @param _initialReward the initial rewards amount for the montly staking /// @dev the Staking Contract have to already own enough Rewards Tokens to distribute all the rewards, /// so make sure to send all the tokens to the contract before calling this function function startStakingPeriod(uint256 _maxSupply, uint256 _initialReward) external onlyOwner { require(_maxSupply > 0, "Staking: MaxSupply must be greater than 0"); require(_initialReward > 0, "Staking: InitialReward must be greater than 0"); require(_maxSupply > _initialReward, "Staking: MaxSupply must be greater than initialReward"); initialReward = _initialReward; maxSupply = _maxSupply; emit StakingStarted(_maxSupply, _initialReward); } /// @notice used to calculate the earned rewards for a user /// @param _user the address of the user to calculate available rewards for /// @return _rewards the amount of tokens available as rewards for the passed address function calculateRewards(address _user) public view returns (uint256 _rewards) { uint256 totalRewards; for(uint256 i; i < tokensStaked[_user].length;) { uint256 stakedPeriod = SafeMath.div((block.timestamp - tokenIdTimeStamp[tokensStaked[_user][i]]), claimedTime); if(stakedPeriod > 0 ) { totalRewards += getRewardPerToken(stakedPeriod); } unchecked { i++; } } if(totalRewards >= maxSupply) totalRewards = maxSupply; return totalRewards; } function setClaimTime(uint256 _claimTime) public onlyOwner() { claimedTime = _claimTime; } function setInitialReward(uint256 _initialReward) public onlyOwner() { initialReward = _initialReward; } /// @notice modifier used to keep track of the dynamic rewards for user each time a deposit or unstake is made modifier updateReward(address account) { if (account != address(0)) { rewards[account] = calculateRewards(account) - totalEarned[account]; maxSupply -= rewards[account]; } _; } event StakingStarted(uint256 mxsupply, uint256 initReward); event Staked(address indexed user, uint256[] tokenIds); event Unstaked(address indexed user, uint256[] tokenIds); event RewardPaid(address indexed user, uint256 reward); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev 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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) 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 `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol) pragma solidity ^0.8.0; import "../IERC721Receiver.sol"; /** * @dev Implementation of the {IERC721Receiver} interface. * * Accepts all token transfers. * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}. */ contract ERC721Holder is IERC721Receiver { /** * @dev See {IERC721Receiver-onERC721Received}. * * Always returns `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address, address, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction 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; } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC721","name":"_nftCollection","type":"address"},{"internalType":"contract IERC20","name":"_rewardToken","type":"address"},{"internalType":"contract IERC20","name":"_ftStaked","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"mxsupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"initReward","type":"uint256"}],"name":"StakingStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"Unstaked","type":"event"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"calculateRewards","outputs":[{"internalType":"uint256","name":"_rewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ftStaked","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakedMonth","type":"uint256"}],"name":"getRewardPerToken","outputs":[{"internalType":"uint256","name":"_rewardPerToken","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftCollection","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","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":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimTime","type":"uint256"}],"name":"setClaimTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_initialReward","type":"uint256"}],"name":"setInitialReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakedAssets","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_initialReward","type":"uint256"}],"name":"startStakingPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdTimeStamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalEarned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unstakeAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"userStakeInfo","outputs":[{"internalType":"uint256[]","name":"_tokensStaked","type":"uint256[]"},{"internalType":"uint256","name":"_availableRewards","type":"uint256"},{"internalType":"uint256","name":"_totalEarned","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60e06040523480156200001157600080fd5b5060405162001c8a38038062001c8a8339810160408190526200003491620000cd565b6200003f3362000064565b6001600160a01b0392831660a0529082166080521660c05262278d0060035562000121565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114620000ca57600080fd5b50565b600080600060608486031215620000e357600080fd5b8351620000f081620000b4565b60208501519093506200010381620000b4565b60408501519092506200011681620000b4565b809150509250925092565b60805160a05160c051611b16620001746000396000818161027d015281816106b4015261112b0152600081816102bc015281816104ce015261106701526000818161037d015261097f0152611b166000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c806364d23d9d116100c3578063abee967c1161007c578063abee967c14610340578063d5abeb0114610349578063e449f34114610352578063f2fde38b14610365578063f7c618c114610378578063fd1950091461039f57600080fd5b806364d23d9d146102785780636588103b146102b75780636af7a5cc146102de578063715018a6146102fe5780637d8fc88e146103065780638da5cb5b1461032f57600080fd5b8063372500ab11610115578063372500ab146101f5578063421cc337146101fd57806349a14918146102105780634ead432714610223578063649aca4a1461024557806364ab86751461026557600080fd5b80630cd80f261461015d5780630fbf0a9314610179578063120d56721461018e578063150b7a02146101a157806326ec0fbe146101cd57806335322f37146101ed575b600080fd5b61016660035481565b6040519081526020015b60405180910390f35b61018c610187366004611667565b6103b2565b005b61018c61019c3660046116dc565b61079e565b6101b46101af366004611753565b6107ab565b6040516001600160e01b03199091168152602001610170565b6101666101db3660046116dc565b60076020526000908152604090205481565b61018c6107bc565b61018c610887565b61018c61020b3660046116dc565b610a04565b61018c61021e366004611813565b610a11565b610236610231366004611835565b610b95565b6040516101709392919061188b565b610166610253366004611835565b60096020526000908152604090205481565b610166610273366004611835565b610c7d565b61029f7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610170565b61029f7f000000000000000000000000000000000000000000000000000000000000000081565b6101666102ec3660046116dc565b60086020526000908152604090205481565b61018c610d40565b61029f6103143660046116dc565b6005602052600090815260409020546001600160a01b031681565b6000546001600160a01b031661029f565b61016660025481565b61016660015481565b61018c6103603660046118b0565b610d54565b61018c610373366004611835565b611226565b61029f7f000000000000000000000000000000000000000000000000000000000000000081565b6101666103ad3660046116dc565b61129c565b338015610418576001600160a01b0381166000908152600960205260409020546103db82610c7d565b6103e5919061196c565b6001600160a01b03821660009081526004602052604081208290556001805490919061041290849061196c565b90915550505b600082900361046e5760405162461bcd60e51b815260206004820152601d60248201527f5374616b696e673a204e6f20746f6b656e4964732070726f766964656400000060448201526064015b60405180910390fd5b6000600154116104c05760405162461bcd60e51b815260206004820152601a60248201527f5374616b696e673a204d617820737570706c79206578636565640000000000006044820152606401610465565b8160005b818110156106a9577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166342842e0e333088888681811061050f5761050f61197f565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561056657600080fd5b505af115801561057a573d6000803e3d6000fd5b5050505033600560008787858181106105955761059561197f565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060066000336001600160a01b03166001600160a01b031681526020019081526020016000208585838181106106055761060561197f565b8354600181810186556000958652602080872093810295909501359290910191909155338452600690925250604090912054610641919061196c565b600760008787858181106106575761065761197f565b9050602002013581526020019081526020016000208190555042600860008787858181106106875761068761197f565b60209081029290920135835250810191909152604001600020556001016104c4565b506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663a9059cbb336106e584600a611995565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610730573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075491906119b4565b50336001600160a01b03167f134b166c6094cc1ccbf1e3353ce5c3cd9fd29869051bdb999895854d77cc5ef685856040516107909291906119d6565b60405180910390a250505050565b6107a661135e565b600255565b630a85bd0160e11b5b949350505050565b338015610822576001600160a01b0381166000908152600960205260409020546107e582610c7d565b6107ef919061196c565b6001600160a01b03821660009081526004602052604081208290556001805490919061081c90849061196c565b90915550505b336000908152600660209081526040918290208054835181840281018401909452808452610884939283018282801561087a57602002820191906000526020600020905b815481526020019060010190808311610866575b5050505050610d54565b50565b3380156108ed576001600160a01b0381166000908152600960205260409020546108b082610c7d565b6108ba919061196c565b6001600160a01b0382166000908152600460205260408120829055600180549091906108e790849061196c565b90915550505b336000908152600460205260409020546109395760405162461bcd60e51b815260206004820152600d60248201526c456d707479207265776172647360981b6044820152606401610465565b3360009081526004602090815260408083205460099092528220805491929091610964908490611a0f565b9091555050336000818152600460205260409020546109ad917f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316916113b8565b336000818152600460209081526040918290205491519182527fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486910160405180910390a25033600090815260046020526040812055565b610a0c61135e565b600355565b610a1961135e565b60008211610a7b5760405162461bcd60e51b815260206004820152602960248201527f5374616b696e673a204d6178537570706c79206d75737420626520677265617460448201526806572207468616e20360bc1b6064820152608401610465565b60008111610ae15760405162461bcd60e51b815260206004820152602d60248201527f5374616b696e673a20496e697469616c526577617264206d757374206265206760448201526c0726561746572207468616e203609c1b6064820152608401610465565b808211610b4e5760405162461bcd60e51b815260206004820152603560248201527f5374616b696e673a204d6178537570706c79206d757374206265206772656174604482015274195c881d1a185b881a5b9a5d1a585b14995dd85c99605a1b6064820152608401610465565b6002819055600182905560408051838152602081018390527f3858e6acd05259f028111009ba00d900c7c0b1803ac6cbdde1d1ab4c58f27060910160405180910390a15050565b6001600160a01b0381166000908152600960205260408120546060919081908190610bbf86610c7d565b1115610bf4576001600160a01b038516600090815260096020526040902054610be786610c7d565b610bf1919061196c565b90505b6001600160a01b03851660009081526006602090815260409182902080548351818402810184019094528084529091830182828015610c5257602002820191906000526020600020905b815481526020019060010190808311610c3e575b505050506001600160a01b039690961660009081526009602052604090205490969195509350915050565b60008060005b6001600160a01b038416600090815260066020526040902054811015610d2b576001600160a01b03841660009081526006602052604081208054610d049160089184919086908110610cd757610cd761197f565b906000526020600020015481526020019081526020016000205442610cfc919061196c565b60035461140f565b90508015610d2257610d158161129c565b610d1f9084611a0f565b92505b50600101610c83565b506001548110610d3a57506001545b92915050565b610d4861135e565b610d526000611422565b565b338015610dba576001600160a01b038116600090815260096020526040902054610d7d82610c7d565b610d87919061196c565b6001600160a01b038216600090815260046020526040812082905560018054909190610db490849061196c565b90915550505b8151600003610e0b5760405162461bcd60e51b815260206004820152601d60248201527f5374616b696e673a204e6f20746f6b656e4964732070726f76696465640000006044820152606401610465565b3360009081526004602052604090205415610e3957610e28610887565b336000908152600960205260408120555b60005b825181101561112857336001600160a01b031660056000858481518110610e6557610e6561197f565b6020908102919091018101518252810191909152604001600020546001600160a01b031614610ee25760405162461bcd60e51b8152602060048201526024808201527f5374616b696e673a204e6f7420746865207374616b6572206f6620746865207460448201526337b5b2b760e11b6064820152608401610465565b60056000848381518110610ef857610ef861197f565b6020908102919091018101518252818101929092526040908101600090812080546001600160a01b0319169055338152600690925281208054909190610f409060019061196c565b90508060076000878681518110610f5957610f5961197f565b60200260200101518152602001908152602001600020541461103f57818181548110610f8757610f8761197f565b90600052602060002001548260076000888781518110610fa957610fa961197f565b602002602001015181526020019081526020016000205481548110610fd057610fd061197f565b906000526020600020018190555060076000868581518110610ff457610ff461197f565b6020026020010151815260200190815260200160002054600760008484815481106110215761102161197f565b90600052602060002001548152602001908152602001600020819055505b8180548061104f5761104f611a22565b600190038181906000526020600020016000905590557f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166342842e0e30338887815181106110a8576110a861197f565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561110257600080fd5b505af1158015611116573d6000803e3d6000fd5b505060019094019350610e3c92505050565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166323b872dd33308551600a6111689190611995565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af11580156111bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111e091906119b4565b50336001600160a01b03167f20748b935fd9f21155c2e98cb2bd5df6fe86f21b193cebaae8d9ad7db0ba54168360405161121a9190611a38565b60405180910390a25050565b61122e61135e565b6001600160a01b0381166112935760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610465565b61088481611422565b6000816001036112ae57505060025490565b6001821180156112bf575060038211155b1561130257600280546112d29190611a4b565b82600280546112e19190611a4b565b6002546112ee9190611a0f565b6112f89190611995565b610d3a919061196c565b600382118015611313575060068211155b1561133b5760026113248382611995565b61132e919061196c565b600254610d3a9190611995565b6006821115611351576008611324836003611995565b506000919050565b919050565b6000546001600160a01b03163314610d525760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610465565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261140a908490611472565b505050565b600061141b8284611a4b565b9392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006114c7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115449092919063ffffffff16565b80519091501561140a57808060200190518101906114e591906119b4565b61140a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610465565b60606107b4848460008585600080866001600160a01b0316858760405161156b9190611a91565b60006040518083038185875af1925050503d80600081146115a8576040519150601f19603f3d011682016040523d82523d6000602084013e6115ad565b606091505b50915091506115be878383876115c9565b979650505050505050565b60608315611638578251600003611631576001600160a01b0385163b6116315760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610465565b50816107b4565b6107b4838381511561164d5781518083602001fd5b8060405162461bcd60e51b81526004016104659190611aad565b6000806020838503121561167a57600080fd5b823567ffffffffffffffff8082111561169257600080fd5b818501915085601f8301126116a657600080fd5b8135818111156116b557600080fd5b8660208260051b85010111156116ca57600080fd5b60209290920196919550909350505050565b6000602082840312156116ee57600080fd5b5035919050565b80356001600160a01b038116811461135957600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174b5761174b61170c565b604052919050565b6000806000806080858703121561176957600080fd5b611772856116f5565b935060206117818187016116f5565b935060408601359250606086013567ffffffffffffffff808211156117a557600080fd5b818801915088601f8301126117b957600080fd5b8135818111156117cb576117cb61170c565b6117dd601f8201601f19168501611722565b915080825289848285010111156117f357600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000806040838503121561182657600080fd5b50508035926020909101359150565b60006020828403121561184757600080fd5b61141b826116f5565b600081518084526020808501945080840160005b8381101561188057815187529582019590820190600101611864565b509495945050505050565b60608152600061189e6060830186611850565b60208301949094525060400152919050565b600060208083850312156118c357600080fd5b823567ffffffffffffffff808211156118db57600080fd5b818501915085601f8301126118ef57600080fd5b8135818111156119015761190161170c565b8060051b9150611912848301611722565b818152918301840191848101908884111561192c57600080fd5b938501935b8385101561194a57843582529385019390850190611931565b98975050505050505050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610d3a57610d3a611956565b634e487b7160e01b600052603260045260246000fd5b60008160001904831182151516156119af576119af611956565b500290565b6000602082840312156119c657600080fd5b8151801515811461141b57600080fd5b6020808252810182905260006001600160fb1b038311156119f657600080fd5b8260051b80856040850137919091016040019392505050565b80820180821115610d3a57610d3a611956565b634e487b7160e01b600052603160045260246000fd5b60208152600061141b6020830184611850565b600082611a6857634e487b7160e01b600052601260045260246000fd5b500490565b60005b83811015611a88578181015183820152602001611a70565b50506000910152565b60008251611aa3818460208701611a6d565b9190910192915050565b6020815260008251806020840152611acc816040850160208701611a6d565b601f01601f1916919091016040019291505056fea264697066735822122083ea1e405df292171a61fb27063e5072ec1fb970de4133dbd2d8f191bde9a1ad64736f6c63430008100033000000000000000000000000d968488b57743bc648a96f0f216ece9050f78f3c000000000000000000000000b6d883eddd78616c1bbd0404881c26a39700f0d9000000000000000000000000e910f25ac44e2185cef483105e706b9dc1c94a92
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101585760003560e01c806364d23d9d116100c3578063abee967c1161007c578063abee967c14610340578063d5abeb0114610349578063e449f34114610352578063f2fde38b14610365578063f7c618c114610378578063fd1950091461039f57600080fd5b806364d23d9d146102785780636588103b146102b75780636af7a5cc146102de578063715018a6146102fe5780637d8fc88e146103065780638da5cb5b1461032f57600080fd5b8063372500ab11610115578063372500ab146101f5578063421cc337146101fd57806349a14918146102105780634ead432714610223578063649aca4a1461024557806364ab86751461026557600080fd5b80630cd80f261461015d5780630fbf0a9314610179578063120d56721461018e578063150b7a02146101a157806326ec0fbe146101cd57806335322f37146101ed575b600080fd5b61016660035481565b6040519081526020015b60405180910390f35b61018c610187366004611667565b6103b2565b005b61018c61019c3660046116dc565b61079e565b6101b46101af366004611753565b6107ab565b6040516001600160e01b03199091168152602001610170565b6101666101db3660046116dc565b60076020526000908152604090205481565b61018c6107bc565b61018c610887565b61018c61020b3660046116dc565b610a04565b61018c61021e366004611813565b610a11565b610236610231366004611835565b610b95565b6040516101709392919061188b565b610166610253366004611835565b60096020526000908152604090205481565b610166610273366004611835565b610c7d565b61029f7f000000000000000000000000e910f25ac44e2185cef483105e706b9dc1c94a9281565b6040516001600160a01b039091168152602001610170565b61029f7f000000000000000000000000d968488b57743bc648a96f0f216ece9050f78f3c81565b6101666102ec3660046116dc565b60086020526000908152604090205481565b61018c610d40565b61029f6103143660046116dc565b6005602052600090815260409020546001600160a01b031681565b6000546001600160a01b031661029f565b61016660025481565b61016660015481565b61018c6103603660046118b0565b610d54565b61018c610373366004611835565b611226565b61029f7f000000000000000000000000b6d883eddd78616c1bbd0404881c26a39700f0d981565b6101666103ad3660046116dc565b61129c565b338015610418576001600160a01b0381166000908152600960205260409020546103db82610c7d565b6103e5919061196c565b6001600160a01b03821660009081526004602052604081208290556001805490919061041290849061196c565b90915550505b600082900361046e5760405162461bcd60e51b815260206004820152601d60248201527f5374616b696e673a204e6f20746f6b656e4964732070726f766964656400000060448201526064015b60405180910390fd5b6000600154116104c05760405162461bcd60e51b815260206004820152601a60248201527f5374616b696e673a204d617820737570706c79206578636565640000000000006044820152606401610465565b8160005b818110156106a9577f000000000000000000000000d968488b57743bc648a96f0f216ece9050f78f3c6001600160a01b03166342842e0e333088888681811061050f5761050f61197f565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561056657600080fd5b505af115801561057a573d6000803e3d6000fd5b5050505033600560008787858181106105955761059561197f565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060066000336001600160a01b03166001600160a01b031681526020019081526020016000208585838181106106055761060561197f565b8354600181810186556000958652602080872093810295909501359290910191909155338452600690925250604090912054610641919061196c565b600760008787858181106106575761065761197f565b9050602002013581526020019081526020016000208190555042600860008787858181106106875761068761197f565b60209081029290920135835250810191909152604001600020556001016104c4565b506001600160a01b037f000000000000000000000000e910f25ac44e2185cef483105e706b9dc1c94a921663a9059cbb336106e584600a611995565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610730573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075491906119b4565b50336001600160a01b03167f134b166c6094cc1ccbf1e3353ce5c3cd9fd29869051bdb999895854d77cc5ef685856040516107909291906119d6565b60405180910390a250505050565b6107a661135e565b600255565b630a85bd0160e11b5b949350505050565b338015610822576001600160a01b0381166000908152600960205260409020546107e582610c7d565b6107ef919061196c565b6001600160a01b03821660009081526004602052604081208290556001805490919061081c90849061196c565b90915550505b336000908152600660209081526040918290208054835181840281018401909452808452610884939283018282801561087a57602002820191906000526020600020905b815481526020019060010190808311610866575b5050505050610d54565b50565b3380156108ed576001600160a01b0381166000908152600960205260409020546108b082610c7d565b6108ba919061196c565b6001600160a01b0382166000908152600460205260408120829055600180549091906108e790849061196c565b90915550505b336000908152600460205260409020546109395760405162461bcd60e51b815260206004820152600d60248201526c456d707479207265776172647360981b6044820152606401610465565b3360009081526004602090815260408083205460099092528220805491929091610964908490611a0f565b9091555050336000818152600460205260409020546109ad917f000000000000000000000000b6d883eddd78616c1bbd0404881c26a39700f0d96001600160a01b0316916113b8565b336000818152600460209081526040918290205491519182527fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486910160405180910390a25033600090815260046020526040812055565b610a0c61135e565b600355565b610a1961135e565b60008211610a7b5760405162461bcd60e51b815260206004820152602960248201527f5374616b696e673a204d6178537570706c79206d75737420626520677265617460448201526806572207468616e20360bc1b6064820152608401610465565b60008111610ae15760405162461bcd60e51b815260206004820152602d60248201527f5374616b696e673a20496e697469616c526577617264206d757374206265206760448201526c0726561746572207468616e203609c1b6064820152608401610465565b808211610b4e5760405162461bcd60e51b815260206004820152603560248201527f5374616b696e673a204d6178537570706c79206d757374206265206772656174604482015274195c881d1a185b881a5b9a5d1a585b14995dd85c99605a1b6064820152608401610465565b6002819055600182905560408051838152602081018390527f3858e6acd05259f028111009ba00d900c7c0b1803ac6cbdde1d1ab4c58f27060910160405180910390a15050565b6001600160a01b0381166000908152600960205260408120546060919081908190610bbf86610c7d565b1115610bf4576001600160a01b038516600090815260096020526040902054610be786610c7d565b610bf1919061196c565b90505b6001600160a01b03851660009081526006602090815260409182902080548351818402810184019094528084529091830182828015610c5257602002820191906000526020600020905b815481526020019060010190808311610c3e575b505050506001600160a01b039690961660009081526009602052604090205490969195509350915050565b60008060005b6001600160a01b038416600090815260066020526040902054811015610d2b576001600160a01b03841660009081526006602052604081208054610d049160089184919086908110610cd757610cd761197f565b906000526020600020015481526020019081526020016000205442610cfc919061196c565b60035461140f565b90508015610d2257610d158161129c565b610d1f9084611a0f565b92505b50600101610c83565b506001548110610d3a57506001545b92915050565b610d4861135e565b610d526000611422565b565b338015610dba576001600160a01b038116600090815260096020526040902054610d7d82610c7d565b610d87919061196c565b6001600160a01b038216600090815260046020526040812082905560018054909190610db490849061196c565b90915550505b8151600003610e0b5760405162461bcd60e51b815260206004820152601d60248201527f5374616b696e673a204e6f20746f6b656e4964732070726f76696465640000006044820152606401610465565b3360009081526004602052604090205415610e3957610e28610887565b336000908152600960205260408120555b60005b825181101561112857336001600160a01b031660056000858481518110610e6557610e6561197f565b6020908102919091018101518252810191909152604001600020546001600160a01b031614610ee25760405162461bcd60e51b8152602060048201526024808201527f5374616b696e673a204e6f7420746865207374616b6572206f6620746865207460448201526337b5b2b760e11b6064820152608401610465565b60056000848381518110610ef857610ef861197f565b6020908102919091018101518252818101929092526040908101600090812080546001600160a01b0319169055338152600690925281208054909190610f409060019061196c565b90508060076000878681518110610f5957610f5961197f565b60200260200101518152602001908152602001600020541461103f57818181548110610f8757610f8761197f565b90600052602060002001548260076000888781518110610fa957610fa961197f565b602002602001015181526020019081526020016000205481548110610fd057610fd061197f565b906000526020600020018190555060076000868581518110610ff457610ff461197f565b6020026020010151815260200190815260200160002054600760008484815481106110215761102161197f565b90600052602060002001548152602001908152602001600020819055505b8180548061104f5761104f611a22565b600190038181906000526020600020016000905590557f000000000000000000000000d968488b57743bc648a96f0f216ece9050f78f3c6001600160a01b03166342842e0e30338887815181106110a8576110a861197f565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561110257600080fd5b505af1158015611116573d6000803e3d6000fd5b505060019094019350610e3c92505050565b507f000000000000000000000000e910f25ac44e2185cef483105e706b9dc1c94a926001600160a01b03166323b872dd33308551600a6111689190611995565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af11580156111bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111e091906119b4565b50336001600160a01b03167f20748b935fd9f21155c2e98cb2bd5df6fe86f21b193cebaae8d9ad7db0ba54168360405161121a9190611a38565b60405180910390a25050565b61122e61135e565b6001600160a01b0381166112935760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610465565b61088481611422565b6000816001036112ae57505060025490565b6001821180156112bf575060038211155b1561130257600280546112d29190611a4b565b82600280546112e19190611a4b565b6002546112ee9190611a0f565b6112f89190611995565b610d3a919061196c565b600382118015611313575060068211155b1561133b5760026113248382611995565b61132e919061196c565b600254610d3a9190611995565b6006821115611351576008611324836003611995565b506000919050565b919050565b6000546001600160a01b03163314610d525760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610465565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261140a908490611472565b505050565b600061141b8284611a4b565b9392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006114c7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115449092919063ffffffff16565b80519091501561140a57808060200190518101906114e591906119b4565b61140a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610465565b60606107b4848460008585600080866001600160a01b0316858760405161156b9190611a91565b60006040518083038185875af1925050503d80600081146115a8576040519150601f19603f3d011682016040523d82523d6000602084013e6115ad565b606091505b50915091506115be878383876115c9565b979650505050505050565b60608315611638578251600003611631576001600160a01b0385163b6116315760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610465565b50816107b4565b6107b4838381511561164d5781518083602001fd5b8060405162461bcd60e51b81526004016104659190611aad565b6000806020838503121561167a57600080fd5b823567ffffffffffffffff8082111561169257600080fd5b818501915085601f8301126116a657600080fd5b8135818111156116b557600080fd5b8660208260051b85010111156116ca57600080fd5b60209290920196919550909350505050565b6000602082840312156116ee57600080fd5b5035919050565b80356001600160a01b038116811461135957600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174b5761174b61170c565b604052919050565b6000806000806080858703121561176957600080fd5b611772856116f5565b935060206117818187016116f5565b935060408601359250606086013567ffffffffffffffff808211156117a557600080fd5b818801915088601f8301126117b957600080fd5b8135818111156117cb576117cb61170c565b6117dd601f8201601f19168501611722565b915080825289848285010111156117f357600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000806040838503121561182657600080fd5b50508035926020909101359150565b60006020828403121561184757600080fd5b61141b826116f5565b600081518084526020808501945080840160005b8381101561188057815187529582019590820190600101611864565b509495945050505050565b60608152600061189e6060830186611850565b60208301949094525060400152919050565b600060208083850312156118c357600080fd5b823567ffffffffffffffff808211156118db57600080fd5b818501915085601f8301126118ef57600080fd5b8135818111156119015761190161170c565b8060051b9150611912848301611722565b818152918301840191848101908884111561192c57600080fd5b938501935b8385101561194a57843582529385019390850190611931565b98975050505050505050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610d3a57610d3a611956565b634e487b7160e01b600052603260045260246000fd5b60008160001904831182151516156119af576119af611956565b500290565b6000602082840312156119c657600080fd5b8151801515811461141b57600080fd5b6020808252810182905260006001600160fb1b038311156119f657600080fd5b8260051b80856040850137919091016040019392505050565b80820180821115610d3a57610d3a611956565b634e487b7160e01b600052603160045260246000fd5b60208152600061141b6020830184611850565b600082611a6857634e487b7160e01b600052601260045260246000fd5b500490565b60005b83811015611a88578181015183820152602001611a70565b50506000910152565b60008251611aa3818460208701611a6d565b9190910192915050565b6020815260008251806020840152611acc816040850160208701611a6d565b601f01601f1916919091016040019291505056fea264697066735822122083ea1e405df292171a61fb27063e5072ec1fb970de4133dbd2d8f191bde9a1ad64736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000d968488b57743bc648a96f0f216ece9050f78f3c000000000000000000000000b6d883eddd78616c1bbd0404881c26a39700f0d9000000000000000000000000e910f25ac44e2185cef483105e706b9dc1c94a92
-----Decoded View---------------
Arg [0] : _nftCollection (address): 0xd968488b57743bC648a96f0F216ecE9050F78f3c
Arg [1] : _rewardToken (address): 0xB6d883eDDd78616C1BBd0404881c26a39700F0D9
Arg [2] : _ftStaked (address): 0xE910F25aC44e2185cef483105e706b9Dc1c94A92
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000d968488b57743bc648a96f0f216ece9050f78f3c
Arg [1] : 000000000000000000000000b6d883eddd78616c1bbd0404881c26a39700f0d9
Arg [2] : 000000000000000000000000e910f25ac44e2185cef483105e706b9dc1c94a92
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 29 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ 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.