ERC-20
Source Code
Overview
Max Total Supply
100,000,000 onchain
Holders
2,661
Transfers
-
1
Market
Price
$0.00 @ 0.000000 ETH
Onchain Market Cap
-
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
Onchain
Compiler Version
v0.8.25+commit.b61c2a91
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeCast.sol";
import "./interfaces/IRouter.sol";
import "./interfaces/IFactory.sol";
import "./libraries/SafeERC20.sol";
contract Onchain is ERC20, Ownable {
/// @notice Mapping to track addresses exempt from fees
mapping(address => bool) public exemptFromFees;
/// @notice Mapping to track addresses exempt from limits
mapping(address => bool) public exemptFromLimits;
/// @notice Indicates if trading is allowed
bool public tradingAllowed;
/// @notice Mapping to track pair addresses
mapping(address => bool) public isPair;
/// @notice Address of the treasury
address public treasury;
/// @notice Struct to hold tax information for buy transactions
Taxes public buyTax;
/// @notice Struct to hold tax information for sell transactions
Taxes public sellTax;
/// @notice Struct to hold tokens for tax purposes
TokensForTax public tokensForTax;
/// @notice Mapping to track the last transfer block for MEV protection
mapping(address => uint256) private _holderLastTransferBlock;
/// @notice Indicates if anti-MEV protection is enabled
bool public antiMevEnabled = true;
/// @notice Indicates if limits are enabled
bool public limited = true;
/// @notice Amount of tokens to trigger a swap
uint256 public swapTokensAtAmt;
/// @notice Address of the liquidity pair
address public immutable lpPair;
/// @notice Instance of the router contract
IRouter public immutable router;
/// @notice Address of the WETH token
address public immutable WETH;
/// @notice Struct to hold transaction limits
TxLimits public txLimits;
/// @notice Constant divisor for fee calculations
uint64 public constant FEE_DIVISOR = 10000;
/// @notice Block number of contract launch
uint256 public launchBlock;
/// @notice Indicates if dynamic tax is enabled
bool public dynamicTaxOn;
/// @notice Number of blocks with special rules after launch
uint256 public deadBlocks;
/// @dev Struct to define transaction limits
struct TxLimits {
uint128 transactionLimit;
}
/// @dev Struct to define tax information
struct Taxes {
uint64 totalTax;
}
/// @dev Struct to define tokens held for tax purposes
struct TokensForTax {
uint80 tokensForTreasury;
bool gasSaver;
}
/// @notice Event emitted when the transaction limit is updated
/// @param newMax The new maximum transaction limit
event UpdatedTransactionLimit(uint256 newMax);
/// @notice Event emitted when an address is exempted from fees
/// @param _address The address being exempted
/// @param _isExempt Boolean indicating if the address is exempt
event SetExemptFromFees(address _address, bool _isExempt);
/// @notice Event emitted when an address is exempted from limits
/// @param _address The address being exempted
/// @param _isExempt Boolean indicating if the address is exempt
event SetExemptFromLimits(address _address, bool _isExempt);
/// @notice Event emitted when limits are removed
event RemovedLimits();
/// @notice Event emitted when the buy tax is updated
/// @param newAmt The new buy tax amount
event UpdatedBuyTax(uint256 newAmt);
/// @notice Event emitted when the sell tax is updated
/// @param newAmt The new sell tax amount
event UpdatedSellTax(uint256 newAmt);
/// @notice Event emitted when swapTokensAtAmt is updated
/// @param newAmount The new amount of tokens
event SwapTokensAtAmtUpdated(uint256 newAmount);
/// @notice Event emitted when trading is enabled
/// @param deadBlocks number of dead blocks after the trading is allowed
event TradingEnabled(uint256 deadBlocks);
/// @notice Event emitted when antimev status is updated
/// @param status updated status of antimev
event AntiMevStatusUpdate(bool status);
/// @notice Constructor to initialize the contract
/// @param _owner The address of the owner
/// @param _router The address of the router
/// @param _treasury The address of the treasury
constructor(
address _owner,
address _router,
address _treasury,
address _universalRouter
) ERC20("onchain", "onchain") {
uint256 tSupply = 100_000_000 * 1e18;
uint256 supplyToLiquidity = (tSupply * 10) / 100;
uint256 supplyLeftover = tSupply - supplyToLiquidity;
_mint(owner(), supplyToLiquidity);
_mint(_owner, supplyLeftover);
dynamicTaxOn = true;
router = IRouter(_router);
txLimits.transactionLimit = SafeCast.toUint128(
(totalSupply() * 20) / 10000
);
swapTokensAtAmt = (totalSupply() * 20) / 100000;
treasury = _treasury;
buyTax.totalTax = 6000;
sellTax.totalTax = 6000;
tokensForTax.gasSaver = true;
WETH = router.WETH();
lpPair = IFactory(router.factory()).createPair(address(this), WETH);
isPair[lpPair] = true;
exemptFromLimits[lpPair] = true;
exemptFromLimits[owner()] = true;
exemptFromLimits[_owner] = true;
exemptFromLimits[address(this)] = true;
exemptFromFees[owner()] = true;
exemptFromFees[_owner] = true;
exemptFromFees[address(this)] = true;
exemptFromFees[address(router)] = true;
exemptFromFees[_universalRouter] = true;
_approve(address(this), address(router), type(uint256).max);
_approve(address(this), _universalRouter, type(uint256).max);
_approve(address(owner()), address(router), totalSupply());
}
/// @notice Internal function to handle transfers with tax and limit checks
/// @param from The address to transfer from
/// @param to The address to transfer to
/// @param amount The amount to transfer
function _transfer(
address from,
address to,
uint256 amount
) internal virtual override {
if (!exemptFromFees[from] && !exemptFromFees[to]) {
require(tradingAllowed, "Trading not active");
amount -= handleTax(from, to, amount);
checkLimits(from, to, amount);
}
super._transfer(from, to, amount);
}
/// @notice Internal function to check transaction limits
/// @param from The address to transfer from
/// @param to The address to transfer to
/// @param amount The amount to transfer
function checkLimits(address from, address to, uint256 amount) internal {
if (limited) {
TxLimits memory _txLimits = txLimits;
// buy
if (isPair[from] && !exemptFromLimits[to]) {
require(amount <= _txLimits.transactionLimit, "Max Txn");
}
// sell
else if (isPair[to] && !exemptFromLimits[from]) {
require(amount <= _txLimits.transactionLimit, "Max Txn");
}
}
if (antiMevEnabled) {
if (isPair[to]) {
require(
_holderLastTransferBlock[from] < block.number,
"Anti MEV"
);
} else {
_holderLastTransferBlock[to] = block.number;
_holderLastTransferBlock[tx.origin] = block.number;
}
}
}
/// @notice Internal function to handle tax on transfers
/// @param from The address to transfer from
/// @param to The address to transfer to
/// @param amount The amount to transfer
/// @return uint256 The tax amount
function handleTax(
address from,
address to,
uint256 amount
) internal returns (uint256) {
if (balanceOf(address(this)) >= swapTokensAtAmt && !isPair[from]) {
convertTaxes();
}
if (dynamicTaxOn) {
setInternalTaxes();
}
uint128 tax = 0;
Taxes memory taxes;
if (isPair[to]) {
taxes = sellTax;
} else if (isPair[from]) {
taxes = buyTax;
}
if (taxes.totalTax > 0) {
TokensForTax memory tokensForTaxUpdate = tokensForTax;
tax = SafeCast.toUint128((amount * taxes.totalTax) / FEE_DIVISOR);
tokensForTaxUpdate.tokensForTreasury += SafeCast.toUint80(
(tax * taxes.totalTax) / taxes.totalTax / 1e9
);
tokensForTax = tokensForTaxUpdate;
super._transfer(from, address(this), tax);
}
return tax;
}
/// @notice Swaps tokens for ETH
/// @param tokenAmt The amount of tokens to swap
function swapTokensForETH(uint256 tokenAmt) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = WETH;
router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmt,
0,
path,
address(this),
block.timestamp
);
}
/// @notice Converts collected taxes to ETH and transfers to treasury
function convertTaxes() private {
uint256 contractBalance = balanceOf(address(this));
TokensForTax memory tokensForTaxMem = tokensForTax;
uint256 totalTokensToSwap = tokensForTaxMem.tokensForTreasury;
if (contractBalance == 0 || totalTokensToSwap == 0) {
return;
}
if (contractBalance > swapTokensAtAmt * 20) {
contractBalance = swapTokensAtAmt * 20;
}
if (contractBalance > 0) {
swapTokensForETH(contractBalance);
uint256 ethBalance = address(this).balance;
bool success;
ethBalance = address(this).balance;
if (ethBalance > 0) {
(success, ) = treasury.call{value: ethBalance, gas: 21000}("");
}
}
tokensForTaxMem.tokensForTreasury = 0;
tokensForTax = tokensForTaxMem;
}
/// @notice Transfers the ownership and exempts new owner from limits
/// @param newOwner The address to transfer ownership to
function transferOwnership(address newOwner) public override onlyOwner {
_transferOwnership(newOwner);
exemptFromLimits[newOwner] = true;
exemptFromFees[newOwner] = true;
emit SetExemptFromLimits(newOwner, true);
emit SetExemptFromFees(newOwner, true);
}
/// @notice Sets an address as exempt or not exempt from fees
/// @param _address The address to set exemption status
/// @param _isExempt The exemption status
function setExemptFromFee(
address _address,
bool _isExempt
) external onlyOwner {
require(_address != address(0), "Zero Address");
require(_address != address(this), "Cannot unexempt contract");
exemptFromFees[_address] = _isExempt;
emit SetExemptFromFees(_address, _isExempt);
}
/// @notice Sets an address as exempt or not exempt from limits
/// @param _address The address to set exemption status
/// @param _isExempt The exemption status
function setExemptFromLimit(
address _address,
bool _isExempt
) external onlyOwner {
require(_address != address(0), "Zero Address");
if (!_isExempt) {
require(_address != lpPair, "Cannot remove pair");
}
exemptFromLimits[_address] = _isExempt;
emit SetExemptFromLimits(_address, _isExempt);
}
/// @notice Updates the transaction limit
/// @param newNumInTokens The new transaction limit in tokens
function updateTransactionLimit(uint128 newNumInTokens) external onlyOwner {
require(
newNumInTokens >= ((totalSupply() * 1) / 1000) / (10 ** decimals()),
"Too low"
);
txLimits.transactionLimit = SafeCast.toUint128(
newNumInTokens * (10 ** decimals())
);
emit UpdatedTransactionLimit(txLimits.transactionLimit);
}
/// @notice Updates the amount of tokens to trigger a swap
/// @param newAmount The new amount of tokens
function updateSwapTokensAmt(uint256 newAmount) external onlyOwner {
require(
newAmount >= (totalSupply() * 1) / 100000,
"Swap amount cannot be lower than 0.001% total supply."
);
require(
newAmount <= (totalSupply() * 5) / 1000,
"Swap amount cannot be higher than 0.5% total supply."
);
swapTokensAtAmt = newAmount;
emit SwapTokensAtAmtUpdated(newAmount);
}
/// @notice Updates the buy tax
/// @param _treasuryTax The new treasury tax
function updateBuyTax(uint64 _treasuryTax) external onlyOwner {
require(_treasuryTax <= 1000, "Keep tax below 10%");
Taxes memory taxes;
taxes.totalTax = _treasuryTax;
emit UpdatedBuyTax(taxes.totalTax);
buyTax = taxes;
}
/// @notice Updates the sell tax
/// @param _treasuryTax The new treasury tax
function updateSellTax(uint64 _treasuryTax) external onlyOwner {
require(_treasuryTax <= 1000, "Keep tax below 10%");
Taxes memory taxes;
taxes.totalTax = _treasuryTax;
emit UpdatedSellTax(taxes.totalTax);
sellTax = taxes;
}
/// @notice Enables trading after the specified number of dead blocks
function enableTrading() public onlyOwner {
require(!tradingAllowed, "Trading already enabled");
tradingAllowed = true;
launchBlock = block.number;
deadBlocks = 1;
emit TradingEnabled(1);
}
/// @notice Removes transaction limits
function removeLimits() external onlyOwner {
limited = false;
TxLimits memory _txLimits;
uint256 supply = totalSupply();
_txLimits.transactionLimit = SafeCast.toUint128(supply);
txLimits = _txLimits;
emit RemovedLimits();
}
/// @notice Updates the anti-MEV protection status
/// @param _enabled The new status of anti-MEV protection
function updateMevBlockerEnabled(bool _enabled) external onlyOwner {
antiMevEnabled = _enabled;
emit AntiMevStatusUpdate(_enabled);
}
/// @notice Airdrops tokens to specified wallets
/// @param wallets The array of wallet addresses
/// @param amountsInWei The array of token amounts
function airdropToWallets(
address[] calldata wallets,
uint256[] calldata amountsInWei
) external onlyOwner {
require(
wallets.length == amountsInWei.length,
"arrays length mismatch"
);
for (uint256 i = 0; i < wallets.length; i++) {
super._transfer(msg.sender, wallets[i], amountsInWei[i]);
}
}
/// @notice Rescues tokens from the contract
/// @param _token The address of the token to rescue
/// @param _to The address to send the rescued tokens to
function rescueTokens(address _token, address _to) external onlyOwner {
require(_token != address(0), "_token address cannot be 0");
uint256 _contractBalance = IERC20(_token).balanceOf(address(this));
SafeERC20.safeTransfer(IERC20(_token), _to, _contractBalance);
}
/// @notice Updates the treasury address
/// @param _address The new treasury address
function updatetreasury(address _address) external onlyOwner {
require(_address != address(0), "zero address");
treasury = _address;
}
/// @notice Removes the dynamic tax
function removeDynamicTax() external onlyOwner {
require(dynamicTaxOn, "Already off");
updateTaxAndLimits(0, 10000);
dynamicTaxOn = false;
}
/// @notice Function to receive ETH when swapping
receive() external payable {}
/// @notice Internal function to set internal taxes based on block number
function setInternalTaxes() internal {
uint256 blocksSinceLaunch = block.number - launchBlock;
// Check if we are within the deadBlocks phase
if (blocksSinceLaunch <= deadBlocks) {
updateTaxAndLimits(6000, 20);
} else {
// Calculate the number of blocks since the deadBlocks phase ended
uint256 phaseBlocks = blocksSinceLaunch - deadBlocks;
if (phaseBlocks <= 2) {
updateTaxAndLimits(4000, 20);
} else if (phaseBlocks > 2 && phaseBlocks <= 3600) {
updateTaxAndLimits(0, 50);
} else {
updateTaxAndLimits(0, 10000);
limited = false;
}
}
}
/// @notice Internal function to update tax and limits
/// @param newTotalTax The new total tax
/// @param newLimitPercent The new limit percentage
function updateTaxAndLimits(
uint64 newTotalTax,
uint128 newLimitPercent
) internal {
Taxes memory taxes;
taxes.totalTax = newTotalTax;
sellTax = taxes;
buyTax = taxes;
if (newLimitPercent > 0) {
TxLimits memory _txLimits;
uint128 newLimit = SafeCast.toUint128(
(totalSupply() * newLimitPercent) / 10000
);
_txLimits.transactionLimit = newLimit;
txLimits = _txLimits;
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
* - the caller must have allowance for ``from``'s tokens of at least
* `amount`.
*/
function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(address from, address to, uint256 amount) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_balances[to] += amount;
}
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_balances[account] += amount;
}
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_totalSupply -= amount;
}
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SafeCast.sol)
// This file was procedurally generated from scripts/generate/templates/SafeCast.js.
pragma solidity ^0.8.0;
/**
* @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow
* checks.
*
* Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
* easily result in undesired exploitation or bugs, since developers usually
* assume that overflows raise errors. `SafeCast` restores this intuition by
* reverting the transaction when such an operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*
* Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing
* all math on `uint256` and `int256` and then downcasting.
*/
library SafeCast {
/**
* @dev Returns the downcasted uint248 from uint256, reverting on
* overflow (when the input is greater than largest uint248).
*
* Counterpart to Solidity's `uint248` operator.
*
* Requirements:
*
* - input must fit into 248 bits
*
* _Available since v4.7._
*/
function toUint248(uint256 value) internal pure returns (uint248) {
require(value <= type(uint248).max, "SafeCast: value doesn't fit in 248 bits");
return uint248(value);
}
/**
* @dev Returns the downcasted uint240 from uint256, reverting on
* overflow (when the input is greater than largest uint240).
*
* Counterpart to Solidity's `uint240` operator.
*
* Requirements:
*
* - input must fit into 240 bits
*
* _Available since v4.7._
*/
function toUint240(uint256 value) internal pure returns (uint240) {
require(value <= type(uint240).max, "SafeCast: value doesn't fit in 240 bits");
return uint240(value);
}
/**
* @dev Returns the downcasted uint232 from uint256, reverting on
* overflow (when the input is greater than largest uint232).
*
* Counterpart to Solidity's `uint232` operator.
*
* Requirements:
*
* - input must fit into 232 bits
*
* _Available since v4.7._
*/
function toUint232(uint256 value) internal pure returns (uint232) {
require(value <= type(uint232).max, "SafeCast: value doesn't fit in 232 bits");
return uint232(value);
}
/**
* @dev Returns the downcasted uint224 from uint256, reverting on
* overflow (when the input is greater than largest uint224).
*
* Counterpart to Solidity's `uint224` operator.
*
* Requirements:
*
* - input must fit into 224 bits
*
* _Available since v4.2._
*/
function toUint224(uint256 value) internal pure returns (uint224) {
require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits");
return uint224(value);
}
/**
* @dev Returns the downcasted uint216 from uint256, reverting on
* overflow (when the input is greater than largest uint216).
*
* Counterpart to Solidity's `uint216` operator.
*
* Requirements:
*
* - input must fit into 216 bits
*
* _Available since v4.7._
*/
function toUint216(uint256 value) internal pure returns (uint216) {
require(value <= type(uint216).max, "SafeCast: value doesn't fit in 216 bits");
return uint216(value);
}
/**
* @dev Returns the downcasted uint208 from uint256, reverting on
* overflow (when the input is greater than largest uint208).
*
* Counterpart to Solidity's `uint208` operator.
*
* Requirements:
*
* - input must fit into 208 bits
*
* _Available since v4.7._
*/
function toUint208(uint256 value) internal pure returns (uint208) {
require(value <= type(uint208).max, "SafeCast: value doesn't fit in 208 bits");
return uint208(value);
}
/**
* @dev Returns the downcasted uint200 from uint256, reverting on
* overflow (when the input is greater than largest uint200).
*
* Counterpart to Solidity's `uint200` operator.
*
* Requirements:
*
* - input must fit into 200 bits
*
* _Available since v4.7._
*/
function toUint200(uint256 value) internal pure returns (uint200) {
require(value <= type(uint200).max, "SafeCast: value doesn't fit in 200 bits");
return uint200(value);
}
/**
* @dev Returns the downcasted uint192 from uint256, reverting on
* overflow (when the input is greater than largest uint192).
*
* Counterpart to Solidity's `uint192` operator.
*
* Requirements:
*
* - input must fit into 192 bits
*
* _Available since v4.7._
*/
function toUint192(uint256 value) internal pure returns (uint192) {
require(value <= type(uint192).max, "SafeCast: value doesn't fit in 192 bits");
return uint192(value);
}
/**
* @dev Returns the downcasted uint184 from uint256, reverting on
* overflow (when the input is greater than largest uint184).
*
* Counterpart to Solidity's `uint184` operator.
*
* Requirements:
*
* - input must fit into 184 bits
*
* _Available since v4.7._
*/
function toUint184(uint256 value) internal pure returns (uint184) {
require(value <= type(uint184).max, "SafeCast: value doesn't fit in 184 bits");
return uint184(value);
}
/**
* @dev Returns the downcasted uint176 from uint256, reverting on
* overflow (when the input is greater than largest uint176).
*
* Counterpart to Solidity's `uint176` operator.
*
* Requirements:
*
* - input must fit into 176 bits
*
* _Available since v4.7._
*/
function toUint176(uint256 value) internal pure returns (uint176) {
require(value <= type(uint176).max, "SafeCast: value doesn't fit in 176 bits");
return uint176(value);
}
/**
* @dev Returns the downcasted uint168 from uint256, reverting on
* overflow (when the input is greater than largest uint168).
*
* Counterpart to Solidity's `uint168` operator.
*
* Requirements:
*
* - input must fit into 168 bits
*
* _Available since v4.7._
*/
function toUint168(uint256 value) internal pure returns (uint168) {
require(value <= type(uint168).max, "SafeCast: value doesn't fit in 168 bits");
return uint168(value);
}
/**
* @dev Returns the downcasted uint160 from uint256, reverting on
* overflow (when the input is greater than largest uint160).
*
* Counterpart to Solidity's `uint160` operator.
*
* Requirements:
*
* - input must fit into 160 bits
*
* _Available since v4.7._
*/
function toUint160(uint256 value) internal pure returns (uint160) {
require(value <= type(uint160).max, "SafeCast: value doesn't fit in 160 bits");
return uint160(value);
}
/**
* @dev Returns the downcasted uint152 from uint256, reverting on
* overflow (when the input is greater than largest uint152).
*
* Counterpart to Solidity's `uint152` operator.
*
* Requirements:
*
* - input must fit into 152 bits
*
* _Available since v4.7._
*/
function toUint152(uint256 value) internal pure returns (uint152) {
require(value <= type(uint152).max, "SafeCast: value doesn't fit in 152 bits");
return uint152(value);
}
/**
* @dev Returns the downcasted uint144 from uint256, reverting on
* overflow (when the input is greater than largest uint144).
*
* Counterpart to Solidity's `uint144` operator.
*
* Requirements:
*
* - input must fit into 144 bits
*
* _Available since v4.7._
*/
function toUint144(uint256 value) internal pure returns (uint144) {
require(value <= type(uint144).max, "SafeCast: value doesn't fit in 144 bits");
return uint144(value);
}
/**
* @dev Returns the downcasted uint136 from uint256, reverting on
* overflow (when the input is greater than largest uint136).
*
* Counterpart to Solidity's `uint136` operator.
*
* Requirements:
*
* - input must fit into 136 bits
*
* _Available since v4.7._
*/
function toUint136(uint256 value) internal pure returns (uint136) {
require(value <= type(uint136).max, "SafeCast: value doesn't fit in 136 bits");
return uint136(value);
}
/**
* @dev Returns the downcasted uint128 from uint256, reverting on
* overflow (when the input is greater than largest uint128).
*
* Counterpart to Solidity's `uint128` operator.
*
* Requirements:
*
* - input must fit into 128 bits
*
* _Available since v2.5._
*/
function toUint128(uint256 value) internal pure returns (uint128) {
require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits");
return uint128(value);
}
/**
* @dev Returns the downcasted uint120 from uint256, reverting on
* overflow (when the input is greater than largest uint120).
*
* Counterpart to Solidity's `uint120` operator.
*
* Requirements:
*
* - input must fit into 120 bits
*
* _Available since v4.7._
*/
function toUint120(uint256 value) internal pure returns (uint120) {
require(value <= type(uint120).max, "SafeCast: value doesn't fit in 120 bits");
return uint120(value);
}
/**
* @dev Returns the downcasted uint112 from uint256, reverting on
* overflow (when the input is greater than largest uint112).
*
* Counterpart to Solidity's `uint112` operator.
*
* Requirements:
*
* - input must fit into 112 bits
*
* _Available since v4.7._
*/
function toUint112(uint256 value) internal pure returns (uint112) {
require(value <= type(uint112).max, "SafeCast: value doesn't fit in 112 bits");
return uint112(value);
}
/**
* @dev Returns the downcasted uint104 from uint256, reverting on
* overflow (when the input is greater than largest uint104).
*
* Counterpart to Solidity's `uint104` operator.
*
* Requirements:
*
* - input must fit into 104 bits
*
* _Available since v4.7._
*/
function toUint104(uint256 value) internal pure returns (uint104) {
require(value <= type(uint104).max, "SafeCast: value doesn't fit in 104 bits");
return uint104(value);
}
/**
* @dev Returns the downcasted uint96 from uint256, reverting on
* overflow (when the input is greater than largest uint96).
*
* Counterpart to Solidity's `uint96` operator.
*
* Requirements:
*
* - input must fit into 96 bits
*
* _Available since v4.2._
*/
function toUint96(uint256 value) internal pure returns (uint96) {
require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits");
return uint96(value);
}
/**
* @dev Returns the downcasted uint88 from uint256, reverting on
* overflow (when the input is greater than largest uint88).
*
* Counterpart to Solidity's `uint88` operator.
*
* Requirements:
*
* - input must fit into 88 bits
*
* _Available since v4.7._
*/
function toUint88(uint256 value) internal pure returns (uint88) {
require(value <= type(uint88).max, "SafeCast: value doesn't fit in 88 bits");
return uint88(value);
}
/**
* @dev Returns the downcasted uint80 from uint256, reverting on
* overflow (when the input is greater than largest uint80).
*
* Counterpart to Solidity's `uint80` operator.
*
* Requirements:
*
* - input must fit into 80 bits
*
* _Available since v4.7._
*/
function toUint80(uint256 value) internal pure returns (uint80) {
require(value <= type(uint80).max, "SafeCast: value doesn't fit in 80 bits");
return uint80(value);
}
/**
* @dev Returns the downcasted uint72 from uint256, reverting on
* overflow (when the input is greater than largest uint72).
*
* Counterpart to Solidity's `uint72` operator.
*
* Requirements:
*
* - input must fit into 72 bits
*
* _Available since v4.7._
*/
function toUint72(uint256 value) internal pure returns (uint72) {
require(value <= type(uint72).max, "SafeCast: value doesn't fit in 72 bits");
return uint72(value);
}
/**
* @dev Returns the downcasted uint64 from uint256, reverting on
* overflow (when the input is greater than largest uint64).
*
* Counterpart to Solidity's `uint64` operator.
*
* Requirements:
*
* - input must fit into 64 bits
*
* _Available since v2.5._
*/
function toUint64(uint256 value) internal pure returns (uint64) {
require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits");
return uint64(value);
}
/**
* @dev Returns the downcasted uint56 from uint256, reverting on
* overflow (when the input is greater than largest uint56).
*
* Counterpart to Solidity's `uint56` operator.
*
* Requirements:
*
* - input must fit into 56 bits
*
* _Available since v4.7._
*/
function toUint56(uint256 value) internal pure returns (uint56) {
require(value <= type(uint56).max, "SafeCast: value doesn't fit in 56 bits");
return uint56(value);
}
/**
* @dev Returns the downcasted uint48 from uint256, reverting on
* overflow (when the input is greater than largest uint48).
*
* Counterpart to Solidity's `uint48` operator.
*
* Requirements:
*
* - input must fit into 48 bits
*
* _Available since v4.7._
*/
function toUint48(uint256 value) internal pure returns (uint48) {
require(value <= type(uint48).max, "SafeCast: value doesn't fit in 48 bits");
return uint48(value);
}
/**
* @dev Returns the downcasted uint40 from uint256, reverting on
* overflow (when the input is greater than largest uint40).
*
* Counterpart to Solidity's `uint40` operator.
*
* Requirements:
*
* - input must fit into 40 bits
*
* _Available since v4.7._
*/
function toUint40(uint256 value) internal pure returns (uint40) {
require(value <= type(uint40).max, "SafeCast: value doesn't fit in 40 bits");
return uint40(value);
}
/**
* @dev Returns the downcasted uint32 from uint256, reverting on
* overflow (when the input is greater than largest uint32).
*
* Counterpart to Solidity's `uint32` operator.
*
* Requirements:
*
* - input must fit into 32 bits
*
* _Available since v2.5._
*/
function toUint32(uint256 value) internal pure returns (uint32) {
require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits");
return uint32(value);
}
/**
* @dev Returns the downcasted uint24 from uint256, reverting on
* overflow (when the input is greater than largest uint24).
*
* Counterpart to Solidity's `uint24` operator.
*
* Requirements:
*
* - input must fit into 24 bits
*
* _Available since v4.7._
*/
function toUint24(uint256 value) internal pure returns (uint24) {
require(value <= type(uint24).max, "SafeCast: value doesn't fit in 24 bits");
return uint24(value);
}
/**
* @dev Returns the downcasted uint16 from uint256, reverting on
* overflow (when the input is greater than largest uint16).
*
* Counterpart to Solidity's `uint16` operator.
*
* Requirements:
*
* - input must fit into 16 bits
*
* _Available since v2.5._
*/
function toUint16(uint256 value) internal pure returns (uint16) {
require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits");
return uint16(value);
}
/**
* @dev Returns the downcasted uint8 from uint256, reverting on
* overflow (when the input is greater than largest uint8).
*
* Counterpart to Solidity's `uint8` operator.
*
* Requirements:
*
* - input must fit into 8 bits
*
* _Available since v2.5._
*/
function toUint8(uint256 value) internal pure returns (uint8) {
require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits");
return uint8(value);
}
/**
* @dev Converts a signed int256 into an unsigned uint256.
*
* Requirements:
*
* - input must be greater than or equal to 0.
*
* _Available since v3.0._
*/
function toUint256(int256 value) internal pure returns (uint256) {
require(value >= 0, "SafeCast: value must be positive");
return uint256(value);
}
/**
* @dev Returns the downcasted int248 from int256, reverting on
* overflow (when the input is less than smallest int248 or
* greater than largest int248).
*
* Counterpart to Solidity's `int248` operator.
*
* Requirements:
*
* - input must fit into 248 bits
*
* _Available since v4.7._
*/
function toInt248(int256 value) internal pure returns (int248 downcasted) {
downcasted = int248(value);
require(downcasted == value, "SafeCast: value doesn't fit in 248 bits");
}
/**
* @dev Returns the downcasted int240 from int256, reverting on
* overflow (when the input is less than smallest int240 or
* greater than largest int240).
*
* Counterpart to Solidity's `int240` operator.
*
* Requirements:
*
* - input must fit into 240 bits
*
* _Available since v4.7._
*/
function toInt240(int256 value) internal pure returns (int240 downcasted) {
downcasted = int240(value);
require(downcasted == value, "SafeCast: value doesn't fit in 240 bits");
}
/**
* @dev Returns the downcasted int232 from int256, reverting on
* overflow (when the input is less than smallest int232 or
* greater than largest int232).
*
* Counterpart to Solidity's `int232` operator.
*
* Requirements:
*
* - input must fit into 232 bits
*
* _Available since v4.7._
*/
function toInt232(int256 value) internal pure returns (int232 downcasted) {
downcasted = int232(value);
require(downcasted == value, "SafeCast: value doesn't fit in 232 bits");
}
/**
* @dev Returns the downcasted int224 from int256, reverting on
* overflow (when the input is less than smallest int224 or
* greater than largest int224).
*
* Counterpart to Solidity's `int224` operator.
*
* Requirements:
*
* - input must fit into 224 bits
*
* _Available since v4.7._
*/
function toInt224(int256 value) internal pure returns (int224 downcasted) {
downcasted = int224(value);
require(downcasted == value, "SafeCast: value doesn't fit in 224 bits");
}
/**
* @dev Returns the downcasted int216 from int256, reverting on
* overflow (when the input is less than smallest int216 or
* greater than largest int216).
*
* Counterpart to Solidity's `int216` operator.
*
* Requirements:
*
* - input must fit into 216 bits
*
* _Available since v4.7._
*/
function toInt216(int256 value) internal pure returns (int216 downcasted) {
downcasted = int216(value);
require(downcasted == value, "SafeCast: value doesn't fit in 216 bits");
}
/**
* @dev Returns the downcasted int208 from int256, reverting on
* overflow (when the input is less than smallest int208 or
* greater than largest int208).
*
* Counterpart to Solidity's `int208` operator.
*
* Requirements:
*
* - input must fit into 208 bits
*
* _Available since v4.7._
*/
function toInt208(int256 value) internal pure returns (int208 downcasted) {
downcasted = int208(value);
require(downcasted == value, "SafeCast: value doesn't fit in 208 bits");
}
/**
* @dev Returns the downcasted int200 from int256, reverting on
* overflow (when the input is less than smallest int200 or
* greater than largest int200).
*
* Counterpart to Solidity's `int200` operator.
*
* Requirements:
*
* - input must fit into 200 bits
*
* _Available since v4.7._
*/
function toInt200(int256 value) internal pure returns (int200 downcasted) {
downcasted = int200(value);
require(downcasted == value, "SafeCast: value doesn't fit in 200 bits");
}
/**
* @dev Returns the downcasted int192 from int256, reverting on
* overflow (when the input is less than smallest int192 or
* greater than largest int192).
*
* Counterpart to Solidity's `int192` operator.
*
* Requirements:
*
* - input must fit into 192 bits
*
* _Available since v4.7._
*/
function toInt192(int256 value) internal pure returns (int192 downcasted) {
downcasted = int192(value);
require(downcasted == value, "SafeCast: value doesn't fit in 192 bits");
}
/**
* @dev Returns the downcasted int184 from int256, reverting on
* overflow (when the input is less than smallest int184 or
* greater than largest int184).
*
* Counterpart to Solidity's `int184` operator.
*
* Requirements:
*
* - input must fit into 184 bits
*
* _Available since v4.7._
*/
function toInt184(int256 value) internal pure returns (int184 downcasted) {
downcasted = int184(value);
require(downcasted == value, "SafeCast: value doesn't fit in 184 bits");
}
/**
* @dev Returns the downcasted int176 from int256, reverting on
* overflow (when the input is less than smallest int176 or
* greater than largest int176).
*
* Counterpart to Solidity's `int176` operator.
*
* Requirements:
*
* - input must fit into 176 bits
*
* _Available since v4.7._
*/
function toInt176(int256 value) internal pure returns (int176 downcasted) {
downcasted = int176(value);
require(downcasted == value, "SafeCast: value doesn't fit in 176 bits");
}
/**
* @dev Returns the downcasted int168 from int256, reverting on
* overflow (when the input is less than smallest int168 or
* greater than largest int168).
*
* Counterpart to Solidity's `int168` operator.
*
* Requirements:
*
* - input must fit into 168 bits
*
* _Available since v4.7._
*/
function toInt168(int256 value) internal pure returns (int168 downcasted) {
downcasted = int168(value);
require(downcasted == value, "SafeCast: value doesn't fit in 168 bits");
}
/**
* @dev Returns the downcasted int160 from int256, reverting on
* overflow (when the input is less than smallest int160 or
* greater than largest int160).
*
* Counterpart to Solidity's `int160` operator.
*
* Requirements:
*
* - input must fit into 160 bits
*
* _Available since v4.7._
*/
function toInt160(int256 value) internal pure returns (int160 downcasted) {
downcasted = int160(value);
require(downcasted == value, "SafeCast: value doesn't fit in 160 bits");
}
/**
* @dev Returns the downcasted int152 from int256, reverting on
* overflow (when the input is less than smallest int152 or
* greater than largest int152).
*
* Counterpart to Solidity's `int152` operator.
*
* Requirements:
*
* - input must fit into 152 bits
*
* _Available since v4.7._
*/
function toInt152(int256 value) internal pure returns (int152 downcasted) {
downcasted = int152(value);
require(downcasted == value, "SafeCast: value doesn't fit in 152 bits");
}
/**
* @dev Returns the downcasted int144 from int256, reverting on
* overflow (when the input is less than smallest int144 or
* greater than largest int144).
*
* Counterpart to Solidity's `int144` operator.
*
* Requirements:
*
* - input must fit into 144 bits
*
* _Available since v4.7._
*/
function toInt144(int256 value) internal pure returns (int144 downcasted) {
downcasted = int144(value);
require(downcasted == value, "SafeCast: value doesn't fit in 144 bits");
}
/**
* @dev Returns the downcasted int136 from int256, reverting on
* overflow (when the input is less than smallest int136 or
* greater than largest int136).
*
* Counterpart to Solidity's `int136` operator.
*
* Requirements:
*
* - input must fit into 136 bits
*
* _Available since v4.7._
*/
function toInt136(int256 value) internal pure returns (int136 downcasted) {
downcasted = int136(value);
require(downcasted == value, "SafeCast: value doesn't fit in 136 bits");
}
/**
* @dev Returns the downcasted int128 from int256, reverting on
* overflow (when the input is less than smallest int128 or
* greater than largest int128).
*
* Counterpart to Solidity's `int128` operator.
*
* Requirements:
*
* - input must fit into 128 bits
*
* _Available since v3.1._
*/
function toInt128(int256 value) internal pure returns (int128 downcasted) {
downcasted = int128(value);
require(downcasted == value, "SafeCast: value doesn't fit in 128 bits");
}
/**
* @dev Returns the downcasted int120 from int256, reverting on
* overflow (when the input is less than smallest int120 or
* greater than largest int120).
*
* Counterpart to Solidity's `int120` operator.
*
* Requirements:
*
* - input must fit into 120 bits
*
* _Available since v4.7._
*/
function toInt120(int256 value) internal pure returns (int120 downcasted) {
downcasted = int120(value);
require(downcasted == value, "SafeCast: value doesn't fit in 120 bits");
}
/**
* @dev Returns the downcasted int112 from int256, reverting on
* overflow (when the input is less than smallest int112 or
* greater than largest int112).
*
* Counterpart to Solidity's `int112` operator.
*
* Requirements:
*
* - input must fit into 112 bits
*
* _Available since v4.7._
*/
function toInt112(int256 value) internal pure returns (int112 downcasted) {
downcasted = int112(value);
require(downcasted == value, "SafeCast: value doesn't fit in 112 bits");
}
/**
* @dev Returns the downcasted int104 from int256, reverting on
* overflow (when the input is less than smallest int104 or
* greater than largest int104).
*
* Counterpart to Solidity's `int104` operator.
*
* Requirements:
*
* - input must fit into 104 bits
*
* _Available since v4.7._
*/
function toInt104(int256 value) internal pure returns (int104 downcasted) {
downcasted = int104(value);
require(downcasted == value, "SafeCast: value doesn't fit in 104 bits");
}
/**
* @dev Returns the downcasted int96 from int256, reverting on
* overflow (when the input is less than smallest int96 or
* greater than largest int96).
*
* Counterpart to Solidity's `int96` operator.
*
* Requirements:
*
* - input must fit into 96 bits
*
* _Available since v4.7._
*/
function toInt96(int256 value) internal pure returns (int96 downcasted) {
downcasted = int96(value);
require(downcasted == value, "SafeCast: value doesn't fit in 96 bits");
}
/**
* @dev Returns the downcasted int88 from int256, reverting on
* overflow (when the input is less than smallest int88 or
* greater than largest int88).
*
* Counterpart to Solidity's `int88` operator.
*
* Requirements:
*
* - input must fit into 88 bits
*
* _Available since v4.7._
*/
function toInt88(int256 value) internal pure returns (int88 downcasted) {
downcasted = int88(value);
require(downcasted == value, "SafeCast: value doesn't fit in 88 bits");
}
/**
* @dev Returns the downcasted int80 from int256, reverting on
* overflow (when the input is less than smallest int80 or
* greater than largest int80).
*
* Counterpart to Solidity's `int80` operator.
*
* Requirements:
*
* - input must fit into 80 bits
*
* _Available since v4.7._
*/
function toInt80(int256 value) internal pure returns (int80 downcasted) {
downcasted = int80(value);
require(downcasted == value, "SafeCast: value doesn't fit in 80 bits");
}
/**
* @dev Returns the downcasted int72 from int256, reverting on
* overflow (when the input is less than smallest int72 or
* greater than largest int72).
*
* Counterpart to Solidity's `int72` operator.
*
* Requirements:
*
* - input must fit into 72 bits
*
* _Available since v4.7._
*/
function toInt72(int256 value) internal pure returns (int72 downcasted) {
downcasted = int72(value);
require(downcasted == value, "SafeCast: value doesn't fit in 72 bits");
}
/**
* @dev Returns the downcasted int64 from int256, reverting on
* overflow (when the input is less than smallest int64 or
* greater than largest int64).
*
* Counterpart to Solidity's `int64` operator.
*
* Requirements:
*
* - input must fit into 64 bits
*
* _Available since v3.1._
*/
function toInt64(int256 value) internal pure returns (int64 downcasted) {
downcasted = int64(value);
require(downcasted == value, "SafeCast: value doesn't fit in 64 bits");
}
/**
* @dev Returns the downcasted int56 from int256, reverting on
* overflow (when the input is less than smallest int56 or
* greater than largest int56).
*
* Counterpart to Solidity's `int56` operator.
*
* Requirements:
*
* - input must fit into 56 bits
*
* _Available since v4.7._
*/
function toInt56(int256 value) internal pure returns (int56 downcasted) {
downcasted = int56(value);
require(downcasted == value, "SafeCast: value doesn't fit in 56 bits");
}
/**
* @dev Returns the downcasted int48 from int256, reverting on
* overflow (when the input is less than smallest int48 or
* greater than largest int48).
*
* Counterpart to Solidity's `int48` operator.
*
* Requirements:
*
* - input must fit into 48 bits
*
* _Available since v4.7._
*/
function toInt48(int256 value) internal pure returns (int48 downcasted) {
downcasted = int48(value);
require(downcasted == value, "SafeCast: value doesn't fit in 48 bits");
}
/**
* @dev Returns the downcasted int40 from int256, reverting on
* overflow (when the input is less than smallest int40 or
* greater than largest int40).
*
* Counterpart to Solidity's `int40` operator.
*
* Requirements:
*
* - input must fit into 40 bits
*
* _Available since v4.7._
*/
function toInt40(int256 value) internal pure returns (int40 downcasted) {
downcasted = int40(value);
require(downcasted == value, "SafeCast: value doesn't fit in 40 bits");
}
/**
* @dev Returns the downcasted int32 from int256, reverting on
* overflow (when the input is less than smallest int32 or
* greater than largest int32).
*
* Counterpart to Solidity's `int32` operator.
*
* Requirements:
*
* - input must fit into 32 bits
*
* _Available since v3.1._
*/
function toInt32(int256 value) internal pure returns (int32 downcasted) {
downcasted = int32(value);
require(downcasted == value, "SafeCast: value doesn't fit in 32 bits");
}
/**
* @dev Returns the downcasted int24 from int256, reverting on
* overflow (when the input is less than smallest int24 or
* greater than largest int24).
*
* Counterpart to Solidity's `int24` operator.
*
* Requirements:
*
* - input must fit into 24 bits
*
* _Available since v4.7._
*/
function toInt24(int256 value) internal pure returns (int24 downcasted) {
downcasted = int24(value);
require(downcasted == value, "SafeCast: value doesn't fit in 24 bits");
}
/**
* @dev Returns the downcasted int16 from int256, reverting on
* overflow (when the input is less than smallest int16 or
* greater than largest int16).
*
* Counterpart to Solidity's `int16` operator.
*
* Requirements:
*
* - input must fit into 16 bits
*
* _Available since v3.1._
*/
function toInt16(int256 value) internal pure returns (int16 downcasted) {
downcasted = int16(value);
require(downcasted == value, "SafeCast: value doesn't fit in 16 bits");
}
/**
* @dev Returns the downcasted int8 from int256, reverting on
* overflow (when the input is less than smallest int8 or
* greater than largest int8).
*
* Counterpart to Solidity's `int8` operator.
*
* Requirements:
*
* - input must fit into 8 bits
*
* _Available since v3.1._
*/
function toInt8(int256 value) internal pure returns (int8 downcasted) {
downcasted = int8(value);
require(downcasted == value, "SafeCast: value doesn't fit in 8 bits");
}
/**
* @dev Converts an unsigned uint256 into a signed int256.
*
* Requirements:
*
* - input must be less than or equal to maxInt256.
*
* _Available since v3.0._
*/
function toInt256(uint256 value) internal pure returns (int256) {
// Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive
require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256");
return int256(value);
}
}// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity ^0.8.0;
interface IFactory {
function createPair(address tokenA, address tokenB)
external
returns (address pair);
}// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity ^0.8.0;
interface IRouter {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
}// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(
token,
abi.encodeWithSelector(token.transfer.selector, to, value)
);
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(
token,
abi.encodeWithSelector(token.transferFrom.selector, from, to, value)
);
}
function _callOptionalReturn(IERC20 token, bytes memory data) private {
bytes memory returndata = address(token).functionCall(
data,
"SafeERC20: low-level call failed"
);
if (returndata.length > 0) {
require(
abi.decode(returndata, (bool)),
"SafeERC20: ERC20 operation did not succeed"
);
}
}
function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(
token,
abi.encodeWithSelector(token.approve.selector, spender, value)
);
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_router","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address","name":"_universalRouter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"AntiMevStatusUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[],"name":"RemovedLimits","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"bool","name":"_isExempt","type":"bool"}],"name":"SetExemptFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"bool","name":"_isExempt","type":"bool"}],"name":"SetExemptFromLimits","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"SwapTokensAtAmtUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"deadBlocks","type":"uint256"}],"name":"TradingEnabled","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":"uint256","name":"newAmt","type":"uint256"}],"name":"UpdatedBuyTax","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newAmt","type":"uint256"}],"name":"UpdatedSellTax","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMax","type":"uint256"}],"name":"UpdatedTransactionLimit","type":"event"},{"inputs":[],"name":"FEE_DIVISOR","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"wallets","type":"address[]"},{"internalType":"uint256[]","name":"amountsInWei","type":"uint256[]"}],"name":"airdropToWallets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"antiMevEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTax","outputs":[{"internalType":"uint64","name":"totalTax","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deadBlocks","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":"dynamicTaxOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"exemptFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"exemptFromLimits","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isPair","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launchBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limited","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeDynamicTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"removeLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"}],"name":"rescueTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellTax","outputs":[{"internalType":"uint64","name":"totalTax","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_isExempt","type":"bool"}],"name":"setExemptFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_isExempt","type":"bool"}],"name":"setExemptFromLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapTokensAtAmt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForTax","outputs":[{"internalType":"uint80","name":"tokensForTreasury","type":"uint80"},{"internalType":"bool","name":"gasSaver","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"txLimits","outputs":[{"internalType":"uint128","name":"transactionLimit","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_treasuryTax","type":"uint64"}],"name":"updateBuyTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"updateMevBlockerEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_treasuryTax","type":"uint64"}],"name":"updateSellTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"updateSwapTokensAmt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"newNumInTokens","type":"uint128"}],"name":"updateTransactionLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"updatetreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
60e0604052600f805461ffff191661010117905534801561001f57600080fd5b506040516134e93803806134e983398101604081905261003e9161078a565b60408051808201825260078082526637b731b430b4b760c91b602080840182905284518086019095529184529083015290600361007b838261087e565b506004610088828261087e565b5050506100a161009c6104be60201b60201c565b6104c2565b6a52b7d2dcc80cd2e4000000600060646100bc83600a610953565b6100c69190610970565b905060006100d48284610992565b90506100f16100eb6005546001600160a01b031690565b83610514565b6100fb8782610514565b6013805460ff191660011790556001600160a01b03861660a05261013e61271061012460025490565b61012f906014610953565b6101399190610970565b6105d8565b601180546001600160801b0319166001600160801b0392909216919091179055620186a061016b60025490565b610176906014610953565b6101809190610970565b601055600a80546001600160a01b0319166001600160a01b0387811691909117909155600b80546117706001600160401b03199182168117909255600c80549091169091179055600d80546a010000000000000000000060ff60501b1990911617905560a051604080516315ab88c960e31b81529051919092169163ad5c46489160048281019260209291908290030181865afa158015610225573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061024991906109a5565b6001600160a01b031660c0816001600160a01b03168152505060a0516001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156102a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102c691906109a5565b60c0516040516364e329cb60e11b81523060048201526001600160a01b03918216602482015291169063c9c65396906044016020604051808303816000875af1158015610317573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061033b91906109a5565b6001600160a01b0316608081905260009081526009602090815260408083208054600160ff199182168117909255600793849052918420805490921681179091559161038f6005546001600160a01b031690565b6001600160a01b03908116825260208083019390935260409182016000908120805495151560ff19968716179055908b1681526007909252808220805484166001908117909155308352908220805490931681179092556006906103fb6005546001600160a01b031690565b6001600160a01b03908116825260208083019390935260409182016000908120805495151560ff199687161790558b82168152600690935281832080548516600190811790915530808552838520805487168317905560a05180841686528486208054881684179055928a1685529290932080549094169092179092556104859190600019610645565b6104923085600019610645565b6104b26104a76005546001600160a01b031690565b60a051600254610645565b505050505050506109da565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821661056f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b806002600082825461058191906109c7565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b60006001600160801b038211156106415760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20316044820152663238206269747360c81b6064820152608401610566565b5090565b6001600160a01b0383166106a75760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610566565b6001600160a01b0382166107085760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610566565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b505050565b80516001600160a01b038116811461078557600080fd5b919050565b600080600080608085870312156107a057600080fd5b6107a98561076e565b93506107b76020860161076e565b92506107c56040860161076e565b91506107d36060860161076e565b905092959194509250565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168061080857607f821691505b60208210810361082857634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610769576000816000526020600020601f850160051c810160208610156108575750805b601f850160051c820191505b8181101561087657828155600101610863565b505050505050565b81516001600160401b03811115610897576108976107de565b6108ab816108a584546107f4565b8461082e565b602080601f8311600181146108e057600084156108c85750858301515b600019600386901b1c1916600185901b178555610876565b600085815260208120601f198616915b8281101561090f578886015182559484019460019091019084016108f0565b508582101561092d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761096a5761096a61093d565b92915050565b60008261098d57634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561096a5761096a61093d565b6000602082840312156109b757600080fd5b6109c08261076e565b9392505050565b8082018082111561096a5761096a61093d565b60805160a05160c051612acb610a1e6000396000818161072601526122a10152600081816108ae01526122f80152600081816103f101526112cd0152612acb6000f3fe6080604052600436106102815760003560e01c806380274a111161014f578063bedafd01116100c1578063dd62ed3e1161007a578063dd62ed3e146107f4578063e5e31b1314610814578063f270fde414610844578063f2fde38b1461087c578063f887ea401461089c578063fabb0b4f146108d057600080fd5b8063bedafd0114610748578063c78d0fa014610768578063cc1776d31461077e578063ccad03e11461079e578063d00efb2f146107be578063d8ae5be9146107d457600080fd5b806395d89b411161011357806395d89b41146106945780639e7261af146106a95780639e93ad8e146106be578063a457c2d7146106d4578063a9059cbb146106f4578063ad5c46481461071457600080fd5b806380274a11146105f2578063860a32ec146106125780638a8c523c146106315780638d3e6e40146106465780638da5cb5b1461067657600080fd5b80634f7041a5116101f3578063627e9d8e116101ac578063627e9d8e1461050d57806367ddf8e2146105275780636d7adcad1461054757806370a0823114610592578063715018a6146105c8578063751039fc146105dd57600080fd5b80634f7041a51461042b57806353371be0146104635780635431c94e1461047d578063597589941461049d5780635a90a49e146104bd57806361d027b3146104ed57600080fd5b806323b872dd1161024557806323b872dd14610349578063313ce56714610369578063362919a71461038557806336e18e191461039f57806339509351146103bf578063452ed4f1146103df57600080fd5b806306fdde031461028d578063095ea7b3146102b857806318160ddd146102e857806321045918146103075780632307b4411461032957600080fd5b3661028857005b600080fd5b34801561029957600080fd5b506102a26108e6565b6040516102af919061250b565b60405180910390f35b3480156102c457600080fd5b506102d86102d336600461255a565b610978565b60405190151581526020016102af565b3480156102f457600080fd5b506002545b6040519081526020016102af565b34801561031357600080fd5b50610327610322366004612584565b610992565b005b34801561033557600080fd5b506103276103443660046125e8565b610af7565b34801561035557600080fd5b506102d8610364366004612653565b610baa565b34801561037557600080fd5b50604051601281526020016102af565b34801561039157600080fd5b506013546102d89060ff1681565b3480156103ab57600080fd5b506103276103ba36600461268f565b610bce565b3480156103cb57600080fd5b506102d86103da36600461255a565b610cc5565b3480156103eb57600080fd5b506104137f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016102af565b34801561043757600080fd5b50600b5461044b906001600160401b031681565b6040516001600160401b0390911681526020016102af565b34801561046f57600080fd5b506008546102d89060ff1681565b34801561048957600080fd5b506103276104983660046126bf565b610ce7565b3480156104a957600080fd5b506103276104b8366004612700565b610dc2565b3480156104c957600080fd5b506102d86104d836600461271d565b60066020526000908152604090205460ff1681565b3480156104f957600080fd5b50600a54610413906001600160a01b031681565b34801561051957600080fd5b50600f546102d89060ff1681565b34801561053357600080fd5b5061032761054236600461271d565b610e0b565b34801561055357600080fd5b50600d54610573906001600160501b03811690600160501b900460ff1682565b604080516001600160501b0390931683529015156020830152016102af565b34801561059e57600080fd5b506102f96105ad36600461271d565b6001600160a01b031660009081526020819052604090205490565b3480156105d457600080fd5b50610327610e7a565b3480156105e957600080fd5b50610327610e8e565b3480156105fe57600080fd5b5061032761060d366004612738565b610f08565b34801561061e57600080fd5b50600f546102d890610100900460ff1681565b34801561063d57600080fd5b50610327610fce565b34801561065257600080fd5b506102d861066136600461271d565b60076020526000908152604090205460ff1681565b34801561068257600080fd5b506005546001600160a01b0316610413565b3480156106a057600080fd5b506102a2611077565b3480156106b557600080fd5b50610327611086565b3480156106ca57600080fd5b5061044b61271081565b3480156106e057600080fd5b506102d86106ef36600461255a565b6110e7565b34801561070057600080fd5b506102d861070f36600461255a565b611162565b34801561072057600080fd5b506104137f000000000000000000000000000000000000000000000000000000000000000081565b34801561075457600080fd5b50610327610763366004612761565b611170565b34801561077457600080fd5b506102f960105481565b34801561078a57600080fd5b50600c5461044b906001600160401b031681565b3480156107aa57600080fd5b506103276107b9366004612761565b611279565b3480156107ca57600080fd5b506102f960125481565b3480156107e057600080fd5b506103276107ef366004612738565b61139d565b34801561080057600080fd5b506102f961080f3660046126bf565b611463565b34801561082057600080fd5b506102d861082f36600461271d565b60096020526000908152604090205460ff1681565b34801561085057600080fd5b50601154610864906001600160801b031681565b6040516001600160801b0390911681526020016102af565b34801561088857600080fd5b5061032761089736600461271d565b61148e565b3480156108a857600080fd5b506104137f000000000000000000000000000000000000000000000000000000000000000081565b3480156108dc57600080fd5b506102f960145481565b6060600380546108f590612798565b80601f016020809104026020016040519081016040528092919081815260200182805461092190612798565b801561096e5780601f106109435761010080835404028352916020019161096e565b820191906000526020600020905b81548152906001019060200180831161095157829003601f168201915b5050505050905090565b600033610986818585611551565b60019150505b92915050565b61099a611675565b620186a06109a760025490565b6109b29060016127e8565b6109bc9190612815565b811015610a2e5760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527410181718181892903a37ba30b61039bab838363c9760591b60648201526084015b60405180910390fd5b6103e8610a3a60025490565b610a459060056127e8565b610a4f9190612815565b811115610abb5760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171a92903a37ba30b61039bab838363c9760611b6064820152608401610a25565b60108190556040518181527f6a6c1edef1a73ae35c04159eb9ed9c4a4c272a0733e9275bee112df41c1c94cc906020015b60405180910390a150565b610aff611675565b828114610b475760405162461bcd60e51b81526020600482015260166024820152750c2e4e4c2f2e640d8cadccee8d040dad2e6dac2e8c6d60531b6044820152606401610a25565b60005b83811015610ba357610b9b33868684818110610b6857610b68612829565b9050602002016020810190610b7d919061271d565b858585818110610b8f57610b8f612829565b905060200201356116cf565b600101610b4a565b5050505050565b600033610bb8858285611875565b610bc38585856118e9565b506001949350505050565b610bd6611675565b610be26012600a612923565b6103e8610bee60025490565b610bf99060016127e8565b610c039190612815565b610c0d9190612815565b816001600160801b03161015610c4f5760405162461bcd60e51b8152602060048201526007602482015266546f6f206c6f7760c81b6044820152606401610a25565b610c76610c5e6012600a612923565b610c71906001600160801b0384166127e8565b6119a4565b601180546001600160801b0319166001600160801b039290921691821790556040519081527f6710da7d4acedae09cb83751ae24c150719ef67dcbc1e02049f171d13c6b44e690602001610aec565b600033610986818585610cd88383611463565b610ce29190612932565b611551565b610cef611675565b6001600160a01b038216610d455760405162461bcd60e51b815260206004820152601a60248201527f5f746f6b656e20616464726573732063616e6e6f7420626520300000000000006044820152606401610a25565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610d8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db09190612945565b9050610dbd838383611a11565b505050565b610dca611675565b600f805460ff19168215159081179091556040519081527f44e2eecc0c4d962f2b19f8abc42e4f41630553952e7296622f4f2efc8fbc3e6e90602001610aec565b610e13611675565b6001600160a01b038116610e585760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b6044820152606401610a25565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b610e82611675565b610e8c6000611a63565b565b610e96611675565b600f805461ff0019169055604080516020810190915260008152600254610ebc816119a4565b6001600160801b0316808352601180546001600160801b03191690911790556040517fa4ffae85e880608d5d4365c2b682786545d136145537788e7e0940dff9f0b98c90600090a15050565b610f10611675565b6103e8816001600160401b03161115610f605760405162461bcd60e51b81526020600482015260126024820152714b656570207461782062656c6f772031302560701b6044820152606401610a25565b60408051602080820183526001600160401b038416808352925192835290917fa02824f65350567bc405e202b741e7ca6274004a9feeb44149df72b8bd599c97910160405180910390a151600c805467ffffffffffffffff19166001600160401b0390921691909117905550565b610fd6611675565b60085460ff16156110295760405162461bcd60e51b815260206004820152601760248201527f54726164696e6720616c726561647920656e61626c65640000000000000000006044820152606401610a25565b6008805460ff191660019081179091554360125560148190556040519081527fb3da2db3dfc3778f99852546c6e9ab39ec253f9de7b0847afec61bd27878e9239060200160405180910390a1565b6060600480546108f590612798565b61108e611675565b60135460ff166110ce5760405162461bcd60e51b815260206004820152600b60248201526a20b63932b0b23c9037b33360a91b6044820152606401610a25565b6110db6000612710611ab5565b6013805460ff19169055565b600033816110f58286611463565b9050838110156111555760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610a25565b610bc38286868403611551565b6000336109868185856118e9565b611178611675565b6001600160a01b0382166111bd5760405162461bcd60e51b815260206004820152600c60248201526b5a65726f204164647265737360a01b6044820152606401610a25565b306001600160a01b038316036112155760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420756e6578656d707420636f6e747261637400000000000000006044820152606401610a25565b6001600160a01b038216600081815260066020908152604091829020805460ff19168515159081179091558251938452908301527f998cce27cbf44405c67eb636a634d5e2f2e6ff248b3d71fbbbb022f3c4c6dd2d91015b60405180910390a15050565b611281611675565b6001600160a01b0382166112c65760405162461bcd60e51b815260206004820152600c60248201526b5a65726f204164647265737360a01b6044820152606401610a25565b80611341577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316036113415760405162461bcd60e51b815260206004820152601260248201527121b0b73737ba103932b6b7bb32903830b4b960711b6044820152606401610a25565b6001600160a01b038216600081815260076020908152604091829020805460ff19168515159081179091558251938452908301527f8f9f40630a1d139e6cf69b4f447ca47a36f10a017524efaa38252e516fa227ce910161126d565b6113a5611675565b6103e8816001600160401b031611156113f55760405162461bcd60e51b81526020600482015260126024820152714b656570207461782062656c6f772031302560701b6044820152606401610a25565b60408051602080820183526001600160401b038416808352925192835290917f5380a61520019ce8270d583f62f1b2b9f4f4372e1acaaf708f4865cecece0508910160405180910390a151600b805467ffffffffffffffff19166001600160401b0390921691909117905550565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b611496611675565b61149f81611a63565b6001600160a01b03811660008181526007602090815260408083208054600160ff1991821681179092556006845293829020805490941681179093558051938452908301919091527f8f9f40630a1d139e6cf69b4f447ca47a36f10a017524efaa38252e516fa227ce910160405180910390a1604080516001600160a01b0383168152600160208201527f998cce27cbf44405c67eb636a634d5e2f2e6ff248b3d71fbbbb022f3c4c6dd2d9101610aec565b6001600160a01b0383166115b35760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a25565b6001600160a01b0382166116145760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a25565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b03163314610e8c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a25565b6001600160a01b0383166117335760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610a25565b6001600160a01b0382166117955760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610a25565b6001600160a01b0383166000908152602081905260409020548181101561180d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610a25565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35b50505050565b60006118818484611463565b9050600019811461186f57818110156118dc5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610a25565b61186f8484848403611551565b6001600160a01b03831660009081526006602052604090205460ff1615801561192b57506001600160a01b03821660009081526006602052604090205460ff16155b156119995760085460ff166119775760405162461bcd60e51b815260206004820152601260248201527154726164696e67206e6f742061637469766560701b6044820152606401610a25565b611982838383611b62565b61198c908261295e565b9050611999838383611d58565b610dbd8383836116cf565b60006001600160801b03821115611a0d5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20316044820152663238206269747360c81b6064820152608401610a25565b5090565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610dbd908490611f41565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408051602081019091526001600160401b038316808252600c805467ffffffffffffffff199081168317909155600b805490911690911790556001600160801b03821615610dbd576040805160208101909152600081526000611b3c612710856001600160801b0316611b2860025490565b611b3291906127e8565b610c719190612815565b6001600160801b03169182905250601180546001600160801b0319169091179055505050565b60105430600090815260208190526040812054909111158015611b9e57506001600160a01b03841660009081526009602052604090205460ff16155b15611bab57611bab612013565b60135460ff1615611bbe57611bbe612136565b604080516020808201835260008083526001600160a01b038716815260099091529182205460ff1615611c0a57506040805160208101909152600c546001600160401b03168152611c46565b6001600160a01b03861660009081526009602052604090205460ff1615611c4657506040805160208101909152600b546001600160401b031681525b80516001600160401b031615611d465760408051808201909152600d546001600160501b0381168252600160501b900460ff16151560208201528151611c9d9061271090611b32906001600160401b0316886127e8565b8251909350611ce190633b9aca00906001600160401b0316611cbf8187612971565b611cc9919061299c565b611cd3919061299c565b6001600160801b03166121cb565b81518290611cf09083906129c2565b6001600160501b039081169091528251600d805460208601511515600160501b026affffffffffffffffffffff19909116929093169190911791909117905550611d4487306001600160801b0386166116cf565b505b506001600160801b0316949350505050565b600f54610100900460ff1615611e9c5760408051602080820183526011546001600160801b031682526001600160a01b03861660009081526009909152919091205460ff168015611dc257506001600160a01b03831660009081526007602052604090205460ff16155b15611e105780516001600160801b0316821115611e0b5760405162461bcd60e51b815260206004820152600760248201526626b0bc102a3c3760c91b6044820152606401610a25565b611e9a565b6001600160a01b03831660009081526009602052604090205460ff168015611e5157506001600160a01b03841660009081526007602052604090205460ff16155b15611e9a5780516001600160801b0316821115611e9a5760405162461bcd60e51b815260206004820152600760248201526626b0bc102a3c3760c91b6044820152606401610a25565b505b600f5460ff1615610dbd576001600160a01b03821660009081526009602052604090205460ff1615611f1a576001600160a01b0383166000908152600e60205260409020544311610dbd5760405162461bcd60e51b815260206004820152600860248201526720b73a349026a2ab60c11b6044820152606401610a25565b506001600160a01b03166000908152600e6020526040808220439081905532835291205550565b6000611f96826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166122339092919063ffffffff16565b805190915015610dbd5780806020019051810190611fb491906129e9565b610dbd5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610a25565b3060009081526020819052604081205460408051808201909152600d546001600160501b038116808352600160501b90910460ff16151560208301529192509082158061205e575080155b1561206857505050565b6010546120769060146127e8565b83111561208e5760105461208b9060146127e8565b92505b82156121065761209d8361224a565b476000811561210357600a546040516001600160a01b03909116906152089084906000818181858888f193505050503d80600081146120f8576040519150601f19603f3d011682016040523d82523d6000602084013e6120fd565b606091505b50909150505b50505b5060008152600d80546020909201511515600160501b026affffffffffffffffffffff1990921691909117905550565b600060125443612146919061295e565b905060145481116121615761215e6117706014611ab5565b50565b600060145482612171919061295e565b90506002811161218c57612188610fa06014611ab5565b5050565b60028111801561219e5750610e108111155b156121af5761218860006032611ab5565b6121bc6000612710611ab5565b600f805461ff00191690555050565b60006001600160501b03821115611a0d5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203860448201526530206269747360d01b6064820152608401610a25565b6060612242848460008561236e565b949350505050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061227f5761227f612829565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000000000000000000000000000000000000000000000816001815181106122d3576122d3612829565b6001600160a01b03928316602091820292909201015260405163791ac94760e01b81527f00000000000000000000000000000000000000000000000000000000000000009091169063791ac94790612338908590600090869030904290600401612a06565b600060405180830381600087803b15801561235257600080fd5b505af1158015612366573d6000803e3d6000fd5b505050505050565b6060824710156123cf5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610a25565b600080866001600160a01b031685876040516123eb9190612a79565b60006040518083038185875af1925050503d8060008114612428576040519150601f19603f3d011682016040523d82523d6000602084013e61242d565b606091505b509150915061243e87838387612449565b979650505050505050565b606083156124b85782516000036124b1576001600160a01b0385163b6124b15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a25565b5081612242565b61224283838151156124cd5781518083602001fd5b8060405162461bcd60e51b8152600401610a25919061250b565b60005b838110156125025781810151838201526020016124ea565b50506000910152565b602081526000825180602084015261252a8160408501602087016124e7565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461255557600080fd5b919050565b6000806040838503121561256d57600080fd5b6125768361253e565b946020939093013593505050565b60006020828403121561259657600080fd5b5035919050565b60008083601f8401126125af57600080fd5b5081356001600160401b038111156125c657600080fd5b6020830191508360208260051b85010111156125e157600080fd5b9250929050565b600080600080604085870312156125fe57600080fd5b84356001600160401b038082111561261557600080fd5b6126218883890161259d565b9096509450602087013591508082111561263a57600080fd5b506126478782880161259d565b95989497509550505050565b60008060006060848603121561266857600080fd5b6126718461253e565b925061267f6020850161253e565b9150604084013590509250925092565b6000602082840312156126a157600080fd5b81356001600160801b03811681146126b857600080fd5b9392505050565b600080604083850312156126d257600080fd5b6126db8361253e565b91506126e96020840161253e565b90509250929050565b801515811461215e57600080fd5b60006020828403121561271257600080fd5b81356126b8816126f2565b60006020828403121561272f57600080fd5b6126b88261253e565b60006020828403121561274a57600080fd5b81356001600160401b03811681146126b857600080fd5b6000806040838503121561277457600080fd5b61277d8361253e565b9150602083013561278d816126f2565b809150509250929050565b600181811c908216806127ac57607f821691505b6020821081036127cc57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761098c5761098c6127d2565b634e487b7160e01b600052601260045260246000fd5b600082612824576128246127ff565b500490565b634e487b7160e01b600052603260045260246000fd5b600181815b8085111561287a578160001904821115612860576128606127d2565b8085161561286d57918102915b93841c9390800290612844565b509250929050565b6000826128915750600161098c565b8161289e5750600061098c565b81600181146128b457600281146128be576128da565b600191505061098c565b60ff8411156128cf576128cf6127d2565b50506001821b61098c565b5060208310610133831016604e8410600b84101617156128fd575081810a61098c565b612907838361283f565b806000190482111561291b5761291b6127d2565b029392505050565b60006126b860ff841683612882565b8082018082111561098c5761098c6127d2565b60006020828403121561295757600080fd5b5051919050565b8181038181111561098c5761098c6127d2565b6001600160801b03818116838216028082169190828114612994576129946127d2565b505092915050565b60006001600160801b03808416806129b6576129b66127ff565b92169190910492915050565b6001600160501b038181168382160190808211156129e2576129e26127d2565b5092915050565b6000602082840312156129fb57600080fd5b81516126b8816126f2565b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b81811015612a585784516001600160a01b031683529383019391830191600101612a33565b50506001600160a01b03969096166060850152505050608001529392505050565b60008251612a8b8184602087016124e7565b919091019291505056fea26469706673582212207056de7e80579d64edbec51565df2034aeb6481cbcd8bfd283040b8f25562e1564736f6c634300081900330000000000000000000000003cdf85fea14129a8097114293c05b783038d652b0000000000000000000000004752ba5dbc23f44d87826276bf6fd6b1c372ad24000000000000000000000000910ee27c0580a25ad31e1447b1d8e17e307075f30000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad
Deployed Bytecode
0x6080604052600436106102815760003560e01c806380274a111161014f578063bedafd01116100c1578063dd62ed3e1161007a578063dd62ed3e146107f4578063e5e31b1314610814578063f270fde414610844578063f2fde38b1461087c578063f887ea401461089c578063fabb0b4f146108d057600080fd5b8063bedafd0114610748578063c78d0fa014610768578063cc1776d31461077e578063ccad03e11461079e578063d00efb2f146107be578063d8ae5be9146107d457600080fd5b806395d89b411161011357806395d89b41146106945780639e7261af146106a95780639e93ad8e146106be578063a457c2d7146106d4578063a9059cbb146106f4578063ad5c46481461071457600080fd5b806380274a11146105f2578063860a32ec146106125780638a8c523c146106315780638d3e6e40146106465780638da5cb5b1461067657600080fd5b80634f7041a5116101f3578063627e9d8e116101ac578063627e9d8e1461050d57806367ddf8e2146105275780636d7adcad1461054757806370a0823114610592578063715018a6146105c8578063751039fc146105dd57600080fd5b80634f7041a51461042b57806353371be0146104635780635431c94e1461047d578063597589941461049d5780635a90a49e146104bd57806361d027b3146104ed57600080fd5b806323b872dd1161024557806323b872dd14610349578063313ce56714610369578063362919a71461038557806336e18e191461039f57806339509351146103bf578063452ed4f1146103df57600080fd5b806306fdde031461028d578063095ea7b3146102b857806318160ddd146102e857806321045918146103075780632307b4411461032957600080fd5b3661028857005b600080fd5b34801561029957600080fd5b506102a26108e6565b6040516102af919061250b565b60405180910390f35b3480156102c457600080fd5b506102d86102d336600461255a565b610978565b60405190151581526020016102af565b3480156102f457600080fd5b506002545b6040519081526020016102af565b34801561031357600080fd5b50610327610322366004612584565b610992565b005b34801561033557600080fd5b506103276103443660046125e8565b610af7565b34801561035557600080fd5b506102d8610364366004612653565b610baa565b34801561037557600080fd5b50604051601281526020016102af565b34801561039157600080fd5b506013546102d89060ff1681565b3480156103ab57600080fd5b506103276103ba36600461268f565b610bce565b3480156103cb57600080fd5b506102d86103da36600461255a565b610cc5565b3480156103eb57600080fd5b506104137f000000000000000000000000a4e028d28930f1ef1ae8acddb1a53b231a51896581565b6040516001600160a01b0390911681526020016102af565b34801561043757600080fd5b50600b5461044b906001600160401b031681565b6040516001600160401b0390911681526020016102af565b34801561046f57600080fd5b506008546102d89060ff1681565b34801561048957600080fd5b506103276104983660046126bf565b610ce7565b3480156104a957600080fd5b506103276104b8366004612700565b610dc2565b3480156104c957600080fd5b506102d86104d836600461271d565b60066020526000908152604090205460ff1681565b3480156104f957600080fd5b50600a54610413906001600160a01b031681565b34801561051957600080fd5b50600f546102d89060ff1681565b34801561053357600080fd5b5061032761054236600461271d565b610e0b565b34801561055357600080fd5b50600d54610573906001600160501b03811690600160501b900460ff1682565b604080516001600160501b0390931683529015156020830152016102af565b34801561059e57600080fd5b506102f96105ad36600461271d565b6001600160a01b031660009081526020819052604090205490565b3480156105d457600080fd5b50610327610e7a565b3480156105e957600080fd5b50610327610e8e565b3480156105fe57600080fd5b5061032761060d366004612738565b610f08565b34801561061e57600080fd5b50600f546102d890610100900460ff1681565b34801561063d57600080fd5b50610327610fce565b34801561065257600080fd5b506102d861066136600461271d565b60076020526000908152604090205460ff1681565b34801561068257600080fd5b506005546001600160a01b0316610413565b3480156106a057600080fd5b506102a2611077565b3480156106b557600080fd5b50610327611086565b3480156106ca57600080fd5b5061044b61271081565b3480156106e057600080fd5b506102d86106ef36600461255a565b6110e7565b34801561070057600080fd5b506102d861070f36600461255a565b611162565b34801561072057600080fd5b506104137f000000000000000000000000420000000000000000000000000000000000000681565b34801561075457600080fd5b50610327610763366004612761565b611170565b34801561077457600080fd5b506102f960105481565b34801561078a57600080fd5b50600c5461044b906001600160401b031681565b3480156107aa57600080fd5b506103276107b9366004612761565b611279565b3480156107ca57600080fd5b506102f960125481565b3480156107e057600080fd5b506103276107ef366004612738565b61139d565b34801561080057600080fd5b506102f961080f3660046126bf565b611463565b34801561082057600080fd5b506102d861082f36600461271d565b60096020526000908152604090205460ff1681565b34801561085057600080fd5b50601154610864906001600160801b031681565b6040516001600160801b0390911681526020016102af565b34801561088857600080fd5b5061032761089736600461271d565b61148e565b3480156108a857600080fd5b506104137f0000000000000000000000004752ba5dbc23f44d87826276bf6fd6b1c372ad2481565b3480156108dc57600080fd5b506102f960145481565b6060600380546108f590612798565b80601f016020809104026020016040519081016040528092919081815260200182805461092190612798565b801561096e5780601f106109435761010080835404028352916020019161096e565b820191906000526020600020905b81548152906001019060200180831161095157829003601f168201915b5050505050905090565b600033610986818585611551565b60019150505b92915050565b61099a611675565b620186a06109a760025490565b6109b29060016127e8565b6109bc9190612815565b811015610a2e5760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527410181718181892903a37ba30b61039bab838363c9760591b60648201526084015b60405180910390fd5b6103e8610a3a60025490565b610a459060056127e8565b610a4f9190612815565b811115610abb5760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171a92903a37ba30b61039bab838363c9760611b6064820152608401610a25565b60108190556040518181527f6a6c1edef1a73ae35c04159eb9ed9c4a4c272a0733e9275bee112df41c1c94cc906020015b60405180910390a150565b610aff611675565b828114610b475760405162461bcd60e51b81526020600482015260166024820152750c2e4e4c2f2e640d8cadccee8d040dad2e6dac2e8c6d60531b6044820152606401610a25565b60005b83811015610ba357610b9b33868684818110610b6857610b68612829565b9050602002016020810190610b7d919061271d565b858585818110610b8f57610b8f612829565b905060200201356116cf565b600101610b4a565b5050505050565b600033610bb8858285611875565b610bc38585856118e9565b506001949350505050565b610bd6611675565b610be26012600a612923565b6103e8610bee60025490565b610bf99060016127e8565b610c039190612815565b610c0d9190612815565b816001600160801b03161015610c4f5760405162461bcd60e51b8152602060048201526007602482015266546f6f206c6f7760c81b6044820152606401610a25565b610c76610c5e6012600a612923565b610c71906001600160801b0384166127e8565b6119a4565b601180546001600160801b0319166001600160801b039290921691821790556040519081527f6710da7d4acedae09cb83751ae24c150719ef67dcbc1e02049f171d13c6b44e690602001610aec565b600033610986818585610cd88383611463565b610ce29190612932565b611551565b610cef611675565b6001600160a01b038216610d455760405162461bcd60e51b815260206004820152601a60248201527f5f746f6b656e20616464726573732063616e6e6f7420626520300000000000006044820152606401610a25565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610d8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db09190612945565b9050610dbd838383611a11565b505050565b610dca611675565b600f805460ff19168215159081179091556040519081527f44e2eecc0c4d962f2b19f8abc42e4f41630553952e7296622f4f2efc8fbc3e6e90602001610aec565b610e13611675565b6001600160a01b038116610e585760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b6044820152606401610a25565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b610e82611675565b610e8c6000611a63565b565b610e96611675565b600f805461ff0019169055604080516020810190915260008152600254610ebc816119a4565b6001600160801b0316808352601180546001600160801b03191690911790556040517fa4ffae85e880608d5d4365c2b682786545d136145537788e7e0940dff9f0b98c90600090a15050565b610f10611675565b6103e8816001600160401b03161115610f605760405162461bcd60e51b81526020600482015260126024820152714b656570207461782062656c6f772031302560701b6044820152606401610a25565b60408051602080820183526001600160401b038416808352925192835290917fa02824f65350567bc405e202b741e7ca6274004a9feeb44149df72b8bd599c97910160405180910390a151600c805467ffffffffffffffff19166001600160401b0390921691909117905550565b610fd6611675565b60085460ff16156110295760405162461bcd60e51b815260206004820152601760248201527f54726164696e6720616c726561647920656e61626c65640000000000000000006044820152606401610a25565b6008805460ff191660019081179091554360125560148190556040519081527fb3da2db3dfc3778f99852546c6e9ab39ec253f9de7b0847afec61bd27878e9239060200160405180910390a1565b6060600480546108f590612798565b61108e611675565b60135460ff166110ce5760405162461bcd60e51b815260206004820152600b60248201526a20b63932b0b23c9037b33360a91b6044820152606401610a25565b6110db6000612710611ab5565b6013805460ff19169055565b600033816110f58286611463565b9050838110156111555760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610a25565b610bc38286868403611551565b6000336109868185856118e9565b611178611675565b6001600160a01b0382166111bd5760405162461bcd60e51b815260206004820152600c60248201526b5a65726f204164647265737360a01b6044820152606401610a25565b306001600160a01b038316036112155760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420756e6578656d707420636f6e747261637400000000000000006044820152606401610a25565b6001600160a01b038216600081815260066020908152604091829020805460ff19168515159081179091558251938452908301527f998cce27cbf44405c67eb636a634d5e2f2e6ff248b3d71fbbbb022f3c4c6dd2d91015b60405180910390a15050565b611281611675565b6001600160a01b0382166112c65760405162461bcd60e51b815260206004820152600c60248201526b5a65726f204164647265737360a01b6044820152606401610a25565b80611341577f000000000000000000000000a4e028d28930f1ef1ae8acddb1a53b231a5189656001600160a01b0316826001600160a01b0316036113415760405162461bcd60e51b815260206004820152601260248201527121b0b73737ba103932b6b7bb32903830b4b960711b6044820152606401610a25565b6001600160a01b038216600081815260076020908152604091829020805460ff19168515159081179091558251938452908301527f8f9f40630a1d139e6cf69b4f447ca47a36f10a017524efaa38252e516fa227ce910161126d565b6113a5611675565b6103e8816001600160401b031611156113f55760405162461bcd60e51b81526020600482015260126024820152714b656570207461782062656c6f772031302560701b6044820152606401610a25565b60408051602080820183526001600160401b038416808352925192835290917f5380a61520019ce8270d583f62f1b2b9f4f4372e1acaaf708f4865cecece0508910160405180910390a151600b805467ffffffffffffffff19166001600160401b0390921691909117905550565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b611496611675565b61149f81611a63565b6001600160a01b03811660008181526007602090815260408083208054600160ff1991821681179092556006845293829020805490941681179093558051938452908301919091527f8f9f40630a1d139e6cf69b4f447ca47a36f10a017524efaa38252e516fa227ce910160405180910390a1604080516001600160a01b0383168152600160208201527f998cce27cbf44405c67eb636a634d5e2f2e6ff248b3d71fbbbb022f3c4c6dd2d9101610aec565b6001600160a01b0383166115b35760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a25565b6001600160a01b0382166116145760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a25565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b03163314610e8c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a25565b6001600160a01b0383166117335760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610a25565b6001600160a01b0382166117955760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610a25565b6001600160a01b0383166000908152602081905260409020548181101561180d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610a25565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35b50505050565b60006118818484611463565b9050600019811461186f57818110156118dc5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610a25565b61186f8484848403611551565b6001600160a01b03831660009081526006602052604090205460ff1615801561192b57506001600160a01b03821660009081526006602052604090205460ff16155b156119995760085460ff166119775760405162461bcd60e51b815260206004820152601260248201527154726164696e67206e6f742061637469766560701b6044820152606401610a25565b611982838383611b62565b61198c908261295e565b9050611999838383611d58565b610dbd8383836116cf565b60006001600160801b03821115611a0d5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20316044820152663238206269747360c81b6064820152608401610a25565b5090565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610dbd908490611f41565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408051602081019091526001600160401b038316808252600c805467ffffffffffffffff199081168317909155600b805490911690911790556001600160801b03821615610dbd576040805160208101909152600081526000611b3c612710856001600160801b0316611b2860025490565b611b3291906127e8565b610c719190612815565b6001600160801b03169182905250601180546001600160801b0319169091179055505050565b60105430600090815260208190526040812054909111158015611b9e57506001600160a01b03841660009081526009602052604090205460ff16155b15611bab57611bab612013565b60135460ff1615611bbe57611bbe612136565b604080516020808201835260008083526001600160a01b038716815260099091529182205460ff1615611c0a57506040805160208101909152600c546001600160401b03168152611c46565b6001600160a01b03861660009081526009602052604090205460ff1615611c4657506040805160208101909152600b546001600160401b031681525b80516001600160401b031615611d465760408051808201909152600d546001600160501b0381168252600160501b900460ff16151560208201528151611c9d9061271090611b32906001600160401b0316886127e8565b8251909350611ce190633b9aca00906001600160401b0316611cbf8187612971565b611cc9919061299c565b611cd3919061299c565b6001600160801b03166121cb565b81518290611cf09083906129c2565b6001600160501b039081169091528251600d805460208601511515600160501b026affffffffffffffffffffff19909116929093169190911791909117905550611d4487306001600160801b0386166116cf565b505b506001600160801b0316949350505050565b600f54610100900460ff1615611e9c5760408051602080820183526011546001600160801b031682526001600160a01b03861660009081526009909152919091205460ff168015611dc257506001600160a01b03831660009081526007602052604090205460ff16155b15611e105780516001600160801b0316821115611e0b5760405162461bcd60e51b815260206004820152600760248201526626b0bc102a3c3760c91b6044820152606401610a25565b611e9a565b6001600160a01b03831660009081526009602052604090205460ff168015611e5157506001600160a01b03841660009081526007602052604090205460ff16155b15611e9a5780516001600160801b0316821115611e9a5760405162461bcd60e51b815260206004820152600760248201526626b0bc102a3c3760c91b6044820152606401610a25565b505b600f5460ff1615610dbd576001600160a01b03821660009081526009602052604090205460ff1615611f1a576001600160a01b0383166000908152600e60205260409020544311610dbd5760405162461bcd60e51b815260206004820152600860248201526720b73a349026a2ab60c11b6044820152606401610a25565b506001600160a01b03166000908152600e6020526040808220439081905532835291205550565b6000611f96826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166122339092919063ffffffff16565b805190915015610dbd5780806020019051810190611fb491906129e9565b610dbd5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610a25565b3060009081526020819052604081205460408051808201909152600d546001600160501b038116808352600160501b90910460ff16151560208301529192509082158061205e575080155b1561206857505050565b6010546120769060146127e8565b83111561208e5760105461208b9060146127e8565b92505b82156121065761209d8361224a565b476000811561210357600a546040516001600160a01b03909116906152089084906000818181858888f193505050503d80600081146120f8576040519150601f19603f3d011682016040523d82523d6000602084013e6120fd565b606091505b50909150505b50505b5060008152600d80546020909201511515600160501b026affffffffffffffffffffff1990921691909117905550565b600060125443612146919061295e565b905060145481116121615761215e6117706014611ab5565b50565b600060145482612171919061295e565b90506002811161218c57612188610fa06014611ab5565b5050565b60028111801561219e5750610e108111155b156121af5761218860006032611ab5565b6121bc6000612710611ab5565b600f805461ff00191690555050565b60006001600160501b03821115611a0d5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203860448201526530206269747360d01b6064820152608401610a25565b6060612242848460008561236e565b949350505050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061227f5761227f612829565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000004200000000000000000000000000000000000006816001815181106122d3576122d3612829565b6001600160a01b03928316602091820292909201015260405163791ac94760e01b81527f0000000000000000000000004752ba5dbc23f44d87826276bf6fd6b1c372ad249091169063791ac94790612338908590600090869030904290600401612a06565b600060405180830381600087803b15801561235257600080fd5b505af1158015612366573d6000803e3d6000fd5b505050505050565b6060824710156123cf5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610a25565b600080866001600160a01b031685876040516123eb9190612a79565b60006040518083038185875af1925050503d8060008114612428576040519150601f19603f3d011682016040523d82523d6000602084013e61242d565b606091505b509150915061243e87838387612449565b979650505050505050565b606083156124b85782516000036124b1576001600160a01b0385163b6124b15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a25565b5081612242565b61224283838151156124cd5781518083602001fd5b8060405162461bcd60e51b8152600401610a25919061250b565b60005b838110156125025781810151838201526020016124ea565b50506000910152565b602081526000825180602084015261252a8160408501602087016124e7565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461255557600080fd5b919050565b6000806040838503121561256d57600080fd5b6125768361253e565b946020939093013593505050565b60006020828403121561259657600080fd5b5035919050565b60008083601f8401126125af57600080fd5b5081356001600160401b038111156125c657600080fd5b6020830191508360208260051b85010111156125e157600080fd5b9250929050565b600080600080604085870312156125fe57600080fd5b84356001600160401b038082111561261557600080fd5b6126218883890161259d565b9096509450602087013591508082111561263a57600080fd5b506126478782880161259d565b95989497509550505050565b60008060006060848603121561266857600080fd5b6126718461253e565b925061267f6020850161253e565b9150604084013590509250925092565b6000602082840312156126a157600080fd5b81356001600160801b03811681146126b857600080fd5b9392505050565b600080604083850312156126d257600080fd5b6126db8361253e565b91506126e96020840161253e565b90509250929050565b801515811461215e57600080fd5b60006020828403121561271257600080fd5b81356126b8816126f2565b60006020828403121561272f57600080fd5b6126b88261253e565b60006020828403121561274a57600080fd5b81356001600160401b03811681146126b857600080fd5b6000806040838503121561277457600080fd5b61277d8361253e565b9150602083013561278d816126f2565b809150509250929050565b600181811c908216806127ac57607f821691505b6020821081036127cc57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761098c5761098c6127d2565b634e487b7160e01b600052601260045260246000fd5b600082612824576128246127ff565b500490565b634e487b7160e01b600052603260045260246000fd5b600181815b8085111561287a578160001904821115612860576128606127d2565b8085161561286d57918102915b93841c9390800290612844565b509250929050565b6000826128915750600161098c565b8161289e5750600061098c565b81600181146128b457600281146128be576128da565b600191505061098c565b60ff8411156128cf576128cf6127d2565b50506001821b61098c565b5060208310610133831016604e8410600b84101617156128fd575081810a61098c565b612907838361283f565b806000190482111561291b5761291b6127d2565b029392505050565b60006126b860ff841683612882565b8082018082111561098c5761098c6127d2565b60006020828403121561295757600080fd5b5051919050565b8181038181111561098c5761098c6127d2565b6001600160801b03818116838216028082169190828114612994576129946127d2565b505092915050565b60006001600160801b03808416806129b6576129b66127ff565b92169190910492915050565b6001600160501b038181168382160190808211156129e2576129e26127d2565b5092915050565b6000602082840312156129fb57600080fd5b81516126b8816126f2565b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b81811015612a585784516001600160a01b031683529383019391830191600101612a33565b50506001600160a01b03969096166060850152505050608001529392505050565b60008251612a8b8184602087016124e7565b919091019291505056fea26469706673582212207056de7e80579d64edbec51565df2034aeb6481cbcd8bfd283040b8f25562e1564736f6c63430008190033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000003cdf85fea14129a8097114293c05b783038d652b0000000000000000000000004752ba5dbc23f44d87826276bf6fd6b1c372ad24000000000000000000000000910ee27c0580a25ad31e1447b1d8e17e307075f30000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad
-----Decoded View---------------
Arg [0] : _owner (address): 0x3cDf85fea14129A8097114293C05b783038D652B
Arg [1] : _router (address): 0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24
Arg [2] : _treasury (address): 0x910ee27C0580a25ad31E1447B1D8E17e307075F3
Arg [3] : _universalRouter (address): 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000003cdf85fea14129a8097114293c05b783038d652b
Arg [1] : 0000000000000000000000004752ba5dbc23f44d87826276bf6fd6b1c372ad24
Arg [2] : 000000000000000000000000910ee27c0580a25ad31e1447b1d8e17e307075f3
Arg [3] : 0000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad
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.
Add Token to MetaMask (Web3)