Source Code
Overview
ETH Balance
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 406 transactions
| Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Approve | 25618722 | 3 days ago | IN | 0 ETH | 0.00000159 | ||||
| Burn | 25618205 | 3 days ago | IN | 0 ETH | 0.00000109 | ||||
| Approve | 25618179 | 3 days ago | IN | 0 ETH | 0.0000019 | ||||
| Approve | 25618148 | 3 days ago | IN | 0 ETH | 0.0000019 | ||||
| Approve | 25614794 | 3 days ago | IN | 0 ETH | 0.00000159 | ||||
| Approve | 25613702 | 3 days ago | IN | 0 ETH | 0.00000189 | ||||
| Approve | 25610794 | 3 days ago | IN | 0 ETH | 0.00000174 | ||||
| Approve | 25610458 | 3 days ago | IN | 0 ETH | 0.00000174 | ||||
| Approve | 25610425 | 3 days ago | IN | 0 ETH | 0.00000189 | ||||
| Approve | 25610411 | 3 days ago | IN | 0 ETH | 0.00000159 | ||||
| Approve | 25610372 | 3 days ago | IN | 0 ETH | 0.00000158 | ||||
| Approve | 25610261 | 3 days ago | IN | 0 ETH | 0.00000174 | ||||
| Approve | 25609813 | 3 days ago | IN | 0 ETH | 0.00000173 | ||||
| Burn | 25608729 | 3 days ago | IN | 0 ETH | 0.00000143 | ||||
| Approve | 25579592 | 4 days ago | IN | 0 ETH | 0.00000124 | ||||
| Approve | 25579585 | 4 days ago | IN | 0 ETH | 0.00000124 | ||||
| Approve | 25579578 | 4 days ago | IN | 0 ETH | 0.00000131 | ||||
| Approve | 25579573 | 4 days ago | IN | 0 ETH | 0.00000131 | ||||
| Burn | 25570838 | 5 days ago | IN | 0 ETH | 0.00000143 | ||||
| Approve | 25558103 | 5 days ago | IN | 0 ETH | 0.00000198 | ||||
| Approve | 25546802 | 5 days ago | IN | 0 ETH | 0.00000135 | ||||
| Approve | 25546332 | 5 days ago | IN | 0 ETH | 0.00000238 | ||||
| Approve | 25544517 | 5 days ago | IN | 0 ETH | 0.00000218 | ||||
| Approve | 25450277 | 8 days ago | IN | 0 ETH | 0.00000197 | ||||
| Approve | 25422385 | 8 days ago | IN | 0 ETH | 0.00000131 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 25723368 | 15 hrs ago | 0 ETH | ||||
| 25723368 | 15 hrs ago | 0 ETH | ||||
| 25723368 | 15 hrs ago | 0 ETH | ||||
| 25723368 | 15 hrs ago | 0 ETH | ||||
| 25723368 | 15 hrs ago | 0 ETH | ||||
| 25723368 | 15 hrs ago | 0 ETH | ||||
| 25723368 | 15 hrs ago | 0 ETH | ||||
| 25723368 | 15 hrs ago | 0 ETH | ||||
| 25723321 | 15 hrs ago | 0 ETH | ||||
| 25723321 | 15 hrs ago | 0 ETH | ||||
| 25723321 | 15 hrs ago | 0 ETH | ||||
| 25723278 | 15 hrs ago | 0 ETH | ||||
| 25638479 | 3 days ago | 0 ETH | ||||
| 25638479 | 3 days ago | 0 ETH | ||||
| 25638479 | 3 days ago | 0 ETH | ||||
| 25638479 | 3 days ago | 0 ETH | ||||
| 25638479 | 3 days ago | 0 ETH | ||||
| 25638479 | 3 days ago | 0 ETH | ||||
| 25638479 | 3 days ago | 0 ETH | ||||
| 25638479 | 3 days ago | 0 ETH | ||||
| 25638479 | 3 days ago | 0 ETH | ||||
| 25638462 | 3 days ago | 0 ETH | ||||
| 25638462 | 3 days ago | 0 ETH | ||||
| 25638462 | 3 days ago | 0 ETH | ||||
| 25621628 | 3 days ago | 0 ETH |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Source Code Verified (Exact Match)
Contract Name:
GMOTH
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "./owner/Operator.sol";
/**************************************************************************************************************************************************
/$$ /$$ /$$ /$$ /$$$$$$$$ /$$
| $$$ /$$$ | $$ | $$ | $$_____/|__/
| $$$$ /$$$$ /$$$$$$ /$$$$$$ | $$$$$$$ | $$ /$$ /$$$$$$$ /$$$$$$ /$$$$$$$ /$$$$$$$ /$$$$$$
| $$ $$/$$ $$ /$$__ $$|_ $$_/ | $$__ $$ | $$$$$ | $$| $$__ $$ |____ $$| $$__ $$ /$$_____/ /$$__ $$
| $$ $$$| $$| $$ \ $$ | $$ | $$ \ $$ | $$__/ | $$| $$ \ $$ /$$$$$$$| $$ \ $$| $$ | $$$$$$$$
| $$\ $ | $$| $$ | $$ | $$ /$$| $$ | $$ | $$ | $$| $$ | $$ /$$__ $$| $$ | $$| $$ | $$_____/
| $$ \/ | $$| $$$$$$/ | $$$$/| $$ | $$ | $$ | $$| $$ | $$| $$$$$$$| $$ | $$| $$$$$$$| $$$$$$$
|__/ |__/ \______/ \___/ |__/ |__/ |__/ |__/|__/ |__/ \_______/|__/ |__/ \_______/ \_______/
#### Website: https://moth.finance/
#### Author: kell
**************************************************************************************************************************************************/
contract GMOTH is ERC20Burnable, Operator {
using SafeMath for uint256;
uint256 public constant REWARD_POOL_ALLOCATION = 60000 ether;
uint256 public constant DEV_FUND_POOL_ALLOCATION = 10000 ether;
bool public rewardsDistributed = false;
uint256 public constant VESTING_DURATION = 730 days;
uint256 public startTime;
uint256 public endTime;
uint256 public devFundRewardRate;
address public devFund;
uint256 public devFundLastClaimed;
constructor(uint256 _startTime, address _devFund) ERC20("GMOTH", "GMOTH") {
_mint(msg.sender, 10 ether); // mint 10 Gmoth for initial pools deployment
startTime = _startTime;
endTime = startTime + VESTING_DURATION;
devFundLastClaimed = startTime;
devFundRewardRate = DEV_FUND_POOL_ALLOCATION.div(VESTING_DURATION);
require(_devFund != address(0), "Address cannot be 0");
devFund = _devFund;
}
function setDevFund(address _devFund) external {
require(msg.sender == devFund, "!dev");
require(_devFund != address(0), "zero");
devFund = _devFund;
}
function unclaimedDevFund() public view returns (uint256 _pending) {
uint256 _now = block.timestamp;
if (_now > endTime) _now = endTime;
if (devFundLastClaimed >= _now) return 0;
_pending = _now.sub(devFundLastClaimed).mul(devFundRewardRate);
}
/**
* @dev Claim pending rewards to community and dev fund
*/
function claimRewards() external {
uint256 _pending = unclaimedDevFund();
if (_pending > 0 && devFund != address(0)) {
_mint(devFund, _pending);
devFundLastClaimed = block.timestamp;
}
}
/**
* @notice distribute to reward pool (only once)
*/
function distributeReward(
address _rewardPool
) external onlyOperator {
require(_rewardPool != address(0), "!_rewardPool");
require(!rewardsDistributed, "only can distribute once");
rewardsDistributed = true;
_mint(_rewardPool, REWARD_POOL_ALLOCATION);
}
function burn(uint256 amount) public override {
super.burn(amount);
}
function governanceRecoverUnsupported(
IERC20 _token,
uint256 _amount,
address _to
) external onlyOperator {
_token.transfer(_to, _amount);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
* - the caller must have allowance for ``from``'s tokens of at least
* `amount`.
*/
function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(address from, address to, uint256 amount) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_balances[to] += amount;
}
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_balances[account] += amount;
}
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_totalSupply -= amount;
}
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)
pragma solidity ^0.8.0;
import "../ERC20.sol";
import "../../../utils/Context.sol";
/**
* @dev Extension of {ERC20} that allows token holders to destroy both their own
* tokens and those that they have an allowance for, in a way that can be
* recognized off-chain (via event analysis).
*/
abstract contract ERC20Burnable is Context, ERC20 {
/**
* @dev Destroys `amount` tokens from the caller.
*
* See {ERC20-_burn}.
*/
function burn(uint256 amount) public virtual {
_burn(_msgSender(), amount);
}
/**
* @dev Destroys `amount` tokens from `account`, deducting from the caller's
* allowance.
*
* See {ERC20-_burn} and {ERC20-allowance}.
*
* Requirements:
*
* - the caller must have allowance for ``accounts``'s tokens of at least
* `amount`.
*/
function burnFrom(address account, uint256 amount) public virtual {
_spendAllowance(account, _msgSender(), amount);
_burn(account, amount);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol)
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract Operator is Context, Ownable {
address private _operator;
event OperatorTransferred(address indexed previousOperator, address indexed newOperator);
constructor() {
_operator = _msgSender();
emit OperatorTransferred(address(0), _operator);
}
function operator() public view returns (address) {
return _operator;
}
modifier onlyOperator() {
require(_operator == msg.sender, "operator: caller is not the operator");
_;
}
function isOperator() public view returns (bool) {
return _msgSender() == _operator;
}
function transferOperator(address newOperator_) public onlyOwner {
_transferOperator(newOperator_);
}
function _transferOperator(address newOperator_) internal {
require(newOperator_ != address(0), "operator: zero address given for new operator");
emit OperatorTransferred(address(0), newOperator_);
_operator = newOperator_;
}
function _renounceOperator() public onlyOwner {
emit OperatorTransferred(_operator, address(0));
_operator = address(0);
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"address","name":"_devFund","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"}],"name":"OperatorTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEV_FUND_POOL_ALLOCATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARD_POOL_ALLOCATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VESTING_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_renounceOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devFund","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devFundLastClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devFundRewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardPool","type":"address"}],"name":"distributeReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"governanceRecoverUnsupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[],"name":"rewardsDistributed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_devFund","type":"address"}],"name":"setDevFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOperator_","type":"address"}],"name":"transferOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unclaimedDevFund","outputs":[{"internalType":"uint256","name":"_pending","type":"uint256"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60806040526006805460ff60a01b1916905534801561001d57600080fd5b5060405161182e38038061182e83398101604081905261003c916102d6565b60408051808201825260058082526408e9a9ea8960db1b602080840182905284518086019095529184529083015290600361007783826103b1565b50600461008482826103b1565b50505061009d6100986101a760201b60201c565b6101ab565b600680546001600160a01b031916339081179091556040516000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a36100ef33678ac7230489e800006101fd565b60078290556101026303c267008361046f565b600855600754600b5561012369021e19e0c9bab24000006303c267006102bc565b6009556001600160a01b0381166101815760405162461bcd60e51b815260206004820152601360248201527f416464726573732063616e6e6f7420626520300000000000000000000000000060448201526064015b60405180910390fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055506104b2565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166102535760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610178565b8060026000828254610265919061046f565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b60006102c88284610490565b90505b92915050565b505050565b600080604083850312156102e957600080fd5b825160208401519092506001600160a01b038116811461030857600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168061033d57607f821691505b60208210810361035d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156102d157806000526020600020601f840160051c8101602085101561038a5750805b601f840160051c820191505b818110156103aa5760008155600101610396565b5050505050565b81516001600160401b038111156103ca576103ca610313565b6103de816103d88454610329565b84610363565b6020601f82116001811461041257600083156103fa5750848201515b600019600385901b1c1916600184901b1784556103aa565b600084815260208120601f198516915b828110156104425787850151825560209485019460019092019101610422565b50848210156104605786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b808201808211156102cb57634e487b7160e01b600052601160045260246000fd5b6000826104ad57634e487b7160e01b600052601260045260246000fd5b500490565b61136d806104c16000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c80634f337dd51161011a5780638da5cb5b116100ad578063a9059cbb1161007c578063a9059cbb1461040c578063ae4db9191461041f578063dd62ed3e14610432578063f06f4d3814610445578063f2fde38b1461045657600080fd5b80638da5cb5b146103cc57806395d89b41146103dd5780639c1454d4146103e5578063a457c2d7146103f957600080fd5b8063715018a6116100e9578063715018a6146103a057806378e97925146103a857806379cc6790146103b15780638a27f103146103c457600080fd5b80634f337dd51461034257806354575af414610353578063570ca7351461036657806370a082311461037757600080fd5b80632e3367ce1161019d578063395093511161016c57806339509351146102d357806342966c68146102e65780634390d2a8146102f95780634456eda2146103245780634cfc4d301461033757600080fd5b80632e3367ce146102aa578063313ce567146102b35780633197cbb6146102c2578063372500ab146102cb57600080fd5b806318160ddd116101d957806318160ddd1461027457806323b872dd1461027c57806329605e771461028f5780632c07a624146102a257600080fd5b8063040173151461020b57806306fdde0314610227578063092193ab1461023c578063095ea7b314610251575b600080fd5b610214600b5481565b6040519081526020015b60405180910390f35b61022f610469565b60405161021e91906110c3565b61024f61024a366004611126565b6104fb565b005b61026461025f366004611143565b6105f7565b604051901515815260200161021e565b600254610214565b61026461028a36600461116f565b610611565b61024f61029d366004611126565b610635565b610214610646565b61021460095481565b6040516012815260200161021e565b61021460085481565b61024f610692565b6102646102e1366004611143565b6106da565b61024f6102f43660046111b0565b6106fc565b600a5461030c906001600160a01b031681565b6040516001600160a01b03909116815260200161021e565b6006546001600160a01b03163314610264565b6102146303c2670081565b61021469021e19e0c9bab240000081565b61024f6103613660046111c9565b610705565b6006546001600160a01b031661030c565b610214610385366004611126565b6001600160a01b031660009081526020819052604090205490565b61024f6107a8565b61021460075481565b61024f6103bf366004611143565b6107bc565b61024f6107d5565b6005546001600160a01b031661030c565b61022f610827565b60065461026490600160a01b900460ff1681565b610264610407366004611143565b610836565b61026461041a366004611143565b6108b1565b61024f61042d366004611126565b6108bf565b61021461044036600461120b565b610963565b610214690cb49b44ba602d80000081565b61024f610464366004611126565b61098e565b60606003805461047890611244565b80601f01602080910402602001604051908101604052809291908181526020018280546104a490611244565b80156104f15780601f106104c6576101008083540402835291602001916104f1565b820191906000526020600020905b8154815290600101906020018083116104d457829003601f168201915b5050505050905090565b6006546001600160a01b0316331461052e5760405162461bcd60e51b81526004016105259061127e565b60405180910390fd5b6001600160a01b0381166105735760405162461bcd60e51b815260206004820152600c60248201526b0857dc995dd85c99141bdbdb60a21b6044820152606401610525565b600654600160a01b900460ff16156105cd5760405162461bcd60e51b815260206004820152601860248201527f6f6e6c792063616e2064697374726962757465206f6e636500000000000000006044820152606401610525565b6006805460ff60a01b1916600160a01b1790556105f481690cb49b44ba602d800000610a04565b50565b600033610605818585610ac3565b60019150505b92915050565b60003361061f858285610be8565b61062a858585610c5c565b506001949350505050565b61063d610e00565b6105f481610e5a565b600854600090429081111561065a57506008545b80600b541061066b57600091505090565b61068c600954610686600b5484610f1e90919063ffffffff16565b90610f31565b91505090565b600061069c610646565b90506000811180156106b85750600a546001600160a01b031615155b156105f457600a546106d3906001600160a01b031682610a04565b42600b5550565b6000336106058185856106ed8383610963565b6106f791906112d8565b610ac3565b6105f481610f3d565b6006546001600160a01b0316331461072f5760405162461bcd60e51b81526004016105259061127e565b60405163a9059cbb60e01b81526001600160a01b0382811660048301526024820184905284169063a9059cbb906044016020604051808303816000875af115801561077e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a291906112eb565b50505050565b6107b0610e00565b6107ba6000610f47565b565b6107c7823383610be8565b6107d18282610f99565b5050565b6107dd610e00565b6006546040516000916001600160a01b0316907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908390a3600680546001600160a01b0319169055565b60606004805461047890611244565b600033816108448286610963565b9050838110156108a45760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610525565b61062a8286868403610ac3565b600033610605818585610c5c565b600a546001600160a01b031633146109025760405162461bcd60e51b81526004016105259060208082526004908201526310b232bb60e11b604082015260600190565b6001600160a01b0381166109415760405162461bcd60e51b8152600401610525906020808252600490820152637a65726f60e01b604082015260600190565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610996610e00565b6001600160a01b0381166109fb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610525565b6105f481610f47565b6001600160a01b038216610a5a5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610525565b8060026000828254610a6c91906112d8565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038316610b255760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610525565b6001600160a01b038216610b865760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610525565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000610bf48484610963565b905060001981146107a25781811015610c4f5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610525565b6107a28484848403610ac3565b6001600160a01b038316610cc05760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610525565b6001600160a01b038216610d225760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610525565b6001600160a01b03831660009081526020819052604090205481811015610d9a5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610525565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36107a2565b6005546001600160a01b031633146107ba5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610525565b6001600160a01b038116610ec65760405162461bcd60e51b815260206004820152602d60248201527f6f70657261746f723a207a65726f206164647265737320676976656e20666f7260448201526c103732bb9037b832b930ba37b960991b6064820152608401610525565b6040516001600160a01b038216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6000610f2a828461130d565b9392505050565b6000610f2a8284611320565b6105f43382610f99565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216610ff95760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610525565b6001600160a01b0382166000908152602081905260409020548181101561106d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610525565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610bdb565b602081526000825180602084015260005b818110156110f157602081860181015160408684010152016110d4565b506000604082850101526040601f19601f83011684010191505092915050565b6001600160a01b03811681146105f457600080fd5b60006020828403121561113857600080fd5b8135610f2a81611111565b6000806040838503121561115657600080fd5b823561116181611111565b946020939093013593505050565b60008060006060848603121561118457600080fd5b833561118f81611111565b9250602084013561119f81611111565b929592945050506040919091013590565b6000602082840312156111c257600080fd5b5035919050565b6000806000606084860312156111de57600080fd5b83356111e981611111565b925060208401359150604084013561120081611111565b809150509250925092565b6000806040838503121561121e57600080fd5b823561122981611111565b9150602083013561123981611111565b809150509250929050565b600181811c9082168061125857607f821691505b60208210810361127857634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526024908201527f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260408201526330ba37b960e11b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561060b5761060b6112c2565b6000602082840312156112fd57600080fd5b81518015158114610f2a57600080fd5b8181038181111561060b5761060b6112c2565b808202811582820484141761060b5761060b6112c256fea26469706673582212203e0831369eaabf57f4455233f8df3d46e52520c7c32d31031201c72450248ff964736f6c634300081a00330000000000000000000000000000000000000000000000000000000068cb0530000000000000000000000000ca1416ac2dacd01f1f75bd98bcf6747708446c1f
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102065760003560e01c80634f337dd51161011a5780638da5cb5b116100ad578063a9059cbb1161007c578063a9059cbb1461040c578063ae4db9191461041f578063dd62ed3e14610432578063f06f4d3814610445578063f2fde38b1461045657600080fd5b80638da5cb5b146103cc57806395d89b41146103dd5780639c1454d4146103e5578063a457c2d7146103f957600080fd5b8063715018a6116100e9578063715018a6146103a057806378e97925146103a857806379cc6790146103b15780638a27f103146103c457600080fd5b80634f337dd51461034257806354575af414610353578063570ca7351461036657806370a082311461037757600080fd5b80632e3367ce1161019d578063395093511161016c57806339509351146102d357806342966c68146102e65780634390d2a8146102f95780634456eda2146103245780634cfc4d301461033757600080fd5b80632e3367ce146102aa578063313ce567146102b35780633197cbb6146102c2578063372500ab146102cb57600080fd5b806318160ddd116101d957806318160ddd1461027457806323b872dd1461027c57806329605e771461028f5780632c07a624146102a257600080fd5b8063040173151461020b57806306fdde0314610227578063092193ab1461023c578063095ea7b314610251575b600080fd5b610214600b5481565b6040519081526020015b60405180910390f35b61022f610469565b60405161021e91906110c3565b61024f61024a366004611126565b6104fb565b005b61026461025f366004611143565b6105f7565b604051901515815260200161021e565b600254610214565b61026461028a36600461116f565b610611565b61024f61029d366004611126565b610635565b610214610646565b61021460095481565b6040516012815260200161021e565b61021460085481565b61024f610692565b6102646102e1366004611143565b6106da565b61024f6102f43660046111b0565b6106fc565b600a5461030c906001600160a01b031681565b6040516001600160a01b03909116815260200161021e565b6006546001600160a01b03163314610264565b6102146303c2670081565b61021469021e19e0c9bab240000081565b61024f6103613660046111c9565b610705565b6006546001600160a01b031661030c565b610214610385366004611126565b6001600160a01b031660009081526020819052604090205490565b61024f6107a8565b61021460075481565b61024f6103bf366004611143565b6107bc565b61024f6107d5565b6005546001600160a01b031661030c565b61022f610827565b60065461026490600160a01b900460ff1681565b610264610407366004611143565b610836565b61026461041a366004611143565b6108b1565b61024f61042d366004611126565b6108bf565b61021461044036600461120b565b610963565b610214690cb49b44ba602d80000081565b61024f610464366004611126565b61098e565b60606003805461047890611244565b80601f01602080910402602001604051908101604052809291908181526020018280546104a490611244565b80156104f15780601f106104c6576101008083540402835291602001916104f1565b820191906000526020600020905b8154815290600101906020018083116104d457829003601f168201915b5050505050905090565b6006546001600160a01b0316331461052e5760405162461bcd60e51b81526004016105259061127e565b60405180910390fd5b6001600160a01b0381166105735760405162461bcd60e51b815260206004820152600c60248201526b0857dc995dd85c99141bdbdb60a21b6044820152606401610525565b600654600160a01b900460ff16156105cd5760405162461bcd60e51b815260206004820152601860248201527f6f6e6c792063616e2064697374726962757465206f6e636500000000000000006044820152606401610525565b6006805460ff60a01b1916600160a01b1790556105f481690cb49b44ba602d800000610a04565b50565b600033610605818585610ac3565b60019150505b92915050565b60003361061f858285610be8565b61062a858585610c5c565b506001949350505050565b61063d610e00565b6105f481610e5a565b600854600090429081111561065a57506008545b80600b541061066b57600091505090565b61068c600954610686600b5484610f1e90919063ffffffff16565b90610f31565b91505090565b600061069c610646565b90506000811180156106b85750600a546001600160a01b031615155b156105f457600a546106d3906001600160a01b031682610a04565b42600b5550565b6000336106058185856106ed8383610963565b6106f791906112d8565b610ac3565b6105f481610f3d565b6006546001600160a01b0316331461072f5760405162461bcd60e51b81526004016105259061127e565b60405163a9059cbb60e01b81526001600160a01b0382811660048301526024820184905284169063a9059cbb906044016020604051808303816000875af115801561077e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a291906112eb565b50505050565b6107b0610e00565b6107ba6000610f47565b565b6107c7823383610be8565b6107d18282610f99565b5050565b6107dd610e00565b6006546040516000916001600160a01b0316907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908390a3600680546001600160a01b0319169055565b60606004805461047890611244565b600033816108448286610963565b9050838110156108a45760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610525565b61062a8286868403610ac3565b600033610605818585610c5c565b600a546001600160a01b031633146109025760405162461bcd60e51b81526004016105259060208082526004908201526310b232bb60e11b604082015260600190565b6001600160a01b0381166109415760405162461bcd60e51b8152600401610525906020808252600490820152637a65726f60e01b604082015260600190565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610996610e00565b6001600160a01b0381166109fb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610525565b6105f481610f47565b6001600160a01b038216610a5a5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610525565b8060026000828254610a6c91906112d8565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038316610b255760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610525565b6001600160a01b038216610b865760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610525565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000610bf48484610963565b905060001981146107a25781811015610c4f5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610525565b6107a28484848403610ac3565b6001600160a01b038316610cc05760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610525565b6001600160a01b038216610d225760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610525565b6001600160a01b03831660009081526020819052604090205481811015610d9a5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610525565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36107a2565b6005546001600160a01b031633146107ba5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610525565b6001600160a01b038116610ec65760405162461bcd60e51b815260206004820152602d60248201527f6f70657261746f723a207a65726f206164647265737320676976656e20666f7260448201526c103732bb9037b832b930ba37b960991b6064820152608401610525565b6040516001600160a01b038216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6000610f2a828461130d565b9392505050565b6000610f2a8284611320565b6105f43382610f99565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216610ff95760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610525565b6001600160a01b0382166000908152602081905260409020548181101561106d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610525565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610bdb565b602081526000825180602084015260005b818110156110f157602081860181015160408684010152016110d4565b506000604082850101526040601f19601f83011684010191505092915050565b6001600160a01b03811681146105f457600080fd5b60006020828403121561113857600080fd5b8135610f2a81611111565b6000806040838503121561115657600080fd5b823561116181611111565b946020939093013593505050565b60008060006060848603121561118457600080fd5b833561118f81611111565b9250602084013561119f81611111565b929592945050506040919091013590565b6000602082840312156111c257600080fd5b5035919050565b6000806000606084860312156111de57600080fd5b83356111e981611111565b925060208401359150604084013561120081611111565b809150509250925092565b6000806040838503121561121e57600080fd5b823561122981611111565b9150602083013561123981611111565b809150509250929050565b600181811c9082168061125857607f821691505b60208210810361127857634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526024908201527f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260408201526330ba37b960e11b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561060b5761060b6112c2565b6000602082840312156112fd57600080fd5b81518015158114610f2a57600080fd5b8181038181111561060b5761060b6112c2565b808202811582820484141761060b5761060b6112c256fea26469706673582212203e0831369eaabf57f4455233f8df3d46e52520c7c32d31031201c72450248ff964736f6c634300081a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000068cb0530000000000000000000000000ca1416ac2dacd01f1f75bd98bcf6747708446c1f
-----Decoded View---------------
Arg [0] : _startTime (uint256): 1758135600
Arg [1] : _devFund (address): 0xCa1416Ac2daCD01f1f75Bd98Bcf6747708446C1f
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000068cb0530
Arg [1] : 000000000000000000000000ca1416ac2dacd01f1f75bd98bcf6747708446c1f
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.