ERC-20
Overview
Max Total Supply
1,000,000,000 $ARTHUR
Holders
46
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.000000000433197967 $ARTHURValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
Arthur
Compiler Version
v0.8.25+commit.b61c2a91
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.25; // // Telegram : https://t.me/DiamondHandChannel // X: https://x.com/arthurcoin2024 // Website: https://www.diamondhand.wtf // // ....... ....... ........ ................... ....... . ....... ....... . // ..... ....... ....... .........:-*%%%%%%%%*-........ ....... ....... ....... // ..... ....... ....... .......=##=-::::::::=*%+:..... ....... ....... ....... // ..... ....... ....... . .....+%=--:-:----::-:--+%:.... ....... ....... ....... // ......................................*#:-:-+%%****#%=:---*#........................................ // ........ ....... ..........-#=:--*#-::::::=%-:::=%-.........:+#%%%%%%%%*-:.. ....... . // ......... ....... ..........-#-:--%+:::::::=%---:+%:.......-#*=:::::::::-=#%-........ . // .....................................:%+:::+@-:::::-%+:---%*.......=*-----:::::------##:............ // ..... ....... ........ ....=%=:--+%=::::#*----+%:......-%=::--*###%%*-:::--##... ....... // ...... ....... ....... .....=%*-::-%+:-#*---:=%=.......=%--:-%*:::::=%+-:::-%-.. ....... // ..... .......... ....... ......:#%#%%%%###**##%@@#+-.....##---+#-::::::-%=::--**... ....... // ....... ....... .........:=#%#+-::---:-:::::::-:=*%%+:-%=:--**:::::::-%=::--*#..... . // ....... . ....... ......-*%*=-::--::::-::::::::::-::--=#@#--:-**::::::-%#-::--#*..... . // ....... ....... .....:*%*--+++++-::::::::::::::::-:::::+%---:-#+:::-=#%+-::::=%-..... . // ..... ........ ....=***#@%*=--=-----::::::::::::::::::::-*%=:::--@##%%#+----:::=%=.. ....... // ..... ....... ..+%@%%%%%%%%%@%-:-:::::::::::::::::::::::::::::::-=--:---::::-=%#:.. ....... // ..... ..........-%%%%%%@@@@%%%%%@+:-::::::::-:--:::::-*+--::::-::::----::---+%%+...... ....... // ..................-%%%%%@+-..::=%%%%%%=:-:::::--:--====--:-*#-::::::--::--=+#%#+-................... // ....... . ..+@%%%@=.........#@%%%*-::::--=#@@%%%%%%@%*-+#-::::::-*%#*@+:...... ........ . // ....... . ..*@%%@#:........ -@%%@*---:-*@%%%%%%%%%%%%%@%=:-::::::::::+%:..... . ....... . // ...............+@%%@*....... ...-@%%@#---*@%%%%@%+=---=#@%%%@*--:::::::::-#*....................... // ..... ....:%@%@#.............*@%%@*--%@%%@%-.........-@%%%@=--:::::::::=%=.. ....... . ....... // ..... ....=@%%@-.....=@@@=..:%%%%@#+@%%%%-............*@%%@#--::::::::-:##.......... ....... // ..............=@%%%:.. ..*@@@+.:#%%%%%%%%%%#:.. . .+@%%%%-:-:::::::-:=%:..................... // ....... ..=@%%@:......=+-.:#@%%%%%%%%%@-.... .... .+@%%%%-:-:::::::---%-... ....... . // ....... ..=@%%@*.... ....+@%%%%@%@%%%@#.......*%%-....#%%%@#-:-:::::::---%-... ....... . // ....... ..:%%%%%%+:...-#@%%%%@#--=%%%@+......=@@@%...-@%%%@+:-::::::::---%-... ....... . // ..... .....+@%%%%%@@@@%%%%%%@=:--=%%%@+.......#@#:..:%%%%@@+--::::::::---#:......... ....... // ..... .....**#@%%%%%%%%%%@@+------#%%%%.... ......:%%%%%@%%@@#+---:::--=#.......... ........ // ..... ....:%=:-+#%@@@%%%*-:::--:-:+@%%@*.... ...+@%%%%@%%%%%%%@%*=-:::*+.. ....... ....... // ..............=%-:--:-:-::::-:-:::::---#@%%%%-.....-#@%%%%@#=*@@%%%%%%%@@*--%+...................... // ....... ..=#-:::::-:::::::::::::::--#@%%%%@@@@@%%%%%@#-::::-+%@%%%%%%%@@%:.... ....... . // ....... ..=*--::::::::::::::::::::::-=%@%%%%%%%%@@%*--::::::---=#@%%%%%%@+.... ....... . // ..............=*-::::::::::::::::::::::::::-=*####*+=-:::::::::::-:::-=#@%%%@+...................... // ..... .....=*-::::::::::::::::::::::::::::::::----::::::::::::::::----*@#+:.. ....... . ......... // ..... ....=*-::::::--:::::::::::::::::::::::::::::::::::::::::::::-:=%=... ....... ....... // ..............=#-::::-:-+--:::---:::::::::::::::::::::::::::::::::::::-=%=.......................... // ....... ..:#=::::::-+#-::*%=-:::::::::-:::::::::::::::::::::::::::+%-......... ....... . . // ....... ..#+::::::::::--::--:::::::---::-:::::::::::::::::::::--*%-.. ....... ....... . // ...............=%-:::::::::::::::::::::::-*%%%=:-::::::::::::::::::-%*.............................. // ..... ......#*::::-:::::::::::::::::-:+#-::::::::::::::::::::-+%=........ ....... ....... // ..... ......:#+:::+%-::-::::::::::---**--:::::::::::::::::-:=%+......... ....... ....... // ...... .......:#=----#*=::::::::--:-*#=:--:::::::::::::::-:=%%-.. ....... ....... ....... // ........ ..-@*--:--=#%*=---=+#%+-::::::::::::::-:-:--=%+.*+:.... ....... ....... . // . ....... . ....+#=:--:::-------::--:::::::::::::::-:-*#=..=%*#%*-... ....... . ....... . // ....... .....:*%=---::::::::::::::::::::::::-:-+%*:...-%=---=#%*:......... ........ . // ..... ....... ..:=%*-:---::::::::::::::::--:-*%*:.....+%--------=%#-.. ....... ....... // ..... ........ ....:*%#=--:::::::::::---=*%#=:.. ..:%*--------#%#*%=.. ....... ....... // ..... ....... ...:=*%*:=*#%%#######%@%+-..... ..*%+------------+%@=... ....... ....... // .......................:+#=-#+.....:#*----#%-....... ...:##-----------------*%=..................... // ....... .....:#%---=%:.......**-*%-........ ...#*--------------------##:.. ....... . // ....... ...:+%+----#=.=%#*%@=.*%-.......... ..=%----------------------+%-.. ....... . // ..................:%#-----**:%#-=%++@=....=%##%%*=.....#+-----------------------+#:................. // ..... .......:%+-----+#*%+%%%---=%#*%%@+----=%@=..:#=------------------------+#:.... ....... // ..... ......:#+------+#=--=@+---+%=---#*:--*%=-%=.+*--------------------------#*.... ....... // ..... ......##-------------+%=--%=-----####=---=%*%=--------------------------=%:.... ....... // ....... ..=%---+#-----------##*%----=*%*--------------------------------------#+......... . // ....... ..#+---*#------------=#@%%%%*=----------------------------------------+%:........ . import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./interface/IRouter.sol"; import "./interface/IFactory.sol"; import "./interface/IPair.sol"; contract Arthur is ERC20, Ownable { using SafeERC20 for IERC20; using Address for address payable; IRouter public immutable router = IRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); address public pair; bool private swapping; bool public tradingEnabled; bool internal limits = true; address public taxWallet; uint256 internal maxSupply = 1_000_000_000 ether; uint256 internal maxTxAmount = 15_000_000 ether; uint256 internal maxHoldingAmount = 15_000_000 ether; uint256 internal caTokens = 100_000_000 ether; uint8 public totalBuyTax = 20; uint8 public totalSellTax = 20; mapping(address => bool) private _isExcludedFromFees; mapping(address => bool) public automatedMarketMakerPairs; event ExcludeFromFees(address indexed account, bool isExcluded); event ExcludeMultipleAccountsFromFees(address[] accounts, bool isExcluded); event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value); event FeesCollected(uint256 indexed amount); constructor() ERC20("ARTHUR", "$ARTHUR") Ownable(msg.sender) { taxWallet = msg.sender; address _pair = IFactory(router.factory()).createPair( address(this), router.WETH() ); pair = _pair; _setAutomatedMarketMakerPair(_pair, true); // exclude from paying fees or having max transaction amount excludeFromFees(msg.sender, true); excludeFromFees(address(this), true); excludeFromFees(address(0), true); /* _mint is an internal function in ERC20.sol that is only called here, and CANNOT be called ever again */ uint256 ownerSupply = maxSupply - caTokens; _mint(msg.sender, ownerSupply); _mint(address(this), caTokens); } receive() external payable {} function excludeFromFees(address account, bool excluded) public onlyOwner { require( _isExcludedFromFees[account] != excluded, "Account is already excluded" ); _isExcludedFromFees[account] = excluded; emit ExcludeFromFees(account, excluded); } function updateTaxes( uint8 _totalBuyTax, uint8 _totalSellTax ) external onlyOwner { require( _totalBuyTax <= 20 && _totalSellTax <= 20, "Cannot set taxes higher than 20%" ); totalBuyTax = _totalBuyTax; totalSellTax = _totalSellTax; } function removeLimits() external onlyOwner { limits = false; } function enableTrading() external onlyOwner { require(!tradingEnabled, "Trading already enabled"); tradingEnabled = true; } /// @dev Set new pairs created due to listing in new DEX function setAutomatedMarketMakerPair( address newPair, bool value ) external onlyOwner { _setAutomatedMarketMakerPair(newPair, value); } function _setAutomatedMarketMakerPair(address newPair, bool value) private { require( automatedMarketMakerPairs[newPair] != value, "FS: Automated market maker pair is already set to that value" ); automatedMarketMakerPairs[newPair] = value; emit SetAutomatedMarketMakerPair(newPair, value); } ////////////////////// // Getter Functions // ////////////////////// function isExcludedFromFees(address account) public view returns (bool) { return _isExcludedFromFees[account]; } //////////////////////// // Transfer Functions // //////////////////////// function _update( address from, address to, uint256 amount ) internal virtual override { require(amount > 0, "Transfer amount must be greater than zero"); if (!_isExcludedFromFees[from] && limits) { require( amount <= maxTxAmount, "Transfer amount exceeds the maxTxAmount." ); if (automatedMarketMakerPairs[from]) require( balanceOf(to) + amount <= maxHoldingAmount, "Max holding amount" ); } if ( !_isExcludedFromFees[from] && !_isExcludedFromFees[to] && !swapping ) { require(tradingEnabled, "Trading not active"); } uint256 contractTokenBalance = balanceOf(address(this)); uint256 swapAmount = contractTokenBalance > amount ? amount : contractTokenBalance; if ( !swapping && automatedMarketMakerPairs[to] && !_isExcludedFromFees[from] && !_isExcludedFromFees[to] ) { swapping = true; swapAndLiquify(swapAmount); swapping = false; } bool takeFee = !swapping; // if any account belongs to _isExcludedFromFee account then remove the fee if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) { takeFee = false; } if (!automatedMarketMakerPairs[to] && !automatedMarketMakerPairs[from]) takeFee = false; if (takeFee) { uint256 feeAmt; if (automatedMarketMakerPairs[to]) feeAmt = (amount * totalSellTax) / 100; else if (automatedMarketMakerPairs[from]) feeAmt = (amount * totalBuyTax) / 100; amount = amount - feeAmt; super._update(from, address(this), feeAmt); } super._update(from, to, amount); } function swapAndLiquify(uint256 tokens) private { if (tokens > 0) { uint256 ETHbalance = swapTokensForETH(tokens); emit FeesCollected(ETHbalance); } } function swapTokensForETH( uint256 tokenAmount ) private returns (uint256 ETHbalance) { address[] memory path = new address[](2); path[0] = address(this); path[1] = router.WETH(); _approve(address(this), address(router), tokenAmount); // make the swap router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // accept any amount of ETH path, address(this), block.timestamp ); ETHbalance = address(this).balance; payable(taxWallet).sendValue(ETHbalance); return ETHbalance; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {IERC20Errors} from "../../interfaces/draft-IERC6093.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}. * * 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. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => 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 returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual 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 returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual 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 `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` 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 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); 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 `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` 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. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` 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. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * ``` * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; import {IERC20Permit} from "../extensions/IERC20Permit.sol"; import {Address} from "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev An operation with an ERC20 token failed. */ error SafeERC20FailedOperation(address token); /** * @dev Indicates a failed `decreaseAllowance` request. */ error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value))); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value))); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); forceApprove(token, spender, oldAllowance + value); } /** * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no * value, non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { unchecked { uint256 currentAllowance = token.allowance(address(this), spender); if (currentAllowance < requestedDecrease) { revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); } forceApprove(token, spender, currentAllowance - requestedDecrease); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value)); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); _callOptionalReturn(token, approvalCall); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data); if (returndata.length != 0 && !abi.decode(returndata, (bool))) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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 pragma solidity 0.8.25; interface IRouter { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable returns (uint[] memory amounts); function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.25; interface IFactory { function createPair( address tokenA, address tokenB ) external returns (address pair); function getPair( address tokenA, address tokenB ) external view returns (address pair); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.25; interface IPair { function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function token0() external view returns (address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @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 value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ 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 v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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 v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. * * CAUTION: See Security Considerations above. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol) pragma solidity ^0.8.20; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error AddressInsufficientBalance(address account); /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedInnerCall(); /** * @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.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert AddressInsufficientBalance(address(this)); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert FailedInnerCall(); } } /** * @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 or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {FailedInnerCall} error. * * 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. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @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`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert AddressInsufficientBalance(address(this)); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an * unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {FailedInnerCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}. */ function _revert(bytes memory returndata) 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 FailedInnerCall(); } } }
{ "remappings": [ "@openzeppelin/=lib/openzeppelin-contracts/", "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "openzeppelin-contracts/=lib/openzeppelin-contracts/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "viaIR": false, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"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":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"accounts","type":"address[]"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeMultipleAccountsFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeesCollected","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":"pair","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPair","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":[{"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":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"automatedMarketMakerPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFees","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":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newPair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBuyTax","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSellTax","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","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":"value","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":"uint8","name":"_totalBuyTax","type":"uint8"},{"internalType":"uint8","name":"_totalSellTax","type":"uint8"}],"name":"updateTaxes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a0604052737a250d5630b4cf539739df2c5dacb4c659f2488d6080526006805460ff60b01b1916600160b01b1790556b033b2e3c9fd0803ce80000006008556a0c685fa11e01ec6f0000006009819055600a556a52b7d2dcc80cd2e4000000600b55600c805461141461ffff1990911617905534801561007f57600080fd5b50336040518060400160405280600681526020016520a92a242aa960d11b815250604051806040016040528060078152602001661220a92a242aa960c91b81525081600390816100cf9190610ee9565b5060046100dc8282610ee9565b5050506001600160a01b03811661010e57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610117816102fd565b50600780546001600160a01b031916331790556080516040805163c45a015560e01b815290516000926001600160a01b03169163c45a01559160048083019260209291908290030181865afa158015610174573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101989190610fa8565b6001600160a01b031663c9c65396306080516001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156101e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061020b9190610fa8565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015610258573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061027c9190610fa8565b600680546001600160a01b0319166001600160a01b03831617905590506102a481600161034f565b6102af336001610439565b6102ba306001610439565b6102c660006001610439565b6000600b546008546102d89190610fee565b90506102e43382610510565b6102f630600b5461051060201b60201c565b50506110dc565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166000908152600e602052604090205481151560ff9091161515036103e55760405162461bcd60e51b815260206004820152603c60248201527f46533a204175746f6d61746564206d61726b6574206d616b657220706169722060448201527f697320616c72656164792073657420746f20746861742076616c7565000000006064820152608401610105565b6001600160a01b0382166000818152600e6020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b61044161054a565b6001600160a01b0382166000908152600d602052604090205481151560ff9091161515036104b15760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610105565b6001600160a01b0382166000818152600d6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6001600160a01b03821661053a5760405163ec442f0560e01b815260006004820152602401610105565b61054660008383610579565b5050565b6005546001600160a01b031633146105775760405163118cdaa760e01b8152336004820152602401610105565b565b600081116105db5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610105565b6001600160a01b0383166000908152600d602052604090205460ff1615801561060d5750600654600160b01b900460ff165b15610706576009548111156106755760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657220616d6f756e74206578636565647320746865206d6178546044820152673c20b6b7bab73a1760c11b6064820152608401610105565b6001600160a01b0383166000908152600e602052604090205460ff161561070657600a54816106b9846001600160a01b031660009081526020819052604090205490565b6106c39190611007565b11156107065760405162461bcd60e51b815260206004820152601260248201527113585e081a1bdb191a5b99c8185b5bdd5b9d60721b6044820152606401610105565b6001600160a01b0383166000908152600d602052604090205460ff1615801561074857506001600160a01b0382166000908152600d602052604090205460ff16155b801561075e5750600654600160a01b900460ff16155b156107b157600654600160a81b900460ff166107b15760405162461bcd60e51b815260206004820152601260248201527154726164696e67206e6f742061637469766560701b6044820152606401610105565b30600090815260208190526040812054908282116107cf57816107d1565b825b600654909150600160a01b900460ff1615801561080657506001600160a01b0384166000908152600e602052604090205460ff165b801561082b57506001600160a01b0385166000908152600d602052604090205460ff16155b801561085057506001600160a01b0384166000908152600d602052604090205460ff16155b1561087f576006805460ff60a01b1916600160a01b179055610871816109de565b6006805460ff60a01b191690555b6006546001600160a01b0386166000908152600d602052604090205460ff600160a01b9092048216159116806108cd57506001600160a01b0385166000908152600d602052604090205460ff165b156108d6575060005b6001600160a01b0385166000908152600e602052604090205460ff1615801561091857506001600160a01b0386166000908152600e602052604090205460ff16155b15610921575060005b80156109cb576001600160a01b0385166000908152600e602052604081205460ff161561097157600c5460649061096090610100900460ff168761101a565b61096a9190611031565b90506109b2565b6001600160a01b0387166000908152600e602052604090205460ff16156109b257600c546064906109a59060ff168761101a565b6109af9190611031565b90505b6109bc8186610fee565b94506109c9873083610a22565b505b6109d6868686610a22565b505050505050565b8015610a1f5760006109ef82610b4c565b60405190915081907f860c0aa5520013080c2f65981705fcdea474d9f7c3daf954656ed5e65d692d1f90600090a2505b50565b6001600160a01b038316610a4d578060026000828254610a429190611007565b90915550610abf9050565b6001600160a01b03831660009081526020819052604090205481811015610aa05760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610105565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216610adb57600280548290039055610afa565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610b3f91815260200190565b60405180910390a3505050565b604080516002808252606082018352600092839291906020830190803683370190505090503081600081518110610b8557610b85611053565b60200260200101906001600160a01b031690816001600160a01b0316815250506080516001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610be5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c099190610fa8565b81600181518110610c1c57610c1c611053565b60200260200101906001600160a01b031690816001600160a01b031681525050610c4f3060805185610cd860201b60201c565b6080516001600160a01b031663791ac9478460008430426040518663ffffffff1660e01b8152600401610c86959493929190611069565b600060405180830381600087803b158015610ca057600080fd5b505af1158015610cb4573d6000803e3d6000fd5b5050600754479450610cd292506001600160a01b0316905083610cea565b50919050565b610ce58383836001610d81565b505050565b80471015610d0d5760405163cd78605960e01b8152306004820152602401610105565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610d5a576040519150601f19603f3d011682016040523d82523d6000602084013e610d5f565b606091505b5050905080610ce557604051630a12f52160e11b815260040160405180910390fd5b6001600160a01b038416610dab5760405163e602df0560e01b815260006004820152602401610105565b6001600160a01b038316610dd557604051634a1406b160e11b815260006004820152602401610105565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610e5157826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610e4891815260200190565b60405180910390a35b50505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680610e8157607f821691505b602082108103610cd257634e487b7160e01b600052602260045260246000fd5b601f821115610ce5576000816000526020600020601f850160051c81016020861015610eca5750805b601f850160051c820191505b818110156109d657828155600101610ed6565b81516001600160401b03811115610f0257610f02610e57565b610f1681610f108454610e6d565b84610ea1565b602080601f831160018114610f4b5760008415610f335750858301515b600019600386901b1c1916600185901b1785556109d6565b600085815260208120601f198616915b82811015610f7a57888601518255948401946001909101908401610f5b565b5085821015610f985787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215610fba57600080fd5b81516001600160a01b0381168114610fd157600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561100157611001610fd8565b92915050565b8082018082111561100157611001610fd8565b808202811582820484141761100157611001610fd8565b60008261104e57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b818110156110bb5784516001600160a01b031683529383019391830191600101611096565b50506001600160a01b03969096166060850152505050608001529392505050565b60805161170961110c600039600081816104f3015281816111be0152818161127701526112b301526117096000f3fe60806040526004361061016a5760003560e01c8063751039fc116100d1578063a8aa1b311161008a578063c024666811610064578063c02466681461045b578063dd62ed3e1461047b578063f2fde38b146104c1578063f887ea40146104e157600080fd5b8063a8aa1b31146103eb578063a9059cbb1461040b578063b62496f51461042b57600080fd5b8063751039fc1461034e5780638a8c523c146103635780638da5cb5b1461037857806395d89b41146103965780639a7a23d6146103ab5780639eba640e146103cb57600080fd5b8063313ce56711610123578063313ce5671461027957806346469afb1461028d5780634ada218b146102a75780634fbee193146102c857806370a0823114610301578063715018a61461033757600080fd5b806306fdde0314610176578063095ea7b3146101a157806318160ddd146101d15780631bff7898146101f057806323b872dd146102215780632dc0562d1461024157600080fd5b3661017157005b600080fd5b34801561018257600080fd5b5061018b610515565b60405161019891906113da565b60405180910390f35b3480156101ad57600080fd5b506101c16101bc36600461143e565b6105a7565b6040519015158152602001610198565b3480156101dd57600080fd5b506002545b604051908152602001610198565b3480156101fc57600080fd5b50600c5461020f90610100900460ff1681565b60405160ff9091168152602001610198565b34801561022d57600080fd5b506101c161023c36600461146a565b6105c1565b34801561024d57600080fd5b50600754610261906001600160a01b031681565b6040516001600160a01b039091168152602001610198565b34801561028557600080fd5b50601261020f565b34801561029957600080fd5b50600c5461020f9060ff1681565b3480156102b357600080fd5b506006546101c190600160a81b900460ff1681565b3480156102d457600080fd5b506101c16102e33660046114ab565b6001600160a01b03166000908152600d602052604090205460ff1690565b34801561030d57600080fd5b506101e261031c3660046114ab565b6001600160a01b031660009081526020819052604090205490565b34801561034357600080fd5b5061034c6105e5565b005b34801561035a57600080fd5b5061034c6105f9565b34801561036f57600080fd5b5061034c610610565b34801561038457600080fd5b506005546001600160a01b0316610261565b3480156103a257600080fd5b5061018b61068c565b3480156103b757600080fd5b5061034c6103c63660046114cf565b61069b565b3480156103d757600080fd5b5061034c6103e6366004611523565b6106b1565b3480156103f757600080fd5b50600654610261906001600160a01b031681565b34801561041757600080fd5b506101c161042636600461143e565b610741565b34801561043757600080fd5b506101c16104463660046114ab565b600e6020526000908152604090205460ff1681565b34801561046757600080fd5b5061034c6104763660046114cf565b61074f565b34801561048757600080fd5b506101e2610496366004611556565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156104cd57600080fd5b5061034c6104dc3660046114ab565b610826565b3480156104ed57600080fd5b506102617f000000000000000000000000000000000000000000000000000000000000000081565b60606003805461052490611584565b80601f016020809104026020016040519081016040528092919081815260200182805461055090611584565b801561059d5780601f106105725761010080835404028352916020019161059d565b820191906000526020600020905b81548152906001019060200180831161058057829003601f168201915b5050505050905090565b6000336105b5818585610864565b60019150505b92915050565b6000336105cf858285610876565b6105da8585856108f4565b506001949350505050565b6105ed610953565b6105f76000610980565b565b610601610953565b6006805460ff60b01b19169055565b610618610953565b600654600160a81b900460ff16156106775760405162461bcd60e51b815260206004820152601760248201527f54726164696e6720616c726561647920656e61626c656400000000000000000060448201526064015b60405180910390fd5b6006805460ff60a81b1916600160a81b179055565b60606004805461052490611584565b6106a3610953565b6106ad82826109d2565b5050565b6106b9610953565b60148260ff16111580156106d1575060148160ff1611155b61071d5760405162461bcd60e51b815260206004820181905260248201527f43616e6e6f742073657420746178657320686967686572207468616e20323025604482015260640161066e565b600c805460ff9283166101000261ffff199091169290931691909117919091179055565b6000336105b58185856108f4565b610757610953565b6001600160a01b0382166000908152600d602052604090205481151560ff9091161515036107c75760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c756465640000000000604482015260640161066e565b6001600160a01b0382166000818152600d6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b61082e610953565b6001600160a01b03811661085857604051631e4fbdf760e01b81526000600482015260240161066e565b61086181610980565b50565b6108718383836001610abc565b505050565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146108ee57818110156108df57604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161066e565b6108ee84848484036000610abc565b50505050565b6001600160a01b03831661091e57604051634b637e8f60e11b81526000600482015260240161066e565b6001600160a01b0382166109485760405163ec442f0560e01b81526000600482015260240161066e565b610871838383610b91565b6005546001600160a01b031633146105f75760405163118cdaa760e01b815233600482015260240161066e565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166000908152600e602052604090205481151560ff909116151503610a685760405162461bcd60e51b815260206004820152603c60248201527f46533a204175746f6d61746564206d61726b6574206d616b657220706169722060448201527f697320616c72656164792073657420746f20746861742076616c756500000000606482015260840161066e565b6001600160a01b0382166000818152600e6020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6001600160a01b038416610ae65760405163e602df0560e01b81526000600482015260240161066e565b6001600160a01b038316610b1057604051634a1406b160e11b81526000600482015260240161066e565b6001600160a01b03808516600090815260016020908152604080832093871683529290522082905580156108ee57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610b8391815260200190565b60405180910390a350505050565b60008111610bf35760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b606482015260840161066e565b6001600160a01b0383166000908152600d602052604090205460ff16158015610c255750600654600160b01b900460ff165b15610d1e57600954811115610c8d5760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657220616d6f756e74206578636565647320746865206d6178546044820152673c20b6b7bab73a1760c11b606482015260840161066e565b6001600160a01b0383166000908152600e602052604090205460ff1615610d1e57600a5481610cd1846001600160a01b031660009081526020819052604090205490565b610cdb91906115ce565b1115610d1e5760405162461bcd60e51b815260206004820152601260248201527113585e081a1bdb191a5b99c8185b5bdd5b9d60721b604482015260640161066e565b6001600160a01b0383166000908152600d602052604090205460ff16158015610d6057506001600160a01b0382166000908152600d602052604090205460ff16155b8015610d765750600654600160a01b900460ff16155b15610dc957600654600160a81b900460ff16610dc95760405162461bcd60e51b815260206004820152601260248201527154726164696e67206e6f742061637469766560701b604482015260640161066e565b3060009081526020819052604081205490828211610de75781610de9565b825b600654909150600160a01b900460ff16158015610e1e57506001600160a01b0384166000908152600e602052604090205460ff165b8015610e4357506001600160a01b0385166000908152600d602052604090205460ff16155b8015610e6857506001600160a01b0384166000908152600d602052604090205460ff16155b15610e97576006805460ff60a01b1916600160a01b179055610e8981610ff6565b6006805460ff60a01b191690555b6006546001600160a01b0386166000908152600d602052604090205460ff600160a01b909204821615911680610ee557506001600160a01b0385166000908152600d602052604090205460ff165b15610eee575060005b6001600160a01b0385166000908152600e602052604090205460ff16158015610f3057506001600160a01b0386166000908152600e602052604090205460ff16155b15610f39575060005b8015610fe3576001600160a01b0385166000908152600e602052604081205460ff1615610f8957600c54606490610f7890610100900460ff16876115e1565b610f8291906115f8565b9050610fca565b6001600160a01b0387166000908152600e602052604090205460ff1615610fca57600c54606490610fbd9060ff16876115e1565b610fc791906115f8565b90505b610fd4818661161a565b9450610fe1873083611039565b505b610fee868686611039565b505050505050565b801561086157600061100782611163565b60405190915081907f860c0aa5520013080c2f65981705fcdea474d9f7c3daf954656ed5e65d692d1f90600090a25050565b6001600160a01b03831661106457806002600082825461105991906115ce565b909155506110d69050565b6001600160a01b038316600090815260208190526040902054818110156110b75760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161066e565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166110f257600280548290039055611111565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161115691815260200190565b60405180910390a3505050565b60408051600280825260608201835260009283929190602083019080368337019050509050308160008151811061119c5761119c61162d565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561121a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123e9190611643565b816001815181106112515761125161162d565b60200260200101906001600160a01b031690816001600160a01b03168152505061129c307f000000000000000000000000000000000000000000000000000000000000000085610864565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063791ac947906112f1908690600090869030904290600401611660565b600060405180830381600087803b15801561130b57600080fd5b505af115801561131f573d6000803e3d6000fd5b505060075447945061133d92506001600160a01b0316905083611343565b50919050565b804710156113665760405163cd78605960e01b815230600482015260240161066e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146113b3576040519150601f19603f3d011682016040523d82523d6000602084013e6113b8565b606091505b505090508061087157604051630a12f52160e11b815260040160405180910390fd5b60006020808352835180602085015260005b81811015611408578581018301518582016040015282016113ec565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461086157600080fd5b6000806040838503121561145157600080fd5b823561145c81611429565b946020939093013593505050565b60008060006060848603121561147f57600080fd5b833561148a81611429565b9250602084013561149a81611429565b929592945050506040919091013590565b6000602082840312156114bd57600080fd5b81356114c881611429565b9392505050565b600080604083850312156114e257600080fd5b82356114ed81611429565b91506020830135801515811461150257600080fd5b809150509250929050565b803560ff8116811461151e57600080fd5b919050565b6000806040838503121561153657600080fd5b61153f8361150d565b915061154d6020840161150d565b90509250929050565b6000806040838503121561156957600080fd5b823561157481611429565b9150602083013561150281611429565b600181811c9082168061159857607f821691505b60208210810361133d57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156105bb576105bb6115b8565b80820281158282048414176105bb576105bb6115b8565b60008261161557634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156105bb576105bb6115b8565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561165557600080fd5b81516114c881611429565b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b818110156116b25784516001600160a01b03168352938301939183019160010161168d565b50506001600160a01b0396909616606085015250505060800152939250505056fea264697066735822122017973dea7ba74cc9667093b0851d224036d48223f7cfa4814d4e0e6cb15dd1c664736f6c63430008190033
Deployed Bytecode
0x60806040526004361061016a5760003560e01c8063751039fc116100d1578063a8aa1b311161008a578063c024666811610064578063c02466681461045b578063dd62ed3e1461047b578063f2fde38b146104c1578063f887ea40146104e157600080fd5b8063a8aa1b31146103eb578063a9059cbb1461040b578063b62496f51461042b57600080fd5b8063751039fc1461034e5780638a8c523c146103635780638da5cb5b1461037857806395d89b41146103965780639a7a23d6146103ab5780639eba640e146103cb57600080fd5b8063313ce56711610123578063313ce5671461027957806346469afb1461028d5780634ada218b146102a75780634fbee193146102c857806370a0823114610301578063715018a61461033757600080fd5b806306fdde0314610176578063095ea7b3146101a157806318160ddd146101d15780631bff7898146101f057806323b872dd146102215780632dc0562d1461024157600080fd5b3661017157005b600080fd5b34801561018257600080fd5b5061018b610515565b60405161019891906113da565b60405180910390f35b3480156101ad57600080fd5b506101c16101bc36600461143e565b6105a7565b6040519015158152602001610198565b3480156101dd57600080fd5b506002545b604051908152602001610198565b3480156101fc57600080fd5b50600c5461020f90610100900460ff1681565b60405160ff9091168152602001610198565b34801561022d57600080fd5b506101c161023c36600461146a565b6105c1565b34801561024d57600080fd5b50600754610261906001600160a01b031681565b6040516001600160a01b039091168152602001610198565b34801561028557600080fd5b50601261020f565b34801561029957600080fd5b50600c5461020f9060ff1681565b3480156102b357600080fd5b506006546101c190600160a81b900460ff1681565b3480156102d457600080fd5b506101c16102e33660046114ab565b6001600160a01b03166000908152600d602052604090205460ff1690565b34801561030d57600080fd5b506101e261031c3660046114ab565b6001600160a01b031660009081526020819052604090205490565b34801561034357600080fd5b5061034c6105e5565b005b34801561035a57600080fd5b5061034c6105f9565b34801561036f57600080fd5b5061034c610610565b34801561038457600080fd5b506005546001600160a01b0316610261565b3480156103a257600080fd5b5061018b61068c565b3480156103b757600080fd5b5061034c6103c63660046114cf565b61069b565b3480156103d757600080fd5b5061034c6103e6366004611523565b6106b1565b3480156103f757600080fd5b50600654610261906001600160a01b031681565b34801561041757600080fd5b506101c161042636600461143e565b610741565b34801561043757600080fd5b506101c16104463660046114ab565b600e6020526000908152604090205460ff1681565b34801561046757600080fd5b5061034c6104763660046114cf565b61074f565b34801561048757600080fd5b506101e2610496366004611556565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156104cd57600080fd5b5061034c6104dc3660046114ab565b610826565b3480156104ed57600080fd5b506102617f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b60606003805461052490611584565b80601f016020809104026020016040519081016040528092919081815260200182805461055090611584565b801561059d5780601f106105725761010080835404028352916020019161059d565b820191906000526020600020905b81548152906001019060200180831161058057829003601f168201915b5050505050905090565b6000336105b5818585610864565b60019150505b92915050565b6000336105cf858285610876565b6105da8585856108f4565b506001949350505050565b6105ed610953565b6105f76000610980565b565b610601610953565b6006805460ff60b01b19169055565b610618610953565b600654600160a81b900460ff16156106775760405162461bcd60e51b815260206004820152601760248201527f54726164696e6720616c726561647920656e61626c656400000000000000000060448201526064015b60405180910390fd5b6006805460ff60a81b1916600160a81b179055565b60606004805461052490611584565b6106a3610953565b6106ad82826109d2565b5050565b6106b9610953565b60148260ff16111580156106d1575060148160ff1611155b61071d5760405162461bcd60e51b815260206004820181905260248201527f43616e6e6f742073657420746178657320686967686572207468616e20323025604482015260640161066e565b600c805460ff9283166101000261ffff199091169290931691909117919091179055565b6000336105b58185856108f4565b610757610953565b6001600160a01b0382166000908152600d602052604090205481151560ff9091161515036107c75760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c756465640000000000604482015260640161066e565b6001600160a01b0382166000818152600d6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b61082e610953565b6001600160a01b03811661085857604051631e4fbdf760e01b81526000600482015260240161066e565b61086181610980565b50565b6108718383836001610abc565b505050565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146108ee57818110156108df57604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161066e565b6108ee84848484036000610abc565b50505050565b6001600160a01b03831661091e57604051634b637e8f60e11b81526000600482015260240161066e565b6001600160a01b0382166109485760405163ec442f0560e01b81526000600482015260240161066e565b610871838383610b91565b6005546001600160a01b031633146105f75760405163118cdaa760e01b815233600482015260240161066e565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166000908152600e602052604090205481151560ff909116151503610a685760405162461bcd60e51b815260206004820152603c60248201527f46533a204175746f6d61746564206d61726b6574206d616b657220706169722060448201527f697320616c72656164792073657420746f20746861742076616c756500000000606482015260840161066e565b6001600160a01b0382166000818152600e6020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6001600160a01b038416610ae65760405163e602df0560e01b81526000600482015260240161066e565b6001600160a01b038316610b1057604051634a1406b160e11b81526000600482015260240161066e565b6001600160a01b03808516600090815260016020908152604080832093871683529290522082905580156108ee57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610b8391815260200190565b60405180910390a350505050565b60008111610bf35760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b606482015260840161066e565b6001600160a01b0383166000908152600d602052604090205460ff16158015610c255750600654600160b01b900460ff165b15610d1e57600954811115610c8d5760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657220616d6f756e74206578636565647320746865206d6178546044820152673c20b6b7bab73a1760c11b606482015260840161066e565b6001600160a01b0383166000908152600e602052604090205460ff1615610d1e57600a5481610cd1846001600160a01b031660009081526020819052604090205490565b610cdb91906115ce565b1115610d1e5760405162461bcd60e51b815260206004820152601260248201527113585e081a1bdb191a5b99c8185b5bdd5b9d60721b604482015260640161066e565b6001600160a01b0383166000908152600d602052604090205460ff16158015610d6057506001600160a01b0382166000908152600d602052604090205460ff16155b8015610d765750600654600160a01b900460ff16155b15610dc957600654600160a81b900460ff16610dc95760405162461bcd60e51b815260206004820152601260248201527154726164696e67206e6f742061637469766560701b604482015260640161066e565b3060009081526020819052604081205490828211610de75781610de9565b825b600654909150600160a01b900460ff16158015610e1e57506001600160a01b0384166000908152600e602052604090205460ff165b8015610e4357506001600160a01b0385166000908152600d602052604090205460ff16155b8015610e6857506001600160a01b0384166000908152600d602052604090205460ff16155b15610e97576006805460ff60a01b1916600160a01b179055610e8981610ff6565b6006805460ff60a01b191690555b6006546001600160a01b0386166000908152600d602052604090205460ff600160a01b909204821615911680610ee557506001600160a01b0385166000908152600d602052604090205460ff165b15610eee575060005b6001600160a01b0385166000908152600e602052604090205460ff16158015610f3057506001600160a01b0386166000908152600e602052604090205460ff16155b15610f39575060005b8015610fe3576001600160a01b0385166000908152600e602052604081205460ff1615610f8957600c54606490610f7890610100900460ff16876115e1565b610f8291906115f8565b9050610fca565b6001600160a01b0387166000908152600e602052604090205460ff1615610fca57600c54606490610fbd9060ff16876115e1565b610fc791906115f8565b90505b610fd4818661161a565b9450610fe1873083611039565b505b610fee868686611039565b505050505050565b801561086157600061100782611163565b60405190915081907f860c0aa5520013080c2f65981705fcdea474d9f7c3daf954656ed5e65d692d1f90600090a25050565b6001600160a01b03831661106457806002600082825461105991906115ce565b909155506110d69050565b6001600160a01b038316600090815260208190526040902054818110156110b75760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161066e565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166110f257600280548290039055611111565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161115691815260200190565b60405180910390a3505050565b60408051600280825260608201835260009283929190602083019080368337019050509050308160008151811061119c5761119c61162d565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561121a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123e9190611643565b816001815181106112515761125161162d565b60200260200101906001600160a01b031690816001600160a01b03168152505061129c307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d85610864565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac947906112f1908690600090869030904290600401611660565b600060405180830381600087803b15801561130b57600080fd5b505af115801561131f573d6000803e3d6000fd5b505060075447945061133d92506001600160a01b0316905083611343565b50919050565b804710156113665760405163cd78605960e01b815230600482015260240161066e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146113b3576040519150601f19603f3d011682016040523d82523d6000602084013e6113b8565b606091505b505090508061087157604051630a12f52160e11b815260040160405180910390fd5b60006020808352835180602085015260005b81811015611408578581018301518582016040015282016113ec565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461086157600080fd5b6000806040838503121561145157600080fd5b823561145c81611429565b946020939093013593505050565b60008060006060848603121561147f57600080fd5b833561148a81611429565b9250602084013561149a81611429565b929592945050506040919091013590565b6000602082840312156114bd57600080fd5b81356114c881611429565b9392505050565b600080604083850312156114e257600080fd5b82356114ed81611429565b91506020830135801515811461150257600080fd5b809150509250929050565b803560ff8116811461151e57600080fd5b919050565b6000806040838503121561153657600080fd5b61153f8361150d565b915061154d6020840161150d565b90509250929050565b6000806040838503121561156957600080fd5b823561157481611429565b9150602083013561150281611429565b600181811c9082168061159857607f821691505b60208210810361133d57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156105bb576105bb6115b8565b80820281158282048414176105bb576105bb6115b8565b60008261161557634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156105bb576105bb6115b8565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561165557600080fd5b81516114c881611429565b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b818110156116b25784516001600160a01b03168352938301939183019160010161168d565b50506001600160a01b0396909616606085015250505060800152939250505056fea264697066735822122017973dea7ba74cc9667093b0851d224036d48223f7cfa4814d4e0e6cb15dd1c664736f6c63430008190033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.