Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Latest 8 from a total of 8 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Withdraw | 20214877 | 616 days ago | IN | 0 ETH | 0.00039181 | ||||
| Withdraw | 20214851 | 616 days ago | IN | 0 ETH | 0.00041965 | ||||
| Stake | 20214825 | 616 days ago | IN | 0 ETH | 0.00070632 | ||||
| Withdraw | 20212147 | 616 days ago | IN | 0 ETH | 0.00135512 | ||||
| Change Delay Tim... | 20212119 | 616 days ago | IN | 0 ETH | 0.00025987 | ||||
| Stake | 20212090 | 616 days ago | IN | 0 ETH | 0.00238393 | ||||
| Start Staking Pe... | 20212061 | 616 days ago | IN | 0 ETH | 0.00064201 | ||||
| Change Delay Tim... | 20212054 | 616 days ago | IN | 0 ETH | 0.00026047 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
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 totalStakedSupply;
uint256 public maxSupply;
uint256 public initialReward;
uint256 public delayTime;
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;
mapping(address => uint256) public userEarned;
/// @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;
delayTime = 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");
for (uint256 i; i < tokenIds.length;) {
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++;
}
}
totalStakedSupply += tokenIds.length;
ftStaked.transfer(msg.sender, tokenIds.length);
emit Staked(msg.sender, tokenIds);
}
/// @notice function called by the user to Withdraw NFTs from staking
/// @param tokenIds array of Token IDs of the NFTs to be withdrawn
function withdraw(uint256[] memory tokenIds) public updateReward(msg.sender) {
require(tokenIds.length != 0, "Staking: No tokenIds provided");
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];
if (tokenIdToIndex[tokenIds[i]] != userTokens.length - 1) {
userTokens[tokenIdToIndex[tokenIds[i]]] = userTokens[userTokens.length - 1];
tokenIdToIndex[userTokens[userTokens.length - 1]] = tokenIdToIndex[tokenIds[i]];
}
userTokens.pop();
nftCollection.safeTransferFrom(address(this), msg.sender, tokenIds[i]);
unchecked {
i++;
}
}
ftStaked.transferFrom(msg.sender, address(this), tokenIds.length);
totalStakedSupply -= tokenIds.length;
emit Withdrawn(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];
userEarned[msg.sender] += totalEarned[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 withdraw all NFTs and claim the rewards in one transaction
function withdrawAll() external updateReward(msg.sender) {
if(rewards[msg.sender] > 0 ) claimRewards();
totalEarned[msg.sender] = 0;
withdraw(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 _userEarned the sum of rewards
function userStakeInfo(address _user) public view returns (uint256[] memory _tokensStaked, uint256 _availableRewards, uint256 _userEarned)
{
uint availableRewards;
if(calculateRewards(_user) > totalEarned[_user] ) {
availableRewards = calculateRewards(_user) - totalEarned[_user];
}
_tokensStaked = tokensStaked[_user];
_availableRewards= availableRewards;
_userEarned = userEarned[_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);
}
}
/// @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]]), delayTime);
if(stakedPeriod > 0 ) {
totalRewards += getRewardPerToken(stakedPeriod);
}
unchecked {
i++;
}
}
if(totalRewards >= maxSupply) totalRewards = maxSupply;
return totalRewards;
}
function changeDelayTime (uint256 _time) public onlyOwner() {
require(_time > 0, "Staking: Time have to be greater than 0");
delayTime = _time;
}
/// @notice modifier used to keep track of the dynamic rewards for user each time a deposit or withdrawal 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 Withdrawn(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
Contract ABI
API[{"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":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"calculateRewards","outputs":[{"internalType":"uint256","name":"_rewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_time","type":"uint256"}],"name":"changeDelayTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"delayTime","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":"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":[],"name":"totalStakedSupply","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":"address","name":"","type":"address"}],"name":"userEarned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"_userEarned","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60e06040523480156200001157600080fd5b5060405162001d3b38038062001d3b8339810160408190526200003491620000cd565b6200003f3362000064565b6001600160a01b0392831660a0529082166080521660c05262278d0060045562000121565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114620000ca57600080fd5b50565b600080600060608486031215620000e357600080fd5b8351620000f081620000b4565b60208501519093506200010381620000b4565b60408501519092506200011681620000b4565b809150509250925092565b60805160a05160c051611bc762000174600039600081816102610152818161071001526111a40152600081816102a0015281816104fe01526110be0152600081816103ae01526109070152611bc76000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c80637d8fc88e116100de578063bcdc3cfc11610097578063e97b4cfd11610071578063e97b4cfd14610383578063f2fde38b14610396578063f7c618c1146103a9578063fd195009146103d057600080fd5b8063bcdc3cfc14610351578063cba725401461035a578063d5abeb011461037a57600080fd5b80637d8fc88e146102ea5780637e2eee5314610313578063853828b61461031c5780638da5cb5b14610324578063983d95ce14610335578063abee967c1461034857600080fd5b8063649aca4a11610130578063649aca4a1461022957806364ab86751461024957806364d23d9d1461025c5780636588103b1461029b5780636af7a5cc146102c2578063715018a6146102e257600080fd5b80630fbf0a9314610178578063150b7a021461018d57806326ec0fbe146101be578063372500ab146101ec57806349a14918146101f45780634ead432714610207575b600080fd5b61018b610186366004611718565b6103e3565b005b6101a061019b3660046117eb565b6107ce565b6040516001600160e01b031990911681526020015b60405180910390f35b6101de6101cc3660046118ab565b60086020526000908152604090205481565b6040519081526020016101b5565b61018b6107df565b61018b6102023660046118c4565b61098c565b61021a6102153660046118e6565b610b10565b6040516101b59392919061193c565b6101de6102373660046118e6565b600a6020526000908152604090205481565b6101de6102573660046118e6565b610bf8565b6102837f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101b5565b6102837f000000000000000000000000000000000000000000000000000000000000000081565b6101de6102d03660046118ab565b60096020526000908152604090205481565b61018b610cbb565b6102836102f83660046118ab565b6006602052600090815260409020546001600160a01b031681565b6101de60045481565b61018b610ccf565b6000546001600160a01b0316610283565b61018b610343366004611961565b610dc1565b6101de60035481565b6101de60015481565b6101de6103683660046118e6565b600b6020526000908152604090205481565b6101de60025481565b61018b6103913660046118ab565b611270565b61018b6103a43660046118e6565b6112dd565b6102837f000000000000000000000000000000000000000000000000000000000000000081565b6101de6103de3660046118ab565b611353565b338015610449576001600160a01b0381166000908152600a602052604090205461040c82610bf8565b6104169190611a1d565b6001600160a01b038216600090815260056020526040812082905560028054909190610443908490611a1d565b90915550505b600082900361049f5760405162461bcd60e51b815260206004820152601d60248201527f5374616b696e673a204e6f20746f6b656e4964732070726f766964656400000060448201526064015b60405180910390fd5b6000600254116104f15760405162461bcd60e51b815260206004820152601a60248201527f5374616b696e673a204d617820737570706c79206578636565640000000000006044820152606401610496565b60005b828110156106d9577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166342842e0e333087878681811061053f5761053f611a30565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561059657600080fd5b505af11580156105aa573d6000803e3d6000fd5b5050505033600660008686858181106105c5576105c5611a30565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060076000336001600160a01b03166001600160a01b0316815260200190815260200160002084848381811061063557610635611a30565b83546001818101865560009586526020808720938102959095013592909101919091553384526007909252506040909120546106719190611a1d565b6008600086868581811061068757610687611a30565b9050602002013581526020019081526020016000208190555042600960008686858181106106b7576106b7611a30565b60209081029290920135835250810191909152604001600020556001016104f4565b5082829050600160008282546106ef9190611a46565b909155505060405163a9059cbb60e01b8152336004820152602481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015610761573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107859190611a59565b50336001600160a01b03167f134b166c6094cc1ccbf1e3353ce5c3cd9fd29869051bdb999895854d77cc5ef684846040516107c1929190611a7b565b60405180910390a2505050565b630a85bd0160e11b5b949350505050565b338015610845576001600160a01b0381166000908152600a602052604090205461080882610bf8565b6108129190611a1d565b6001600160a01b03821660009081526005602052604081208290556002805490919061083f908490611a1d565b90915550505b336000908152600560205260409020546108915760405162461bcd60e51b815260206004820152600d60248201526c456d707479207265776172647360981b6044820152606401610496565b33600090815260056020908152604080832054600a90925282208054919290916108bc908490611a46565b9091555050336000908152600a6020908152604080832054600b90925282208054919290916108ec908490611a46565b909155505033600081815260056020526040902054610935917f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169161140f565b336000818152600560209081526040918290205491519182527fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486910160405180910390a25033600090815260056020526040812055565b610994611466565b600082116109f65760405162461bcd60e51b815260206004820152602960248201527f5374616b696e673a204d6178537570706c79206d75737420626520677265617460448201526806572207468616e20360bc1b6064820152608401610496565b60008111610a5c5760405162461bcd60e51b815260206004820152602d60248201527f5374616b696e673a20496e697469616c526577617264206d757374206265206760448201526c0726561746572207468616e203609c1b6064820152608401610496565b808211610ac95760405162461bcd60e51b815260206004820152603560248201527f5374616b696e673a204d6178537570706c79206d757374206265206772656174604482015274195c881d1a185b881a5b9a5d1a585b14995dd85c99605a1b6064820152608401610496565b6003819055600282905560408051838152602081018390527f3858e6acd05259f028111009ba00d900c7c0b1803ac6cbdde1d1ab4c58f27060910160405180910390a15050565b6001600160a01b0381166000908152600a60205260408120546060919081908190610b3a86610bf8565b1115610b6f576001600160a01b0385166000908152600a6020526040902054610b6286610bf8565b610b6c9190611a1d565b90505b6001600160a01b03851660009081526007602090815260409182902080548351818402810184019094528084529091830182828015610bcd57602002820191906000526020600020905b815481526020019060010190808311610bb9575b505050506001600160a01b03969096166000908152600b602052604090205490969195509350915050565b60008060005b6001600160a01b038416600090815260076020526040902054811015610ca6576001600160a01b03841660009081526007602052604081208054610c7f9160099184919086908110610c5257610c52611a30565b906000526020600020015481526020019081526020016000205442610c779190611a1d565b6004546114c0565b90508015610c9d57610c9081611353565b610c9a9084611a46565b92505b50600101610bfe565b506002548110610cb557506002545b92915050565b610cc3611466565b610ccd60006114d3565b565b338015610d35576001600160a01b0381166000908152600a6020526040902054610cf882610bf8565b610d029190611a1d565b6001600160a01b038216600090815260056020526040812082905560028054909190610d2f908490611a1d565b90915550505b3360009081526005602052604090205415610d5257610d526107df565b336000908152600a6020908152604080832083905560078252918290208054835181840281018401909452808452610dbe9392830182828015610db457602002820191906000526020600020905b815481526020019060010190808311610da0575b5050505050610dc1565b50565b338015610e27576001600160a01b0381166000908152600a6020526040902054610dea82610bf8565b610df49190611a1d565b6001600160a01b038216600090815260056020526040812082905560028054909190610e21908490611a1d565b90915550505b8151600003610e785760405162461bcd60e51b815260206004820152601d60248201527f5374616b696e673a204e6f20746f6b656e4964732070726f76696465640000006044820152606401610496565b60005b825181101561117e57336001600160a01b031660066000858481518110610ea457610ea4611a30565b6020908102919091018101518252810191909152604001600020546001600160a01b031614610f215760405162461bcd60e51b8152602060048201526024808201527f5374616b696e673a204e6f7420746865207374616b6572206f6620746865207460448201526337b5b2b760e11b6064820152608401610496565b60066000848381518110610f3757610f37611a30565b6020908102919091018101518252818101929092526040908101600090812080546001600160a01b0319169055338152600790925290208054610f7c90600190611a1d565b60086000868581518110610f9257610f92611a30565b6020026020010151815260200190815260200160002054146110965780548190610fbe90600190611a1d565b81548110610fce57610fce611a30565b90600052602060002001548160086000878681518110610ff057610ff0611a30565b60200260200101518152602001908152602001600020548154811061101757611017611a30565b90600052602060002001819055506008600085848151811061103b5761103b611a30565b60200260200101518152602001908152602001600020546008600083600185805490506110689190611a1d565b8154811061107857611078611a30565b90600052602060002001548152602001908152602001600020819055505b808054806110a6576110a6611ab4565b600190038181906000526020600020016000905590557f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166342842e0e30338786815181106110ff576110ff611a30565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561115957600080fd5b505af115801561116d573d6000803e3d6000fd5b505060019093019250610e7b915050565b5081516040516323b872dd60e01b815233600482015230602482015260448101919091527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd906064016020604051808303816000875af11580156111f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112199190611a59565b5081516001600082825461122d9190611a1d565b909155505060405133907ff35c46796392b0deae18b1c5ac3cc50df76b67ef9bcf256df595a3607aab625890611264908590611aca565b60405180910390a25050565b611278611466565b600081116112d85760405162461bcd60e51b815260206004820152602760248201527f5374616b696e673a2054696d65206861766520746f20626520677265617465726044820152660207468616e20360cc1b6064820152608401610496565b600455565b6112e5611466565b6001600160a01b03811661134a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610496565b610dbe816114d3565b60008160010361136557505060035490565b600182118015611376575060038211155b156113bb57600260035461138a9190611add565b82600260035461139a9190611add565b6003546113a79190611a46565b6113b19190611aff565b610cb59190611a1d565b6003821180156113cc575060068211155b156113f45760026113dd8382611aff565b6113e79190611a1d565b600354610cb59190611aff565b600682111561140a5760086113dd836003611aff565b919050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611461908490611523565b505050565b6000546001600160a01b03163314610ccd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610496565b60006114cc8284611add565b9392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000611578826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115f59092919063ffffffff16565b80519091501561146157808060200190518101906115969190611a59565b6114615760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610496565b60606107d7848460008585600080866001600160a01b0316858760405161161c9190611b42565b60006040518083038185875af1925050503d8060008114611659576040519150601f19603f3d011682016040523d82523d6000602084013e61165e565b606091505b509150915061166f8783838761167a565b979650505050505050565b606083156116e95782516000036116e2576001600160a01b0385163b6116e25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610496565b50816107d7565b6107d783838151156116fe5781518083602001fd5b8060405162461bcd60e51b81526004016104969190611b5e565b6000806020838503121561172b57600080fd5b823567ffffffffffffffff8082111561174357600080fd5b818501915085601f83011261175757600080fd5b81358181111561176657600080fd5b8660208260051b850101111561177b57600080fd5b60209290920196919550909350505050565b80356001600160a01b038116811461140a57600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156117e3576117e36117a4565b604052919050565b6000806000806080858703121561180157600080fd5b61180a8561178d565b9350602061181981870161178d565b935060408601359250606086013567ffffffffffffffff8082111561183d57600080fd5b818801915088601f83011261185157600080fd5b813581811115611863576118636117a4565b611875601f8201601f191685016117ba565b9150808252898482850101111561188b57600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000602082840312156118bd57600080fd5b5035919050565b600080604083850312156118d757600080fd5b50508035926020909101359150565b6000602082840312156118f857600080fd5b6114cc8261178d565b600081518084526020808501945080840160005b8381101561193157815187529582019590820190600101611915565b509495945050505050565b60608152600061194f6060830186611901565b60208301949094525060400152919050565b6000602080838503121561197457600080fd5b823567ffffffffffffffff8082111561198c57600080fd5b818501915085601f8301126119a057600080fd5b8135818111156119b2576119b26117a4565b8060051b91506119c38483016117ba565b81815291830184019184810190888411156119dd57600080fd5b938501935b838510156119fb578435825293850193908501906119e2565b98975050505050505050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610cb557610cb5611a07565b634e487b7160e01b600052603260045260246000fd5b80820180821115610cb557610cb5611a07565b600060208284031215611a6b57600080fd5b815180151581146114cc57600080fd5b6020808252810182905260006001600160fb1b03831115611a9b57600080fd5b8260051b80856040850137919091016040019392505050565b634e487b7160e01b600052603160045260246000fd5b6020815260006114cc6020830184611901565b600082611afa57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611b1957611b19611a07565b500290565b60005b83811015611b39578181015183820152602001611b21565b50506000910152565b60008251611b54818460208701611b1e565b9190910192915050565b6020815260008251806020840152611b7d816040850160208701611b1e565b601f01601f1916919091016040019291505056fea26469706673582212200a4712d61540cd6fae17b8c53357cad5bfef6f92af8b5e650cc17184c71536a664736f6c63430008100033000000000000000000000000d968488b57743bc648a96f0f216ece9050f78f3c000000000000000000000000e711e74a42b73ccae03421725f1017df3bc6203d000000000000000000000000fb384b7a48203de80f12aacfa0cf4430855aa17b
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101735760003560e01c80637d8fc88e116100de578063bcdc3cfc11610097578063e97b4cfd11610071578063e97b4cfd14610383578063f2fde38b14610396578063f7c618c1146103a9578063fd195009146103d057600080fd5b8063bcdc3cfc14610351578063cba725401461035a578063d5abeb011461037a57600080fd5b80637d8fc88e146102ea5780637e2eee5314610313578063853828b61461031c5780638da5cb5b14610324578063983d95ce14610335578063abee967c1461034857600080fd5b8063649aca4a11610130578063649aca4a1461022957806364ab86751461024957806364d23d9d1461025c5780636588103b1461029b5780636af7a5cc146102c2578063715018a6146102e257600080fd5b80630fbf0a9314610178578063150b7a021461018d57806326ec0fbe146101be578063372500ab146101ec57806349a14918146101f45780634ead432714610207575b600080fd5b61018b610186366004611718565b6103e3565b005b6101a061019b3660046117eb565b6107ce565b6040516001600160e01b031990911681526020015b60405180910390f35b6101de6101cc3660046118ab565b60086020526000908152604090205481565b6040519081526020016101b5565b61018b6107df565b61018b6102023660046118c4565b61098c565b61021a6102153660046118e6565b610b10565b6040516101b59392919061193c565b6101de6102373660046118e6565b600a6020526000908152604090205481565b6101de6102573660046118e6565b610bf8565b6102837f000000000000000000000000fb384b7a48203de80f12aacfa0cf4430855aa17b81565b6040516001600160a01b0390911681526020016101b5565b6102837f000000000000000000000000d968488b57743bc648a96f0f216ece9050f78f3c81565b6101de6102d03660046118ab565b60096020526000908152604090205481565b61018b610cbb565b6102836102f83660046118ab565b6006602052600090815260409020546001600160a01b031681565b6101de60045481565b61018b610ccf565b6000546001600160a01b0316610283565b61018b610343366004611961565b610dc1565b6101de60035481565b6101de60015481565b6101de6103683660046118e6565b600b6020526000908152604090205481565b6101de60025481565b61018b6103913660046118ab565b611270565b61018b6103a43660046118e6565b6112dd565b6102837f000000000000000000000000e711e74a42b73ccae03421725f1017df3bc6203d81565b6101de6103de3660046118ab565b611353565b338015610449576001600160a01b0381166000908152600a602052604090205461040c82610bf8565b6104169190611a1d565b6001600160a01b038216600090815260056020526040812082905560028054909190610443908490611a1d565b90915550505b600082900361049f5760405162461bcd60e51b815260206004820152601d60248201527f5374616b696e673a204e6f20746f6b656e4964732070726f766964656400000060448201526064015b60405180910390fd5b6000600254116104f15760405162461bcd60e51b815260206004820152601a60248201527f5374616b696e673a204d617820737570706c79206578636565640000000000006044820152606401610496565b60005b828110156106d9577f000000000000000000000000d968488b57743bc648a96f0f216ece9050f78f3c6001600160a01b03166342842e0e333087878681811061053f5761053f611a30565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561059657600080fd5b505af11580156105aa573d6000803e3d6000fd5b5050505033600660008686858181106105c5576105c5611a30565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060076000336001600160a01b03166001600160a01b0316815260200190815260200160002084848381811061063557610635611a30565b83546001818101865560009586526020808720938102959095013592909101919091553384526007909252506040909120546106719190611a1d565b6008600086868581811061068757610687611a30565b9050602002013581526020019081526020016000208190555042600960008686858181106106b7576106b7611a30565b60209081029290920135835250810191909152604001600020556001016104f4565b5082829050600160008282546106ef9190611a46565b909155505060405163a9059cbb60e01b8152336004820152602481018390527f000000000000000000000000fb384b7a48203de80f12aacfa0cf4430855aa17b6001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015610761573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107859190611a59565b50336001600160a01b03167f134b166c6094cc1ccbf1e3353ce5c3cd9fd29869051bdb999895854d77cc5ef684846040516107c1929190611a7b565b60405180910390a2505050565b630a85bd0160e11b5b949350505050565b338015610845576001600160a01b0381166000908152600a602052604090205461080882610bf8565b6108129190611a1d565b6001600160a01b03821660009081526005602052604081208290556002805490919061083f908490611a1d565b90915550505b336000908152600560205260409020546108915760405162461bcd60e51b815260206004820152600d60248201526c456d707479207265776172647360981b6044820152606401610496565b33600090815260056020908152604080832054600a90925282208054919290916108bc908490611a46565b9091555050336000908152600a6020908152604080832054600b90925282208054919290916108ec908490611a46565b909155505033600081815260056020526040902054610935917f000000000000000000000000e711e74a42b73ccae03421725f1017df3bc6203d6001600160a01b03169161140f565b336000818152600560209081526040918290205491519182527fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486910160405180910390a25033600090815260056020526040812055565b610994611466565b600082116109f65760405162461bcd60e51b815260206004820152602960248201527f5374616b696e673a204d6178537570706c79206d75737420626520677265617460448201526806572207468616e20360bc1b6064820152608401610496565b60008111610a5c5760405162461bcd60e51b815260206004820152602d60248201527f5374616b696e673a20496e697469616c526577617264206d757374206265206760448201526c0726561746572207468616e203609c1b6064820152608401610496565b808211610ac95760405162461bcd60e51b815260206004820152603560248201527f5374616b696e673a204d6178537570706c79206d757374206265206772656174604482015274195c881d1a185b881a5b9a5d1a585b14995dd85c99605a1b6064820152608401610496565b6003819055600282905560408051838152602081018390527f3858e6acd05259f028111009ba00d900c7c0b1803ac6cbdde1d1ab4c58f27060910160405180910390a15050565b6001600160a01b0381166000908152600a60205260408120546060919081908190610b3a86610bf8565b1115610b6f576001600160a01b0385166000908152600a6020526040902054610b6286610bf8565b610b6c9190611a1d565b90505b6001600160a01b03851660009081526007602090815260409182902080548351818402810184019094528084529091830182828015610bcd57602002820191906000526020600020905b815481526020019060010190808311610bb9575b505050506001600160a01b03969096166000908152600b602052604090205490969195509350915050565b60008060005b6001600160a01b038416600090815260076020526040902054811015610ca6576001600160a01b03841660009081526007602052604081208054610c7f9160099184919086908110610c5257610c52611a30565b906000526020600020015481526020019081526020016000205442610c779190611a1d565b6004546114c0565b90508015610c9d57610c9081611353565b610c9a9084611a46565b92505b50600101610bfe565b506002548110610cb557506002545b92915050565b610cc3611466565b610ccd60006114d3565b565b338015610d35576001600160a01b0381166000908152600a6020526040902054610cf882610bf8565b610d029190611a1d565b6001600160a01b038216600090815260056020526040812082905560028054909190610d2f908490611a1d565b90915550505b3360009081526005602052604090205415610d5257610d526107df565b336000908152600a6020908152604080832083905560078252918290208054835181840281018401909452808452610dbe9392830182828015610db457602002820191906000526020600020905b815481526020019060010190808311610da0575b5050505050610dc1565b50565b338015610e27576001600160a01b0381166000908152600a6020526040902054610dea82610bf8565b610df49190611a1d565b6001600160a01b038216600090815260056020526040812082905560028054909190610e21908490611a1d565b90915550505b8151600003610e785760405162461bcd60e51b815260206004820152601d60248201527f5374616b696e673a204e6f20746f6b656e4964732070726f76696465640000006044820152606401610496565b60005b825181101561117e57336001600160a01b031660066000858481518110610ea457610ea4611a30565b6020908102919091018101518252810191909152604001600020546001600160a01b031614610f215760405162461bcd60e51b8152602060048201526024808201527f5374616b696e673a204e6f7420746865207374616b6572206f6620746865207460448201526337b5b2b760e11b6064820152608401610496565b60066000848381518110610f3757610f37611a30565b6020908102919091018101518252818101929092526040908101600090812080546001600160a01b0319169055338152600790925290208054610f7c90600190611a1d565b60086000868581518110610f9257610f92611a30565b6020026020010151815260200190815260200160002054146110965780548190610fbe90600190611a1d565b81548110610fce57610fce611a30565b90600052602060002001548160086000878681518110610ff057610ff0611a30565b60200260200101518152602001908152602001600020548154811061101757611017611a30565b90600052602060002001819055506008600085848151811061103b5761103b611a30565b60200260200101518152602001908152602001600020546008600083600185805490506110689190611a1d565b8154811061107857611078611a30565b90600052602060002001548152602001908152602001600020819055505b808054806110a6576110a6611ab4565b600190038181906000526020600020016000905590557f000000000000000000000000d968488b57743bc648a96f0f216ece9050f78f3c6001600160a01b03166342842e0e30338786815181106110ff576110ff611a30565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561115957600080fd5b505af115801561116d573d6000803e3d6000fd5b505060019093019250610e7b915050565b5081516040516323b872dd60e01b815233600482015230602482015260448101919091527f000000000000000000000000fb384b7a48203de80f12aacfa0cf4430855aa17b6001600160a01b0316906323b872dd906064016020604051808303816000875af11580156111f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112199190611a59565b5081516001600082825461122d9190611a1d565b909155505060405133907ff35c46796392b0deae18b1c5ac3cc50df76b67ef9bcf256df595a3607aab625890611264908590611aca565b60405180910390a25050565b611278611466565b600081116112d85760405162461bcd60e51b815260206004820152602760248201527f5374616b696e673a2054696d65206861766520746f20626520677265617465726044820152660207468616e20360cc1b6064820152608401610496565b600455565b6112e5611466565b6001600160a01b03811661134a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610496565b610dbe816114d3565b60008160010361136557505060035490565b600182118015611376575060038211155b156113bb57600260035461138a9190611add565b82600260035461139a9190611add565b6003546113a79190611a46565b6113b19190611aff565b610cb59190611a1d565b6003821180156113cc575060068211155b156113f45760026113dd8382611aff565b6113e79190611a1d565b600354610cb59190611aff565b600682111561140a5760086113dd836003611aff565b919050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611461908490611523565b505050565b6000546001600160a01b03163314610ccd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610496565b60006114cc8284611add565b9392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000611578826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115f59092919063ffffffff16565b80519091501561146157808060200190518101906115969190611a59565b6114615760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610496565b60606107d7848460008585600080866001600160a01b0316858760405161161c9190611b42565b60006040518083038185875af1925050503d8060008114611659576040519150601f19603f3d011682016040523d82523d6000602084013e61165e565b606091505b509150915061166f8783838761167a565b979650505050505050565b606083156116e95782516000036116e2576001600160a01b0385163b6116e25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610496565b50816107d7565b6107d783838151156116fe5781518083602001fd5b8060405162461bcd60e51b81526004016104969190611b5e565b6000806020838503121561172b57600080fd5b823567ffffffffffffffff8082111561174357600080fd5b818501915085601f83011261175757600080fd5b81358181111561176657600080fd5b8660208260051b850101111561177b57600080fd5b60209290920196919550909350505050565b80356001600160a01b038116811461140a57600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156117e3576117e36117a4565b604052919050565b6000806000806080858703121561180157600080fd5b61180a8561178d565b9350602061181981870161178d565b935060408601359250606086013567ffffffffffffffff8082111561183d57600080fd5b818801915088601f83011261185157600080fd5b813581811115611863576118636117a4565b611875601f8201601f191685016117ba565b9150808252898482850101111561188b57600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000602082840312156118bd57600080fd5b5035919050565b600080604083850312156118d757600080fd5b50508035926020909101359150565b6000602082840312156118f857600080fd5b6114cc8261178d565b600081518084526020808501945080840160005b8381101561193157815187529582019590820190600101611915565b509495945050505050565b60608152600061194f6060830186611901565b60208301949094525060400152919050565b6000602080838503121561197457600080fd5b823567ffffffffffffffff8082111561198c57600080fd5b818501915085601f8301126119a057600080fd5b8135818111156119b2576119b26117a4565b8060051b91506119c38483016117ba565b81815291830184019184810190888411156119dd57600080fd5b938501935b838510156119fb578435825293850193908501906119e2565b98975050505050505050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610cb557610cb5611a07565b634e487b7160e01b600052603260045260246000fd5b80820180821115610cb557610cb5611a07565b600060208284031215611a6b57600080fd5b815180151581146114cc57600080fd5b6020808252810182905260006001600160fb1b03831115611a9b57600080fd5b8260051b80856040850137919091016040019392505050565b634e487b7160e01b600052603160045260246000fd5b6020815260006114cc6020830184611901565b600082611afa57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611b1957611b19611a07565b500290565b60005b83811015611b39578181015183820152602001611b21565b50506000910152565b60008251611b54818460208701611b1e565b9190910192915050565b6020815260008251806020840152611b7d816040850160208701611b1e565b601f01601f1916919091016040019291505056fea26469706673582212200a4712d61540cd6fae17b8c53357cad5bfef6f92af8b5e650cc17184c71536a664736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000d968488b57743bc648a96f0f216ece9050f78f3c000000000000000000000000e711e74a42b73ccae03421725f1017df3bc6203d000000000000000000000000fb384b7a48203de80f12aacfa0cf4430855aa17b
-----Decoded View---------------
Arg [0] : _nftCollection (address): 0xd968488b57743bC648a96f0F216ecE9050F78f3c
Arg [1] : _rewardToken (address): 0xe711E74a42B73ccAe03421725F1017dF3Bc6203d
Arg [2] : _ftStaked (address): 0xfB384B7a48203De80f12Aacfa0Cf4430855aa17b
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000d968488b57743bc648a96f0f216ece9050f78f3c
Arg [1] : 000000000000000000000000e711e74a42b73ccae03421725f1017df3bc6203d
Arg [2] : 000000000000000000000000fb384b7a48203de80f12aacfa0cf4430855aa17b
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.