ERC-20
Overview
Max Total Supply
1,000,000 OMBRA
Holders
500
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.000000000000000001 OMBRAValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Ombra
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Capped.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol"; /** * web: https://ombra.finance/ * docs: https://ombras-organization.gitbook.io/ombra-finance */ contract Ombra is ERC20Capped, Ownable, ReentrancyGuard { address payable private immutable collector; address private immutable liquidityProvider; address private immutable controller; mapping(address => bool) private notTaxing; mapping(address => bool) public denials; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; bool private constant _taxSnipers = true; bool private constant _blacklistSnipers = false; bool private constant _gradualOpen = true; bool private constant _blacklist = true; bool private _swapTaxForEth = true; uint8 private constant TAX = 10; uint8 private constant SNIPE_TAX = 85; uint8 private constant SNIPE_BLOCKS = 60; uint256 private constant supply = 1_000_000 * (10 ** 18); uint256 private constant initialMaxTx = 400 * (10 ** 18); uint256 private constant gradualIncreasePerBlock = 10; uint256 private constant gradualIncreaseBlocks = 200; uint256 private maxTxAmount = 40_000 * (10 ** 18); uint256 private amountPerWallet = 50_000 * (10 ** 18); uint256 private slippage = 1000; uint256 private swapTaxForEthAt = 5000 * (10 ** 18); uint256 private startBlock; event TradingOpened(uint256 startBlock); event BotsHandled(address[] bots, bool value); event LimitsSet(uint256 maxTxAmount, uint256 amountPerWallet); event CollectThresholdSet(uint256 amount); event CollectStatusChanged(bool value); event SlippageSet(uint256 amount); event TokenSwapped(uint256 amount); event ETHCollected(uint256 amount); error InvalidAmount(); error ZeroAddressException(); error TradingNotYetOpened(); error TradingAlreadyOpened(); error OverGradualOpenLimit(uint256 attemptedAmount, uint256 maxAmount, uint256 remainingBlocks); error OverTransferLimit(uint256 attemptedAmount, uint256 maxAmount); error OverWalletLimit(uint256 attemptedBalance, uint256 maxBalance); error BotsNotAllowed(); error ControllerUnauthorized(); bool private _collecting = false; modifier lockCollect() { _collecting = true; _; _collecting = false; } modifier onlyController() { if (_msgSender() != controller) revert ControllerUnauthorized(); _; } constructor( string memory name_, string memory symbol_, address _liquidityProvider, address _controller, address _collector, address _uniswapV2Router ) Ownable(_liquidityProvider) ERC20(name_, symbol_) ERC20Capped(supply) { if ( _liquidityProvider == address(0) || _controller == address(0) || _collector == address(0) || _uniswapV2Router == address(0) ) { revert ZeroAddressException(); } uniswapV2Router = IUniswapV2Router02(_uniswapV2Router); uniswapV2Pair = address( IUniswapV2Factory(uniswapV2Router.factory()).createPair( address(this), uniswapV2Router.WETH() ) ); liquidityProvider = _liquidityProvider; controller = _controller; collector = payable(_collector); notTaxing[liquidityProvider] = true; notTaxing[address(this)] = true; _approve(address(this), address(uniswapV2Router), supply); _mint(liquidityProvider, supply); } function _update( address from, address to, uint256 amount ) internal virtual override { if (to == address(0)) revert ZeroAddressException(); if (amount == 0) revert InvalidAmount(); if (denials[from] || denials[to]) revert BotsNotAllowed(); if (!_isExempt(from, to)) { if (maxTxAmount > 0 && amount > maxTxAmount) { revert OverTransferLimit(amount, maxTxAmount); } if (amountPerWallet > 0 && to != uniswapV2Pair && balanceOf(to) + amount > amountPerWallet) { revert OverWalletLimit(amount + balanceOf(to), amountPerWallet); } if (_isPairTrade(from, to)) { if (!tradingOpen()) revert TradingNotYetOpened(); if (_gradualOpen) { uint256 elapsedBlocks = block.number - startBlock; if(elapsedBlocks <= gradualIncreaseBlocks) { uint256 currentGradualLimit = initialMaxTx + (elapsedBlocks * gradualIncreasePerBlock * (10 ** 18)); uint256 remainingBlocks = startBlock + gradualIncreaseBlocks - block.number; if(amount > currentGradualLimit) { revert OverGradualOpenLimit(amount, currentGradualLimit, remainingBlocks); } } } amount = _applyTaxes(from, to, amount); } } super._update(from, to, amount); } receive() external payable {} fallback() external payable {} function _applyTaxes( address from, address to, uint256 amount ) internal returns (uint256) { uint8 taxRate = TAX; if (_inSnipeRange() && from == uniswapV2Pair && _taxSnipers) { taxRate = SNIPE_TAX; if (_blacklistSnipers) denials[to] = true; } uint256 taxAmount = (amount * taxRate) / 100; amount -= taxAmount; super._update(from, address(this), taxAmount); uint256 ercBalance = balanceOf(address(this)); if (_isEligibleToCollect(from) && ercBalance >= swapTaxForEthAt) { _tryCollect(ercBalance); } return amount; } function _tryCollect(uint256 amount) private lockCollect { if (maxTxAmount > 0 && amount >= maxTxAmount) amount = maxTxAmount; address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); uint256[] memory amounts = uniswapV2Router.getAmountsOut(amount, path); uint256 currentPrice = amounts[1]; uint256 minAmountOut = (currentPrice * (10000 - slippage)) / 10000; uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( amount, minAmountOut, path, collector, block.timestamp ); emit TokenSwapped(amount); } function openTrading() external onlyOwner { if (tradingOpen()) revert TradingAlreadyOpened(); startBlock = block.number; emit TradingOpened(startBlock); } function handleBots(address[] memory bots, bool value) external onlyOwner { for (uint256 i = 0; i < bots.length; i++) { denials[bots[i]] = value; } emit BotsHandled(bots, value); } function setLimits( uint256 _amountPerTx, uint256 _amountPerWallet ) external onlyOwner { maxTxAmount = _amountPerTx; amountPerWallet = _amountPerWallet; emit LimitsSet(_amountPerTx, _amountPerWallet); } function setCollectThreshold(uint256 amount) external onlyController { swapTaxForEthAt = amount; emit CollectThresholdSet(amount); } function setCollect(bool value) external onlyController { _swapTaxForEth = value; emit CollectStatusChanged(value); } function setSlippage(uint256 amount) external onlyController { slippage = amount; emit SlippageSet(amount); } function tokenSwap() external nonReentrant onlyController { uint256 ercBalance = balanceOf(address(this)); if (ercBalance > 0) { _tryCollect(ercBalance); } } function ethRemove() external nonReentrant onlyController { uint256 contractETHBalance = address(this).balance; if (contractETHBalance > 0) { (bool sent, ) = collector.call{value: contractETHBalance}(""); require(sent, "Failed to send Ether"); emit ETHCollected(contractETHBalance); } } function _isExempt(address from, address to) internal view returns (bool) { return _isNotTaxableAddress(from, to); // || !_isPairTrade(from, to) } function _isNotTaxableAddress( address from, address to ) internal view returns (bool) { return notTaxing[from] || notTaxing[to]; } function _isPairTrade( address from, address to ) internal view returns (bool) { return (from == uniswapV2Pair && to != address(uniswapV2Router)) || (to == uniswapV2Pair && from != address(uniswapV2Router)); } function _isEligibleToCollect(address _from) internal view returns (bool) { return _swapTaxForEth && !_collecting && _from != uniswapV2Pair; } function _inSnipeRange() internal view returns (bool) { return block.number < startBlock + SNIPE_BLOCKS; } function tradingOpen() public view returns (bool) { return startBlock != 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` amount of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * ``` * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Capped.sol) pragma solidity ^0.8.20; import {ERC20} from "../ERC20.sol"; /** * @dev Extension of {ERC20} that adds a cap to the supply of tokens. */ abstract contract ERC20Capped is ERC20 { uint256 private immutable _cap; /** * @dev Total supply cap has been exceeded. */ error ERC20ExceededCap(uint256 increasedSupply, uint256 cap); /** * @dev The supplied cap is not a valid cap. */ error ERC20InvalidCap(uint256 cap); /** * @dev Sets the value of the `cap`. This value is immutable, it can only be * set once during construction. */ constructor(uint256 cap_) { if (cap_ == 0) { revert ERC20InvalidCap(0); } _cap = cap_; } /** * @dev Returns the cap on the token's total supply. */ function cap() public view virtual returns (uint256) { return _cap; } /** * @dev See {ERC20-_update}. */ function _update(address from, address to, uint256 value) internal virtual override { super._update(from, to, value); if (from == address(0)) { uint256 maxSupply = cap(); uint256 supply = totalSupply(); if (supply > maxSupply) { revert ERC20ExceededCap(supply, maxSupply); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.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.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (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.5.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
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); }
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; }
{ "metadata": { "bytecodeHash": "none" }, "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"address","name":"_liquidityProvider","type":"address"},{"internalType":"address","name":"_controller","type":"address"},{"internalType":"address","name":"_collector","type":"address"},{"internalType":"address","name":"_uniswapV2Router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"BotsNotAllowed","type":"error"},{"inputs":[],"name":"ControllerUnauthorized","type":"error"},{"inputs":[{"internalType":"uint256","name":"increasedSupply","type":"uint256"},{"internalType":"uint256","name":"cap","type":"uint256"}],"name":"ERC20ExceededCap","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"uint256","name":"cap","type":"uint256"}],"name":"ERC20InvalidCap","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"InvalidAmount","type":"error"},{"inputs":[{"internalType":"uint256","name":"attemptedAmount","type":"uint256"},{"internalType":"uint256","name":"maxAmount","type":"uint256"},{"internalType":"uint256","name":"remainingBlocks","type":"uint256"}],"name":"OverGradualOpenLimit","type":"error"},{"inputs":[{"internalType":"uint256","name":"attemptedAmount","type":"uint256"},{"internalType":"uint256","name":"maxAmount","type":"uint256"}],"name":"OverTransferLimit","type":"error"},{"inputs":[{"internalType":"uint256","name":"attemptedBalance","type":"uint256"},{"internalType":"uint256","name":"maxBalance","type":"uint256"}],"name":"OverWalletLimit","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":[],"name":"TradingAlreadyOpened","type":"error"},{"inputs":[],"name":"TradingNotYetOpened","type":"error"},{"inputs":[],"name":"ZeroAddressException","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":"address[]","name":"bots","type":"address[]"},{"indexed":false,"internalType":"bool","name":"value","type":"bool"}],"name":"BotsHandled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"value","type":"bool"}],"name":"CollectStatusChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"CollectThresholdSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ETHCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxTxAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountPerWallet","type":"uint256"}],"name":"LimitsSet","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":"amount","type":"uint256"}],"name":"SlippageSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenSwapped","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"startBlock","type":"uint256"}],"name":"TradingOpened","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":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"denials","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethRemove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"bots","type":"address[]"},{"internalType":"bool","name":"value","type":"bool"}],"name":"handleBots","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setCollect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setCollectThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountPerTx","type":"uint256"},{"internalType":"uint256","name":"_amountPerWallet","type":"uint256"}],"name":"setLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setSlippage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6101406040526009805460ff19908116600117909155690878678326eac9000000600a55690a968163f0a57b400000600b556103e8600c5569010f0cf064dd59200000600d55600f805490911690553480156200005b57600080fd5b5060405162002fb838038062002fb88339810160408190526200007e9162000ec2565b8369d3c21bcecceda1000000878760036200009a838262001003565b506004620000a9828262001003565b50505080600003620000d65760405163392e1e2760e01b8152600060048201526024015b60405180910390fd5b6080526001600160a01b0381166200010557604051631e4fbdf760e01b815260006004820152602401620000cd565b620001108162000368565b5060016006556001600160a01b03841615806200013457506001600160a01b038316155b806200014757506001600160a01b038216155b806200015a57506001600160a01b038116155b156200017957604051635919af9760e11b815260040160405180910390fd5b6001600160a01b0381166101008190526040805163c45a015560e01b8152905163c45a0155916004808201926020929091908290030181865afa158015620001c5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001eb9190620010cf565b6001600160a01b031663c9c6539630610100516001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200023c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002629190620010cf565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015620002b0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002d69190620010cf565b6001600160a01b039081166101205284811660c081905284821660e05290831660a0526000908152600760205260408082208054600160ff19918216811790925530808552929093208054909316179091556101005162000343919069d3c21bcecceda1000000620003ba565b60c0516200035c9069d3c21bcecceda1000000620003ce565b505050505050620012d9565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620003c983838360016200040c565b505050565b6001600160a01b038216620003fa5760405163ec442f0560e01b815260006004820152602401620000cd565b6200040860008383620004e8565b5050565b6001600160a01b038416620004385760405163e602df0560e01b815260006004820152602401620000cd565b6001600160a01b0383166200046457604051634a1406b160e11b815260006004820152602401620000cd565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015620004e257826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051620004d991815260200190565b60405180910390a35b50505050565b6001600160a01b0382166200051057604051635919af9760e11b815260040160405180910390fd5b80600003620005325760405163162908e360e11b815260040160405180910390fd5b6001600160a01b03831660009081526008602052604090205460ff16806200057257506001600160a01b03821660009081526008602052604090205460ff165b156200059157604051630d7cbe2760e11b815260040160405180910390fd5b6200059d838362000798565b6200078b576000600a54118015620005b65750600a5481115b15620005e457600a5460405163086e219760e11b8152620000cd918391600401918252602082015260400190565b6000600b541180156200060c5750610120516001600160a01b0316826001600160a01b031614155b8015620006465750600b548162000638846001600160a01b031660009081526020819052604090205490565b62000644919062001103565b115b1562000697576001600160a01b03821660009081526020819052604090205462000671908262001103565b600b546040516314c5f08760e01b815260048101929092526024820152604401620000cd565b620006a38383620007af565b156200078b57600e54620006ca57604051639039a12b60e01b815260040160405180910390fd5b6000600e5443620006dc919062001119565b905060c881116200077a576000620006f6600a836200112f565b6200070a90670de0b6b3a76400006200112f565b6200071f906815af1d78b58c40000062001103565b905060004360c8600e5462000735919062001103565b62000741919062001119565b9050818411156200077757604051632c5c6c1760e21b8152600481018590526024810183905260448101829052606401620000cd565b50505b506200078883838362000833565b90505b620003c9838383620008f9565b6000620007a6838362000965565b90505b92915050565b6000610120516001600160a01b0316836001600160a01b0316148015620007eb5750610100516001600160a01b0316826001600160a01b031614155b80620007a65750610120516001600160a01b0316826001600160a01b0316148015620007a65750610100516001600160a01b0316836001600160a01b03161415905092915050565b6000600a62000841620009a9565b8015620008625750610120516001600160a01b0316856001600160a01b0316145b80156200086d575060015b1562000877575060555b600060646200088a60ff8416866200112f565b62000896919062001149565b9050620008a4818562001119565b9350620008b3863083620008f9565b30600090815260208190526040902054620008ce87620009c4565b8015620008dd5750600d548110155b15620008ee57620008ee81620009fc565b509295945050505050565b6200090683838362000c9c565b6001600160a01b038316620003c95760006200092160805190565b905060006200092f60025490565b9050818111156200095e5760405163279e7e1560e21b81526004810182905260248101839052604401620000cd565b5050505050565b6001600160a01b03821660009081526007602052604081205460ff1680620007a65750506001600160a01b031660009081526007602052604090205460ff16919050565b600e54600090620009bd90603c9062001103565b4310905090565b60095460009060ff168015620009dd5750600f5460ff16155b8015620007a9575050610120516001600160a01b039182169116141590565b600f805460ff19166001179055600a541580159062000a1d5750600a548110155b1562000a285750600a545b604080516002808252606082018352600092602083019080368337019050509050308160008151811062000a605762000a606200116c565b60200260200101906001600160a01b031690816001600160a01b031681525050610100516001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000ac2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000ae89190620010cf565b8160018151811062000afe5762000afe6200116c565b6001600160a01b0392831660209182029290920101526101005160405163d06ca61f60e01b8152600092919091169063d06ca61f9062000b459086908690600401620011c8565b600060405180830381865afa15801562000b63573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262000b8d9190810190620011eb565b905060008160018151811062000ba75762000ba76200116c565b602002602001015190506000612710600c5461271062000bc8919062001119565b62000bd490846200112f565b62000be0919062001149565b9050610100516001600160a01b031663791ac94786838760a051426040518663ffffffff1660e01b815260040162000c1d9594939291906200129b565b600060405180830381600087803b15801562000c3857600080fd5b505af115801562000c4d573d6000803e3d6000fd5b505050507f66158d64ea90a3383da42069972efdf781b9e404ab679380eadda4e0a034c45f8560405162000c8391815260200190565b60405180910390a15050600f805460ff19169055505050565b6001600160a01b03831662000ccb57806002600082825462000cbf919062001103565b9091555062000d3f9050565b6001600160a01b0383166000908152602081905260409020548181101562000d205760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401620000cd565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821662000d5d5760028054829003905562000d7c565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405162000dc291815260200190565b60405180910390a3505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171562000e105762000e1062000dcf565b604052919050565b600082601f83011262000e2a57600080fd5b81516001600160401b0381111562000e465762000e4662000dcf565b602062000e5c601f8301601f1916820162000de5565b828152858284870101111562000e7157600080fd5b60005b8381101562000e9157858101830151828201840152820162000e74565b506000928101909101919091529392505050565b80516001600160a01b038116811462000ebd57600080fd5b919050565b60008060008060008060c0878903121562000edc57600080fd5b86516001600160401b038082111562000ef457600080fd5b62000f028a838b0162000e18565b9750602089015191508082111562000f1957600080fd5b5062000f2889828a0162000e18565b95505062000f396040880162000ea5565b935062000f496060880162000ea5565b925062000f596080880162000ea5565b915062000f6960a0880162000ea5565b90509295509295509295565b600181811c9082168062000f8a57607f821691505b60208210810362000fab57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003c957600081815260208120601f850160051c8101602086101562000fda5750805b601f850160051c820191505b8181101562000ffb5782815560010162000fe6565b505050505050565b81516001600160401b038111156200101f576200101f62000dcf565b620010378162001030845462000f75565b8462000fb1565b602080601f8311600181146200106f5760008415620010565750858301515b600019600386901b1c1916600185901b17855562000ffb565b600085815260208120601f198616915b82811015620010a0578886015182559484019460019091019084016200107f565b5085821015620010bf5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215620010e257600080fd5b620007a68262000ea5565b634e487b7160e01b600052601160045260246000fd5b80820180821115620007a957620007a9620010ed565b81810381811115620007a957620007a9620010ed565b8082028115828204841417620007a957620007a9620010ed565b6000826200116757634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600081518084526020808501945080840160005b83811015620011bd5781516001600160a01b03168752958201959082019060010162001196565b509495945050505050565b828152604060208201526000620011e3604083018462001182565b949350505050565b60006020808385031215620011ff57600080fd5b82516001600160401b03808211156200121757600080fd5b818501915085601f8301126200122c57600080fd5b81518181111562001241576200124162000dcf565b8060051b91506200125484830162000de5565b81815291830184019184810190888411156200126f57600080fd5b938501935b838510156200128f5784518252938501939085019062001274565b98975050505050505050565b85815284602082015260a060408201526000620012bc60a083018662001182565b6001600160a01b0394909416606083015250608001529392505050565b60805160a05160c05160e0516101005161012051611c22620013966000396000818161031b0152818161114c015281816113050152818161137e0152818161140b01526115b30152600081816101f101528181610d0201528181610dbd01528181610e9d0152818161134101526113ba0152600081816105a601528181610637015281816107040152818161077f0152610a30015260005050600081816107d00152610ed00152600081816102e501526114e40152611c226000f3fe60806040526004361061015b5760003560e01c8063715018a6116100c8578063c4590d3f11610084578063e645619411610061578063e645619414610480578063f0fa55a9146104a0578063f2fde38b146104c0578063ffb54a99146104e057005b8063c4590d3f14610405578063c9567bf914610425578063dd62ed3e1461043a57005b8063715018a6146103735780638da5cb5b1461038857806395d89b41146103a65780639653dee5146103bb578063a5ecb017146103d0578063a9059cbb146103e557005b806323b872dd1161011757806323b872dd1461026a5780632797121c1461028a578063313ce567146102ba578063355274ea146102d657806349bd5a5e1461030957806370a082311461033d57005b806306fdde0314610164578063095ea7b31461018f5780630dbccf0f146101bf5780631694505e146101df57806318160ddd1461022b5780631dcb487f1461024a57005b3661016257005b005b34801561017057600080fd5b506101796104f7565b6040516101869190611717565b60405180910390f35b34801561019b57600080fd5b506101af6101aa36600461177a565b610589565b6040519015158152602001610186565b3480156101cb57600080fd5b506101626101da3660046117bb565b6105a3565b3480156101eb57600080fd5b506102137f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610186565b34801561023757600080fd5b506002545b604051908152602001610186565b34801561025657600080fd5b506101626102653660046117d6565b610634565b34801561027657600080fd5b506101af6102853660046117ef565b6106b2565b34801561029657600080fd5b506101af6102a5366004611830565b60086020526000908152604090205460ff1681565b3480156102c657600080fd5b5060405160128152602001610186565b3480156102e257600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061023c565b34801561031557600080fd5b506102137f000000000000000000000000000000000000000000000000000000000000000081565b34801561034957600080fd5b5061023c610358366004611830565b6001600160a01b031660009081526020819052604090205490565b34801561037f57600080fd5b506101626106d6565b34801561039457600080fd5b506005546001600160a01b0316610213565b3480156103b257600080fd5b506101796106ea565b3480156103c757600080fd5b506101626106f9565b3480156103dc57600080fd5b50610162610774565b3480156103f157600080fd5b506101af61040036600461177a565b6108ca565b34801561041157600080fd5b5061016261042036600461184d565b6108d8565b34801561043157600080fd5b50610162610928565b34801561044657600080fd5b5061023c61045536600461186f565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561048c57600080fd5b5061016261049b366004611913565b61098c565b3480156104ac57600080fd5b506101626104bb3660046117d6565b610a2d565b3480156104cc57600080fd5b506101626104db366004611830565b610aab565b3480156104ec57600080fd5b50600e5415156101af565b606060038054610506906119c4565b80601f0160208091040260200160405190810160405280929190818152602001828054610532906119c4565b801561057f5780601f106105545761010080835404028352916020019161057f565b820191906000526020600020905b81548152906001019060200180831161056257829003601f168201915b5050505050905090565b600033610597818585610ae9565b60019150505b92915050565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146105ec57604051632885c5bd60e01b815260040160405180910390fd5b6009805460ff19168215159081179091556040519081527f5af7671db8fc675d77cbd05c6f026ce4d3333c42b92ef559cf48cd516714cd4b906020015b60405180910390a150565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161461067d57604051632885c5bd60e01b815260040160405180910390fd5b600d8190556040518181527f148b6c5daa67b6cb070f6a49ee3dc9edfcca20413c8172fa49fb02819eee62ad90602001610629565b6000336106c0858285610afb565b6106cb858585610b79565b506001949350505050565b6106de610bd8565b6106e86000610c05565b565b606060048054610506906119c4565b610701610c57565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161461074a57604051632885c5bd60e01b815260040160405180910390fd5b3060009081526020819052604090205480156107695761076981610c81565b506106e86001600655565b61077c610c57565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146107c557604051632885c5bd60e01b815260040160405180910390fd5b4780156107695760007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168260405160006040518083038185875af1925050503d8060008114610839576040519150601f19603f3d011682016040523d82523d6000602084013e61083e565b606091505b505090508061088b5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064015b60405180910390fd5b6040518281527fcd8923373bd045cdc9c3e88dd2bb2bc2c41aef18772b927e19960c175d939daa9060200160405180910390a150506106e86001600655565b600033610597818585610b79565b6108e0610bd8565b600a829055600b81905560408051838152602081018390527f2a00ae88790916c355d74c47251101f6daa7fe1b163c26b2add418af558d808091015b60405180910390a15050565b610930610bd8565b600e541561095157604051638bf8a43f60e01b815260040160405180910390fd5b43600e8190556040519081527f03e843c4f24c03a4bec271685c791f96df5c653a0414bd6db8be7cd8148a8e339060200160405180910390a1565b610994610bd8565b60005b82518110156109fb5781600860008584815181106109b7576109b76119fe565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806109f381611a2a565b915050610997565b507fb92ec2e1ad3f9ae184f0942308552463fa42b385e5980cb68e8f1dc0e96f21e6828260405161091c929190611a87565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031614610a7657604051632885c5bd60e01b815260040160405180910390fd5b600c8190556040518181527f1a89170b7100a37f2e1a8bca9d866cd3f6d666800bfb0fa8dd82f0b2193c926f90602001610629565b610ab3610bd8565b6001600160a01b038116610add57604051631e4fbdf760e01b815260006004820152602401610882565b610ae681610c05565b50565b610af68383836001610f76565b505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610b735781811015610b6457604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610882565b610b7384848484036000610f76565b50505050565b6001600160a01b038316610ba357604051634b637e8f60e11b815260006004820152602401610882565b6001600160a01b038216610bcd5760405163ec442f0560e01b815260006004820152602401610882565b610af683838361104b565b6005546001600160a01b031633146106e85760405163118cdaa760e01b8152336004820152602401610882565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600260065403610c7a57604051633ee5aeb560e01b815260040160405180910390fd5b6002600655565b600f805460ff19166001179055600a5415801590610ca15750600a548110155b15610cab5750600a545b6040805160028082526060820183526000926020830190803683370190505090503081600081518110610ce057610ce06119fe565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d829190611aab565b81600181518110610d9557610d956119fe565b6001600160a01b03928316602091820292909201015260405163d06ca61f60e01b81526000917f0000000000000000000000000000000000000000000000000000000000000000169063d06ca61f90610df49086908690600401611ac8565b600060405180830381865afa158015610e11573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e399190810190611ae9565b9050600081600181518110610e5057610e506119fe565b602002602001015190506000612710600c54612710610e6f9190611b7a565b610e799084611b8d565b610e839190611ba4565b60405163791ac94760e01b81529091506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063791ac94790610efa908890859089907f0000000000000000000000000000000000000000000000000000000000000000904290600401611bc6565b600060405180830381600087803b158015610f1457600080fd5b505af1158015610f28573d6000803e3d6000fd5b505050507f66158d64ea90a3383da42069972efdf781b9e404ab679380eadda4e0a034c45f85604051610f5d91815260200190565b60405180910390a15050600f805460ff19169055505050565b6001600160a01b038416610fa05760405163e602df0560e01b815260006004820152602401610882565b6001600160a01b038316610fca57604051634a1406b160e11b815260006004820152602401610882565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610b7357826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161103d91815260200190565b60405180910390a350505050565b6001600160a01b03821661107257604051635919af9760e11b815260040160405180910390fd5b806000036110935760405163162908e360e11b815260040160405180910390fd5b6001600160a01b03831660009081526008602052604090205460ff16806110d257506001600160a01b03821660009081526008602052604090205460ff165b156110f057604051630d7cbe2760e11b815260040160405180910390fd5b6110fa83836112ee565b6112e3576000600a541180156111115750600a5481115b1561113d57600a5460405163086e219760e11b8152610882918391600401918252602082015260400190565b6000600b5411801561118157507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614155b80156111b75750600b54816111ab846001600160a01b031660009081526020819052604090205490565b6111b59190611c02565b115b15611204576001600160a01b0382166000908152602081905260409020546111df9082611c02565b600b546040516314c5f08760e01b815260048101929092526024820152604401610882565b61120e8383611301565b156112e357600e5461123357604051639039a12b60e01b815260040160405180910390fd5b6000600e54436112439190611b7a565b905060c881116112d457600061125a600a83611b8d565b61126c90670de0b6b3a7640000611b8d565b61127f906815af1d78b58c400000611c02565b905060004360c8600e546112939190611c02565b61129d9190611b7a565b9050818411156112d157604051632c5c6c1760e21b8152600481018590526024810183905260448101829052606401610882565b50505b506112e08383836113f6565b90505b610af68383836114c6565b60006112fa8383611536565b9392505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b031614801561137657507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614155b806112fa57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161480156112fa57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b03161415905092915050565b6000600a611402611579565b801561143f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856001600160a01b0316145b8015611449575060015b15611452575060555b6000606461146360ff841686611b8d565b61146d9190611ba4565b90506114798185611b7a565b93506114868630836114c6565b3060009081526020819052604090205461149f87611592565b80156114ad5750600d548110155b156114bb576114bb81610c81565b509295945050505050565b6114d18383836115ed565b6001600160a01b038316610af6576002547f0000000000000000000000000000000000000000000000000000000000000000908181111561152f5760405163279e7e1560e21b81526004810182905260248101839052604401610882565b5050505050565b6001600160a01b03821660009081526007602052604081205460ff16806112fa5750506001600160a01b031660009081526007602052604090205460ff16919050565b600e5460009061158b90603c90611c02565b4310905090565b60095460009060ff1680156115aa5750600f5460ff16155b801561059d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316141592915050565b6001600160a01b03831661161857806002600082825461160d9190611c02565b9091555061168a9050565b6001600160a01b0383166000908152602081905260409020548181101561166b5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610882565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166116a6576002805482900390556116c5565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161170a91815260200190565b60405180910390a3505050565b600060208083528351808285015260005b8181101561174457858101830151858201604001528201611728565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610ae657600080fd5b6000806040838503121561178d57600080fd5b823561179881611765565b946020939093013593505050565b803580151581146117b657600080fd5b919050565b6000602082840312156117cd57600080fd5b6112fa826117a6565b6000602082840312156117e857600080fd5b5035919050565b60008060006060848603121561180457600080fd5b833561180f81611765565b9250602084013561181f81611765565b929592945050506040919091013590565b60006020828403121561184257600080fd5b81356112fa81611765565b6000806040838503121561186057600080fd5b50508035926020909101359150565b6000806040838503121561188257600080fd5b823561188d81611765565b9150602083013561189d81611765565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156118e7576118e76118a8565b604052919050565b600067ffffffffffffffff821115611909576119096118a8565b5060051b60200190565b6000806040838503121561192657600080fd5b823567ffffffffffffffff81111561193d57600080fd5b8301601f8101851361194e57600080fd5b8035602061196361195e836118ef565b6118be565b82815260059290921b8301810191818101908884111561198257600080fd5b938201935b838510156119a957843561199a81611765565b82529382019390820190611987565b95506119b890508682016117a6565b93505050509250929050565b600181811c908216806119d857607f821691505b6020821081036119f857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611a3c57611a3c611a14565b5060010190565b600081518084526020808501945080840160005b83811015611a7c5781516001600160a01b031687529582019590820190600101611a57565b509495945050505050565b604081526000611a9a6040830185611a43565b905082151560208301529392505050565b600060208284031215611abd57600080fd5b81516112fa81611765565b828152604060208201526000611ae16040830184611a43565b949350505050565b60006020808385031215611afc57600080fd5b825167ffffffffffffffff811115611b1357600080fd5b8301601f81018513611b2457600080fd5b8051611b3261195e826118ef565b81815260059190911b82018301908381019087831115611b5157600080fd5b928401925b82841015611b6f57835182529284019290840190611b56565b979650505050505050565b8181038181111561059d5761059d611a14565b808202811582820484141761059d5761059d611a14565b600082611bc157634e487b7160e01b600052601260045260246000fd5b500490565b85815284602082015260a060408201526000611be560a0830186611a43565b6001600160a01b0394909416606083015250608001529392505050565b8082018082111561059d5761059d611a1456fea164736f6c6343000814000a00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000b1c09f3ad7ff3d70af42e2fdaef21f634d5a165c000000000000000000000000b1c09f3ad7ff3d70af42e2fdaef21f634d5a165c0000000000000000000000006bc77c317c861ad965799643cfa25061780718650000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000000000000000000000000000000000000000000d4f6d6272612046696e616e63650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054f4d425241000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061015b5760003560e01c8063715018a6116100c8578063c4590d3f11610084578063e645619411610061578063e645619414610480578063f0fa55a9146104a0578063f2fde38b146104c0578063ffb54a99146104e057005b8063c4590d3f14610405578063c9567bf914610425578063dd62ed3e1461043a57005b8063715018a6146103735780638da5cb5b1461038857806395d89b41146103a65780639653dee5146103bb578063a5ecb017146103d0578063a9059cbb146103e557005b806323b872dd1161011757806323b872dd1461026a5780632797121c1461028a578063313ce567146102ba578063355274ea146102d657806349bd5a5e1461030957806370a082311461033d57005b806306fdde0314610164578063095ea7b31461018f5780630dbccf0f146101bf5780631694505e146101df57806318160ddd1461022b5780631dcb487f1461024a57005b3661016257005b005b34801561017057600080fd5b506101796104f7565b6040516101869190611717565b60405180910390f35b34801561019b57600080fd5b506101af6101aa36600461177a565b610589565b6040519015158152602001610186565b3480156101cb57600080fd5b506101626101da3660046117bb565b6105a3565b3480156101eb57600080fd5b506102137f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b039091168152602001610186565b34801561023757600080fd5b506002545b604051908152602001610186565b34801561025657600080fd5b506101626102653660046117d6565b610634565b34801561027657600080fd5b506101af6102853660046117ef565b6106b2565b34801561029657600080fd5b506101af6102a5366004611830565b60086020526000908152604090205460ff1681565b3480156102c657600080fd5b5060405160128152602001610186565b3480156102e257600080fd5b507f00000000000000000000000000000000000000000000d3c21bcecceda100000061023c565b34801561031557600080fd5b506102137f000000000000000000000000de5f22d781d99c3103feeca51e8ac814d64d67d481565b34801561034957600080fd5b5061023c610358366004611830565b6001600160a01b031660009081526020819052604090205490565b34801561037f57600080fd5b506101626106d6565b34801561039457600080fd5b506005546001600160a01b0316610213565b3480156103b257600080fd5b506101796106ea565b3480156103c757600080fd5b506101626106f9565b3480156103dc57600080fd5b50610162610774565b3480156103f157600080fd5b506101af61040036600461177a565b6108ca565b34801561041157600080fd5b5061016261042036600461184d565b6108d8565b34801561043157600080fd5b50610162610928565b34801561044657600080fd5b5061023c61045536600461186f565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561048c57600080fd5b5061016261049b366004611913565b61098c565b3480156104ac57600080fd5b506101626104bb3660046117d6565b610a2d565b3480156104cc57600080fd5b506101626104db366004611830565b610aab565b3480156104ec57600080fd5b50600e5415156101af565b606060038054610506906119c4565b80601f0160208091040260200160405190810160405280929190818152602001828054610532906119c4565b801561057f5780601f106105545761010080835404028352916020019161057f565b820191906000526020600020905b81548152906001019060200180831161056257829003601f168201915b5050505050905090565b600033610597818585610ae9565b60019150505b92915050565b337f000000000000000000000000b1c09f3ad7ff3d70af42e2fdaef21f634d5a165c6001600160a01b0316146105ec57604051632885c5bd60e01b815260040160405180910390fd5b6009805460ff19168215159081179091556040519081527f5af7671db8fc675d77cbd05c6f026ce4d3333c42b92ef559cf48cd516714cd4b906020015b60405180910390a150565b337f000000000000000000000000b1c09f3ad7ff3d70af42e2fdaef21f634d5a165c6001600160a01b03161461067d57604051632885c5bd60e01b815260040160405180910390fd5b600d8190556040518181527f148b6c5daa67b6cb070f6a49ee3dc9edfcca20413c8172fa49fb02819eee62ad90602001610629565b6000336106c0858285610afb565b6106cb858585610b79565b506001949350505050565b6106de610bd8565b6106e86000610c05565b565b606060048054610506906119c4565b610701610c57565b337f000000000000000000000000b1c09f3ad7ff3d70af42e2fdaef21f634d5a165c6001600160a01b03161461074a57604051632885c5bd60e01b815260040160405180910390fd5b3060009081526020819052604090205480156107695761076981610c81565b506106e86001600655565b61077c610c57565b337f000000000000000000000000b1c09f3ad7ff3d70af42e2fdaef21f634d5a165c6001600160a01b0316146107c557604051632885c5bd60e01b815260040160405180910390fd5b4780156107695760007f0000000000000000000000006bc77c317c861ad965799643cfa25061780718656001600160a01b03168260405160006040518083038185875af1925050503d8060008114610839576040519150601f19603f3d011682016040523d82523d6000602084013e61083e565b606091505b505090508061088b5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064015b60405180910390fd5b6040518281527fcd8923373bd045cdc9c3e88dd2bb2bc2c41aef18772b927e19960c175d939daa9060200160405180910390a150506106e86001600655565b600033610597818585610b79565b6108e0610bd8565b600a829055600b81905560408051838152602081018390527f2a00ae88790916c355d74c47251101f6daa7fe1b163c26b2add418af558d808091015b60405180910390a15050565b610930610bd8565b600e541561095157604051638bf8a43f60e01b815260040160405180910390fd5b43600e8190556040519081527f03e843c4f24c03a4bec271685c791f96df5c653a0414bd6db8be7cd8148a8e339060200160405180910390a1565b610994610bd8565b60005b82518110156109fb5781600860008584815181106109b7576109b76119fe565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806109f381611a2a565b915050610997565b507fb92ec2e1ad3f9ae184f0942308552463fa42b385e5980cb68e8f1dc0e96f21e6828260405161091c929190611a87565b337f000000000000000000000000b1c09f3ad7ff3d70af42e2fdaef21f634d5a165c6001600160a01b031614610a7657604051632885c5bd60e01b815260040160405180910390fd5b600c8190556040518181527f1a89170b7100a37f2e1a8bca9d866cd3f6d666800bfb0fa8dd82f0b2193c926f90602001610629565b610ab3610bd8565b6001600160a01b038116610add57604051631e4fbdf760e01b815260006004820152602401610882565b610ae681610c05565b50565b610af68383836001610f76565b505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610b735781811015610b6457604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610882565b610b7384848484036000610f76565b50505050565b6001600160a01b038316610ba357604051634b637e8f60e11b815260006004820152602401610882565b6001600160a01b038216610bcd5760405163ec442f0560e01b815260006004820152602401610882565b610af683838361104b565b6005546001600160a01b031633146106e85760405163118cdaa760e01b8152336004820152602401610882565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600260065403610c7a57604051633ee5aeb560e01b815260040160405180910390fd5b6002600655565b600f805460ff19166001179055600a5415801590610ca15750600a548110155b15610cab5750600a545b6040805160028082526060820183526000926020830190803683370190505090503081600081518110610ce057610ce06119fe565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d829190611aab565b81600181518110610d9557610d956119fe565b6001600160a01b03928316602091820292909201015260405163d06ca61f60e01b81526000917f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063d06ca61f90610df49086908690600401611ac8565b600060405180830381865afa158015610e11573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e399190810190611ae9565b9050600081600181518110610e5057610e506119fe565b602002602001015190506000612710600c54612710610e6f9190611b7a565b610e799084611b8d565b610e839190611ba4565b60405163791ac94760e01b81529091506001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac94790610efa908890859089907f0000000000000000000000006bc77c317c861ad965799643cfa2506178071865904290600401611bc6565b600060405180830381600087803b158015610f1457600080fd5b505af1158015610f28573d6000803e3d6000fd5b505050507f66158d64ea90a3383da42069972efdf781b9e404ab679380eadda4e0a034c45f85604051610f5d91815260200190565b60405180910390a15050600f805460ff19169055505050565b6001600160a01b038416610fa05760405163e602df0560e01b815260006004820152602401610882565b6001600160a01b038316610fca57604051634a1406b160e11b815260006004820152602401610882565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610b7357826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161103d91815260200190565b60405180910390a350505050565b6001600160a01b03821661107257604051635919af9760e11b815260040160405180910390fd5b806000036110935760405163162908e360e11b815260040160405180910390fd5b6001600160a01b03831660009081526008602052604090205460ff16806110d257506001600160a01b03821660009081526008602052604090205460ff165b156110f057604051630d7cbe2760e11b815260040160405180910390fd5b6110fa83836112ee565b6112e3576000600a541180156111115750600a5481115b1561113d57600a5460405163086e219760e11b8152610882918391600401918252602082015260400190565b6000600b5411801561118157507f000000000000000000000000de5f22d781d99c3103feeca51e8ac814d64d67d46001600160a01b0316826001600160a01b031614155b80156111b75750600b54816111ab846001600160a01b031660009081526020819052604090205490565b6111b59190611c02565b115b15611204576001600160a01b0382166000908152602081905260409020546111df9082611c02565b600b546040516314c5f08760e01b815260048101929092526024820152604401610882565b61120e8383611301565b156112e357600e5461123357604051639039a12b60e01b815260040160405180910390fd5b6000600e54436112439190611b7a565b905060c881116112d457600061125a600a83611b8d565b61126c90670de0b6b3a7640000611b8d565b61127f906815af1d78b58c400000611c02565b905060004360c8600e546112939190611c02565b61129d9190611b7a565b9050818411156112d157604051632c5c6c1760e21b8152600481018590526024810183905260448101829052606401610882565b50505b506112e08383836113f6565b90505b610af68383836114c6565b60006112fa8383611536565b9392505050565b60007f000000000000000000000000de5f22d781d99c3103feeca51e8ac814d64d67d46001600160a01b0316836001600160a01b031614801561137657507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b0316826001600160a01b031614155b806112fa57507f000000000000000000000000de5f22d781d99c3103feeca51e8ac814d64d67d46001600160a01b0316826001600160a01b03161480156112fa57507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b0316836001600160a01b03161415905092915050565b6000600a611402611579565b801561143f57507f000000000000000000000000de5f22d781d99c3103feeca51e8ac814d64d67d46001600160a01b0316856001600160a01b0316145b8015611449575060015b15611452575060555b6000606461146360ff841686611b8d565b61146d9190611ba4565b90506114798185611b7a565b93506114868630836114c6565b3060009081526020819052604090205461149f87611592565b80156114ad5750600d548110155b156114bb576114bb81610c81565b509295945050505050565b6114d18383836115ed565b6001600160a01b038316610af6576002547f00000000000000000000000000000000000000000000d3c21bcecceda1000000908181111561152f5760405163279e7e1560e21b81526004810182905260248101839052604401610882565b5050505050565b6001600160a01b03821660009081526007602052604081205460ff16806112fa5750506001600160a01b031660009081526007602052604090205460ff16919050565b600e5460009061158b90603c90611c02565b4310905090565b60095460009060ff1680156115aa5750600f5460ff16155b801561059d57507f000000000000000000000000de5f22d781d99c3103feeca51e8ac814d64d67d46001600160a01b0316826001600160a01b0316141592915050565b6001600160a01b03831661161857806002600082825461160d9190611c02565b9091555061168a9050565b6001600160a01b0383166000908152602081905260409020548181101561166b5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610882565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166116a6576002805482900390556116c5565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161170a91815260200190565b60405180910390a3505050565b600060208083528351808285015260005b8181101561174457858101830151858201604001528201611728565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610ae657600080fd5b6000806040838503121561178d57600080fd5b823561179881611765565b946020939093013593505050565b803580151581146117b657600080fd5b919050565b6000602082840312156117cd57600080fd5b6112fa826117a6565b6000602082840312156117e857600080fd5b5035919050565b60008060006060848603121561180457600080fd5b833561180f81611765565b9250602084013561181f81611765565b929592945050506040919091013590565b60006020828403121561184257600080fd5b81356112fa81611765565b6000806040838503121561186057600080fd5b50508035926020909101359150565b6000806040838503121561188257600080fd5b823561188d81611765565b9150602083013561189d81611765565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156118e7576118e76118a8565b604052919050565b600067ffffffffffffffff821115611909576119096118a8565b5060051b60200190565b6000806040838503121561192657600080fd5b823567ffffffffffffffff81111561193d57600080fd5b8301601f8101851361194e57600080fd5b8035602061196361195e836118ef565b6118be565b82815260059290921b8301810191818101908884111561198257600080fd5b938201935b838510156119a957843561199a81611765565b82529382019390820190611987565b95506119b890508682016117a6565b93505050509250929050565b600181811c908216806119d857607f821691505b6020821081036119f857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611a3c57611a3c611a14565b5060010190565b600081518084526020808501945080840160005b83811015611a7c5781516001600160a01b031687529582019590820190600101611a57565b509495945050505050565b604081526000611a9a6040830185611a43565b905082151560208301529392505050565b600060208284031215611abd57600080fd5b81516112fa81611765565b828152604060208201526000611ae16040830184611a43565b949350505050565b60006020808385031215611afc57600080fd5b825167ffffffffffffffff811115611b1357600080fd5b8301601f81018513611b2457600080fd5b8051611b3261195e826118ef565b81815260059190911b82018301908381019087831115611b5157600080fd5b928401925b82841015611b6f57835182529284019290840190611b56565b979650505050505050565b8181038181111561059d5761059d611a14565b808202811582820484141761059d5761059d611a14565b600082611bc157634e487b7160e01b600052601260045260246000fd5b500490565b85815284602082015260a060408201526000611be560a0830186611a43565b6001600160a01b0394909416606083015250608001529392505050565b8082018082111561059d5761059d611a1456fea164736f6c6343000814000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000b1c09f3ad7ff3d70af42e2fdaef21f634d5a165c000000000000000000000000b1c09f3ad7ff3d70af42e2fdaef21f634d5a165c0000000000000000000000006bc77c317c861ad965799643cfa25061780718650000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000000000000000000000000000000000000000000d4f6d6272612046696e616e63650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054f4d425241000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): Ombra Finance
Arg [1] : symbol_ (string): OMBRA
Arg [2] : _liquidityProvider (address): 0xB1c09F3aD7ff3d70Af42e2Fdaef21f634D5a165C
Arg [3] : _controller (address): 0xB1c09F3aD7ff3d70Af42e2Fdaef21f634D5a165C
Arg [4] : _collector (address): 0x6bC77c317C861aD965799643Cfa2506178071865
Arg [5] : _uniswapV2Router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 000000000000000000000000b1c09f3ad7ff3d70af42e2fdaef21f634d5a165c
Arg [3] : 000000000000000000000000b1c09f3ad7ff3d70af42e2fdaef21f634d5a165c
Arg [4] : 0000000000000000000000006bc77c317c861ad965799643cfa2506178071865
Arg [5] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [7] : 4f6d6272612046696e616e636500000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [9] : 4f4d425241000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.