Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
Latest 25 from a total of 291 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Staking Claim | 18145334 | 368 days ago | IN | 0 ETH | 0.00063721 | ||||
Staking Claim | 18145334 | 368 days ago | IN | 0 ETH | 0.00063721 | ||||
Staking Claim | 18145334 | 368 days ago | IN | 0 ETH | 0.00063721 | ||||
Staking Claim | 18145334 | 368 days ago | IN | 0 ETH | 0.00063721 | ||||
Staking Claim | 18145334 | 368 days ago | IN | 0 ETH | 0.00055614 | ||||
Staking Claim | 18145334 | 368 days ago | IN | 0 ETH | 0.00055614 | ||||
Staking Claim | 18145334 | 368 days ago | IN | 0 ETH | 0.00055614 | ||||
Staking Claim | 18145334 | 368 days ago | IN | 0 ETH | 0.00050052 | ||||
Staking Claim | 17129528 | 511 days ago | IN | 0 ETH | 0.00103442 | ||||
Staking Claim | 17024501 | 526 days ago | IN | 0 ETH | 0.00046922 | ||||
Staking Claim | 16965903 | 534 days ago | IN | 0 ETH | 0.00057072 | ||||
Staking Claim | 16965900 | 534 days ago | IN | 0 ETH | 0.00060003 | ||||
Staking Claim | 16955457 | 536 days ago | IN | 0 ETH | 0.00056035 | ||||
Staking Claim | 16955450 | 536 days ago | IN | 0 ETH | 0.00052484 | ||||
Staking Claim | 16652617 | 578 days ago | IN | 0 ETH | 0.00056062 | ||||
Staking Claim | 16652613 | 578 days ago | IN | 0 ETH | 0.00060373 | ||||
Staking Claim | 16585526 | 588 days ago | IN | 0 ETH | 0.00086629 | ||||
Staking Claim | 16297574 | 628 days ago | IN | 0 ETH | 0.00098121 | ||||
Staking Claim | 16240982 | 636 days ago | IN | 0 ETH | 0.00093564 | ||||
Staking Claim | 16233112 | 637 days ago | IN | 0 ETH | 0.00083348 | ||||
Staking Claim | 16233103 | 637 days ago | IN | 0 ETH | 0.00068201 | ||||
Staking Claim | 16233098 | 637 days ago | IN | 0 ETH | 0.00072834 | ||||
Staking Claim | 16233079 | 637 days ago | IN | 0 ETH | 0.00065715 | ||||
Staking Claim | 16202249 | 641 days ago | IN | 0 ETH | 0.00076416 | ||||
Staking Claim | 16084281 | 658 days ago | IN | 0 ETH | 0.00087054 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
TavaStakingClaim
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.9; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./ITavaStakingClaim.sol"; contract TavaStakingClaim is ITavaStakingClaim, Ownable, ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for IERC20; mapping(address => mapping(uint256 => IReceivedInfo[])) public ReceivedInfos; mapping(address => mapping(uint256 => uint256)) public StakedInfos; uint256 public TotalReceivedTokenAmount = 0; uint256[] public ReceiveableDates; ICondition public Condition; address public RewardTokenAddress; constructor (uint256[] memory _ReceiveableDates, address _RewardTokenAddress) { Condition = ICondition(30, 4); ReceiveableDates = _ReceiveableDates; RewardTokenAddress = _RewardTokenAddress; } // view function START function BalanceToAddress(address account) external view returns(uint256) { return IERC20(RewardTokenAddress).balanceOf(account); } function GetElapsedToDuration(uint256 _ReceiveableDateIdx) public view override returns(uint256 _elapsedDays) { uint256 _duration = (Condition._duration) * 1 days; uint256 _ReceiveableDate = ReceiveableDates[_ReceiveableDateIdx]; // 보상 받기 시작되는 날짜 if(_ReceiveableDate > block.timestamp){ return 0; } uint256 _elapsedDaysTemp = (block.timestamp.sub(_ReceiveableDate)).div(_duration) + 1; if(_elapsedDaysTemp > 4) { return 4; } else { return _elapsedDaysTemp; } } function GetCurrentReceivedToken(address _receiver, uint256 _ReceiveableDateIdx) public view override returns (uint256 _CurrentReceivedTokenAmount) { IReceivedInfo[] memory _ReceivedInfos = ReceivedInfos[_receiver][_ReceiveableDateIdx]; uint256 _CurrentReceivedTokens = 0; for (uint256 i = 0; i < _ReceivedInfos.length; i++) { _CurrentReceivedTokens = _ReceivedInfos[i]._receivedTokenAmount; } return _CurrentReceivedTokens; } function GetCurrentReceiveableToken(address _receiver, uint256 _ReceiveableDateIdx, uint256 _ElapsedToDuration) public view override returns (uint256 _CurrentReceiveableToken) { uint256 _TotalReceiveableTokenAmount = StakedInfos[_receiver][_ReceiveableDateIdx]; uint256 _unlockCount = Condition._unlockCount; uint256 _TotalCurrentReceiveableTokenAmount = _TotalReceiveableTokenAmount.div(_unlockCount).mul(_ElapsedToDuration); // 현재 받을 수 있는 토큰량 : 단위 wei uint256 _CurrentReceivedTokenAmount = GetCurrentReceivedToken(_receiver, _ReceiveableDateIdx).mul(1 ether); // 받아간 토큰량 : 단위 wei if(_TotalCurrentReceiveableTokenAmount > _CurrentReceivedTokenAmount) return _TotalCurrentReceiveableTokenAmount.sub(_CurrentReceivedTokenAmount); else return 0; } function GetReceivedInfo(address _receiver, uint256 _ReceiveableDateIdx) public view override returns (uint256 _ReceivedAmount) { uint256 _ReceivedInfoLength = ReceivedInfos[_receiver][_ReceiveableDateIdx].length; uint256 _receivedAmount = 0; for (uint256 i = 0; i < _ReceivedInfoLength; i++) { _receivedAmount += ReceivedInfos[_receiver][_ReceiveableDateIdx][i]._receivedTokenAmount; } return _receivedAmount; } // view function END function SetRewardTokenAddress(address _RewardTokenAddress) external onlyOwner { RewardTokenAddress = _RewardTokenAddress; } function SetStakedInfos(IStakedInfoInput[] calldata _StakedInfoInput, uint256 _ReceiveableDateIdx, uint256 _OffsetNum) external onlyOwner override { require(_StakedInfoInput.length < 41,"setStakedInfo_ERR_001"); for (uint256 i = 0; i < _StakedInfoInput.length; i++) { address _receiver = _StakedInfoInput[i]._receiver; uint256 _TotalReceiveableTokenAmount = _StakedInfoInput[i]._totalReceiveableTokenAmount * 1 ether; StakedInfos[_receiver][_ReceiveableDateIdx] = _TotalReceiveableTokenAmount; } emit setStakedInfos(_ReceiveableDateIdx, _OffsetNum); } function SetStakedRecivedInfo(IStakedRecivedInfoInput[] calldata _stakedRecivedInfoInput, uint256 _receiveableDateIdx, uint256 _offsetNum) external onlyOwner override { require(_stakedRecivedInfoInput.length < 41,"setStakedInfo_ERR_001"); for (uint256 i = 0; i < _stakedRecivedInfoInput.length; i++) { address _receiver = _stakedRecivedInfoInput[i]._receiver; uint256 _totalReceiveableTokenAmount = _stakedRecivedInfoInput[i]._totalReceiveableTokenAmount * 1 ether; StakedInfos[_receiver][_receiveableDateIdx] = _totalReceiveableTokenAmount; if(_stakedRecivedInfoInput[i]._receivedTokenAmount > 0) { ReceivedInfos[_receiver][_receiveableDateIdx].push(IReceivedInfo(_stakedRecivedInfoInput[i]._receivedDate, _stakedRecivedInfoInput[i]._receivedTokenAmount)); TotalReceivedTokenAmount += _stakedRecivedInfoInput[i]._receivedTokenAmount * 1 ether; } } emit setStakedInfos(_receiveableDateIdx, _offsetNum); } function SetStakedInfo(address _receiver, uint256 _ReceiveableDateIdx, uint256 _TotalReceiveableTokenAmount) external onlyOwner override { StakedInfos[_receiver][_ReceiveableDateIdx] = _TotalReceiveableTokenAmount; emit setStakedInfo(_receiver, _ReceiveableDateIdx, _TotalReceiveableTokenAmount); } function SetCondition(uint256 _duration, uint256 _unlockCount) external onlyOwner override { Condition = ICondition(_duration, _unlockCount); emit setCondition(ICondition(_duration, _unlockCount)); } function SetReceiveableDates(uint256[] calldata _ReceiveableDates) external onlyOwner override { ReceiveableDates = _ReceiveableDates; emit setReceiveableDates(_ReceiveableDates); } function StakingClaim(uint256 _ReceiveableDateIdx) external nonReentrant override { uint256 _ElapsedToDuration = GetElapsedToDuration(_ReceiveableDateIdx); uint256 _CurrentReceiveableToken = GetCurrentReceiveableToken(_msgSender(), _ReceiveableDateIdx, _ElapsedToDuration); require(_CurrentReceiveableToken > 0, "Claim_ERR_001"); IERC20(RewardTokenAddress).transfer(_msgSender(), _CurrentReceiveableToken); ReceivedInfos[_msgSender()][_ReceiveableDateIdx].push(IReceivedInfo(block.timestamp, _CurrentReceiveableToken)); TotalReceivedTokenAmount += _CurrentReceiveableToken; emit stakingClaim(_msgSender(), block.timestamp, _CurrentReceiveableToken, _ReceiveableDateIdx); } function claimTava() external onlyOwner { uint256 _TavaBalance = IERC20(RewardTokenAddress).balanceOf(address(this)); IERC20(RewardTokenAddress).transfer(owner(), _TavaBalance); } function claimTava(uint256 _amount) external onlyOwner { IERC20(RewardTokenAddress).transfer(owner(), _amount.mul(1 ether)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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 v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // 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; } } }
// 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: UNLICENSED pragma solidity 0.8.9; interface ITavaStakingClaim { /** SetStakedInfo_ERR_001 : 데이터는 최대 40개 까지만 넣을 수 있습니다. Claim_ERR_001 : 더이상 받을 수 있는 토큰이 없습니다. */ struct IStakedInfoInput { address _receiver; uint256 _totalReceiveableTokenAmount; } struct IStakedRecivedInfoInput { address _receiver; uint256 _totalReceiveableTokenAmount; uint256 _receivedDate; uint256 _receivedTokenAmount; } struct ICondition { uint256 _duration; uint256 _unlockCount; } struct IReceivedInfo { uint256 _receivedDate; uint256 _receivedTokenAmount; } event setStakedInfos(uint256 _receiveableDateIdx, uint256 _offsetNum); event setStakedInfo(address _receiver, uint256 _receiveableDateIdx, uint256 _totalReceiveableTokenAmount); event setCondition(ICondition _condition); event setReceiveableDates(uint256[] _receiveableDates); event stakingClaim(address _receiver, uint256 _receivedDate, uint256 _receivedTokenAmount, uint256 _receiveableDateIdx); function GetElapsedToDuration(uint256 _receiveableDateIdx) external view returns(uint256 _elapsedDays); function GetCurrentReceivedToken(address _receiver, uint256 _receiveableDateIdx) external view returns (uint256 _currentReceivedTokenAmount); function GetCurrentReceiveableToken(address _receiver, uint256 _receiveableDateIdx, uint256 _elapsedToDuration) external view returns (uint256 _currentReceiveableToken); function GetReceivedInfo(address _receiver, uint256 _receiveableDateIdx) external view returns (uint256 _receivedAmount); function SetStakedInfos(IStakedInfoInput[] calldata _stakedInfoInput, uint256 _receiveableDateIdx, uint256 _offsetNum) external; function SetStakedRecivedInfo(IStakedRecivedInfoInput[] calldata _stakedRecivedInfoInput, uint256 _receiveableDateIdx, uint256 _offsetNum) external; function SetStakedInfo(address _receiver, uint256 _receiveableDateIdx, uint256 _totalReceiveableTokenAmount) external; function SetCondition(uint256 _duration, uint256 _unlockCount) external; function SetReceiveableDates(uint256[] calldata _receiveableDates) external; function StakingClaim(uint256 _receiveableDateIdx) external; }
// 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 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.7.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 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 /// @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; } }
{ "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":"uint256[]","name":"_ReceiveableDates","type":"uint256[]"},{"internalType":"address","name":"_RewardTokenAddress","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":[{"components":[{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_unlockCount","type":"uint256"}],"indexed":false,"internalType":"struct ITavaStakingClaim.ICondition","name":"_condition","type":"tuple"}],"name":"setCondition","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"_receiveableDates","type":"uint256[]"}],"name":"setReceiveableDates","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"_receiveableDateIdx","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_totalReceiveableTokenAmount","type":"uint256"}],"name":"setStakedInfo","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_receiveableDateIdx","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_offsetNum","type":"uint256"}],"name":"setStakedInfos","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"_receivedDate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_receivedTokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_receiveableDateIdx","type":"uint256"}],"name":"stakingClaim","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"BalanceToAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Condition","outputs":[{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_unlockCount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_ReceiveableDateIdx","type":"uint256"},{"internalType":"uint256","name":"_ElapsedToDuration","type":"uint256"}],"name":"GetCurrentReceiveableToken","outputs":[{"internalType":"uint256","name":"_CurrentReceiveableToken","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_ReceiveableDateIdx","type":"uint256"}],"name":"GetCurrentReceivedToken","outputs":[{"internalType":"uint256","name":"_CurrentReceivedTokenAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ReceiveableDateIdx","type":"uint256"}],"name":"GetElapsedToDuration","outputs":[{"internalType":"uint256","name":"_elapsedDays","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_ReceiveableDateIdx","type":"uint256"}],"name":"GetReceivedInfo","outputs":[{"internalType":"uint256","name":"_ReceivedAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ReceiveableDates","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"ReceivedInfos","outputs":[{"internalType":"uint256","name":"_receivedDate","type":"uint256"},{"internalType":"uint256","name":"_receivedTokenAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RewardTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_unlockCount","type":"uint256"}],"name":"SetCondition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ReceiveableDates","type":"uint256[]"}],"name":"SetReceiveableDates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_RewardTokenAddress","type":"address"}],"name":"SetRewardTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_ReceiveableDateIdx","type":"uint256"},{"internalType":"uint256","name":"_TotalReceiveableTokenAmount","type":"uint256"}],"name":"SetStakedInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_totalReceiveableTokenAmount","type":"uint256"}],"internalType":"struct ITavaStakingClaim.IStakedInfoInput[]","name":"_StakedInfoInput","type":"tuple[]"},{"internalType":"uint256","name":"_ReceiveableDateIdx","type":"uint256"},{"internalType":"uint256","name":"_OffsetNum","type":"uint256"}],"name":"SetStakedInfos","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_totalReceiveableTokenAmount","type":"uint256"},{"internalType":"uint256","name":"_receivedDate","type":"uint256"},{"internalType":"uint256","name":"_receivedTokenAmount","type":"uint256"}],"internalType":"struct ITavaStakingClaim.IStakedRecivedInfoInput[]","name":"_stakedRecivedInfoInput","type":"tuple[]"},{"internalType":"uint256","name":"_receiveableDateIdx","type":"uint256"},{"internalType":"uint256","name":"_offsetNum","type":"uint256"}],"name":"SetStakedRecivedInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"StakedInfos","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ReceiveableDateIdx","type":"uint256"}],"name":"StakingClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"TotalReceivedTokenAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"claimTava","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimTava","outputs":[],"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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260006004553480156200001657600080fd5b506040516200167738038062001677833981016040819052620000399162000190565b6200004433620000a6565b6001805560408051808201909152601e8082526004602092830181905260069190915560075582516200007e9160059190850190620000f6565b50600880546001600160a01b0319166001600160a01b0392909216919091179055506200026d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805482825590600052602060002090810192821562000134579160200282015b828111156200013457825182559160200191906001019062000117565b506200014292915062000146565b5090565b5b8082111562000142576000815560010162000147565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200018b57600080fd5b919050565b60008060408385031215620001a457600080fd5b82516001600160401b0380821115620001bc57600080fd5b818501915085601f830112620001d157600080fd5b8151602082821115620001e857620001e86200015d565b8160051b604051601f19603f830116810181811086821117156200021057620002106200015d565b6040529283528183019350848101820192898411156200022f57600080fd5b948201945b838610156200024f5785518552948201949382019362000234565b965062000260905087820162000173565b9450505050509250929050565b6113fa806200027d6000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c806396cf8c1e116100c3578063d64786371161007c578063d6478637146102cf578063e7af7108146102e2578063e82f1e83146102f5578063e86eb91f14610308578063f2fde38b14610310578063fd40907b1461032357600080fd5b806396cf8c1e1461025d578063974299a01461027057806397826dcd14610283578063af997a6714610296578063bc879e92146102a9578063cb2918cb146102bc57600080fd5b8063715018a611610115578063715018a6146101cc578063776054f4146101d457806386393675146101e75780638da5cb5b146101fa5780638dd269121461021f57806394047d0b1461024a57600080fd5b8063129bbb8c146101525780633148431c1461017857806336776f061461018d5780634203adae146101a0578063620a9240146101c3575b600080fd5b610165610160366004611086565b610336565b6040519081526020015b60405180910390f35b61018b6101863660046110b0565b6103d4565b005b61018b61019b3660046110e3565b610444565b6006546007546101ae919082565b6040805192835260208301919091520161016f565b61016560045481565b61018b61067f565b6101656101e2366004611086565b610693565b61018b6101f5366004611165565b61075a565b6000546001600160a01b03165b6040516001600160a01b03909116815260200161016f565b61016561022d366004611086565b600360209081526000928352604080842090915290825290205481565b61016561025836600461117e565b61081a565b61018b61026b36600461117e565b61089e565b600854610207906001600160a01b031681565b61018b610291366004611165565b6108c8565b6101656102a4366004611165565b610ac0565b61018b6102b7366004611199565b610b4a565b6101656102ca366004611165565b610c3d565b61018b6102dd3660046111ff565b610c5e565b6101656102f03660046110b0565b610cd1565b6101ae6103033660046110b0565b610d56565b61018b610da0565b61018b61031e36600461117e565b610e7d565b61018b610331366004611221565b610ef6565b6001600160a01b038216600090815260026020908152604080832084845290915281205481805b828110156103cb576001600160a01b0386166000908152600260209081526040808320888452909152902080548290811061039a5761039a611296565b906000526020600020906002020160010154826103b791906112c2565b9150806103c3816112da565b91505061035d565b50949350505050565b6103dc610f3c565b6001600160a01b03831660008181526003602090815260408083208684528252918290208490558151928352820184905281018290527f665286d7b5f6aff6ffee5a73f1f116d905257ce03bb27b9cc5c292d7000dbaab9060600160405180910390a1505050565b61044c610f3c565b602983106104995760405162461bcd60e51b81526020600482015260156024820152747365745374616b6564496e666f5f4552525f30303160581b60448201526064015b60405180910390fd5b60005b8381101561063f5760008585838181106104b8576104b8611296565b6104ce926020608090920201908101915061117e565b905060008686848181106104e4576104e4611296565b90506080020160200135670de0b6b3a764000061050191906112f5565b6001600160a01b0383166000908152600360209081526040808320898452909152812082905590915087878581811061053c5761053c611296565b90506080020160600135111561062a576001600160a01b0382166000908152600260209081526040808320888452909152908190208151808301909252908089898781811061058d5761058d611296565b9050608002016040013581526020018989878181106105ae576105ae611296565b6080029190910160600135909152508154600180820184556000938452602093849020835160029093020191825591909201519101558686848181106105f6576105f6611296565b90506080020160600135670de0b6b3a764000061061391906112f5565b6004600082825461062491906112c2565b90915550505b50508080610637906112da565b91505061049c565b5060408051838152602081018390527f645b1e9c396e4b6da9280c65f99d7280eefa943c1227f0bf7fc0a722ba44b4a8910160405180910390a150505050565b610687610f3c565b6106916000610f96565b565b6001600160a01b0382166000908152600260209081526040808320848452825280832080548251818502810185019093528083528493849084015b82821015610714578382906000526020600020906002020160405180604001604052908160008201548152602001600182015481525050815260200190600101906106ce565b5050505090506000805b82518110156103cb5782818151811061073957610739611296565b60200260200101516020015191508080610752906112da565b91505061071e565b610762610f3c565b6008546001600160a01b031663a9059cbb6107856000546001600160a01b031690565b61079784670de0b6b3a7640000610fe6565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044015b602060405180830381600087803b1580156107de57600080fd5b505af11580156107f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108169190611314565b5050565b6008546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a082319060240160206040518083038186803b15801561086057600080fd5b505afa158015610874573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108989190611336565b92915050565b6108a6610f3c565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6002600154141561091b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610490565b6002600155600061092b82610ac0565b9050600061093a338484610cd1565b90506000811161097c5760405162461bcd60e51b815260206004820152600d60248201526c436c61696d5f4552525f30303160981b6044820152606401610490565b6008546001600160a01b031663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401602060405180830381600087803b1580156109d657600080fd5b505af11580156109ea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a0e9190611314565b5033600090815260026020818152604080842087855282528084208151808301909252428252818301868152815460018082018455928752938620925193909402909101918255915191015560048054839290610a6c9084906112c2565b9091555050604080513381524260208201528082018390526060810185905290517fe2814bd7dc39b21a8f6f3de33c0dd943a48d0b7d33bbc85d72e95377a9d6e7319181900360800190a150506001805550565b6006546000908190610ad590620151806112f5565b9050600060058481548110610aec57610aec611296565b9060005260206000200154905042811115610b0b575060009392505050565b6000610b2183610b1b4285610ff2565b90610ffe565b610b2c9060016112c2565b90506004811115610b4257506004949350505050565b949350505050565b610b52610f3c565b60298310610b9a5760405162461bcd60e51b81526020600482015260156024820152747365745374616b6564496e666f5f4552525f30303160581b6044820152606401610490565b60005b8381101561063f576000858583818110610bb957610bb9611296565b610bcf926020604090920201908101915061117e565b90506000868684818110610be557610be5611296565b90506040020160200135670de0b6b3a7640000610c0291906112f5565b6001600160a01b0390921660009081526003602090815260408083208884529091529020919091555080610c35816112da565b915050610b9d565b60058181548110610c4d57600080fd5b600091825260209091200154905081565b610c66610f3c565b60408051808201825283815260209081018390526006849055600783905581518083018352848152810183815282518581529051918101919091527fa3a80c601a9bf4afb2e1d4968b542645ed00c82da4c267e68e1d7852447d435e91015b60405180910390a15050565b6001600160a01b038316600090815260036020908152604080832085845290915281205460075482610d0d85610d078585610ffe565b90610fe6565b90506000610d27670de0b6b3a7640000610d078a8a610693565b905080821115610d4657610d3b8282610ff2565b945050505050610d4f565b60009450505050505b9392505050565b60026020528260005260406000206020528160005260406000208181548110610d7e57600080fd5b6000918252602090912060029091020180546001909101549093509150839050565b610da8610f3c565b6008546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610dec57600080fd5b505afa158015610e00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e249190611336565b6008549091506001600160a01b031663a9059cbb610e4a6000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016107c4565b610e85610f3c565b6001600160a01b038116610eea5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610490565b610ef381610f96565b50565b610efe610f3c565b610f0a6005838361100a565b507f4f86c6c0b815c13a6edb9483f4f3bab465590e673921c416d1bbb25755f152158282604051610cc592919061134f565b6000546001600160a01b031633146106915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610490565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610d4f82846112f5565b6000610d4f828461138b565b6000610d4f82846113a2565b828054828255906000526020600020908101928215611045579160200282015b8281111561104557823582559160200191906001019061102a565b50611051929150611055565b5090565b5b808211156110515760008155600101611056565b80356001600160a01b038116811461108157600080fd5b919050565b6000806040838503121561109957600080fd5b6110a28361106a565b946020939093013593505050565b6000806000606084860312156110c557600080fd5b6110ce8461106a565b95602085013595506040909401359392505050565b600080600080606085870312156110f957600080fd5b843567ffffffffffffffff8082111561111157600080fd5b818701915087601f83011261112557600080fd5b81358181111561113457600080fd5b8860208260071b850101111561114957600080fd5b6020928301999098509187013596604001359550909350505050565b60006020828403121561117757600080fd5b5035919050565b60006020828403121561119057600080fd5b610d4f8261106a565b600080600080606085870312156111af57600080fd5b843567ffffffffffffffff808211156111c757600080fd5b818701915087601f8301126111db57600080fd5b8135818111156111ea57600080fd5b8860208260061b850101111561114957600080fd5b6000806040838503121561121257600080fd5b50508035926020909101359150565b6000806020838503121561123457600080fd5b823567ffffffffffffffff8082111561124c57600080fd5b818501915085601f83011261126057600080fd5b81358181111561126f57600080fd5b8660208260051b850101111561128457600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156112d5576112d56112ac565b500190565b60006000198214156112ee576112ee6112ac565b5060010190565b600081600019048311821515161561130f5761130f6112ac565b500290565b60006020828403121561132657600080fd5b81518015158114610d4f57600080fd5b60006020828403121561134857600080fd5b5051919050565b6020808252810182905260006001600160fb1b0383111561136f57600080fd5b8260051b80856040850137600092016040019182525092915050565b60008282101561139d5761139d6112ac565b500390565b6000826113bf57634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220e1b201b2e44e9d11ce0972e64268314684af29745cdf1650da3898168a51a26a64736f6c634300080900330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000debe620609674f21b1089042527f420372ea98a50000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000006319308000000000000000000000000000000000000000000000000000000000632119800000000000000000000000000000000000000000000000000000000063226b00000000000000000000000000000000000000000000000000000000006323bc800000000000000000000000000000000000000000000000000000000063250e000000000000000000000000000000000000000000000000000000000063265f80000000000000000000000000000000000000000000000000000000006327b100000000000000000000000000000000000000000000000000000000006329028000000000000000000000000000000000000000000000000000000000632a540000000000000000000000000000000000000000000000000000000000632ba58000000000000000000000000000000000000000000000000000000000632cf70000000000000000000000000000000000000000000000000000000000632e488000000000000000000000000000000000000000000000000000000000632f9a00000000000000000000000000000000000000000000000000000000006330eb800000000000000000000000000000000000000000000000000000000063323d000000000000000000000000000000000000000000000000000000000063338e80000000000000000000000000000000000000000000000000000000006334e00000000000000000000000000000000000000000000000000000000000633631800000000000000000000000000000000000000000000000000000000063378300000000000000000000000000000000000000000000000000000000006338d48000000000000000000000000000000000000000000000000000000000633a260000000000000000000000000000000000000000000000000000000000633b778000000000000000000000000000000000000000000000000000000000633cc90000000000000000000000000000000000000000000000000000000000633e1a80
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061014d5760003560e01c806396cf8c1e116100c3578063d64786371161007c578063d6478637146102cf578063e7af7108146102e2578063e82f1e83146102f5578063e86eb91f14610308578063f2fde38b14610310578063fd40907b1461032357600080fd5b806396cf8c1e1461025d578063974299a01461027057806397826dcd14610283578063af997a6714610296578063bc879e92146102a9578063cb2918cb146102bc57600080fd5b8063715018a611610115578063715018a6146101cc578063776054f4146101d457806386393675146101e75780638da5cb5b146101fa5780638dd269121461021f57806394047d0b1461024a57600080fd5b8063129bbb8c146101525780633148431c1461017857806336776f061461018d5780634203adae146101a0578063620a9240146101c3575b600080fd5b610165610160366004611086565b610336565b6040519081526020015b60405180910390f35b61018b6101863660046110b0565b6103d4565b005b61018b61019b3660046110e3565b610444565b6006546007546101ae919082565b6040805192835260208301919091520161016f565b61016560045481565b61018b61067f565b6101656101e2366004611086565b610693565b61018b6101f5366004611165565b61075a565b6000546001600160a01b03165b6040516001600160a01b03909116815260200161016f565b61016561022d366004611086565b600360209081526000928352604080842090915290825290205481565b61016561025836600461117e565b61081a565b61018b61026b36600461117e565b61089e565b600854610207906001600160a01b031681565b61018b610291366004611165565b6108c8565b6101656102a4366004611165565b610ac0565b61018b6102b7366004611199565b610b4a565b6101656102ca366004611165565b610c3d565b61018b6102dd3660046111ff565b610c5e565b6101656102f03660046110b0565b610cd1565b6101ae6103033660046110b0565b610d56565b61018b610da0565b61018b61031e36600461117e565b610e7d565b61018b610331366004611221565b610ef6565b6001600160a01b038216600090815260026020908152604080832084845290915281205481805b828110156103cb576001600160a01b0386166000908152600260209081526040808320888452909152902080548290811061039a5761039a611296565b906000526020600020906002020160010154826103b791906112c2565b9150806103c3816112da565b91505061035d565b50949350505050565b6103dc610f3c565b6001600160a01b03831660008181526003602090815260408083208684528252918290208490558151928352820184905281018290527f665286d7b5f6aff6ffee5a73f1f116d905257ce03bb27b9cc5c292d7000dbaab9060600160405180910390a1505050565b61044c610f3c565b602983106104995760405162461bcd60e51b81526020600482015260156024820152747365745374616b6564496e666f5f4552525f30303160581b60448201526064015b60405180910390fd5b60005b8381101561063f5760008585838181106104b8576104b8611296565b6104ce926020608090920201908101915061117e565b905060008686848181106104e4576104e4611296565b90506080020160200135670de0b6b3a764000061050191906112f5565b6001600160a01b0383166000908152600360209081526040808320898452909152812082905590915087878581811061053c5761053c611296565b90506080020160600135111561062a576001600160a01b0382166000908152600260209081526040808320888452909152908190208151808301909252908089898781811061058d5761058d611296565b9050608002016040013581526020018989878181106105ae576105ae611296565b6080029190910160600135909152508154600180820184556000938452602093849020835160029093020191825591909201519101558686848181106105f6576105f6611296565b90506080020160600135670de0b6b3a764000061061391906112f5565b6004600082825461062491906112c2565b90915550505b50508080610637906112da565b91505061049c565b5060408051838152602081018390527f645b1e9c396e4b6da9280c65f99d7280eefa943c1227f0bf7fc0a722ba44b4a8910160405180910390a150505050565b610687610f3c565b6106916000610f96565b565b6001600160a01b0382166000908152600260209081526040808320848452825280832080548251818502810185019093528083528493849084015b82821015610714578382906000526020600020906002020160405180604001604052908160008201548152602001600182015481525050815260200190600101906106ce565b5050505090506000805b82518110156103cb5782818151811061073957610739611296565b60200260200101516020015191508080610752906112da565b91505061071e565b610762610f3c565b6008546001600160a01b031663a9059cbb6107856000546001600160a01b031690565b61079784670de0b6b3a7640000610fe6565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044015b602060405180830381600087803b1580156107de57600080fd5b505af11580156107f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108169190611314565b5050565b6008546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a082319060240160206040518083038186803b15801561086057600080fd5b505afa158015610874573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108989190611336565b92915050565b6108a6610f3c565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6002600154141561091b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610490565b6002600155600061092b82610ac0565b9050600061093a338484610cd1565b90506000811161097c5760405162461bcd60e51b815260206004820152600d60248201526c436c61696d5f4552525f30303160981b6044820152606401610490565b6008546001600160a01b031663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401602060405180830381600087803b1580156109d657600080fd5b505af11580156109ea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a0e9190611314565b5033600090815260026020818152604080842087855282528084208151808301909252428252818301868152815460018082018455928752938620925193909402909101918255915191015560048054839290610a6c9084906112c2565b9091555050604080513381524260208201528082018390526060810185905290517fe2814bd7dc39b21a8f6f3de33c0dd943a48d0b7d33bbc85d72e95377a9d6e7319181900360800190a150506001805550565b6006546000908190610ad590620151806112f5565b9050600060058481548110610aec57610aec611296565b9060005260206000200154905042811115610b0b575060009392505050565b6000610b2183610b1b4285610ff2565b90610ffe565b610b2c9060016112c2565b90506004811115610b4257506004949350505050565b949350505050565b610b52610f3c565b60298310610b9a5760405162461bcd60e51b81526020600482015260156024820152747365745374616b6564496e666f5f4552525f30303160581b6044820152606401610490565b60005b8381101561063f576000858583818110610bb957610bb9611296565b610bcf926020604090920201908101915061117e565b90506000868684818110610be557610be5611296565b90506040020160200135670de0b6b3a7640000610c0291906112f5565b6001600160a01b0390921660009081526003602090815260408083208884529091529020919091555080610c35816112da565b915050610b9d565b60058181548110610c4d57600080fd5b600091825260209091200154905081565b610c66610f3c565b60408051808201825283815260209081018390526006849055600783905581518083018352848152810183815282518581529051918101919091527fa3a80c601a9bf4afb2e1d4968b542645ed00c82da4c267e68e1d7852447d435e91015b60405180910390a15050565b6001600160a01b038316600090815260036020908152604080832085845290915281205460075482610d0d85610d078585610ffe565b90610fe6565b90506000610d27670de0b6b3a7640000610d078a8a610693565b905080821115610d4657610d3b8282610ff2565b945050505050610d4f565b60009450505050505b9392505050565b60026020528260005260406000206020528160005260406000208181548110610d7e57600080fd5b6000918252602090912060029091020180546001909101549093509150839050565b610da8610f3c565b6008546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610dec57600080fd5b505afa158015610e00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e249190611336565b6008549091506001600160a01b031663a9059cbb610e4a6000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016107c4565b610e85610f3c565b6001600160a01b038116610eea5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610490565b610ef381610f96565b50565b610efe610f3c565b610f0a6005838361100a565b507f4f86c6c0b815c13a6edb9483f4f3bab465590e673921c416d1bbb25755f152158282604051610cc592919061134f565b6000546001600160a01b031633146106915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610490565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610d4f82846112f5565b6000610d4f828461138b565b6000610d4f82846113a2565b828054828255906000526020600020908101928215611045579160200282015b8281111561104557823582559160200191906001019061102a565b50611051929150611055565b5090565b5b808211156110515760008155600101611056565b80356001600160a01b038116811461108157600080fd5b919050565b6000806040838503121561109957600080fd5b6110a28361106a565b946020939093013593505050565b6000806000606084860312156110c557600080fd5b6110ce8461106a565b95602085013595506040909401359392505050565b600080600080606085870312156110f957600080fd5b843567ffffffffffffffff8082111561111157600080fd5b818701915087601f83011261112557600080fd5b81358181111561113457600080fd5b8860208260071b850101111561114957600080fd5b6020928301999098509187013596604001359550909350505050565b60006020828403121561117757600080fd5b5035919050565b60006020828403121561119057600080fd5b610d4f8261106a565b600080600080606085870312156111af57600080fd5b843567ffffffffffffffff808211156111c757600080fd5b818701915087601f8301126111db57600080fd5b8135818111156111ea57600080fd5b8860208260061b850101111561114957600080fd5b6000806040838503121561121257600080fd5b50508035926020909101359150565b6000806020838503121561123457600080fd5b823567ffffffffffffffff8082111561124c57600080fd5b818501915085601f83011261126057600080fd5b81358181111561126f57600080fd5b8660208260051b850101111561128457600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156112d5576112d56112ac565b500190565b60006000198214156112ee576112ee6112ac565b5060010190565b600081600019048311821515161561130f5761130f6112ac565b500290565b60006020828403121561132657600080fd5b81518015158114610d4f57600080fd5b60006020828403121561134857600080fd5b5051919050565b6020808252810182905260006001600160fb1b0383111561136f57600080fd5b8260051b80856040850137600092016040019182525092915050565b60008282101561139d5761139d6112ac565b500390565b6000826113bf57634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220e1b201b2e44e9d11ce0972e64268314684af29745cdf1650da3898168a51a26a64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000debe620609674f21b1089042527f420372ea98a50000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000006319308000000000000000000000000000000000000000000000000000000000632119800000000000000000000000000000000000000000000000000000000063226b00000000000000000000000000000000000000000000000000000000006323bc800000000000000000000000000000000000000000000000000000000063250e000000000000000000000000000000000000000000000000000000000063265f80000000000000000000000000000000000000000000000000000000006327b100000000000000000000000000000000000000000000000000000000006329028000000000000000000000000000000000000000000000000000000000632a540000000000000000000000000000000000000000000000000000000000632ba58000000000000000000000000000000000000000000000000000000000632cf70000000000000000000000000000000000000000000000000000000000632e488000000000000000000000000000000000000000000000000000000000632f9a00000000000000000000000000000000000000000000000000000000006330eb800000000000000000000000000000000000000000000000000000000063323d000000000000000000000000000000000000000000000000000000000063338e80000000000000000000000000000000000000000000000000000000006334e00000000000000000000000000000000000000000000000000000000000633631800000000000000000000000000000000000000000000000000000000063378300000000000000000000000000000000000000000000000000000000006338d48000000000000000000000000000000000000000000000000000000000633a260000000000000000000000000000000000000000000000000000000000633b778000000000000000000000000000000000000000000000000000000000633cc90000000000000000000000000000000000000000000000000000000000633e1a80
-----Decoded View---------------
Arg [0] : _ReceiveableDates (uint256[]): 1662595200,1663113600,1663200000,1663286400,1663372800,1663459200,1663545600,1663632000,1663718400,1663804800,1663891200,1663977600,1664064000,1664150400,1664236800,1664323200,1664409600,1664496000,1664582400,1664668800,1664755200,1664841600,1664928000,1665014400
Arg [1] : _RewardTokenAddress (address): 0xdebe620609674F21B1089042527F420372eA98A5
-----Encoded View---------------
27 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 000000000000000000000000debe620609674f21b1089042527f420372ea98a5
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000018
Arg [3] : 0000000000000000000000000000000000000000000000000000000063193080
Arg [4] : 0000000000000000000000000000000000000000000000000000000063211980
Arg [5] : 0000000000000000000000000000000000000000000000000000000063226b00
Arg [6] : 000000000000000000000000000000000000000000000000000000006323bc80
Arg [7] : 0000000000000000000000000000000000000000000000000000000063250e00
Arg [8] : 0000000000000000000000000000000000000000000000000000000063265f80
Arg [9] : 000000000000000000000000000000000000000000000000000000006327b100
Arg [10] : 0000000000000000000000000000000000000000000000000000000063290280
Arg [11] : 00000000000000000000000000000000000000000000000000000000632a5400
Arg [12] : 00000000000000000000000000000000000000000000000000000000632ba580
Arg [13] : 00000000000000000000000000000000000000000000000000000000632cf700
Arg [14] : 00000000000000000000000000000000000000000000000000000000632e4880
Arg [15] : 00000000000000000000000000000000000000000000000000000000632f9a00
Arg [16] : 000000000000000000000000000000000000000000000000000000006330eb80
Arg [17] : 0000000000000000000000000000000000000000000000000000000063323d00
Arg [18] : 0000000000000000000000000000000000000000000000000000000063338e80
Arg [19] : 000000000000000000000000000000000000000000000000000000006334e000
Arg [20] : 0000000000000000000000000000000000000000000000000000000063363180
Arg [21] : 0000000000000000000000000000000000000000000000000000000063378300
Arg [22] : 000000000000000000000000000000000000000000000000000000006338d480
Arg [23] : 00000000000000000000000000000000000000000000000000000000633a2600
Arg [24] : 00000000000000000000000000000000000000000000000000000000633b7780
Arg [25] : 00000000000000000000000000000000000000000000000000000000633cc900
Arg [26] : 00000000000000000000000000000000000000000000000000000000633e1a80
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.