Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
10,000,000 KHACN
Holders
8
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
KhacToken
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
istanbul EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/utils/Pausable.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import {AggregatorV3Interface} from "@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; interface ISwapPlatform { function WETH() external view returns (address); function balanceOf(address account) external view returns (uint256); function swapExactTokensForETH( uint256 tokenAmount, uint256 minEthAmount, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); } /** * @title KhacToken * @dev ERC20 token with liquidity management, market making, price updates, and platform validation. */ contract KhacToken is ERC20, Pausable, ReentrancyGuard, Ownable { uint256 private constant TOTAL_SUPPLY_CAP = 10_000_000 * 10**18; uint256 private constant PRICE_FLOOR = 550 * 1e18; // in USD // in USD uint256 public dailyTradeVolume = 100 * 10**18; // Initial daily trade volume uint256 public smallTransactionFee = 10; // 10% for small transactions uint256 public largeTransactionFee = 5; // 5% for large transactions uint256 public lastTradeUpdate; uint256 public lastPriceUpdate; address private self = address(this); // Cache address(this) uint256 public tokenBalance = balanceOf(self); uint256 public ethBalance = self.balance; uint256 public tokenPrice; uint256 public minimumLiquidity; IUniswapV2Router02 public uniswapRouter; AggregatorV3Interface public priceFeed; mapping(address => bool) public validatedPlatforms; uint256 public lastValidationTime; event InitialPriceSet(uint256 price); event PriceUpdated(uint256 newPrice); event DailyTradeExecuted(uint256 volume, uint256 ethReceived); event LiquidityAdded(uint256 tokenAmount, uint256 ethAmount); event TokensSwapped( address indexed user, uint256 tokenAmount, uint256 ethReceived ); event Withdrawal(address indexed to, uint256 amount); event MinimumLiquidityUpdated(uint256 newMinimum); event PlatformValidated(address platform); event MarketMakingExecuted( address platform, uint256 tokensSwapped, uint256 ethReceived ); event TransactionDetails(address indexed user, uint256 amount, string action); /** * @dev Constructor initializes the contract with Uniswap router, Chainlink price feed, and total supply. * @param _priceFeed Address of the Chainlink price feed. * @param _uniswapRouter Address of the Uniswap V2 router. */ constructor(address _priceFeed, address _uniswapRouter) ERC20("KharYsma Coins", "KHACN") payable Ownable(msg.sender) { uniswapRouter = IUniswapV2Router02(_uniswapRouter); priceFeed = AggregatorV3Interface(_priceFeed); _mint(msg.sender, TOTAL_SUPPLY_CAP); emit InitialPriceSet(tokenPrice); } /** * @dev Allows the owner to pause the contract. */ function pauseContract() external payable onlyOwner { _pause(); } /** * @dev Allows the owner to unpause the contract. */ function unpauseContract() external payable onlyOwner { _unpause(); } /** * @dev Distribute transaction fees dynamically. * @param transactionAmount Amount of the transaction. * @param sender Address initiating the transaction. */ function calculateAndDistributeFees( uint256 transactionAmount, address sender ) internal { uint256 feePercentage = transactionAmount < 10_000 * 1e18 ? smallTransactionFee : largeTransactionFee; uint256 fee = (transactionAmount * feePercentage) / 100; uint256 ownerShare = (fee * 60) / 100; uint256 liquidityShare = fee - ownerShare; _transfer(sender, owner(), ownerShare); _transfer(sender, self, liquidityShare); emit TransactionDetails(sender, fee, "Fee Distributed"); } /** * @dev Updates the token price using the Chainlink price feed. */ function updatePrice() public { (, int256 price, , , ) = priceFeed.latestRoundData(); require(price != 0, "Invalid price from oracle"); tokenPrice = uint256(price); emit PriceUpdated(tokenPrice); } /** * @dev Enforces the price floor before transactions. * @param khacnAmount Amount of KHACN tokens. */ // Modifier for enforcing price floor before transactions. modifier enforcePriceFloor (uint256 khacnAmount) { require(isAbovePriceFloor(khacnAmount), "Transaction below price floor"); _; } /** * @dev Checks if the transaction is above the price floor. * @param khacnAmount Amount of KHACN tokens. */ function isAbovePriceFloor(uint256 khacnAmount) public view returns (bool) { (, int256 price, , , ) = priceFeed.latestRoundData(); uint256 khacnValue = uint256(price) * khacnAmount / 1e8; return khacnValue >= PRICE_FLOOR; } /** * @dev Updates daily trade volume (5% growth per day). */ function updateDailyTradeVolume() internal { require(block.timestamp > lastTradeUpdate + 1 days, "Volume update not due"); dailyTradeVolume = (dailyTradeVolume * 105) / 100; // 5% increase lastTradeUpdate = block.timestamp; } /** * @dev Updates token price (2% growth per day). */ function increaseTokenPrice() internal { require(block.timestamp > lastPriceUpdate + 1 days, "Price update not due"); tokenPrice = (tokenPrice * 102) / 100; // 2% increase lastPriceUpdate = block.timestamp; emit PriceUpdated(tokenPrice); } /** * @dev Performs a daily trade using the updated daily trade volume. */ function performDailyTrade() internal onlyOwner enforcePriceFloor(balanceOf(self)) { updateDailyTradeVolume(); //address loSelf = self; // Cache address(this) //uint256 tokenBalance = balanceOf(self); require(tokenBalance > dailyTradeVolume, "Insufficient tokens for trade"); _approve(self, address(uniswapRouter), dailyTradeVolume); address[] memory path = new address[](2); path[0] = self; path[1] = uniswapRouter.WETH(); uniswapRouter.swapExactTokensForETH( dailyTradeVolume, 0, path, self, block.timestamp ); emit DailyTradeExecuted(dailyTradeVolume, ethBalance); } /** * @dev Updates price and performs daily trade. */ function updatePriceAndPerformTrade() external payable onlyOwner { increaseTokenPrice(); performDailyTrade(); } /** * @dev Automates daily operations (trade volume and price updates). */ function automateDailyOperations() external payable onlyOwner { updateDailyTradeVolume(); increaseTokenPrice(); performDailyTrade(); } /** * @dev Injects accumulated liquidity into Uniswap pool. */ function injectLiquidityAutomatically() external payable onlyOwner enforcePriceFloor(balanceOf(address(this))) { //address loSelf=self; //uint256 tokenBalance = balanceOf(self); //uint256 ethBalance = self.balance; //selfbalance(this)//address(this).balance; require(tokenBalance != 0, "Insufficient token balance"); require(ethBalance != 0, "Insufficient ETH balance"); _approve(self, address(uniswapRouter), tokenBalance); uniswapRouter.addLiquidityETH{value: ethBalance}( self, tokenBalance, 0, // Minimum tokens 0, // Minimum ETH owner(), block.timestamp ); emit TransactionDetails(msg.sender, tokenBalance, "Liquidity Injected"); } /** * @dev Allows the owner to mint new tokens up to the supply cap. * @param to Recipient address. * @param amount Amount of tokens to mint. */ function mint(address to, uint256 amount) external payable onlyOwner { require( totalSupply() + amount < TOTAL_SUPPLY_CAP, "Exceeds total supply cap" ); _mint(to, amount); } /** * @dev Updates the minimum liquidity required for market making. * @param newMinimum New minimum liquidity value. */ function setMinimumLiquidityForMarketMaking(uint256 newMinimum) external payable onlyOwner { require(minimumLiquidity != newMinimum, "New value must be different"); minimumLiquidity = newMinimum; emit MinimumLiquidityUpdated(newMinimum); } /** * @dev Swaps tokens for ETH using Uniswap. * @param tokenAmount Amount of tokens to swap. */ function swapTokens(uint256 tokenAmount) external payable onlyOwner enforcePriceFloor(balanceOf(self)) { //address loSelf=self; _approve(self, address(uniswapRouter), tokenAmount); // Calculate and distribute fees calculateAndDistributeFees(tokenAmount, msg.sender); address[] memory path = new address[](2); path[0] = self; path[1] = uniswapRouter.WETH(); uint256 initialEthBalance = ethBalance; uniswapRouter.swapExactTokensForETH( tokenAmount, 0, // Accept any amount of ETH path, self, block.timestamp ); uint256 ethReceived = ethBalance - initialEthBalance; emit TokensSwapped(msg.sender, tokenAmount, ethReceived); } /** * @dev Validates a swap platform by checking WETH support. * @param platform Address of the platform to validate. */ function autoValidatePlatform(address platform) public onlyOwner { address platformAddress=address(0); require(platform != platformAddress ,"Invalid platform address"); try ISwapPlatform(platform).WETH() returns (address wethAddress) { if (wethAddress != platformAddress) { validatedPlatforms[platform] = true; emit PlatformValidated(platform); } } catch { validatedPlatforms[platform] = false; } } /** * @dev Executes market making on validated platforms. * @param tokenAmount Amount of tokens to swap. */ function executeMarketMaking(uint256 tokenAmount) public onlyOwner enforcePriceFloor(balanceOf(self)) { require(tokenAmount != 0, "Invalid token amount"); //address loSelf =self; address[] memory validatedPlatformList = getValidatedPlatforms(); uint256 platformLength = validatedPlatformList.length; // Calculate and distribute fees before executing market-making calculateAndDistributeFees(tokenAmount, msg.sender); for (uint256 i = 0; i < platformLength;) { address platform = validatedPlatformList[i]; address[] memory path = new address[](2); path[0] = self; path[1] = ISwapPlatform(platform).WETH(); try ISwapPlatform(platform).swapExactTokensForETH( tokenAmount, 0, path, self, block.timestamp ) returns (uint256[] memory amounts) { emit MarketMakingExecuted(platform, tokenAmount, amounts[1]); } catch { continue; } unchecked { ++i; } } } /** * @dev Automatically validates platforms every 7 days. */ function validatePlatformsAutomatically() public onlyOwner { require( block.timestamp > lastValidationTime + 7 days, "Validation not yet due" ); lastValidationTime = block.timestamp; address[] memory potentialPlatforms = getPotentialPlatforms(); uint256 platformLength = potentialPlatforms.length; for (uint256 i = 0; i < platformLength;) { autoValidatePlatform(potentialPlatforms[i]); unchecked { ++i; } } } /** * @dev Returns a list of validated platforms. */ function getValidatedPlatforms() public view returns (address[] memory platforms) { address[] memory potential = getPotentialPlatforms(); uint256 potentialLength = potential.length; uint256 count = 0; for (uint256 i = 0; i < potentialLength;) { address potenyial_index =potential[i]; bool validedPlatformPotential=validatedPlatforms[potenyial_index]; unchecked { if (validedPlatformPotential) count++; ++i; } } platforms = new address[](count); uint256 index = 0; for (uint256 i = 0; i < potentialLength;) { address potenyialValidatedindex =potential[i]; bool validedPlatformPotentialIndex=validatedPlatforms[potenyialValidatedindex]; unchecked { if (validedPlatformPotentialIndex) { platforms[index] = potenyialValidatedindex; ++index; } ++i; } } } /** * @dev Placeholder for retrieving potential platforms. */ function getPotentialPlatforms() public pure returns (address[] memory) { return new address[](0); //Placeholder for dynamic population } /** * @dev Withdraws ETH from the contract. * @param to Recipient address. * @param amount Amount of ETH to withdraw. */ function withdrawETH(address to, uint256 amount) external payable onlyOwner nonReentrant { require(self.balance > amount, "Insufficient balance"); payable(to).transfer(amount); emit Withdrawal(to, amount); } /** * @dev Locks 30% of the total supply for liquidity reserve. */ function lockLiquidityReserve() external payable onlyOwner { uint256 reserveAmount = (TOTAL_SUPPLY_CAP * 30) / 100; _transfer(msg.sender, self, reserveAmount); emit TransactionDetails(msg.sender, reserveAmount, "Liquidity Reserve Locked"); } /** * @dev Adjusts fees dynamically based on market conditions using Chainlink Oracle. */ function adjustFeesBasedOnMarket() external payable onlyOwner { (, int256 ethPrice, , , ) = priceFeed.latestRoundData(); uint256 cryptoIndex = uint256(ethPrice); smallTransactionFee = cryptoIndex > 1000 ? 7 : 10; largeTransactionFee = cryptoIndex > 1000 ? 3 : 5; emit TransactionDetails(msg.sender, 0, "Fees Adjusted"); } /** * @dev Allows the contract to accept ETH payments. */ receive() external payable { emit LiquidityAdded(0, msg.value); } /** * @dev Sets the allowance for a spender safely to prevent front-running attacks. * This method requires the current allowance to be reset to zero before assigning a new value. * @param spender Address of the spender. * @param amount Amount of tokens to approve. */ function safeApprove(address spender, uint256 amount) external { require( allowance(msg.sender, spender) == 0 || amount == 0, "Allowance must be zero" ); _approve(msg.sender, spender, amount); } /** * @dev Safely increases the allowance for a spender. * @param spender Address of the spender. * @param addedValue Amount to increase the allowance by. */ function increaseAllowance(address spender, uint256 addedValue) external returns (bool) { _approve(msg.sender, spender, allowance(msg.sender, spender) + addedValue); return true; } /** * @dev Safely decreases the allowance for a spender. * @param spender Address of the spender. * @param subtractedValue Amount to decrease the allowance by. */ function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool) { uint256 currentAllowance = allowance(msg.sender, spender); require(currentAllowance > subtractedValue, "Decreased allowance below zero"); _approve(msg.sender, spender, currentAllowance - subtractedValue); return true; } }
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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // solhint-disable-next-line interface-starts-with-i interface AggregatorV3Interface { function decimals() external view returns (uint8); function description() external view returns (string memory); function version() external view returns (uint256); function getRoundData( uint80 _roundId ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound); function latestRoundData() external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.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 EIP-1153 (transient storage) is available on the chain you're deploying at, * consider using {ReentrancyGuardTransient} instead. * * 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { bool private _paused; /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); /** * @dev The operation failed because the contract is paused. */ error EnforcedPause(); /** * @dev The operation failed because the contract is not paused. */ error ExpectedPause(); /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { if (paused()) { revert EnforcedPause(); } } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { if (!paused()) { revert ExpectedPause(); } } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.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 ERC-20 * applications. */ 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}. * * Skips emitting an {Approval} event indicating an allowance update. This is not * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve]. * * 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: * * ```solidity * 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); } } } }
pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.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.1.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC-20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 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 ERC-721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-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 ERC-1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 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.1.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 ERC-20 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.1.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-20 standard as defined in the ERC. */ 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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "remappings": [], "evmVersion": "istanbul" }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_priceFeed","type":"address"},{"internalType":"address","name":"_uniswapRouter","type":"address"}],"stateMutability":"payable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"volume","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"}],"name":"DailyTradeExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"InitialPriceSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"}],"name":"LiquidityAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"platform","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"}],"name":"MarketMakingExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMinimum","type":"uint256"}],"name":"MinimumLiquidityUpdated","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":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"platform","type":"address"}],"name":"PlatformValidated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"PriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"}],"name":"TokensSwapped","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"action","type":"string"}],"name":"TransactionDetails","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"adjustFeesBasedOnMarket","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"platform","type":"address"}],"name":"autoValidatePlatform","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"automateDailyOperations","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dailyTradeVolume","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ethBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"executeMarketMaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getPotentialPlatforms","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getValidatedPlatforms","outputs":[{"internalType":"address[]","name":"platforms","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"injectLiquidityAutomatically","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"khacnAmount","type":"uint256"}],"name":"isAbovePriceFloor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"largeTransactionFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastPriceUpdate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTradeUpdate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastValidationTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockLiquidityReserve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"minimumLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseContract","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceFeed","outputs":[{"internalType":"contract AggregatorV3Interface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"safeApprove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMinimum","type":"uint256"}],"name":"setMinimumLiquidityForMarketMaking","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"smallTransactionFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"swapTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":"uniswapRouter","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpauseContract","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"updatePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updatePriceAndPerformTrade","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"validatePlatformsAutomatically","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"validatedPlatforms","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawETH","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604081815268056bc75e2d63100000600855600a600981905560059055600d80546001600160a01b03191630908117909155600081815260208190529190912054600e5531600f5562002d5838819003908190833981016040819052620000689162000387565b336040518060400160405280600e81526020016d4b68617259736d6120436f696e7360901b8152506040518060400160405280600581526020016425a420a1a760d91b8152508160039081620000bf919062000464565b506004620000ce828262000464565b50506005805460ff191690555060016006556001600160a01b0381166200011057604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6200011b81620001a7565b50601280546001600160a01b038084166001600160a01b031992831617909255601380549285169290911691909117905562000163336a084595161401484a000000620001f9565b7fdac1a43b4149659395ed022e696b79593376ac23ae9814363e6131c547a82d7b6010546040516200019791815260200190565b60405180910390a1505062000558565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620002255760405163ec442f0560e01b81526000600482015260240162000107565b620002336000838362000237565b5050565b6001600160a01b038316620002665780600260008282546200025a919062000530565b90915550620002da9050565b6001600160a01b03831660009081526020819052604090205481811015620002bb5760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640162000107565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216620002f85760028054829003905562000317565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516200035d91815260200190565b60405180910390a3505050565b80516001600160a01b03811681146200038257600080fd5b919050565b600080604083850312156200039b57600080fd5b620003a6836200036a565b9150620003b6602084016200036a565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620003ea57607f821691505b6020821081036200040b57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200045f57600081815260208120601f850160051c810160208610156200043a5750805b601f850160051c820191505b818110156200045b5782815560010162000446565b5050505b505050565b81516001600160401b03811115620004805762000480620003bf565b6200049881620004918454620003d5565b8462000411565b602080601f831160018114620004d05760008415620004b75750858301515b600019600386901b1c1916600185901b1785556200045b565b600085815260208120601f198616915b828110156200050157888601518255948401946001909101908401620004e0565b5085821015620005205787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156200055257634e487b7160e01b600052601160045260246000fd5b92915050565b6127f080620005686000396000f3fe60806040526004361061028c5760003560e01c8063715018a61161015a578063af393e46116100c1578063dbe2b34c1161007a578063dbe2b34c146106ff578063dd62ed3e14610715578063f2fde38b14610735578063f83c964214610755578063fbc6d1cb1461075d578063fe784eaa1461077d57600080fd5b8063af393e4614610670578063b33712c5146106a0578063b56cf011146106a8578063b7bf6ce5146106be578063be86dc86146106d3578063d0a63926146106e957600080fd5b806395d89b411161011357806395d89b41146105f5578063997fee071461060a5780639e1a4d1914610612578063a457c2d714610628578063a7ac4bf414610648578063a9059cbb1461065057600080fd5b8063715018a61461054c578063735de9f714610561578063741bef1a146105995780637ab8f70d146105b95780637ff9b596146105c15780638da5cb5b146105d757600080fd5b8063439766ce116101fe57806353dc8225116101b757806353dc8225146104b85780635c975abb146104c0578063659dece1146104d8578063673a7e28146104eb5780636949faeb1461050057806370a082311461051657600080fd5b8063439766ce1461043b57806344e63520146104435780634782f779146104595780634dbf459f1461046c5780634e6630b01461048257806353cf3d091461049857600080fd5b80631d8f7655116102505780631d8f76551461039757806323b872dd146103ac5780632402d1e0146103cc578063313ce567146103ec578063395093511461040857806340c10f191461042857600080fd5b8063042b9f9c146102d157806304e85b80146102f357806306fdde0314610326578063095ea7b31461034857806318160ddd1461037857600080fd5b366102cc5760408051600081523460208201527f38f8a0c92f4c5b0b6877f878cb4c0c8d348a47b76d716c8e78f425043df9515b910160405180910390a1005b600080fd5b3480156102dd57600080fd5b506102f16102ec36600461234c565b610790565b005b3480156102ff57600080fd5b506040805160008152602081019091525b60405161031d91906123b4565b60405180910390f35b34801561033257600080fd5b5061033b6108ec565b60405161031d91906123c7565b34801561035457600080fd5b50610368610363366004612415565b61097e565b604051901515815260200161031d565b34801561038457600080fd5b506002545b60405190815260200161031d565b3480156103a357600080fd5b506102f1610998565b3480156103b857600080fd5b506103686103c7366004612441565b610a42565b3480156103d857600080fd5b506102f16103e7366004612482565b610a66565b3480156103f857600080fd5b506040516012815260200161031d565b34801561041457600080fd5b50610368610423366004612415565b610d42565b6102f1610436366004612415565b610d6c565b6102f1610deb565b34801561044f57600080fd5b5061038960155481565b6102f1610467366004612415565b610dfd565b34801561047857600080fd5b5061038960085481565b34801561048e57600080fd5b50610389600f5481565b3480156104a457600080fd5b506103686104b3366004612482565b610ee3565b6102f1610f94565b3480156104cc57600080fd5b5060055460ff16610368565b6102f16104e6366004612482565b61109b565b3480156104f757600080fd5b506102f1611130565b34801561050c57600080fd5b50610389600c5481565b34801561052257600080fd5b5061038961053136600461234c565b6001600160a01b031660009081526020819052604090205490565b34801561055857600080fd5b506102f1611229565b34801561056d57600080fd5b50601254610581906001600160a01b031681565b6040516001600160a01b03909116815260200161031d565b3480156105a557600080fd5b50601354610581906001600160a01b031681565b6102f161123b565b3480156105cd57600080fd5b5061038960105481565b3480156105e357600080fd5b506007546001600160a01b0316610581565b34801561060157600080fd5b5061033b611253565b6102f1611262565b34801561061e57600080fd5b50610389600e5481565b34801561063457600080fd5b50610368610643366004612415565b611312565b6102f161137f565b34801561065c57600080fd5b5061036861066b366004612415565b61138f565b34801561067c57600080fd5b5061036861068b36600461234c565b60146020526000908152604090205460ff1681565b6102f161139d565b3480156106b457600080fd5b5061038960115481565b3480156106ca57600080fd5b506103106113ad565b3480156106df57600080fd5b5061038960095481565b3480156106f557600080fd5b50610389600b5481565b34801561070b57600080fd5b50610389600a5481565b34801561072157600080fd5b5061038961073036600461249b565b611512565b34801561074157600080fd5b506102f161075036600461234c565b61153d565b6102f161157b565b34801561076957600080fd5b506102f1610778366004612415565b61178e565b6102f161078b366004612482565b6117f2565b610798611a1e565b60006001600160a01b0382166107f55760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420706c6174666f726d2061646472657373000000000000000060448201526064015b60405180910390fd5b816001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561084f575060408051601f3d908101601f1916820190925261084c918101906124d4565b60015b61087557506001600160a01b03166000908152601460205260409020805460ff19169055565b816001600160a01b0316816001600160a01b0316146108e6576001600160a01b038316600081815260146020908152604091829020805460ff1916600117905590519182527f928b33bdfeca35676732c70a45996b9c9f58ba580e9460fb3308e103fbc8e188910160405180910390a15b505b5050565b6060600380546108fb90612507565b80601f016020809104026020016040519081016040528092919081815260200182805461092790612507565b80156109745780601f1061094957610100808354040283529160200191610974565b820191906000526020600020905b81548152906001019060200180831161095757829003601f168201915b5050505050905090565b60003361098c818585611a4b565b60019150505b92915050565b6109a0611a1e565b6015546109b09062093a80612557565b42116109f75760405162461bcd60e51b815260206004820152601660248201527556616c69646174696f6e206e6f74207965742064756560501b60448201526064016107ec565b4260155560408051600080825260208201909252805190915b818110156108e657610a3a838281518110610a2d57610a2d61256a565b6020026020010151610790565b600101610a10565b600033610a50858285611a58565b610a5b858585611abe565b506001949350505050565b610a6e611a1e565b600d546001600160a01b0316600090815260208190526040902054610a9281610ee3565b610aae5760405162461bcd60e51b81526004016107ec90612580565b81600003610af55760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a59081d1bdad95b88185b5bdd5b9d60621b60448201526064016107ec565b6000610aff6113ad565b8051909150610b0e8433611b1d565b60005b81811015610d3b576000838281518110610b2d57610b2d61256a565b602002602001015190506000600267ffffffffffffffff811115610b5357610b536124f1565b604051908082528060200260200182016040528015610b7c578160200160208202803683370190505b50600d5481519192506001600160a01b0316908290600090610ba057610ba061256a565b60200260200101906001600160a01b031690816001600160a01b031681525050816001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bfe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2291906124d4565b81600181518110610c3557610c3561256a565b6001600160a01b039283166020918202929092010152600d546040516318cbafe560e01b8152848316926318cbafe592610c7d928c92600092889291169042906004016125b7565b6000604051808303816000875af1925050508015610cbd57506040513d6000823e601f3d908101601f19168201604052610cba91908101906125f3565b60015b610cc8575050610b11565b7fc0ba08fe447762dd7b78073569cf945d753c21b69c67f72e7b3d7b7ca3e947df838983600181518110610cfe57610cfe61256a565b602090810291909101810151604080516001600160a01b0390951685529184019290925282015260600160405180910390a1505050600101610b11565b5050505050565b6000610d63338484610d543388611512565b610d5e9190612557565b611a4b565b50600192915050565b610d74611a1e565b6a084595161401484a00000081610d8a60025490565b610d949190612557565b10610de15760405162461bcd60e51b815260206004820152601860248201527f4578636565647320746f74616c20737570706c7920636170000000000000000060448201526064016107ec565b6108e88282611c15565b610df3611a1e565b610dfb611c4b565b565b610e05611a1e565b610e0d611ca6565b600d546001600160a01b0316318110610e5f5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064016107ec565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610e95573d6000803e3d6000fd5b50816001600160a01b03167f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b6582604051610ed191815260200190565b60405180910390a26108e86001600655565b600080601360009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610f39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5d91906126d0565b50505091505060006305f5e1008483610f769190612720565b610f809190612737565b681dd0c885f9a0d800001115949350505050565b610f9c611a1e565b60135460408051633fabe5a360e21b815290516000926001600160a01b03169163feaf968c9160048083019260a09291908290030181865afa158015610fe6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100a91906126d0565b50505091505060008190506103e8811161102557600a611028565b60075b60ff166009556103e8811161103e576005611041565b60035b60ff16600a55604051339060008051602061279b8339815191529061108f9060008152604060208201819052600d908201526c1199595cc810591a9d5cdd1959609a1b606082015260800190565b60405180910390a25050565b6110a3611a1e565b80601154036110f45760405162461bcd60e51b815260206004820152601b60248201527f4e65772076616c7565206d75737420626520646966666572656e74000000000060448201526064016107ec565b60118190556040518181527f9b18dd3b50aa75e9aeddc518c78c29bac7205cd12503abc2fa6bb2c0f7f05f73906020015b60405180910390a150565b60135460408051633fabe5a360e21b815290516000926001600160a01b03169163feaf968c9160048083019260a09291908290030181865afa15801561117a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119e91906126d0565b505050915050806000036111f45760405162461bcd60e51b815260206004820152601960248201527f496e76616c69642070726963652066726f6d206f7261636c650000000000000060448201526064016107ec565b60108190556040518181527f66cbca4f3c64fecf1dcb9ce094abcf7f68c3450a1d4e3a8e917dd621edb4ebe090602001611125565b611231611a1e565b610dfb6000611cd0565b611243611a1e565b61124b611d22565b610dfb611dcb565b6060600480546108fb90612507565b61126a611a1e565b600060646112846a084595161401484a000000601e612720565b61128e9190612737565b600d549091506112a99033906001600160a01b031683611abe565b336001600160a01b031660008051602061279b833981519152826040516113079181526040602082018190526018908201527f4c69717569646974792052657365727665204c6f636b65640000000000000000606082015260800190565b60405180910390a250565b60008061131f3385611512565b90508281116113705760405162461bcd60e51b815260206004820152601e60248201527f44656372656173656420616c6c6f77616e63652062656c6f77207a65726f000060448201526064016107ec565b61098c3385610d5e8685612759565b611387611a1e565b61124361203e565b60003361098c818585611abe565b6113a5611a1e565b610dfb6120b8565b606060006113c660408051600081526020810190915290565b80519091506000805b8281101561142e5760008482815181106113eb576113eb61256a565b6020908102919091018101516001600160a01b0381166000908152601490925260409091205490915060ff168015611424576001909301925b50506001016113cf565b508067ffffffffffffffff811115611448576114486124f1565b604051908082528060200260200182016040528015611471578160200160208202803683370190505b5093506000805b8381101561150a5760008582815181106114945761149461256a565b6020908102919091018101516001600160a01b0381166000908152601490925260409091205490915060ff16801561150057818885815181106114d9576114d961256a565b60200260200101906001600160a01b031690816001600160a01b0316815250508360010193505b5050600101611478565b505050505090565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b611545611a1e565b6001600160a01b03811661156f57604051631e4fbdf760e01b8152600060048201526024016107ec565b61157881611cd0565b50565b611583611a1e565b3060009081526020819052604090205461159c81610ee3565b6115b85760405162461bcd60e51b81526004016107ec90612580565b600e5460000361160a5760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e7420746f6b656e2062616c616e636500000000000060448201526064016107ec565b600f5460000361165c5760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e74204554482062616c616e6365000000000000000060448201526064016107ec565b600d54601254600e5461167c926001600160a01b03908116921690611a4b565b601254600f54600d54600e546001600160a01b039384169363f305d719939216906000806116b26007546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af115801561171a573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061173f919061276c565b5050600e54604080519182526020820181905260129082015271131a5c5d5a591a5d1e48125b9a9958dd195960721b606082015233915060008051602061279b83398151915290608001611307565b6117983383611512565b15806117a2575080155b6117e75760405162461bcd60e51b8152602060048201526016602482015275416c6c6f77616e6365206d757374206265207a65726f60501b60448201526064016107ec565b6108e8338383611a4b565b6117fa611a1e565b600d546001600160a01b031660009081526020819052604090205461181e81610ee3565b61183a5760405162461bcd60e51b81526004016107ec90612580565b600d54601254611857916001600160a01b03908116911684611a4b565b6118618233611b1d565b6040805160028082526060820183526000926020830190803683375050600d5482519293506001600160a01b0316918391506000906118a2576118a261256a565b6001600160a01b03928316602091820292909201810191909152601254604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa1580156118fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061191f91906124d4565b816001815181106119325761193261256a565b6001600160a01b039283166020918202929092010152600f54601254600d546040516318cbafe560e01b81529293918216926318cbafe5926119819289926000928992169042906004016125b7565b6000604051808303816000875af11580156119a0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526119c891908101906125f3565b50600081600f546119d99190612759565b604080518781526020810183905291925033917f18704ae982dcd24a1beeeed3ecf045ab0520d7b7519b97adf3e4f40bf7efe339910160405180910390a25050505050565b6007546001600160a01b03163314610dfb5760405163118cdaa760e01b81523360048201526024016107ec565b6108e683838360016120f1565b6000611a648484611512565b90506000198114611ab85781811015611aa957604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016107ec565b611ab8848484840360006120f1565b50505050565b6001600160a01b038316611ae857604051634b637e8f60e11b8152600060048201526024016107ec565b6001600160a01b038216611b125760405163ec442f0560e01b8152600060048201526024016107ec565b6108e68383836121c6565b600069021e19e0c9bab24000008310611b3857600a54611b3c565b6009545b905060006064611b4c8386612720565b611b569190612737565b905060006064611b6783603c612720565b611b719190612737565b90506000611b7f8284612759565b9050611b9d85611b976007546001600160a01b031690565b84611abe565b600d54611bb59086906001600160a01b031683611abe565b846001600160a01b031660008051602061279b83398151915284604051611c05918152604060208201819052600f908201526e11995948111a5cdd1c9a589d5d1959608a1b606082015260800190565b60405180910390a2505050505050565b6001600160a01b038216611c3f5760405163ec442f0560e01b8152600060048201526024016107ec565b6108e8600083836121c6565b611c536122f0565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611c883390565b6040516001600160a01b0390911681526020015b60405180910390a1565b600260065403611cc957604051633ee5aeb560e01b815260040160405180910390fd5b6002600655565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600c54611d329062015180612557565b4211611d775760405162461bcd60e51b8152602060048201526014602482015273507269636520757064617465206e6f742064756560601b60448201526064016107ec565b60646010546066611d889190612720565b611d929190612737565b601081905542600c556040519081527f66cbca4f3c64fecf1dcb9ce094abcf7f68c3450a1d4e3a8e917dd621edb4ebe090602001611c9c565b611dd3611a1e565b600d546001600160a01b0316600090815260208190526040902054611df781610ee3565b611e135760405162461bcd60e51b81526004016107ec90612580565b611e1b61203e565b600854600e5411611e6e5760405162461bcd60e51b815260206004820152601d60248201527f496e73756666696369656e7420746f6b656e7320666f7220747261646500000060448201526064016107ec565b600d54601254600854611e8e926001600160a01b03908116921690611a4b565b6040805160028082526060820183526000926020830190803683375050600d5482519293506001600160a01b031691839150600090611ecf57611ecf61256a565b6001600160a01b03928316602091820292909201810191909152601254604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611f28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f4c91906124d4565b81600181518110611f5f57611f5f61256a565b6001600160a01b039283166020918202929092010152601254600854600d546040516318cbafe560e01b8152928416936318cbafe593611fac9392600092889291169042906004016125b7565b6000604051808303816000875af1158015611fcb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611ff391908101906125f3565b507f367d963066dfb064a5dffc01e4f609ec1dc4e5724d49620401cd953cb44e9528600854600f54604051612032929190918252602082015260400190565b60405180910390a15050565b600b5461204e9062015180612557565b42116120945760405162461bcd60e51b8152602060048201526015602482015274566f6c756d6520757064617465206e6f742064756560581b60448201526064016107ec565b606460085460696120a59190612720565b6120af9190612737565b60085542600b55565b6120c0612314565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611c88565b6001600160a01b03841661211b5760405163e602df0560e01b8152600060048201526024016107ec565b6001600160a01b03831661214557604051634a1406b160e11b8152600060048201526024016107ec565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015611ab857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516121b891815260200190565b60405180910390a350505050565b6001600160a01b0383166121f15780600260008282546121e69190612557565b909155506122639050565b6001600160a01b038316600090815260208190526040902054818110156122445760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016107ec565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661227f5760028054829003905561229e565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516122e391815260200190565b60405180910390a3505050565b60055460ff1615610dfb5760405163d93c066560e01b815260040160405180910390fd5b60055460ff16610dfb57604051638dfc202b60e01b815260040160405180910390fd5b6001600160a01b038116811461157857600080fd5b60006020828403121561235e57600080fd5b813561236981612337565b9392505050565b600081518084526020808501945080840160005b838110156123a95781516001600160a01b031687529582019590820190600101612384565b509495945050505050565b6020815260006123696020830184612370565b600060208083528351808285015260005b818110156123f4578581018301518582016040015282016123d8565b506000604082860101526040601f19601f8301168501019250505092915050565b6000806040838503121561242857600080fd5b823561243381612337565b946020939093013593505050565b60008060006060848603121561245657600080fd5b833561246181612337565b9250602084013561247181612337565b929592945050506040919091013590565b60006020828403121561249457600080fd5b5035919050565b600080604083850312156124ae57600080fd5b82356124b981612337565b915060208301356124c981612337565b809150509250929050565b6000602082840312156124e657600080fd5b815161236981612337565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168061251b57607f821691505b60208210810361253b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561099257610992612541565b634e487b7160e01b600052603260045260246000fd5b6020808252601d908201527f5472616e73616374696f6e2062656c6f7720707269636520666c6f6f72000000604082015260600190565b85815284602082015260a0604082015260006125d660a0830186612370565b6001600160a01b0394909416606083015250608001529392505050565b6000602080838503121561260657600080fd5b825167ffffffffffffffff8082111561261e57600080fd5b818501915085601f83011261263257600080fd5b815181811115612644576126446124f1565b8060051b604051601f19603f83011681018181108582111715612669576126696124f1565b60405291825284820192508381018501918883111561268757600080fd5b938501935b828510156126a55784518452938501939285019261268c565b98975050505050505050565b805169ffffffffffffffffffff811681146126cb57600080fd5b919050565b600080600080600060a086880312156126e857600080fd5b6126f1866126b1565b9450602086015193506040860151925060608601519150612714608087016126b1565b90509295509295909350565b808202811582820484141761099257610992612541565b60008261275457634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561099257610992612541565b60008060006060848603121561278157600080fd5b835192506020840151915060408401519050925092509256fe3564df1729e35422d7a5fbb9f4765910eaef542c20e20a838ab7ff3634da7a4fa2646970667358221220039770ccbb76a09e349d405a3a1342fe6523af9af49380fbd4566c6640ad20fa64736f6c634300081400330000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b84190000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Deployed Bytecode
0x60806040526004361061028c5760003560e01c8063715018a61161015a578063af393e46116100c1578063dbe2b34c1161007a578063dbe2b34c146106ff578063dd62ed3e14610715578063f2fde38b14610735578063f83c964214610755578063fbc6d1cb1461075d578063fe784eaa1461077d57600080fd5b8063af393e4614610670578063b33712c5146106a0578063b56cf011146106a8578063b7bf6ce5146106be578063be86dc86146106d3578063d0a63926146106e957600080fd5b806395d89b411161011357806395d89b41146105f5578063997fee071461060a5780639e1a4d1914610612578063a457c2d714610628578063a7ac4bf414610648578063a9059cbb1461065057600080fd5b8063715018a61461054c578063735de9f714610561578063741bef1a146105995780637ab8f70d146105b95780637ff9b596146105c15780638da5cb5b146105d757600080fd5b8063439766ce116101fe57806353dc8225116101b757806353dc8225146104b85780635c975abb146104c0578063659dece1146104d8578063673a7e28146104eb5780636949faeb1461050057806370a082311461051657600080fd5b8063439766ce1461043b57806344e63520146104435780634782f779146104595780634dbf459f1461046c5780634e6630b01461048257806353cf3d091461049857600080fd5b80631d8f7655116102505780631d8f76551461039757806323b872dd146103ac5780632402d1e0146103cc578063313ce567146103ec578063395093511461040857806340c10f191461042857600080fd5b8063042b9f9c146102d157806304e85b80146102f357806306fdde0314610326578063095ea7b31461034857806318160ddd1461037857600080fd5b366102cc5760408051600081523460208201527f38f8a0c92f4c5b0b6877f878cb4c0c8d348a47b76d716c8e78f425043df9515b910160405180910390a1005b600080fd5b3480156102dd57600080fd5b506102f16102ec36600461234c565b610790565b005b3480156102ff57600080fd5b506040805160008152602081019091525b60405161031d91906123b4565b60405180910390f35b34801561033257600080fd5b5061033b6108ec565b60405161031d91906123c7565b34801561035457600080fd5b50610368610363366004612415565b61097e565b604051901515815260200161031d565b34801561038457600080fd5b506002545b60405190815260200161031d565b3480156103a357600080fd5b506102f1610998565b3480156103b857600080fd5b506103686103c7366004612441565b610a42565b3480156103d857600080fd5b506102f16103e7366004612482565b610a66565b3480156103f857600080fd5b506040516012815260200161031d565b34801561041457600080fd5b50610368610423366004612415565b610d42565b6102f1610436366004612415565b610d6c565b6102f1610deb565b34801561044f57600080fd5b5061038960155481565b6102f1610467366004612415565b610dfd565b34801561047857600080fd5b5061038960085481565b34801561048e57600080fd5b50610389600f5481565b3480156104a457600080fd5b506103686104b3366004612482565b610ee3565b6102f1610f94565b3480156104cc57600080fd5b5060055460ff16610368565b6102f16104e6366004612482565b61109b565b3480156104f757600080fd5b506102f1611130565b34801561050c57600080fd5b50610389600c5481565b34801561052257600080fd5b5061038961053136600461234c565b6001600160a01b031660009081526020819052604090205490565b34801561055857600080fd5b506102f1611229565b34801561056d57600080fd5b50601254610581906001600160a01b031681565b6040516001600160a01b03909116815260200161031d565b3480156105a557600080fd5b50601354610581906001600160a01b031681565b6102f161123b565b3480156105cd57600080fd5b5061038960105481565b3480156105e357600080fd5b506007546001600160a01b0316610581565b34801561060157600080fd5b5061033b611253565b6102f1611262565b34801561061e57600080fd5b50610389600e5481565b34801561063457600080fd5b50610368610643366004612415565b611312565b6102f161137f565b34801561065c57600080fd5b5061036861066b366004612415565b61138f565b34801561067c57600080fd5b5061036861068b36600461234c565b60146020526000908152604090205460ff1681565b6102f161139d565b3480156106b457600080fd5b5061038960115481565b3480156106ca57600080fd5b506103106113ad565b3480156106df57600080fd5b5061038960095481565b3480156106f557600080fd5b50610389600b5481565b34801561070b57600080fd5b50610389600a5481565b34801561072157600080fd5b5061038961073036600461249b565b611512565b34801561074157600080fd5b506102f161075036600461234c565b61153d565b6102f161157b565b34801561076957600080fd5b506102f1610778366004612415565b61178e565b6102f161078b366004612482565b6117f2565b610798611a1e565b60006001600160a01b0382166107f55760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420706c6174666f726d2061646472657373000000000000000060448201526064015b60405180910390fd5b816001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561084f575060408051601f3d908101601f1916820190925261084c918101906124d4565b60015b61087557506001600160a01b03166000908152601460205260409020805460ff19169055565b816001600160a01b0316816001600160a01b0316146108e6576001600160a01b038316600081815260146020908152604091829020805460ff1916600117905590519182527f928b33bdfeca35676732c70a45996b9c9f58ba580e9460fb3308e103fbc8e188910160405180910390a15b505b5050565b6060600380546108fb90612507565b80601f016020809104026020016040519081016040528092919081815260200182805461092790612507565b80156109745780601f1061094957610100808354040283529160200191610974565b820191906000526020600020905b81548152906001019060200180831161095757829003601f168201915b5050505050905090565b60003361098c818585611a4b565b60019150505b92915050565b6109a0611a1e565b6015546109b09062093a80612557565b42116109f75760405162461bcd60e51b815260206004820152601660248201527556616c69646174696f6e206e6f74207965742064756560501b60448201526064016107ec565b4260155560408051600080825260208201909252805190915b818110156108e657610a3a838281518110610a2d57610a2d61256a565b6020026020010151610790565b600101610a10565b600033610a50858285611a58565b610a5b858585611abe565b506001949350505050565b610a6e611a1e565b600d546001600160a01b0316600090815260208190526040902054610a9281610ee3565b610aae5760405162461bcd60e51b81526004016107ec90612580565b81600003610af55760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a59081d1bdad95b88185b5bdd5b9d60621b60448201526064016107ec565b6000610aff6113ad565b8051909150610b0e8433611b1d565b60005b81811015610d3b576000838281518110610b2d57610b2d61256a565b602002602001015190506000600267ffffffffffffffff811115610b5357610b536124f1565b604051908082528060200260200182016040528015610b7c578160200160208202803683370190505b50600d5481519192506001600160a01b0316908290600090610ba057610ba061256a565b60200260200101906001600160a01b031690816001600160a01b031681525050816001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bfe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2291906124d4565b81600181518110610c3557610c3561256a565b6001600160a01b039283166020918202929092010152600d546040516318cbafe560e01b8152848316926318cbafe592610c7d928c92600092889291169042906004016125b7565b6000604051808303816000875af1925050508015610cbd57506040513d6000823e601f3d908101601f19168201604052610cba91908101906125f3565b60015b610cc8575050610b11565b7fc0ba08fe447762dd7b78073569cf945d753c21b69c67f72e7b3d7b7ca3e947df838983600181518110610cfe57610cfe61256a565b602090810291909101810151604080516001600160a01b0390951685529184019290925282015260600160405180910390a1505050600101610b11565b5050505050565b6000610d63338484610d543388611512565b610d5e9190612557565b611a4b565b50600192915050565b610d74611a1e565b6a084595161401484a00000081610d8a60025490565b610d949190612557565b10610de15760405162461bcd60e51b815260206004820152601860248201527f4578636565647320746f74616c20737570706c7920636170000000000000000060448201526064016107ec565b6108e88282611c15565b610df3611a1e565b610dfb611c4b565b565b610e05611a1e565b610e0d611ca6565b600d546001600160a01b0316318110610e5f5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064016107ec565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610e95573d6000803e3d6000fd5b50816001600160a01b03167f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b6582604051610ed191815260200190565b60405180910390a26108e86001600655565b600080601360009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610f39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5d91906126d0565b50505091505060006305f5e1008483610f769190612720565b610f809190612737565b681dd0c885f9a0d800001115949350505050565b610f9c611a1e565b60135460408051633fabe5a360e21b815290516000926001600160a01b03169163feaf968c9160048083019260a09291908290030181865afa158015610fe6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100a91906126d0565b50505091505060008190506103e8811161102557600a611028565b60075b60ff166009556103e8811161103e576005611041565b60035b60ff16600a55604051339060008051602061279b8339815191529061108f9060008152604060208201819052600d908201526c1199595cc810591a9d5cdd1959609a1b606082015260800190565b60405180910390a25050565b6110a3611a1e565b80601154036110f45760405162461bcd60e51b815260206004820152601b60248201527f4e65772076616c7565206d75737420626520646966666572656e74000000000060448201526064016107ec565b60118190556040518181527f9b18dd3b50aa75e9aeddc518c78c29bac7205cd12503abc2fa6bb2c0f7f05f73906020015b60405180910390a150565b60135460408051633fabe5a360e21b815290516000926001600160a01b03169163feaf968c9160048083019260a09291908290030181865afa15801561117a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119e91906126d0565b505050915050806000036111f45760405162461bcd60e51b815260206004820152601960248201527f496e76616c69642070726963652066726f6d206f7261636c650000000000000060448201526064016107ec565b60108190556040518181527f66cbca4f3c64fecf1dcb9ce094abcf7f68c3450a1d4e3a8e917dd621edb4ebe090602001611125565b611231611a1e565b610dfb6000611cd0565b611243611a1e565b61124b611d22565b610dfb611dcb565b6060600480546108fb90612507565b61126a611a1e565b600060646112846a084595161401484a000000601e612720565b61128e9190612737565b600d549091506112a99033906001600160a01b031683611abe565b336001600160a01b031660008051602061279b833981519152826040516113079181526040602082018190526018908201527f4c69717569646974792052657365727665204c6f636b65640000000000000000606082015260800190565b60405180910390a250565b60008061131f3385611512565b90508281116113705760405162461bcd60e51b815260206004820152601e60248201527f44656372656173656420616c6c6f77616e63652062656c6f77207a65726f000060448201526064016107ec565b61098c3385610d5e8685612759565b611387611a1e565b61124361203e565b60003361098c818585611abe565b6113a5611a1e565b610dfb6120b8565b606060006113c660408051600081526020810190915290565b80519091506000805b8281101561142e5760008482815181106113eb576113eb61256a565b6020908102919091018101516001600160a01b0381166000908152601490925260409091205490915060ff168015611424576001909301925b50506001016113cf565b508067ffffffffffffffff811115611448576114486124f1565b604051908082528060200260200182016040528015611471578160200160208202803683370190505b5093506000805b8381101561150a5760008582815181106114945761149461256a565b6020908102919091018101516001600160a01b0381166000908152601490925260409091205490915060ff16801561150057818885815181106114d9576114d961256a565b60200260200101906001600160a01b031690816001600160a01b0316815250508360010193505b5050600101611478565b505050505090565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b611545611a1e565b6001600160a01b03811661156f57604051631e4fbdf760e01b8152600060048201526024016107ec565b61157881611cd0565b50565b611583611a1e565b3060009081526020819052604090205461159c81610ee3565b6115b85760405162461bcd60e51b81526004016107ec90612580565b600e5460000361160a5760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e7420746f6b656e2062616c616e636500000000000060448201526064016107ec565b600f5460000361165c5760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e74204554482062616c616e6365000000000000000060448201526064016107ec565b600d54601254600e5461167c926001600160a01b03908116921690611a4b565b601254600f54600d54600e546001600160a01b039384169363f305d719939216906000806116b26007546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af115801561171a573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061173f919061276c565b5050600e54604080519182526020820181905260129082015271131a5c5d5a591a5d1e48125b9a9958dd195960721b606082015233915060008051602061279b83398151915290608001611307565b6117983383611512565b15806117a2575080155b6117e75760405162461bcd60e51b8152602060048201526016602482015275416c6c6f77616e6365206d757374206265207a65726f60501b60448201526064016107ec565b6108e8338383611a4b565b6117fa611a1e565b600d546001600160a01b031660009081526020819052604090205461181e81610ee3565b61183a5760405162461bcd60e51b81526004016107ec90612580565b600d54601254611857916001600160a01b03908116911684611a4b565b6118618233611b1d565b6040805160028082526060820183526000926020830190803683375050600d5482519293506001600160a01b0316918391506000906118a2576118a261256a565b6001600160a01b03928316602091820292909201810191909152601254604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa1580156118fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061191f91906124d4565b816001815181106119325761193261256a565b6001600160a01b039283166020918202929092010152600f54601254600d546040516318cbafe560e01b81529293918216926318cbafe5926119819289926000928992169042906004016125b7565b6000604051808303816000875af11580156119a0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526119c891908101906125f3565b50600081600f546119d99190612759565b604080518781526020810183905291925033917f18704ae982dcd24a1beeeed3ecf045ab0520d7b7519b97adf3e4f40bf7efe339910160405180910390a25050505050565b6007546001600160a01b03163314610dfb5760405163118cdaa760e01b81523360048201526024016107ec565b6108e683838360016120f1565b6000611a648484611512565b90506000198114611ab85781811015611aa957604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016107ec565b611ab8848484840360006120f1565b50505050565b6001600160a01b038316611ae857604051634b637e8f60e11b8152600060048201526024016107ec565b6001600160a01b038216611b125760405163ec442f0560e01b8152600060048201526024016107ec565b6108e68383836121c6565b600069021e19e0c9bab24000008310611b3857600a54611b3c565b6009545b905060006064611b4c8386612720565b611b569190612737565b905060006064611b6783603c612720565b611b719190612737565b90506000611b7f8284612759565b9050611b9d85611b976007546001600160a01b031690565b84611abe565b600d54611bb59086906001600160a01b031683611abe565b846001600160a01b031660008051602061279b83398151915284604051611c05918152604060208201819052600f908201526e11995948111a5cdd1c9a589d5d1959608a1b606082015260800190565b60405180910390a2505050505050565b6001600160a01b038216611c3f5760405163ec442f0560e01b8152600060048201526024016107ec565b6108e8600083836121c6565b611c536122f0565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611c883390565b6040516001600160a01b0390911681526020015b60405180910390a1565b600260065403611cc957604051633ee5aeb560e01b815260040160405180910390fd5b6002600655565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600c54611d329062015180612557565b4211611d775760405162461bcd60e51b8152602060048201526014602482015273507269636520757064617465206e6f742064756560601b60448201526064016107ec565b60646010546066611d889190612720565b611d929190612737565b601081905542600c556040519081527f66cbca4f3c64fecf1dcb9ce094abcf7f68c3450a1d4e3a8e917dd621edb4ebe090602001611c9c565b611dd3611a1e565b600d546001600160a01b0316600090815260208190526040902054611df781610ee3565b611e135760405162461bcd60e51b81526004016107ec90612580565b611e1b61203e565b600854600e5411611e6e5760405162461bcd60e51b815260206004820152601d60248201527f496e73756666696369656e7420746f6b656e7320666f7220747261646500000060448201526064016107ec565b600d54601254600854611e8e926001600160a01b03908116921690611a4b565b6040805160028082526060820183526000926020830190803683375050600d5482519293506001600160a01b031691839150600090611ecf57611ecf61256a565b6001600160a01b03928316602091820292909201810191909152601254604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611f28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f4c91906124d4565b81600181518110611f5f57611f5f61256a565b6001600160a01b039283166020918202929092010152601254600854600d546040516318cbafe560e01b8152928416936318cbafe593611fac9392600092889291169042906004016125b7565b6000604051808303816000875af1158015611fcb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611ff391908101906125f3565b507f367d963066dfb064a5dffc01e4f609ec1dc4e5724d49620401cd953cb44e9528600854600f54604051612032929190918252602082015260400190565b60405180910390a15050565b600b5461204e9062015180612557565b42116120945760405162461bcd60e51b8152602060048201526015602482015274566f6c756d6520757064617465206e6f742064756560581b60448201526064016107ec565b606460085460696120a59190612720565b6120af9190612737565b60085542600b55565b6120c0612314565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611c88565b6001600160a01b03841661211b5760405163e602df0560e01b8152600060048201526024016107ec565b6001600160a01b03831661214557604051634a1406b160e11b8152600060048201526024016107ec565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015611ab857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516121b891815260200190565b60405180910390a350505050565b6001600160a01b0383166121f15780600260008282546121e69190612557565b909155506122639050565b6001600160a01b038316600090815260208190526040902054818110156122445760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016107ec565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661227f5760028054829003905561229e565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516122e391815260200190565b60405180910390a3505050565b60055460ff1615610dfb5760405163d93c066560e01b815260040160405180910390fd5b60055460ff16610dfb57604051638dfc202b60e01b815260040160405180910390fd5b6001600160a01b038116811461157857600080fd5b60006020828403121561235e57600080fd5b813561236981612337565b9392505050565b600081518084526020808501945080840160005b838110156123a95781516001600160a01b031687529582019590820190600101612384565b509495945050505050565b6020815260006123696020830184612370565b600060208083528351808285015260005b818110156123f4578581018301518582016040015282016123d8565b506000604082860101526040601f19601f8301168501019250505092915050565b6000806040838503121561242857600080fd5b823561243381612337565b946020939093013593505050565b60008060006060848603121561245657600080fd5b833561246181612337565b9250602084013561247181612337565b929592945050506040919091013590565b60006020828403121561249457600080fd5b5035919050565b600080604083850312156124ae57600080fd5b82356124b981612337565b915060208301356124c981612337565b809150509250929050565b6000602082840312156124e657600080fd5b815161236981612337565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168061251b57607f821691505b60208210810361253b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561099257610992612541565b634e487b7160e01b600052603260045260246000fd5b6020808252601d908201527f5472616e73616374696f6e2062656c6f7720707269636520666c6f6f72000000604082015260600190565b85815284602082015260a0604082015260006125d660a0830186612370565b6001600160a01b0394909416606083015250608001529392505050565b6000602080838503121561260657600080fd5b825167ffffffffffffffff8082111561261e57600080fd5b818501915085601f83011261263257600080fd5b815181811115612644576126446124f1565b8060051b604051601f19603f83011681018181108582111715612669576126696124f1565b60405291825284820192508381018501918883111561268757600080fd5b938501935b828510156126a55784518452938501939285019261268c565b98975050505050505050565b805169ffffffffffffffffffff811681146126cb57600080fd5b919050565b600080600080600060a086880312156126e857600080fd5b6126f1866126b1565b9450602086015193506040860151925060608601519150612714608087016126b1565b90509295509295909350565b808202811582820484141761099257610992612541565b60008261275457634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561099257610992612541565b60008060006060848603121561278157600080fd5b835192506020840151915060408401519050925092509256fe3564df1729e35422d7a5fbb9f4765910eaef542c20e20a838ab7ff3634da7a4fa2646970667358221220039770ccbb76a09e349d405a3a1342fe6523af9af49380fbd4566c6640ad20fa64736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b84190000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
-----Decoded View---------------
Arg [0] : _priceFeed (address): 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419
Arg [1] : _uniswapRouter (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
Arg [1] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
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.