More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 77 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim Rewards | 20770699 | 99 days ago | IN | 0 ETH | 0.00032791 | ||||
Claim Rewards | 19601010 | 263 days ago | IN | 0 ETH | 0.00084313 | ||||
Claim Rewards | 19455217 | 283 days ago | IN | 0 ETH | 0.00310902 | ||||
Claim Rewards | 19344779 | 299 days ago | IN | 0 ETH | 0.00394458 | ||||
Claim Rewards | 19291838 | 306 days ago | IN | 0 ETH | 0.00350421 | ||||
Claim Rewards | 19132911 | 328 days ago | IN | 0 ETH | 0.00147627 | ||||
Claim Rewards | 19050491 | 340 days ago | IN | 0 ETH | 0.00097557 | ||||
Claim Rewards | 19050466 | 340 days ago | IN | 0 ETH | 0.00147574 | ||||
Claim Rewards | 18941769 | 355 days ago | IN | 0 ETH | 0.00287624 | ||||
Claim Rewards | 18834252 | 370 days ago | IN | 0 ETH | 0.0044569 | ||||
Claim Rewards | 18729496 | 385 days ago | IN | 0 ETH | 0.00587752 | ||||
Claim Rewards | 18613335 | 401 days ago | IN | 0 ETH | 0.00225574 | ||||
Claim Rewards | 18557150 | 409 days ago | IN | 0 ETH | 0.00284944 | ||||
Claim Rewards | 18444113 | 425 days ago | IN | 0 ETH | 0.00158822 | ||||
Claim Rewards | 18434008 | 426 days ago | IN | 0 ETH | 0.0014578 | ||||
Claim Rewards | 18408174 | 430 days ago | IN | 0 ETH | 0.00062624 | ||||
Claim Rewards | 18403335 | 431 days ago | IN | 0 ETH | 0.00054493 | ||||
Claim Rewards | 18403314 | 431 days ago | IN | 0 ETH | 0.00070284 | ||||
Claim Rewards | 18352165 | 438 days ago | IN | 0 ETH | 0.00038571 | ||||
Claim Rewards | 18352149 | 438 days ago | IN | 0 ETH | 0.00040061 | ||||
Claim Rewards | 18347661 | 438 days ago | IN | 0 ETH | 0.00049888 | ||||
Claim Rewards | 18029132 | 483 days ago | IN | 0 ETH | 0.00236732 | ||||
Claim Rewards | 17907734 | 500 days ago | IN | 0 ETH | 0.00152724 | ||||
Claim Rewards | 17907733 | 500 days ago | IN | 0 ETH | 0.00153899 | ||||
Claim Rewards | 17907732 | 500 days ago | IN | 0 ETH | 0.00156046 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
RewardVault
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-08-03 */ pragma solidity ^0.6.12; // SPDX-License-Identifier: MIT interface ISateNFT { function ownerOf(uint256 tokenId) external view returns (address); function creators(uint256 tokenId) external view returns (address); function isApproved(uint256 _tokenId, address _operator) external view returns (bool); function sateInfo(uint256 tokenId) external view returns (uint256, uint256, uint256, uint256, uint8, uint8); function setPrimarySalePrice(uint256 _tokenId, uint256 _salePrice) external; function safeTransferFrom(address from, address to, uint256 tokenId) external; } /** * @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); } /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ 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) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { 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) { // 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) { 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) { 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) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @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) { require(b <= a, "SafeMath: subtraction overflow"); 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) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @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. 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) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); 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) { require(b > 0, "SafeMath: modulo by zero"); 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) { 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. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * 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) { 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) { require(b > 0, errorMessage); return a % b; } } /** * @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; // solhint-disable-next-line no-inline-assembly 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } /** * @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 SafeMath for uint256; 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' // solhint-disable-next-line max-line-length 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).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _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 // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } /* * @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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } /** * @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 () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } /// @title RewardVault /// @notice A contract for generating rewards in the starlink ecosystem contract RewardVault is Ownable { using SafeERC20 for IERC20; using SafeMath for uint256; event RewardClaimed( uint256 indexed tokenId, uint256 amount, uint256 timestamp ); ISateNFT sateNft; IERC20 token; mapping(uint256 => uint256) lastUpdatedTime; constructor(ISateNFT _sateNft, IERC20 _token) public { sateNft = _sateNft; token = _token; } function claimable(uint256 _tokenId) public view returns (uint256) { (, , uint256 stLaunchTime, uint256 stLaunchPrice, , uint8 stAPR) = sateNft.sateInfo(_tokenId); uint256 lastUpdated; if (stLaunchTime > lastUpdatedTime[_tokenId]) { if (stLaunchTime >= _getNow()) return 0; lastUpdated = stLaunchTime; } else { lastUpdated = lastUpdatedTime[_tokenId]; } return _getNow().sub(lastUpdated).mul(stLaunchPrice).mul(stAPR).div(100).div(31536000); } function claimRewards(uint256 _tokenId) external { require(sateNft.ownerOf(_tokenId) == _msgSender(), "Must be owner"); uint256 amount = claimable(_tokenId); if (amount > 0) { token.safeTransfer(_msgSender(), amount); lastUpdatedTime[_tokenId] = _getNow(); emit RewardClaimed(_tokenId, amount, _getNow()); } } function _getNow() internal view returns (uint256) { return block.timestamp; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract ISateNFT","name":"_sateNft","type":"address"},{"internalType":"contract IERC20","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"RewardClaimed","type":"event"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"claimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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
608060405234801561001057600080fd5b50604051610b55380380610b558339818101604052604081101561003357600080fd5b50805160209091015160006100466100c1565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b039384166001600160a01b031991821617909155600280549290931691161790556100c5565b3390565b610a81806100d46000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80630962ef791461005c578063715018a61461007b5780638da5cb5b14610083578063d1d58b25146100a7578063f2fde38b146100d6575b600080fd5b6100796004803603602081101561007257600080fd5b50356100fc565b005b61007961025b565b61008b610319565b604080516001600160a01b039092168252519081900360200190f35b6100c4600480360360208110156100bd57600080fd5b5035610328565b60408051918252519081900360200190f35b610079600480360360208110156100ec57600080fd5b50356001600160a01b031661044a565b61010461055e565b600154604080516331a9108f60e11b81526004810185905290516001600160a01b039384169390921691636352211e91602480820192602092909190829003018186803b15801561015457600080fd5b505afa158015610168573d6000803e3d6000fd5b505050506040513d602081101561017e57600080fd5b50516001600160a01b0316146101cb576040805162461bcd60e51b815260206004820152600d60248201526c26bab9ba1031329037bbb732b960991b604482015290519081900360640190fd5b60006101d682610328565b90508015610257576101fc6101e961055e565b6002546001600160a01b03169083610562565b6102046105b9565b600083815260036020526040902055817f64bc8e516eb66c9bd33c0d0f80b0e16a5bac9eb2bce20d6fdf7698a0d7ab6eba8261023e6105b9565b6040805192835260208301919091528051918290030190a25b5050565b61026361055e565b6001600160a01b0316610274610319565b6001600160a01b0316146102cf576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b60015460408051637e1ce08760e01b81526004810184905290516000928392839283926001600160a01b031691637e1ce0879160248083019260c0929190829003018186803b15801561037a57600080fd5b505afa15801561038e573d6000803e3d6000fd5b505050506040513d60c08110156103a457600080fd5b50604080820151606083015160a0909301516000898152600360205292832054919650929450919250908411156103f7576103dd6105b9565b84106103f0576000945050505050610445565b5082610408565b506000858152600360205260409020545b61043e6301e1338061043860646104388660ff16610432896104328961042c6105b9565b906105bd565b9061061f565b9061067f565b9450505050505b919050565b61045261055e565b6001600160a01b0316610463610319565b6001600160a01b0316146104be576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166105035760405162461bcd60e51b81526004018080602001828103825260268152602001806109b56026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526105b49084906106e6565b505050565b4290565b600082821115610614576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b60008261062e57506000610619565b8282028284828161063b57fe5b04146106785760405162461bcd60e51b8152600401808060200182810382526021815260200180610a016021913960400191505060405180910390fd5b9392505050565b60008082116106d5576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816106de57fe5b049392505050565b606061073b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166107979092919063ffffffff16565b8051909150156105b45780806020019051602081101561075a57600080fd5b50516105b45760405162461bcd60e51b815260040180806020018281038252602a815260200180610a22602a913960400191505060405180910390fd5b60606107a684846000856107ae565b949350505050565b6060824710156107ef5760405162461bcd60e51b81526004018080602001828103825260268152602001806109db6026913960400191505060405180910390fd5b6107f88561090a565b610849576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106108885780518252601f199092019160209182019101610869565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146108ea576040519150601f19603f3d011682016040523d82523d6000602084013e6108ef565b606091505b50915091506108ff828286610910565b979650505050505050565b3b151590565b6060831561091f575081610678565b82511561092f5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610979578181015183820152602001610961565b50505050905090810190601f1680156109a65780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220be3fe472f67b39e634e52943b7238fc10c1f51f4f2fcbdc1c6a63aeb6151f4b864736f6c634300060c003300000000000000000000000048470fb3fe7108b9e15b2bf7aa15b7adf774d7210000000000000000000000008e6cd950ad6ba651f6dd608dc70e5886b1aa6b24
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100575760003560e01c80630962ef791461005c578063715018a61461007b5780638da5cb5b14610083578063d1d58b25146100a7578063f2fde38b146100d6575b600080fd5b6100796004803603602081101561007257600080fd5b50356100fc565b005b61007961025b565b61008b610319565b604080516001600160a01b039092168252519081900360200190f35b6100c4600480360360208110156100bd57600080fd5b5035610328565b60408051918252519081900360200190f35b610079600480360360208110156100ec57600080fd5b50356001600160a01b031661044a565b61010461055e565b600154604080516331a9108f60e11b81526004810185905290516001600160a01b039384169390921691636352211e91602480820192602092909190829003018186803b15801561015457600080fd5b505afa158015610168573d6000803e3d6000fd5b505050506040513d602081101561017e57600080fd5b50516001600160a01b0316146101cb576040805162461bcd60e51b815260206004820152600d60248201526c26bab9ba1031329037bbb732b960991b604482015290519081900360640190fd5b60006101d682610328565b90508015610257576101fc6101e961055e565b6002546001600160a01b03169083610562565b6102046105b9565b600083815260036020526040902055817f64bc8e516eb66c9bd33c0d0f80b0e16a5bac9eb2bce20d6fdf7698a0d7ab6eba8261023e6105b9565b6040805192835260208301919091528051918290030190a25b5050565b61026361055e565b6001600160a01b0316610274610319565b6001600160a01b0316146102cf576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b60015460408051637e1ce08760e01b81526004810184905290516000928392839283926001600160a01b031691637e1ce0879160248083019260c0929190829003018186803b15801561037a57600080fd5b505afa15801561038e573d6000803e3d6000fd5b505050506040513d60c08110156103a457600080fd5b50604080820151606083015160a0909301516000898152600360205292832054919650929450919250908411156103f7576103dd6105b9565b84106103f0576000945050505050610445565b5082610408565b506000858152600360205260409020545b61043e6301e1338061043860646104388660ff16610432896104328961042c6105b9565b906105bd565b9061061f565b9061067f565b9450505050505b919050565b61045261055e565b6001600160a01b0316610463610319565b6001600160a01b0316146104be576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166105035760405162461bcd60e51b81526004018080602001828103825260268152602001806109b56026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526105b49084906106e6565b505050565b4290565b600082821115610614576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b60008261062e57506000610619565b8282028284828161063b57fe5b04146106785760405162461bcd60e51b8152600401808060200182810382526021815260200180610a016021913960400191505060405180910390fd5b9392505050565b60008082116106d5576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816106de57fe5b049392505050565b606061073b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166107979092919063ffffffff16565b8051909150156105b45780806020019051602081101561075a57600080fd5b50516105b45760405162461bcd60e51b815260040180806020018281038252602a815260200180610a22602a913960400191505060405180910390fd5b60606107a684846000856107ae565b949350505050565b6060824710156107ef5760405162461bcd60e51b81526004018080602001828103825260268152602001806109db6026913960400191505060405180910390fd5b6107f88561090a565b610849576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106108885780518252601f199092019160209182019101610869565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146108ea576040519150601f19603f3d011682016040523d82523d6000602084013e6108ef565b606091505b50915091506108ff828286610910565b979650505050505050565b3b151590565b6060831561091f575081610678565b82511561092f5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610979578181015183820152602001610961565b50505050905090810190601f1680156109a65780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220be3fe472f67b39e634e52943b7238fc10c1f51f4f2fcbdc1c6a63aeb6151f4b864736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000048470fb3fe7108b9e15b2bf7aa15b7adf774d7210000000000000000000000008e6cd950ad6ba651f6dd608dc70e5886b1aa6b24
-----Decoded View---------------
Arg [0] : _sateNft (address): 0x48470fB3fe7108b9e15b2Bf7aa15b7Adf774d721
Arg [1] : _token (address): 0x8E6cd950Ad6ba651F6DD608Dc70e5886B1AA6B24
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000048470fb3fe7108b9e15b2bf7aa15b7adf774d721
Arg [1] : 0000000000000000000000008e6cd950ad6ba651f6dd608dc70e5886b1aa6b24
Deployed Bytecode Sourcemap
25495:1512:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26505:399;;;;;;;;;;;;;;;;-1:-1:-1;26505:399:0;;:::i;:::-;;24842:148;;;:::i;24191:87::-;;;:::i;:::-;;;;-1:-1:-1;;;;;24191:87:0;;;;;;;;;;;;;;25943:554;;;;;;;;;;;;;;;;-1:-1:-1;25943:554:0;;:::i;:::-;;;;;;;;;;;;;;;;25145:244;;;;;;;;;;;;;;;;-1:-1:-1;25145:244:0;-1:-1:-1;;;;;25145:244:0;;:::i;26505:399::-;26602:12;:10;:12::i;:::-;26573:7;;:25;;;-1:-1:-1;;;26573:25:0;;;;;;;;;;-1:-1:-1;;;;;26573:41:0;;;;:7;;;;:15;;:25;;;;;;;;;;;;;;;:7;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26573:25:0;-1:-1:-1;;;;;26573:41:0;;26565:67;;;;;-1:-1:-1;;;26565:67:0;;;;;;;;;;;;-1:-1:-1;;;26565:67:0;;;;;;;;;;;;;;;26653:14;26670:19;26680:8;26670:9;:19::i;:::-;26653:36;-1:-1:-1;26704:10:0;;26700:197;;26731:40;26750:12;:10;:12::i;:::-;26731:5;;-1:-1:-1;;;;;26731:5:0;;26764:6;26731:18;:40::i;:::-;26814:9;:7;:9::i;:::-;26786:25;;;;:15;:25;;;;;:37;26802:8;26843:42;26867:6;26875:9;:7;:9::i;:::-;26843:42;;;;;;;;;;;;;;;;;;;;;;26700:197;26505:399;;:::o;24842:148::-;24422:12;:10;:12::i;:::-;-1:-1:-1;;;;;24411:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24411:23:0;;24403:68;;;;;-1:-1:-1;;;24403:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24949:1:::1;24933:6:::0;;24912:40:::1;::::0;-1:-1:-1;;;;;24933:6:0;;::::1;::::0;24912:40:::1;::::0;24949:1;;24912:40:::1;24980:1;24963:19:::0;;-1:-1:-1;;;;;;24963:19:0::1;::::0;;24842:148::o;24191:87::-;24237:7;24264:6;-1:-1:-1;;;;;24264:6:0;24191:87;:::o;25943:554::-;26088:7;;:26;;;-1:-1:-1;;;26088:26:0;;;;;;;;;;26001:7;;;;;;;;-1:-1:-1;;;;;26088:7:0;;:16;;:26;;;;;;;;;;;;;;:7;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26088:26:0;;;;;;;;;;;;;;26127:19;26176:25;;;:15;26088:26;26176:25;;;;;26088:26;;-1:-1:-1;26088:26:0;;-1:-1:-1;26088:26:0;;-1:-1:-1;26127:19:0;26161:40;;26157:236;;;26238:9;:7;:9::i;:::-;26222:12;:25;26218:39;;26256:1;26249:8;;;;;;;;26218:39;-1:-1:-1;26288:12:0;26157:236;;;-1:-1:-1;26356:25:0;;;;:15;:25;;;;;;26157:236;26410:79;26480:8;26410:65;26471:3;26410:56;26460:5;26410:56;;:45;26441:13;26410:26;26424:11;26410:9;:7;:9::i;:::-;:13;;:26::i;:::-;:30;;:45::i;:56::-;:60;;:65::i;:79::-;26403:86;;;;;;25943:554;;;;:::o;25145:244::-;24422:12;:10;:12::i;:::-;-1:-1:-1;;;;;24411:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24411:23:0;;24403:68;;;;;-1:-1:-1;;;24403:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;25234:22:0;::::1;25226:73;;;;-1:-1:-1::0;;;25226:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25336:6;::::0;;25315:38:::1;::::0;-1:-1:-1;;;;;25315:38:0;;::::1;::::0;25336:6;::::1;::::0;25315:38:::1;::::0;::::1;25364:6;:17:::0;;-1:-1:-1;;;;;;25364:17:0::1;-1:-1:-1::0;;;;;25364:17:0;;;::::1;::::0;;;::::1;::::0;;25145:244::o;22818:106::-;22906:10;22818:106;:::o;19200:177::-;19310:58;;;-1:-1:-1;;;;;19310:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19310:58:0;-1:-1:-1;;;19310:58:0;;;19283:86;;19303:5;;19283:19;:86::i;:::-;19200:177;;;:::o;26912:92::-;26981:15;26912:92;:::o;6492:158::-;6550:7;6583:1;6578;:6;;6570:49;;;;;-1:-1:-1;;;6570:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6637:5:0;;;6492:158;;;;;:::o;6909:220::-;6967:7;6991:6;6987:20;;-1:-1:-1;7006:1:0;6999:8;;6987:20;7030:5;;;7034:1;7030;:5;:1;7054:5;;;;;:10;7046:56;;;;-1:-1:-1;;;7046:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7120:1;6909:220;-1:-1:-1;;;6909:220:0:o;7607:153::-;7665:7;7697:1;7693;:5;7685:44;;;;;-1:-1:-1;;;7685:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;7751:1;7747;:5;;;;;;;7607:153;-1:-1:-1;;;7607:153:0:o;21505:761::-;21929:23;21955:69;21983:4;21955:69;;;;;;;;;;;;;;;;;21963:5;-1:-1:-1;;;;;21955:27:0;;;:69;;;;;:::i;:::-;22039:17;;21929:95;;-1:-1:-1;22039:21:0;22035:224;;22181:10;22170:30;;;;;;;;;;;;;;;-1:-1:-1;22170:30:0;22162:85;;;;-1:-1:-1;;;22162:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14298:195;14401:12;14433:52;14455:6;14463:4;14469:1;14472:12;14433:21;:52::i;:::-;14426:59;14298:195;-1:-1:-1;;;;14298:195:0:o;15350:530::-;15477:12;15535:5;15510:21;:30;;15502:81;;;;-1:-1:-1;;;15502:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15602:18;15613:6;15602:10;:18::i;:::-;15594:60;;;;;-1:-1:-1;;;15594:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;15728:12;15742:23;15769:6;-1:-1:-1;;;;;15769:11:0;15789:5;15797:4;15769:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;15769:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15727:75;;;;15820:52;15838:7;15847:10;15859:12;15820:17;:52::i;:::-;15813:59;15350:530;-1:-1:-1;;;;;;;15350:530:0:o;11380:422::-;11747:20;11786:8;;;11380:422::o;17890:742::-;18005:12;18034:7;18030:595;;;-1:-1:-1;18065:10:0;18058:17;;18030:595;18179:17;;:21;18175:439;;18442:10;18436:17;18503:15;18490:10;18486:2;18482:19;18475:44;18390:148;18585:12;18578:20;;-1:-1:-1;;;18578:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://be3fe472f67b39e634e52943b7238fc10c1f51f4f2fcbdc1c6a63aeb6151f4b8
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.000001 | 4,745,844.1185 | $5 |
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.