Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 785 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 21465157 | 15 hrs ago | IN | 0 ETH | 0.00036441 | ||||
Approve | 21463308 | 21 hrs ago | IN | 0 ETH | 0.00028283 | ||||
Approve | 21463299 | 21 hrs ago | IN | 0 ETH | 0.00029395 | ||||
Approve | 21463047 | 22 hrs ago | IN | 0 ETH | 0.00033101 | ||||
Approve | 21458769 | 36 hrs ago | IN | 0 ETH | 0.00049722 | ||||
Approve | 21457303 | 41 hrs ago | IN | 0 ETH | 0.0003224 | ||||
Approve | 21433308 | 5 days ago | IN | 0 ETH | 0.00059758 | ||||
Approve | 21419987 | 6 days ago | IN | 0 ETH | 0.00049089 | ||||
Approve | 21411634 | 8 days ago | IN | 0 ETH | 0.00038059 | ||||
Approve | 21357422 | 15 days ago | IN | 0 ETH | 0.00036526 | ||||
Transfer | 21350008 | 16 days ago | IN | 0 ETH | 0.00058159 | ||||
Transfer | 21348488 | 16 days ago | IN | 0 ETH | 0.00061866 | ||||
Transfer | 21347598 | 17 days ago | IN | 0 ETH | 0.00082679 | ||||
Approve | 21299123 | 23 days ago | IN | 0 ETH | 0.00022062 | ||||
Approve | 21297825 | 23 days ago | IN | 0 ETH | 0.00043867 | ||||
Approve | 21294804 | 24 days ago | IN | 0 ETH | 0.0007211 | ||||
Approve | 21285172 | 25 days ago | IN | 0 ETH | 0.00042958 | ||||
Approve | 21283821 | 25 days ago | IN | 0 ETH | 0.00019861 | ||||
Approve | 21283820 | 25 days ago | IN | 0 ETH | 0.00018261 | ||||
Approve | 21279494 | 26 days ago | IN | 0 ETH | 0.00037999 | ||||
Approve | 21256454 | 29 days ago | IN | 0 ETH | 0.00039257 | ||||
Approve | 21249831 | 30 days ago | IN | 0 ETH | 0.00053489 | ||||
Approve | 21230340 | 33 days ago | IN | 0 ETH | 0.00114846 | ||||
Approve | 21213547 | 35 days ago | IN | 0 ETH | 0.00056271 | ||||
Transfer | 21198482 | 37 days ago | IN | 0 ETH | 0.00087375 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
21005117 | 64 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
JingleToken
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Capped.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "./lib/PoolAddress.sol"; contract JingleToken is ERC20, ERC20Capped, Ownable { address public swapQuoter; address public poolAddress; // immutable bool public canAddLiquidity; address public liquidityHolder; uint256 public mintAmount; uint256 public buybackInterval; uint256 public buybackRatio; uint256 public nextBuybackTime; modifier onlyLiquidityHolder() { require(msg.sender == liquidityHolder, "Not liquidity holder"); _; } constructor( string memory symbol, uint256 maxSupply, uint256 mintAmount_, uint256 buybackInterval_, uint256 buybackRatio_, address weth, address swapFactory, address swapQuoter_, address liquidityHolder_ ) ERC20(symbol, symbol) ERC20Capped(maxSupply) { require(maxSupply > mintAmount_ && mintAmount_ > 0 && maxSupply % mintAmount_ == 0, "Params error"); mintAmount = mintAmount_; buybackInterval = buybackInterval_; buybackRatio = buybackRatio_; swapQuoter = swapQuoter_; poolAddress = PoolAddress.computeAddress(swapFactory, PoolAddress.getPoolKey(address(this), weth, 10000)); liquidityHolder = liquidityHolder_; } function allowAddLiquidity() external onlyLiquidityHolder { canAddLiquidity = true; } function updateNextBuybackTime(bool isFinish) external onlyLiquidityHolder { nextBuybackTime = isFinish ? type(uint256).max : block.timestamp + buybackInterval; } function _beforeTokenTransfer(address from, address to, uint256 /*amount*/) internal override view { if (from == swapQuoter || to == swapQuoter) { return; } if (!canAddLiquidity) { require(to != poolAddress, "No listing allowed before mint ends"); } if (nextBuybackTime < block.timestamp || nextBuybackTime - block.timestamp < 60) { require(from != poolAddress, "No purchases allowed one minute before buyback"); } } function _mint(address account, uint256 amount) internal virtual override(ERC20, ERC20Capped) { ERC20Capped._mint(account, amount); } function mint(address receiver, uint256 amount) external onlyOwner { require(amount > 0 && amount % mintAmount == 0, "Amount error"); _mint(receiver, amount); } function isJingle() external pure returns (bool) { return true; } }
// 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 v4.4.1 (token/ERC20/extensions/ERC20Capped.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; /** * @dev Extension of {ERC20} that adds a cap to the supply of tokens. */ abstract contract ERC20Capped is ERC20 { uint256 private immutable _cap; /** * @dev Sets the value of the `cap`. This value is immutable, it can only be * set once during construction. */ constructor(uint256 cap_) { require(cap_ > 0, "ERC20Capped: cap is 0"); _cap = cap_; } /** * @dev Returns the cap on the token's total supply. */ function cap() public view virtual returns (uint256) { return _cap; } /** * @dev See {ERC20-_mint}. */ function _mint(address account, uint256 amount) internal virtual override { require(ERC20.totalSupply() + amount <= cap(), "ERC20Capped: cap exceeded"); super._mint(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.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (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: GPL-2.0-or-later pragma solidity >=0.8.19; /// @title Provides functions for deriving a pool address from the factory, tokens, and the fee library PoolAddress { bytes32 internal constant POOL_INIT_CODE_HASH = 0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54; // mainnet /// @notice The identifying key of the pool struct PoolKey { address token0; address token1; uint24 fee; } /// @notice Returns PoolKey: the ordered tokens with the matched fee levels /// @param tokenA The first token of a pool, unsorted /// @param tokenB The second token of a pool, unsorted /// @param fee The fee level of the pool /// @return Poolkey The pool details with ordered token0 and token1 assignments function getPoolKey( address tokenA, address tokenB, uint24 fee ) internal pure returns (PoolKey memory) { if (tokenA > tokenB) (tokenA, tokenB) = (tokenB, tokenA); return PoolKey({token0: tokenA, token1: tokenB, fee: fee}); } /// @notice Deterministically computes the pool address given the factory and PoolKey /// @param factory The Uniswap V3 factory contract address /// @param key The PoolKey /// @return pool The contract address of the V3 pool function computeAddress(address factory, PoolKey memory key) internal pure returns (address pool) { require(key.token0 < key.token1); pool = address( uint160( uint256( keccak256( abi.encodePacked( hex'ff', factory, keccak256(abi.encode(key.token0, key.token1, key.fee)), POOL_INIT_CODE_HASH ) ) ) ) ); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"mintAmount_","type":"uint256"},{"internalType":"uint256","name":"buybackInterval_","type":"uint256"},{"internalType":"uint256","name":"buybackRatio_","type":"uint256"},{"internalType":"address","name":"weth","type":"address"},{"internalType":"address","name":"swapFactory","type":"address"},{"internalType":"address","name":"swapQuoter_","type":"address"},{"internalType":"address","name":"liquidityHolder_","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":"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":"allowAddLiquidity","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":[],"name":"buybackInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buybackRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canAddLiquidity","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[{"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":"isJingle","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"liquidityHolder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextBuybackTime","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":"poolAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapQuoter","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isFinish","type":"bool"}],"name":"updateNextBuybackTime","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b50604051620016673803806200166783398101604081905262000034916200038e565b878980600362000045828262000564565b50600462000054828262000564565b50505060008111620000ad5760405162461bcd60e51b815260206004820152601560248201527f45524332304361707065643a206361702069732030000000000000000000000060448201526064015b60405180910390fd5b608052620000bb33620001a0565b8688118015620000cb5750600087115b8015620000e15750620000df878962000630565b155b6200011e5760405162461bcd60e51b815260206004820152600c60248201526b2830b930b6b99032b93937b960a11b6044820152606401620000a4565b6009879055600a869055600b859055600680546001600160a01b0319166001600160a01b03841617905562000162836200015c3087612710620001f2565b6200025e565b600780546001600160a01b039283166001600160a01b0319918216179091556008805493909216921691909117905550620006539650505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040805160608101825260008082526020820181905291810191909152826001600160a01b0316846001600160a01b031611156200022e579192915b50604080516060810182526001600160a01b03948516815292909316602083015262ffffff169181019190915290565b600081602001516001600160a01b031682600001516001600160a01b0316106200028757600080fd5b815160208084015160408086015181516001600160a01b0395861681860152949092168482015262ffffff90911660608085019190915281518085038201815260808501909252815191909201207fff0000000000000000000000000000000000000000000000000000000000000060a08401529085901b6001600160601b03191660a183015260b58201527fe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b5460d582015260f50160408051601f1981840301815291905280516020909101209392505050565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200038957600080fd5b919050565b60008060008060008060008060006101208a8c031215620003ae57600080fd5b89516001600160401b0380821115620003c657600080fd5b818c0191508c601f830112620003db57600080fd5b815181811115620003f057620003f06200035b565b604051601f8201601f19908116603f011681019083821181831017156200041b576200041b6200035b565b81604052828152602093508f848487010111156200043857600080fd5b600091505b828210156200045c57848201840151818301850152908301906200043d565b6000848483010152809d50505050808c01519950505060408a0151965060608a0151955060808a015194506200049560a08b0162000371565b9350620004a560c08b0162000371565b9250620004b560e08b0162000371565b9150620004c66101008b0162000371565b90509295985092959850929598565b600181811c90821680620004ea57607f821691505b6020821081036200050b57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200055f57600081815260208120601f850160051c810160208610156200053a5750805b601f850160051c820191505b818110156200055b5782815560010162000546565b5050505b505050565b81516001600160401b038111156200058057620005806200035b565b6200059881620005918454620004d5565b8462000511565b602080601f831160018114620005d05760008415620005b75750858301515b600019600386901b1c1916600185901b1785556200055b565b600085815260208120601f198616915b828110156200060157888601518255948401946001909101908401620005e0565b5085821015620006205787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000826200064e57634e487b7160e01b600052601260045260246000fd5b500690565b608051610ff1620006766000396000818161027d0152610c8b0152610ff16000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80635a2bcc18116100f95780639fec332e11610097578063a9059cbb11610071578063a9059cbb14610370578063d8bad99a14610383578063dd62ed3e1461038c578063f2fde38b1461039f57600080fd5b80639fec332e14610337578063a457c2d71461034a578063a572c78b1461035d57600080fd5b8063715018a6116100d3578063715018a6146103025780638b0af0fa1461030a5780638da5cb5b1461031e57806395d89b411461032f57600080fd5b80635a2bcc18146102c757806367882694146102d057806370a08231146102d957600080fd5b80631f0c55a71161016657806334474c8c1161014057806334474c8c14610268578063355274ea1461027b57806339509351146102a157806340c10f19146102b457600080fd5b80631f0c55a71461023f57806323b872dd14610246578063313ce5671461025957600080fd5b806303f51578146101ae57806305c67073146101b857806306fdde03146101d4578063095ea7b3146101e95780631755ff211461020c57806318160ddd14610237575b600080fd5b6101b66103b2565b005b6101c1600b5481565b6040519081526020015b60405180910390f35b6101dc61041d565b6040516101cb9190610ddc565b6101fc6101f7366004610e46565b6104af565b60405190151581526020016101cb565b60075461021f906001600160a01b031681565b6040516001600160a01b0390911681526020016101cb565b6002546101c1565b60016101fc565b6101fc610254366004610e70565b6104c9565b604051601281526020016101cb565b60065461021f906001600160a01b031681565b7f00000000000000000000000000000000000000000000000000000000000000006101c1565b6101fc6102af366004610e46565b6104ed565b6101b66102c2366004610e46565b61050f565b6101c160095481565b6101c1600c5481565b6101c16102e7366004610eac565b6001600160a01b031660009081526020819052604090205490565b6101b661057a565b6007546101fc90600160a01b900460ff1681565b6005546001600160a01b031661021f565b6101dc61058e565b6101b6610345366004610ece565b61059d565b6101fc610358366004610e46565b61060f565b60085461021f906001600160a01b031681565b6101fc61037e366004610e46565b61068a565b6101c1600a5481565b6101c161039a366004610ef0565b610698565b6101b66103ad366004610eac565b6106c3565b6008546001600160a01b031633146104085760405162461bcd60e51b81526020600482015260146024820152732737ba103634b8bab4b234ba3c903437b63232b960611b60448201526064015b60405180910390fd5b6007805460ff60a01b1916600160a01b179055565b60606003805461042c90610f23565b80601f016020809104026020016040519081016040528092919081815260200182805461045890610f23565b80156104a55780601f1061047a576101008083540402835291602001916104a5565b820191906000526020600020905b81548152906001019060200180831161048857829003601f168201915b5050505050905090565b6000336104bd81858561073c565b60019150505b92915050565b6000336104d7858285610860565b6104e28585856108da565b506001949350505050565b6000336104bd8185856105008383610698565b61050a9190610f73565b61073c565b610517610a89565b600081118015610531575060095461052f9082610f86565b155b61056c5760405162461bcd60e51b815260206004820152600c60248201526b20b6b7bab73a1032b93937b960a11b60448201526064016103ff565b6105768282610ae3565b5050565b610582610a89565b61058c6000610aed565b565b60606004805461042c90610f23565b6008546001600160a01b031633146105ee5760405162461bcd60e51b81526020600482015260146024820152732737ba103634b8bab4b234ba3c903437b63232b960611b60448201526064016103ff565b8061060557600a546106009042610f73565b610609565b6000195b600c5550565b6000338161061d8286610698565b90508381101561067d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016103ff565b6104e2828686840361073c565b6000336104bd8185856108da565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6106cb610a89565b6001600160a01b0381166107305760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103ff565b61073981610aed565b50565b6001600160a01b03831661079e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103ff565b6001600160a01b0382166107ff5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103ff565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061086c8484610698565b905060001981146108d457818110156108c75760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016103ff565b6108d4848484840361073c565b50505050565b6001600160a01b03831661093e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103ff565b6001600160a01b0382166109a05760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103ff565b6109ab838383610b3f565b6001600160a01b03831660009081526020819052604090205481811015610a235760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103ff565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36108d4565b6005546001600160a01b0316331461058c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103ff565b6105768282610c89565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546001600160a01b0384811691161480610b6857506006546001600160a01b038381169116145b15610b7257505050565b600754600160a01b900460ff16610bed576007546001600160a01b0390811690831603610bed5760405162461bcd60e51b815260206004820152602360248201527f4e6f206c697374696e6720616c6c6f776564206265666f7265206d696e7420656044820152626e647360e81b60648201526084016103ff565b42600c541080610c0a5750603c42600c54610c089190610fa8565b105b15610c84576007546001600160a01b0390811690841603610c845760405162461bcd60e51b815260206004820152602e60248201527f4e6f2070757263686173657320616c6c6f776564206f6e65206d696e7574652060448201526d6265666f7265206275796261636b60901b60648201526084016103ff565b505050565b7f000000000000000000000000000000000000000000000000000000000000000081610cb460025490565b610cbe9190610f73565b1115610d0c5760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a206361702065786365656465640000000000000060448201526064016103ff565b61057682826001600160a01b038216610d675760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016103ff565b610d7360008383610b3f565b8060026000828254610d859190610f73565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600060208083528351808285015260005b81811015610e0957858101830151858201604001528201610ded565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610e4157600080fd5b919050565b60008060408385031215610e5957600080fd5b610e6283610e2a565b946020939093013593505050565b600080600060608486031215610e8557600080fd5b610e8e84610e2a565b9250610e9c60208501610e2a565b9150604084013590509250925092565b600060208284031215610ebe57600080fd5b610ec782610e2a565b9392505050565b600060208284031215610ee057600080fd5b81358015158114610ec757600080fd5b60008060408385031215610f0357600080fd5b610f0c83610e2a565b9150610f1a60208401610e2a565b90509250929050565b600181811c90821680610f3757607f821691505b602082108103610f5757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156104c3576104c3610f5d565b600082610fa357634e487b7160e01b600052601260045260246000fd5b500690565b818103818111156104c3576104c3610f5d56fea2646970667358221220db0ec81cd2d82d2efe3b9e352349fa7084c903ceb7489a587ab5c025fa44ac5164736f6c63430008130033000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000052b7d2dcc80cd2e4000000000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000070800000000000000000000000000000000000000000000000000000000000000064000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000001f98431c8ad98523631ae4a59f267346ea31f98400000000000000000000000061ffe014ba17989e743c5f6cb21bf9697530b21e000000000000000000000000c1251023f4a5863503d68e0dbdf9c65ff1cbf05c00000000000000000000000000000000000000000000000000000000000000034656430000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a95760003560e01c80635a2bcc18116100f95780639fec332e11610097578063a9059cbb11610071578063a9059cbb14610370578063d8bad99a14610383578063dd62ed3e1461038c578063f2fde38b1461039f57600080fd5b80639fec332e14610337578063a457c2d71461034a578063a572c78b1461035d57600080fd5b8063715018a6116100d3578063715018a6146103025780638b0af0fa1461030a5780638da5cb5b1461031e57806395d89b411461032f57600080fd5b80635a2bcc18146102c757806367882694146102d057806370a08231146102d957600080fd5b80631f0c55a71161016657806334474c8c1161014057806334474c8c14610268578063355274ea1461027b57806339509351146102a157806340c10f19146102b457600080fd5b80631f0c55a71461023f57806323b872dd14610246578063313ce5671461025957600080fd5b806303f51578146101ae57806305c67073146101b857806306fdde03146101d4578063095ea7b3146101e95780631755ff211461020c57806318160ddd14610237575b600080fd5b6101b66103b2565b005b6101c1600b5481565b6040519081526020015b60405180910390f35b6101dc61041d565b6040516101cb9190610ddc565b6101fc6101f7366004610e46565b6104af565b60405190151581526020016101cb565b60075461021f906001600160a01b031681565b6040516001600160a01b0390911681526020016101cb565b6002546101c1565b60016101fc565b6101fc610254366004610e70565b6104c9565b604051601281526020016101cb565b60065461021f906001600160a01b031681565b7f00000000000000000000000000000000000000000052b7d2dcc80cd2e40000006101c1565b6101fc6102af366004610e46565b6104ed565b6101b66102c2366004610e46565b61050f565b6101c160095481565b6101c1600c5481565b6101c16102e7366004610eac565b6001600160a01b031660009081526020819052604090205490565b6101b661057a565b6007546101fc90600160a01b900460ff1681565b6005546001600160a01b031661021f565b6101dc61058e565b6101b6610345366004610ece565b61059d565b6101fc610358366004610e46565b61060f565b60085461021f906001600160a01b031681565b6101fc61037e366004610e46565b61068a565b6101c1600a5481565b6101c161039a366004610ef0565b610698565b6101b66103ad366004610eac565b6106c3565b6008546001600160a01b031633146104085760405162461bcd60e51b81526020600482015260146024820152732737ba103634b8bab4b234ba3c903437b63232b960611b60448201526064015b60405180910390fd5b6007805460ff60a01b1916600160a01b179055565b60606003805461042c90610f23565b80601f016020809104026020016040519081016040528092919081815260200182805461045890610f23565b80156104a55780601f1061047a576101008083540402835291602001916104a5565b820191906000526020600020905b81548152906001019060200180831161048857829003601f168201915b5050505050905090565b6000336104bd81858561073c565b60019150505b92915050565b6000336104d7858285610860565b6104e28585856108da565b506001949350505050565b6000336104bd8185856105008383610698565b61050a9190610f73565b61073c565b610517610a89565b600081118015610531575060095461052f9082610f86565b155b61056c5760405162461bcd60e51b815260206004820152600c60248201526b20b6b7bab73a1032b93937b960a11b60448201526064016103ff565b6105768282610ae3565b5050565b610582610a89565b61058c6000610aed565b565b60606004805461042c90610f23565b6008546001600160a01b031633146105ee5760405162461bcd60e51b81526020600482015260146024820152732737ba103634b8bab4b234ba3c903437b63232b960611b60448201526064016103ff565b8061060557600a546106009042610f73565b610609565b6000195b600c5550565b6000338161061d8286610698565b90508381101561067d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016103ff565b6104e2828686840361073c565b6000336104bd8185856108da565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6106cb610a89565b6001600160a01b0381166107305760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103ff565b61073981610aed565b50565b6001600160a01b03831661079e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103ff565b6001600160a01b0382166107ff5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103ff565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061086c8484610698565b905060001981146108d457818110156108c75760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016103ff565b6108d4848484840361073c565b50505050565b6001600160a01b03831661093e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103ff565b6001600160a01b0382166109a05760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103ff565b6109ab838383610b3f565b6001600160a01b03831660009081526020819052604090205481811015610a235760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103ff565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36108d4565b6005546001600160a01b0316331461058c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103ff565b6105768282610c89565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546001600160a01b0384811691161480610b6857506006546001600160a01b038381169116145b15610b7257505050565b600754600160a01b900460ff16610bed576007546001600160a01b0390811690831603610bed5760405162461bcd60e51b815260206004820152602360248201527f4e6f206c697374696e6720616c6c6f776564206265666f7265206d696e7420656044820152626e647360e81b60648201526084016103ff565b42600c541080610c0a5750603c42600c54610c089190610fa8565b105b15610c84576007546001600160a01b0390811690841603610c845760405162461bcd60e51b815260206004820152602e60248201527f4e6f2070757263686173657320616c6c6f776564206f6e65206d696e7574652060448201526d6265666f7265206275796261636b60901b60648201526084016103ff565b505050565b7f00000000000000000000000000000000000000000052b7d2dcc80cd2e400000081610cb460025490565b610cbe9190610f73565b1115610d0c5760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a206361702065786365656465640000000000000060448201526064016103ff565b61057682826001600160a01b038216610d675760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016103ff565b610d7360008383610b3f565b8060026000828254610d859190610f73565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600060208083528351808285015260005b81811015610e0957858101830151858201604001528201610ded565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610e4157600080fd5b919050565b60008060408385031215610e5957600080fd5b610e6283610e2a565b946020939093013593505050565b600080600060608486031215610e8557600080fd5b610e8e84610e2a565b9250610e9c60208501610e2a565b9150604084013590509250925092565b600060208284031215610ebe57600080fd5b610ec782610e2a565b9392505050565b600060208284031215610ee057600080fd5b81358015158114610ec757600080fd5b60008060408385031215610f0357600080fd5b610f0c83610e2a565b9150610f1a60208401610e2a565b90509250929050565b600181811c90821680610f3757607f821691505b602082108103610f5757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156104c3576104c3610f5d565b600082610fa357634e487b7160e01b600052601260045260246000fd5b500690565b818103818111156104c3576104c3610f5d56fea2646970667358221220db0ec81cd2d82d2efe3b9e352349fa7084c903ceb7489a587ab5c025fa44ac5164736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000052b7d2dcc80cd2e4000000000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000070800000000000000000000000000000000000000000000000000000000000000064000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000001f98431c8ad98523631ae4a59f267346ea31f98400000000000000000000000061ffe014ba17989e743c5f6cb21bf9697530b21e000000000000000000000000c1251023f4a5863503d68e0dbdf9c65ff1cbf05c00000000000000000000000000000000000000000000000000000000000000034656430000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : symbol (string): FVC
Arg [1] : maxSupply (uint256): 100000000000000000000000000
Arg [2] : mintAmount_ (uint256): 100
Arg [3] : buybackInterval_ (uint256): 28800
Arg [4] : buybackRatio_ (uint256): 100
Arg [5] : weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [6] : swapFactory (address): 0x1F98431c8aD98523631AE4a59f267346ea31F984
Arg [7] : swapQuoter_ (address): 0x61fFE014bA17989E743c5F6cB21bF9697530B21e
Arg [8] : liquidityHolder_ (address): 0xC1251023F4a5863503D68E0DbDf9c65ff1cbf05c
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [1] : 00000000000000000000000000000000000000000052b7d2dcc80cd2e4000000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [3] : 0000000000000000000000000000000000000000000000000000000000007080
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [5] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [6] : 0000000000000000000000001f98431c8ad98523631ae4a59f267346ea31f984
Arg [7] : 00000000000000000000000061ffe014ba17989e743c5f6cb21bf9697530b21e
Arg [8] : 000000000000000000000000c1251023f4a5863503d68e0dbdf9c65ff1cbf05c
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [10] : 4656430000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.