Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 6 from a total of 6 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim Throne | 16928491 | 482 days ago | IN | 0 ETH | 0.0022779 | ||||
Claim Throne | 14382555 | 862 days ago | IN | 0 ETH | 0.00188993 | ||||
Claim Throne | 14345643 | 868 days ago | IN | 0 ETH | 0.00160485 | ||||
Claim Throne | 14316135 | 872 days ago | IN | 0 ETH | 0.00430119 | ||||
Claim Throne | 14313074 | 873 days ago | IN | 0 ETH | 0.00312906 | ||||
0x670de0b6 | 14308488 | 874 days ago | IN | Create: SharkOfTheHill | 0 ETH | 0.07459476 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
SharkOfTheHill
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: Commercial // remember Open Source != Free Software // for usage contact us at [email protected] // created by https://to.wtf @ 1 Feb 2022 pragma solidity 0.8.12; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./ITuna.sol"; contract SharkOfTheHill is Ownable, Pausable, ReentrancyGuard { address public king; uint256 public currentKingAmount = 1 ether; //everything starts with 1 $TUNA address public tunaAddress = 0x675F8d4915578C0d6CfCFaB413E3d057d7525444; ITuna public tuna; uint256 public startRoundTime; //when a round starts string public kingMessage = "let the games begin"; uint256 public minIncreasePercent = 1200; //20% default uint256 public roundsTimeout = 2 weeks; constructor() { king = msg.sender; tuna = ITuna(tunaAddress); startRoundTime = block.timestamp; } /** * @notice min amount needed to become king * @param amount - how much you want to add * @param message - your kings message */ function claimThrone(uint256 amount, string memory message) external whenNotPaused nonReentrant { require(amount >= minAmountNeeded(), "check minAmountNeeded()"); uint256 comission = _calcPercentage(amount, 100); tuna.transferFrom(msg.sender, address(this), comission); tuna.transferFrom(msg.sender, king, amount - comission); currentKingAmount = amount; king = msg.sender; kingMessage = message; } /** * @notice min amount needed to become king */ function minAmountNeeded() public view returns (uint256) { return (currentKingAmount * minIncreasePercent) / 1000; } //calculate percentage function _calcPercentage(uint256 amount, uint256 basisPoints) internal pure returns (uint256) { require(basisPoints >= 0); return (amount * basisPoints) / 10000; } /** * @notice anyone can call it to rest the current round */ function resetRound() external nonReentrant { require(startRoundTime + roundsTimeout <= block.timestamp, "round not ended"); currentKingAmount = 1 ether; startRoundTime = block.timestamp; uint256 balance = IERC20(tunaAddress).balanceOf(address(this)); IERC20(tunaAddress).transfer(owner(), balance); } /** * ============================== * ~~~~~~~ ADMIN FUNCTIONS ~~~~~~ * ============================== **/ /** * @notice sets the $TUNA token */ function setTunaToken(address tunaContract) external onlyOwner { tunaAddress = tunaContract; tuna = ITuna(tunaContract); } /** * @notice sets the min increase % for next king. default: 10% */ function setMinIncreasePercent(uint256 newPercent) external onlyOwner { minIncreasePercent = newPercent; } /** * @notice sets the round timeout */ function setRoundsTimeout(uint256 newTimeout) external onlyOwner { roundsTimeout = newTimeout; } //blocks staking but doesn't block unstaking / claiming function setPaused(bool _setPaused) public onlyOwner { return (_setPaused) ? _pause() : _unpause(); } /** * @notice withdraw fees & accidentally sent erc20 tokens */ function reclaimERC20(IERC20 token, uint256 _amount) external onlyOwner { require(address(token) != address(tuna), "cannot take tuna"); uint256 balance = token.balanceOf(address(this)); require(_amount <= balance, "incorrect amount"); token.transfer(msg.sender, _amount); } /** * @notice withdraw accidentally sent erc721 */ function reclaimERC721(address erc721Token, uint256 id) external onlyOwner { IERC721(erc721Token).safeTransferFrom(address(this), msg.sender, id); } /** * @notice withdraw accidentally sent ETH */ function withdraw() external onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } }
// SPDX-License-Identifier: MIT 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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT 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 make 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 pragma solidity 0.8.12; interface ITuna { function mint(address to, uint256 amount) external; function burn(address from, uint256 amount) external; function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "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":[],"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"message","type":"string"}],"name":"claimThrone","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentKingAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"king","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"kingMessage","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minAmountNeeded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minIncreasePercent","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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"reclaimERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc721Token","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"reclaimERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resetRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"roundsTimeout","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPercent","type":"uint256"}],"name":"setMinIncreasePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_setPaused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newTimeout","type":"uint256"}],"name":"setRoundsTimeout","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tunaContract","type":"address"}],"name":"setTunaToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startRoundTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tuna","outputs":[{"internalType":"contract ITuna","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tunaAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
670de0b6b3a7640000600355600480546001600160a01b03191673675f8d4915578c0d6cfcfab413e3d057d752544417905560c0604052601360808190527f6c6574207468652067616d657320626567696e0000000000000000000000000060a090815262000072916007919062000132565b506104b0600855621275006009553480156200008d57600080fd5b506200009933620000e2565b6000805460ff60a01b1916905560018055600280546001600160a01b03199081163317909155600454600580549092166001600160a01b03919091161790554260065562000215565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200014090620001d8565b90600052602060002090601f016020900481019282620001645760008555620001af565b82601f106200017f57805160ff1916838001178555620001af565b82800160010185558215620001af579182015b82811115620001af57825182559160200191906001019062000192565b50620001bd929150620001c1565b5090565b5b80821115620001bd5760008155600101620001c2565b600181811c90821680620001ed57607f821691505b602082108114156200020f57634e487b7160e01b600052602260045260246000fd5b50919050565b61115880620002256000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c806384d452ff116100b8578063b9f107371161007c578063b9f107371461026d578063c02e78ef14610275578063c4c423d21461027e578063cc181ca814610293578063e53c97ee146102a6578063f2fde38b146102b957600080fd5b806384d452ff146102255780638da5cb5b1461022d578063addebd091461023e578063afdbd49914610247578063b0fe0c1d1461025a57600080fd5b80636b7d24701161010a5780636b7d2470146101c45780636d3c3bf8146101d7578063715018a6146101ea57806377475bd8146101f25780637ac8469114610209578063815790521461021257600080fd5b806310bca5a0146101475780631306058b1461017757806316c38b3c1461018c5780633ccfd60b1461019f5780635c975abb146101a7575b600080fd5b60055461015a906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61018a610185366004610e2e565b6102cc565b005b61018a61019a366004610e55565b610304565b61018a610346565b600054600160a01b900460ff16604051901515815260200161016e565b61018a6101d2366004610e87565b6103a3565b61018a6101e5366004610e2e565b610437565b61018a610466565b6101fb60095481565b60405190815260200161016e565b6101fb60085481565b60045461015a906001600160a01b031681565b61018a61049c565b6000546001600160a01b031661015a565b6101fb60035481565b61018a610255366004610e87565b610666565b61018a610268366004610ec9565b610808565b6101fb610a60565b6101fb60065481565b610286610a84565b60405161016e9190610f84565b60025461015a906001600160a01b031681565b61018a6102b4366004610fd9565b610b12565b61018a6102c7366004610fd9565b610b68565b6000546001600160a01b031633146102ff5760405162461bcd60e51b81526004016102f690610ff6565b60405180910390fd5b600955565b6000546001600160a01b0316331461032e5760405162461bcd60e51b81526004016102f690610ff6565b8061033e5761033b610c00565b50565b61033b610c9d565b6000546001600160a01b031633146103705760405162461bcd60e51b81526004016102f690610ff6565b6040514790339082156108fc029083906000818181858888f1935050505015801561039f573d6000803e3d6000fd5b5050565b6000546001600160a01b031633146103cd5760405162461bcd60e51b81526004016102f690610ff6565b604051632142170760e11b8152306004820152336024820152604481018290526001600160a01b038316906342842e0e90606401600060405180830381600087803b15801561041b57600080fd5b505af115801561042f573d6000803e3d6000fd5b505050505050565b6000546001600160a01b031633146104615760405162461bcd60e51b81526004016102f690610ff6565b600855565b6000546001600160a01b031633146104905760405162461bcd60e51b81526004016102f690610ff6565b61049a6000610d25565b565b600260015414156104ef5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102f6565b6002600155600954600654429161050591611041565b11156105455760405162461bcd60e51b815260206004820152600f60248201526e1c9bdd5b99081b9bdd08195b991959608a1b60448201526064016102f6565b670de0b6b3a764000060035542600655600480546040516370a0823160e01b815230928101929092526000916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156105a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c79190611059565b6004549091506001600160a01b031663a9059cbb6105ed6000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af115801561063a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065e9190611072565b505060018055565b6000546001600160a01b031633146106905760405162461bcd60e51b81526004016102f690610ff6565b6005546001600160a01b03838116911614156106e15760405162461bcd60e51b815260206004820152601060248201526f63616e6e6f742074616b652074756e6160801b60448201526064016102f6565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610728573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074c9190611059565b9050808211156107915760405162461bcd60e51b815260206004820152601060248201526f1a5b98dbdc9c9958dd08185b5bdd5b9d60821b60448201526064016102f6565b60405163a9059cbb60e01b8152336004820152602481018390526001600160a01b0384169063a9059cbb906044016020604051808303816000875af11580156107de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108029190611072565b50505050565b600054600160a01b900460ff16156108555760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016102f6565b600260015414156108a85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102f6565b60026001556108b5610a60565b8210156109045760405162461bcd60e51b815260206004820152601760248201527f636865636b206d696e416d6f756e744e6565646564282900000000000000000060448201526064016102f6565b6000610911836064610d75565b6005546040516323b872dd60e01b8152336004820152306024820152604481018390529192506001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610969573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098d9190611072565b506005546002546001600160a01b03918216916323b872dd913391166109b3858861108f565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015610a07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2b9190611072565b506003839055600280546001600160a01b031916331790558151610a56906007906020850190610d95565b5050600180555050565b60006103e8600854600354610a7591906110a6565b610a7f91906110c5565b905090565b60078054610a91906110e7565b80601f0160208091040260200160405190810160405280929190818152602001828054610abd906110e7565b8015610b0a5780601f10610adf57610100808354040283529160200191610b0a565b820191906000526020600020905b815481529060010190602001808311610aed57829003601f168201915b505050505081565b6000546001600160a01b03163314610b3c5760405162461bcd60e51b81526004016102f690610ff6565b600480546001600160a01b039092166001600160a01b0319928316811790915560058054909216179055565b6000546001600160a01b03163314610b925760405162461bcd60e51b81526004016102f690610ff6565b6001600160a01b038116610bf75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102f6565b61033b81610d25565b600054600160a01b900460ff16610c505760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016102f6565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600054600160a01b900460ff1615610cea5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016102f6565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610c803390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000612710610d8483856110a6565b610d8e91906110c5565b9392505050565b828054610da1906110e7565b90600052602060002090601f016020900481019282610dc35760008555610e09565b82601f10610ddc57805160ff1916838001178555610e09565b82800160010185558215610e09579182015b82811115610e09578251825591602001919060010190610dee565b50610e15929150610e19565b5090565b5b80821115610e155760008155600101610e1a565b600060208284031215610e4057600080fd5b5035919050565b801515811461033b57600080fd5b600060208284031215610e6757600080fd5b8135610d8e81610e47565b6001600160a01b038116811461033b57600080fd5b60008060408385031215610e9a57600080fd5b8235610ea581610e72565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610edc57600080fd5b82359150602083013567ffffffffffffffff80821115610efb57600080fd5b818501915085601f830112610f0f57600080fd5b813581811115610f2157610f21610eb3565b604051601f8201601f19908116603f01168101908382118183101715610f4957610f49610eb3565b81604052828152886020848701011115610f6257600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b600060208083528351808285015260005b81811015610fb157858101830151858201604001528201610f95565b81811115610fc3576000604083870101525b50601f01601f1916929092016040019392505050565b600060208284031215610feb57600080fd5b8135610d8e81610e72565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156110545761105461102b565b500190565b60006020828403121561106b57600080fd5b5051919050565b60006020828403121561108457600080fd5b8151610d8e81610e47565b6000828210156110a1576110a161102b565b500390565b60008160001904831182151516156110c0576110c061102b565b500290565b6000826110e257634e487b7160e01b600052601260045260246000fd5b500490565b600181811c908216806110fb57607f821691505b6020821081141561111c57634e487b7160e01b600052602260045260246000fd5b5091905056fea2646970667358221220cf38af412a315a5c764244d4edc33bebda0e3c1efeb6bd115c811c7c54d95af164736f6c634300080c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101425760003560e01c806384d452ff116100b8578063b9f107371161007c578063b9f107371461026d578063c02e78ef14610275578063c4c423d21461027e578063cc181ca814610293578063e53c97ee146102a6578063f2fde38b146102b957600080fd5b806384d452ff146102255780638da5cb5b1461022d578063addebd091461023e578063afdbd49914610247578063b0fe0c1d1461025a57600080fd5b80636b7d24701161010a5780636b7d2470146101c45780636d3c3bf8146101d7578063715018a6146101ea57806377475bd8146101f25780637ac8469114610209578063815790521461021257600080fd5b806310bca5a0146101475780631306058b1461017757806316c38b3c1461018c5780633ccfd60b1461019f5780635c975abb146101a7575b600080fd5b60055461015a906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61018a610185366004610e2e565b6102cc565b005b61018a61019a366004610e55565b610304565b61018a610346565b600054600160a01b900460ff16604051901515815260200161016e565b61018a6101d2366004610e87565b6103a3565b61018a6101e5366004610e2e565b610437565b61018a610466565b6101fb60095481565b60405190815260200161016e565b6101fb60085481565b60045461015a906001600160a01b031681565b61018a61049c565b6000546001600160a01b031661015a565b6101fb60035481565b61018a610255366004610e87565b610666565b61018a610268366004610ec9565b610808565b6101fb610a60565b6101fb60065481565b610286610a84565b60405161016e9190610f84565b60025461015a906001600160a01b031681565b61018a6102b4366004610fd9565b610b12565b61018a6102c7366004610fd9565b610b68565b6000546001600160a01b031633146102ff5760405162461bcd60e51b81526004016102f690610ff6565b60405180910390fd5b600955565b6000546001600160a01b0316331461032e5760405162461bcd60e51b81526004016102f690610ff6565b8061033e5761033b610c00565b50565b61033b610c9d565b6000546001600160a01b031633146103705760405162461bcd60e51b81526004016102f690610ff6565b6040514790339082156108fc029083906000818181858888f1935050505015801561039f573d6000803e3d6000fd5b5050565b6000546001600160a01b031633146103cd5760405162461bcd60e51b81526004016102f690610ff6565b604051632142170760e11b8152306004820152336024820152604481018290526001600160a01b038316906342842e0e90606401600060405180830381600087803b15801561041b57600080fd5b505af115801561042f573d6000803e3d6000fd5b505050505050565b6000546001600160a01b031633146104615760405162461bcd60e51b81526004016102f690610ff6565b600855565b6000546001600160a01b031633146104905760405162461bcd60e51b81526004016102f690610ff6565b61049a6000610d25565b565b600260015414156104ef5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102f6565b6002600155600954600654429161050591611041565b11156105455760405162461bcd60e51b815260206004820152600f60248201526e1c9bdd5b99081b9bdd08195b991959608a1b60448201526064016102f6565b670de0b6b3a764000060035542600655600480546040516370a0823160e01b815230928101929092526000916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156105a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c79190611059565b6004549091506001600160a01b031663a9059cbb6105ed6000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af115801561063a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065e9190611072565b505060018055565b6000546001600160a01b031633146106905760405162461bcd60e51b81526004016102f690610ff6565b6005546001600160a01b03838116911614156106e15760405162461bcd60e51b815260206004820152601060248201526f63616e6e6f742074616b652074756e6160801b60448201526064016102f6565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610728573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074c9190611059565b9050808211156107915760405162461bcd60e51b815260206004820152601060248201526f1a5b98dbdc9c9958dd08185b5bdd5b9d60821b60448201526064016102f6565b60405163a9059cbb60e01b8152336004820152602481018390526001600160a01b0384169063a9059cbb906044016020604051808303816000875af11580156107de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108029190611072565b50505050565b600054600160a01b900460ff16156108555760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016102f6565b600260015414156108a85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102f6565b60026001556108b5610a60565b8210156109045760405162461bcd60e51b815260206004820152601760248201527f636865636b206d696e416d6f756e744e6565646564282900000000000000000060448201526064016102f6565b6000610911836064610d75565b6005546040516323b872dd60e01b8152336004820152306024820152604481018390529192506001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610969573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098d9190611072565b506005546002546001600160a01b03918216916323b872dd913391166109b3858861108f565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015610a07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2b9190611072565b506003839055600280546001600160a01b031916331790558151610a56906007906020850190610d95565b5050600180555050565b60006103e8600854600354610a7591906110a6565b610a7f91906110c5565b905090565b60078054610a91906110e7565b80601f0160208091040260200160405190810160405280929190818152602001828054610abd906110e7565b8015610b0a5780601f10610adf57610100808354040283529160200191610b0a565b820191906000526020600020905b815481529060010190602001808311610aed57829003601f168201915b505050505081565b6000546001600160a01b03163314610b3c5760405162461bcd60e51b81526004016102f690610ff6565b600480546001600160a01b039092166001600160a01b0319928316811790915560058054909216179055565b6000546001600160a01b03163314610b925760405162461bcd60e51b81526004016102f690610ff6565b6001600160a01b038116610bf75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102f6565b61033b81610d25565b600054600160a01b900460ff16610c505760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016102f6565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600054600160a01b900460ff1615610cea5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016102f6565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610c803390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000612710610d8483856110a6565b610d8e91906110c5565b9392505050565b828054610da1906110e7565b90600052602060002090601f016020900481019282610dc35760008555610e09565b82601f10610ddc57805160ff1916838001178555610e09565b82800160010185558215610e09579182015b82811115610e09578251825591602001919060010190610dee565b50610e15929150610e19565b5090565b5b80821115610e155760008155600101610e1a565b600060208284031215610e4057600080fd5b5035919050565b801515811461033b57600080fd5b600060208284031215610e6757600080fd5b8135610d8e81610e47565b6001600160a01b038116811461033b57600080fd5b60008060408385031215610e9a57600080fd5b8235610ea581610e72565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610edc57600080fd5b82359150602083013567ffffffffffffffff80821115610efb57600080fd5b818501915085601f830112610f0f57600080fd5b813581811115610f2157610f21610eb3565b604051601f8201601f19908116603f01168101908382118183101715610f4957610f49610eb3565b81604052828152886020848701011115610f6257600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b600060208083528351808285015260005b81811015610fb157858101830151858201604001528201610f95565b81811115610fc3576000604083870101525b50601f01601f1916929092016040019392505050565b600060208284031215610feb57600080fd5b8135610d8e81610e72565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156110545761105461102b565b500190565b60006020828403121561106b57600080fd5b5051919050565b60006020828403121561108457600080fd5b8151610d8e81610e47565b6000828210156110a1576110a161102b565b500390565b60008160001904831182151516156110c0576110c061102b565b500290565b6000826110e257634e487b7160e01b600052601260045260246000fd5b500490565b600181811c908216806110fb57607f821691505b6020821081141561111c57634e487b7160e01b600052602260045260246000fd5b5091905056fea2646970667358221220cf38af412a315a5c764244d4edc33bebda0e3c1efeb6bd115c811c7c54d95af164736f6c634300080c0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 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.