My Name Tag:
Not Available, login to update
[ Download CSV Export ]
Latest 1 internal transaction
Parent Txn Hash | Block | From | To | Value | |||
---|---|---|---|---|---|---|---|
0x63ba0cd156a55be346652fa4b25174b0697eea8f647a77276bfc4b41d30f8d4a | 25144570 | 463 days 8 hrs ago | Tarot: Deployer | Contract Creation | 0 FTM |
[ Download CSV Export ]
Contract Name:
XStakingPoolController
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol'; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/token/ERC20/ERC20.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; interface IERC20Ext is IERC20 { function decimals() external returns (uint); } // xTAROT xStaking Pools // Each new pool added is a new reward token, each with its own start times // end times, and rewards per second. contract XStakingPoolController is Ownable { using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. } // Info of each pool. struct PoolInfo { IERC20 RewardToken; // Address of reward token contract. uint256 RewardPerSecond; // reward token per second for this pool uint256 TokenPrecision; // The precision factor used for calculations, dependent on a tokens decimals uint256 xTAROTStakedAmount; // # of xTAROT allocated to this pool uint256 lastRewardTime; // Last block time that reward distribution occurs. uint256 accRewardPerShare; // Accumulated reward per share, times the pools token precision. See below. uint256 endTime; // end time of pool uint256 startTime; // start time of pool uint256 userLimitEndTime; address protocolOwnerAddress; // owner of the protocol of the reward token, used for emergency withdraw only } IERC20 public immutable xTAROT; uint public baseUserLimitTime = 2 days; uint public baseUserLimit = 0; // Info of each pool. PoolInfo[] public poolInfo; // Info of each user that stakes tokens. mapping (uint256 => mapping (address => UserInfo)) public userInfo; event AdminTokenRecovery(address tokenRecovered, uint256 amount); event Deposit(address indexed user, uint256 indexed pid, uint256 amount); event Withdraw(address indexed user, uint256 indexed pid, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount); event SetRewardPerSecond(uint _pid, uint256 _rewardPerSecond); constructor(IERC20 _xTAROT) { xTAROT = _xTAROT; } function poolLength() external view returns (uint256) { return poolInfo.length; } // Return reward multiplier over the given _from to _to block. function getMultiplier(uint256 _from, uint256 _to, PoolInfo memory pool) internal pure returns (uint256) { _from = _from > pool.startTime ? _from : pool.startTime; if (_from > pool.endTime || _to < pool.startTime) { return 0; } if (_to > pool.endTime) { return pool.endTime - _from; } return _to - _from; } // View function to see pending reward on frontend. function pendingReward(uint256 _pid, address _user) external view returns (uint256) { PoolInfo memory pool = poolInfo[_pid]; UserInfo memory user = userInfo[_pid][_user]; uint256 accRewardPerShare = pool.accRewardPerShare; if (block.timestamp > pool.lastRewardTime && pool.xTAROTStakedAmount != 0) { uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp, pool); uint256 reward = multiplier * pool.RewardPerSecond; accRewardPerShare += (reward * pool.TokenPrecision) / pool.xTAROTStakedAmount; } return (user.amount * accRewardPerShare / pool.TokenPrecision) - user.rewardDebt; } // Update reward variables for all pools. Be careful of gas spending! function massUpdatePools() public { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { updatePool(pid); } } // Update reward variables of the given pool to be up-to-date. function updatePool(uint256 _pid) internal { PoolInfo storage pool = poolInfo[_pid]; if (block.timestamp <= pool.lastRewardTime) { return; } if (pool.xTAROTStakedAmount == 0) { pool.lastRewardTime = block.timestamp; return; } uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp, pool); uint256 reward = multiplier * pool.RewardPerSecond; pool.accRewardPerShare += reward * pool.TokenPrecision / pool.xTAROTStakedAmount; pool.lastRewardTime = block.timestamp; } // Deposit tokens. function deposit(uint256 _pid, uint256 _amount) external { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; if(baseUserLimit > 0 && block.timestamp < pool.userLimitEndTime) { require(user.amount + _amount <= baseUserLimit, "deposit: user has hit deposit cap"); } updatePool(_pid); uint256 pending = (user.amount * pool.accRewardPerShare / pool.TokenPrecision) - user.rewardDebt; user.amount += _amount; pool.xTAROTStakedAmount += _amount; user.rewardDebt = user.amount * pool.accRewardPerShare / pool.TokenPrecision; if(pending > 0) { safeTransfer(pool.RewardToken, msg.sender, pending); } xTAROT.safeTransferFrom(address(msg.sender), address(this), _amount); emit Deposit(msg.sender, _pid, _amount); } // Withdraw tokens. function withdraw(uint256 _pid, uint256 _amount) external { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; require(user.amount >= _amount, "withdraw: not good"); updatePool(_pid); uint256 pending = (user.amount * pool.accRewardPerShare / pool.TokenPrecision) - user.rewardDebt; user.amount -= _amount; pool.xTAROTStakedAmount -= _amount; user.rewardDebt = user.amount * pool.accRewardPerShare / pool.TokenPrecision; if(pending > 0) { safeTransfer(pool.RewardToken, msg.sender, pending); } safeTransfer(xTAROT, address(msg.sender), _amount); emit Withdraw(msg.sender, _pid, _amount); } // Withdraw without caring about rewards. EMERGENCY ONLY. function emergencyWithdraw(uint256 _pid) external { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; uint oldUserAmount = user.amount; pool.xTAROTStakedAmount -= user.amount; user.amount = 0; user.rewardDebt = 0; xTAROT.safeTransfer(address(msg.sender), oldUserAmount); emit EmergencyWithdraw(msg.sender, _pid, oldUserAmount); } // Safe erc20 transfer function, just in case if rounding error causes pool to not have enough reward tokens. function safeTransfer(IERC20 token, address _to, uint256 _amount) internal { uint256 bal = token.balanceOf(address(this)); if (_amount > bal) { token.safeTransfer(_to, bal); } else { token.safeTransfer(_to, _amount); } } // Admin functions function changeEndTime(uint _pid, uint32 addSeconds) external onlyOwner { poolInfo[_pid].endTime += addSeconds; } function stopReward(uint _pid) external onlyOwner { poolInfo[_pid].endTime = block.number; } function changePoolUserLimitEndTime(uint _pid, uint _time) external onlyOwner { poolInfo[_pid].userLimitEndTime = _time; } function changeUserLimit(uint _limit) external onlyOwner { baseUserLimit = _limit; } function changeBaseUserLimitTime(uint _time) external onlyOwner { baseUserLimitTime = _time; } function checkForToken(IERC20 _Token) private view { uint256 length = poolInfo.length; for (uint256 _pid = 0; _pid < length; _pid++) { require(poolInfo[_pid].RewardToken != _Token, "checkForToken: reward token provided"); } } function recoverWrongTokens(address _tokenAddress) external onlyOwner { require(_tokenAddress != address(xTAROT), "recoverWrongTokens: Cannot be xTAROT"); checkForToken(IERC20(_tokenAddress)); uint bal = IERC20(_tokenAddress).balanceOf(address(this)); IERC20(_tokenAddress).safeTransfer(address(msg.sender), bal); emit AdminTokenRecovery(_tokenAddress, bal); } function emergencyRewardWithdraw(uint _pid, uint256 _amount) external onlyOwner { poolInfo[_pid].RewardToken.safeTransfer(poolInfo[_pid].protocolOwnerAddress, _amount); } // Add a new token to the pool. Can only be called by the owner. function add( uint _rewardPerSecond, IERC20Ext _Token, uint _startTime, uint _endTime, address _protocolOwner ) external onlyOwner { checkForToken(_Token); // ensure you cant add duplicate pools uint lastRewardTime = block.timestamp > _startTime ? block.timestamp : _startTime; uint decimalsRewardToken = _Token.decimals(); require(decimalsRewardToken < 30, "Token has way too many decimals"); uint precision = 10**(30 - decimalsRewardToken); poolInfo.push(PoolInfo({ RewardToken: _Token, RewardPerSecond: _rewardPerSecond, TokenPrecision: precision, xTAROTStakedAmount: 0, startTime: _startTime, endTime: _endTime, lastRewardTime: lastRewardTime, accRewardPerShare: 0, protocolOwnerAddress: _protocolOwner, userLimitEndTime: lastRewardTime + baseUserLimitTime })); } // Update the given pool's reward per second. Can only be called by the owner. function setRewardPerSecond(uint256 _pid, uint256 _rewardPerSecond) external onlyOwner { updatePool(_pid); poolInfo[_pid].RewardPerSecond = _rewardPerSecond; emit SetRewardPerSecond(_pid, _rewardPerSecond); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "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 IERC20","name":"_xTAROT","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenRecovered","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AdminTokenRecovery","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_rewardPerSecond","type":"uint256"}],"name":"SetRewardPerSecond","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"_rewardPerSecond","type":"uint256"},{"internalType":"contract IERC20Ext","name":"_Token","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"},{"internalType":"address","name":"_protocolOwner","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"baseUserLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUserLimitTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_time","type":"uint256"}],"name":"changeBaseUserLimitTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint32","name":"addSeconds","type":"uint32"}],"name":"changeEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_time","type":"uint256"}],"name":"changePoolUserLimitEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"changeUserLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"emergencyRewardWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"RewardToken","type":"address"},{"internalType":"uint256","name":"RewardPerSecond","type":"uint256"},{"internalType":"uint256","name":"TokenPrecision","type":"uint256"},{"internalType":"uint256","name":"xTAROTStakedAmount","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"accRewardPerShare","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"userLimitEndTime","type":"uint256"},{"internalType":"address","name":"protocolOwnerAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"recoverWrongTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_rewardPerSecond","type":"uint256"}],"name":"setRewardPerSecond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"stopReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"xTAROT","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a06040526202a300600155600060025534801561001c57600080fd5b5060405162001ca638038062001ca683398101604081905261003d916100ab565b6100463361005b565b60601b6001600160601b0319166080526100d9565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100bc578081fd5b81516001600160a01b03811681146100d2578182fd5b9392505050565b60805160601c611b9262000114600039600081816101ef015281816106c1015281816107a80152818161089501526110e60152611b926000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c806377300089116100c3578063a84f27301161007c578063a84f27301461033c578063b5f578fc14610345578063bebdbc0c14610358578063cc43d9c414610361578063e2bbb15814610374578063f2fde38b1461038757600080fd5b806377300089146102985780637ffb25ef146102ab5780638da5cb5b146102be57806393f1a40b146102cf57806398969e821461031657806399c5ccf41461032957600080fd5b80632c636645116101155780632c6366451461023c578063441a3e701461024f5780635312ea8e14610262578063630b5ba114610275578063715018a61461027d578063746268cc1461028557600080fd5b8063081e3eda14610152578063084f8604146101695780631526fe271461017e5780631a3fb725146101ea57806326102c4714610229575b600080fd5b6003545b6040519081526020015b60405180910390f35b61017c6101773660046118e1565b61039a565b005b61019161018c36600461180c565b61041e565b604080516001600160a01b039b8c168152602081019a909a528901979097526060880195909552608087019390935260a086019190915260c085015260e084015261010083015290911661012082015261014001610160565b6102117f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610160565b61017c61023736600461180c565b61048e565b61017c61024a3660046118c0565b6104bd565b61017c61025d3660046118c0565b610577565b61017c61027036600461180c565b610726565b61017c61080c565b61017c610833565b61017c6102933660046117d0565b610869565b61017c6102a636600461180c565b610a01565b61017c6102b93660046118c0565b610a65565b6000546001600160a01b0316610211565b6103016102dd36600461183c565b60046020908152600092835260408084209091529082529020805460019091015482565b60408051928352602083019190915201610160565b61015661032436600461183c565b610aca565b61017c61033736600461180c565b610c54565b61015660015481565b61017c6103533660046118c0565b610c83565b61015660025481565b61017c61036f36600461186b565b610d27565b61017c6103823660046118c0565b610f59565b61017c6103953660046117d0565b611142565b6000546001600160a01b031633146103cd5760405162461bcd60e51b81526004016103c49061195c565b60405180910390fd5b8063ffffffff16600383815481106103f557634e487b7160e01b600052603260045260246000fd5b90600052602060002090600a020160060160008282546104159190611991565b90915550505050565b6003818154811061042e57600080fd5b60009182526020909120600a909102018054600182015460028301546003840154600485015460058601546006870154600788015460088901546009909901546001600160a01b039889169a50969895979496939592949193909291168a565b6000546001600160a01b031633146104b85760405162461bcd60e51b81526004016103c49061195c565b600155565b6000546001600160a01b031633146104e75760405162461bcd60e51b81526004016103c49061195c565b6105736003838154811061050b57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600a020160090160009054906101000a90046001600160a01b0316826003858154811061055257634e487b7160e01b600052603260045260246000fd5b60009182526020909120600a90910201546001600160a01b031691906111dd565b5050565b60006003838154811061059a57634e487b7160e01b600052603260045260246000fd5b6000918252602080832086845260048252604080852033865290925292208054600a90920290920192508311156106085760405162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b60448201526064016103c4565b61061184611245565b600081600101548360020154846005015484600001546106319190611ab4565b61063b91906119a9565b6106459190611ad3565b90508382600001600082825461065b9190611ad3565b92505081905550838360030160008282546106769190611ad3565b90915550506002830154600584015483546106919190611ab4565b61069b91906119a9565b600183015580156106bc5782546106bc906001600160a01b03163383611381565b6106e77f00000000000000000000000000000000000000000000000000000000000000003386611381565b604051848152859033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568906020015b60405180910390a35050505050565b60006003828154811061074957634e487b7160e01b600052603260045260246000fd5b600091825260208083208584526004825260408085203386529092529083208054600a93909302909101600381018054919550919383929161078c908490611ad3565b9091555050600080835560018301556107cf6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633836111dd565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959060200160405180910390a350505050565b60035460005b818110156105735761082381611245565b61082c81611b16565b9050610812565b6000546001600160a01b0316331461085d5760405162461bcd60e51b81526004016103c49061195c565b6108676000611438565b565b6000546001600160a01b031633146108935760405162461bcd60e51b81526004016103c49061195c565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b031614156109215760405162461bcd60e51b8152602060048201526024808201527f7265636f76657257726f6e67546f6b656e733a2043616e6e6f74206265207854604482015263105493d560e21b60648201526084016103c4565b61092a81611488565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561096c57600080fd5b505afa158015610980573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a49190611824565b90506109ba6001600160a01b03831633836111dd565b604080516001600160a01b0384168152602081018390527f74545154aac348a3eac92596bd1971957ca94795f4e954ec5f613b55fab7812991015b60405180910390a15050565b6000546001600160a01b03163314610a2b5760405162461bcd60e51b81526004016103c49061195c565b4360038281548110610a4d57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600a02016006018190555050565b6000546001600160a01b03163314610a8f5760405162461bcd60e51b81526004016103c49061195c565b8060038381548110610ab157634e487b7160e01b600052603260045260246000fd5b90600052602060002090600a0201600801819055505050565b60008060038481548110610aee57634e487b7160e01b600052603260045260246000fd5b600091825260208083206040805161014081018252600a90940290910180546001600160a01b039081168552600180830154868601526002830154868501526003830154606087015260048084015460808801908152600585015460a08901908152600686015460c08a0152600786015460e08a015260088601546101008a015260099095015484166101208901528c8952908652848820928b16885291855295839020835180850190945280548452909501549282019290925290519251919350919042118015610bc35750606083015115155b15610c1d576000610bd984608001514286611547565b90506000846020015182610bed9190611ab4565b90508460600151856040015182610c049190611ab4565b610c0e91906119a9565b610c189084611991565b925050505b602082015160408401518351610c34908490611ab4565b610c3e91906119a9565b610c489190611ad3565b93505050505b92915050565b6000546001600160a01b03163314610c7e5760405162461bcd60e51b81526004016103c49061195c565b600255565b6000546001600160a01b03163314610cad5760405162461bcd60e51b81526004016103c49061195c565b610cb682611245565b8060038381548110610cd857634e487b7160e01b600052603260045260246000fd5b90600052602060002090600a0201600101819055507fcf46b21c204617ffb815b827463db479e0f3cdc9586e33690d10ced9541fcda082826040516109f5929190918252602082015260400190565b6000546001600160a01b03163314610d515760405162461bcd60e51b81526004016103c49061195c565b610d5a84611488565b6000834211610d695783610d6b565b425b90506000856001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610daa57600080fd5b505af1158015610dbe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de29190611824565b9050601e8110610e345760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e206861732077617920746f6f206d616e7920646563696d616c730060448201526064016103c4565b6000610e4182601e611ad3565b610e4c90600a611a0c565b90506003604051806101400160405280896001600160a01b031681526020018a8152602001838152602001600081526020018581526020016000815260200187815260200188815260200160015486610ea59190611991565b81526001600160a01b039687166020918201528254600181810185556000948552938290208351600a9092020180549189166001600160a01b0319928316178155918301519382019390935560408201516002820155606082015160038201556080820151600482015560a0820151600582015560c0820151600682015560e08201516007820155610100820151600882015561012090910151600990910180549190961691161790935550505050505050565b600060038381548110610f7c57634e487b7160e01b600052603260045260246000fd5b600091825260208083208684526004825260408085203386529092529220600254600a909202909201925015801590610fb85750816008015442105b15611025576002548154610fcd908590611991565b11156110255760405162461bcd60e51b815260206004820152602160248201527f6465706f7369743a20757365722068617320686974206465706f7369742063616044820152600760fc1b60648201526084016103c4565b61102e84611245565b6000816001015483600201548460050154846000015461104e9190611ab4565b61105891906119a9565b6110629190611ad3565b9050838260000160008282546110789190611991565b92505081905550838360030160008282546110939190611991565b90915550506002830154600584015483546110ae9190611ab4565b6110b891906119a9565b600183015580156110d95782546110d9906001600160a01b03163383611381565b61110e6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330876115bb565b604051848152859033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1590602001610717565b6000546001600160a01b0316331461116c5760405162461bcd60e51b81526004016103c49061195c565b6001600160a01b0381166111d15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103c4565b6111da81611438565b50565b6040516001600160a01b03831660248201526044810182905261124090849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526115f3565b505050565b60006003828154811061126857634e487b7160e01b600052603260045260246000fd5b90600052602060002090600a0201905080600401544211611287575050565b600381015461129a574260049091015550565b6004810154604080516101408101825283546001600160a01b039081168252600185015460208301526002850154928201929092526003840154606082015260808101839052600584015460a0820152600684015460c0820152600784015460e082015260088401546101008201526009840154909116610120820152600091611325914290611547565b905060008260010154826113399190611ab4565b905082600301548360020154826113509190611ab4565b61135a91906119a9565b83600501600082825461136d9190611991565b909155505042600490930192909255505050565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a082319060240160206040518083038186803b1580156113c357600080fd5b505afa1580156113d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113fb9190611824565b90508082111561141e576114196001600160a01b03851684836111dd565b611432565b6114326001600160a01b03851684846111dd565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60035460005b8181101561124057826001600160a01b0316600382815481106114c157634e487b7160e01b600052603260045260246000fd5b60009182526020909120600a90910201546001600160a01b031614156115355760405162461bcd60e51b8152602060048201526024808201527f636865636b466f72546f6b656e3a2072657761726420746f6b656e2070726f766044820152631a59195960e21b60648201526084016103c4565b8061153f81611b16565b91505061148e565b60008160e00151841161155e578160e00151611560565b835b93508160c0015184118061157757508160e0015183105b15611584575060006115b4565b8160c001518311156115a757838260c001516115a09190611ad3565b90506115b4565b6115b18484611ad3565b90505b9392505050565b6040516001600160a01b03808516602483015283166044820152606481018290526114329085906323b872dd60e01b90608401611209565b6000611648826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116c59092919063ffffffff16565b805190915015611240578080602001905181019061166691906117ec565b6112405760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103c4565b60606115b1848460008585843b61171e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103c4565b600080866001600160a01b0316858760405161173a919061190d565b60006040518083038185875af1925050503d8060008114611777576040519150601f19603f3d011682016040523d82523d6000602084013e61177c565b606091505b509150915061178c828286611797565b979650505050505050565b606083156117a65750816115b4565b8251156117b65782518084602001fd5b8160405162461bcd60e51b81526004016103c49190611929565b6000602082840312156117e1578081fd5b81356115b481611b47565b6000602082840312156117fd578081fd5b815180151581146115b4578182fd5b60006020828403121561181d578081fd5b5035919050565b600060208284031215611835578081fd5b5051919050565b6000806040838503121561184e578081fd5b82359150602083013561186081611b47565b809150509250929050565b600080600080600060a08688031215611882578081fd5b85359450602086013561189481611b47565b9350604086013592506060860135915060808601356118b281611b47565b809150509295509295909350565b600080604083850312156118d2578182fd5b50508035926020909101359150565b600080604083850312156118f3578182fd5b82359150602083013563ffffffff81168114611860578182fd5b6000825161191f818460208701611aea565b9190910192915050565b6020815260008251806020840152611948816040850160208701611aea565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156119a4576119a4611b31565b500190565b6000826119c457634e487b7160e01b81526012600452602481fd5b500490565b600181815b80851115611a045781600019048211156119ea576119ea611b31565b808516156119f757918102915b93841c93908002906119ce565b509250929050565b60006115b48383600082611a2257506001610c4e565b81611a2f57506000610c4e565b8160018114611a455760028114611a4f57611a6b565b6001915050610c4e565b60ff841115611a6057611a60611b31565b50506001821b610c4e565b5060208310610133831016604e8410600b8410161715611a8e575081810a610c4e565b611a9883836119c9565b8060001904821115611aac57611aac611b31565b029392505050565b6000816000190483118215151615611ace57611ace611b31565b500290565b600082821015611ae557611ae5611b31565b500390565b60005b83811015611b05578181015183820152602001611aed565b838111156114325750506000910152565b6000600019821415611b2a57611b2a611b31565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146111da57600080fdfea2646970667358221220b4c45bba39087aae15acb5cdef75908e9b1797eae87d99b440d5e06c14f85fd864736f6c6343000804003300000000000000000000000074d1d2a851e339b8cb953716445be7e8abdf92f4
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000074d1d2a851e339b8cb953716445be7e8abdf92f4
-----Decoded View---------------
Arg [0] : _xTAROT (address): 0x74d1d2a851e339b8cb953716445be7e8abdf92f4
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000074d1d2a851e339b8cb953716445be7e8abdf92f4
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Validator ID :
0 FTM
Amount Staked
0
Amount Delegated
0
Staking Total
0
Staking Start Epoch
0
Staking Start Time
0
Proof of Importance
0
Origination Score
0
Validation Score
0
Active
0
Online
0
Downtime
0 s
Address | Amount | claimed Rewards | Created On Epoch | Created On |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.