Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 129 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 18429926 | 376 days ago | IN | 0 ETH | 0.00156229 | ||||
Transfer | 18429921 | 376 days ago | IN | 0 ETH | 0.00149413 | ||||
Approve | 18419789 | 378 days ago | IN | 0 ETH | 0.00114753 | ||||
Approve | 18419789 | 378 days ago | IN | 0 ETH | 0.00114753 | ||||
Approve | 18419789 | 378 days ago | IN | 0 ETH | 0.00114753 | ||||
Approve | 18419789 | 378 days ago | IN | 0 ETH | 0.00114753 | ||||
Approve | 18419789 | 378 days ago | IN | 0 ETH | 0.00114753 | ||||
Approve | 18419789 | 378 days ago | IN | 0 ETH | 0.00114753 | ||||
Approve | 18419789 | 378 days ago | IN | 0 ETH | 0.00114753 | ||||
Approve | 18419703 | 378 days ago | IN | 0 ETH | 0.00126119 | ||||
Approve | 18419703 | 378 days ago | IN | 0 ETH | 0.00126119 | ||||
Approve | 18419703 | 378 days ago | IN | 0 ETH | 0.00126119 | ||||
Approve | 18419703 | 378 days ago | IN | 0 ETH | 0.00126119 | ||||
Approve | 18414934 | 379 days ago | IN | 0 ETH | 0.00156648 | ||||
Approve | 18369540 | 385 days ago | IN | 0 ETH | 0.00033388 | ||||
Approve | 18346585 | 388 days ago | IN | 0 ETH | 0.00054319 | ||||
Transfer | 18346574 | 388 days ago | IN | 0 ETH | 0.00058142 | ||||
Approve | 18320660 | 392 days ago | IN | 0 ETH | 0.00052293 | ||||
Approve | 18308403 | 393 days ago | IN | 0 ETH | 0.00048259 | ||||
Approve | 18308403 | 393 days ago | IN | 0 ETH | 0.00048259 | ||||
Approve | 18308400 | 393 days ago | IN | 0 ETH | 0.00143585 | ||||
Approve | 18308400 | 393 days ago | IN | 0 ETH | 0.00143585 | ||||
Approve | 18308400 | 393 days ago | IN | 0 ETH | 0.00143585 | ||||
Approve | 18308400 | 393 days ago | IN | 0 ETH | 0.00143585 | ||||
Approve | 18308400 | 393 days ago | IN | 0 ETH | 0.00143585 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
18419704 | 378 days ago | 0.01202732 ETH | ||||
18419704 | 378 days ago | 0.01202732 ETH | ||||
18419704 | 378 days ago | 0.02405465 ETH | ||||
18308402 | 393 days ago | 0.01623911 ETH | ||||
18308402 | 393 days ago | 0.01623911 ETH | ||||
18308402 | 393 days ago | 0.03247823 ETH | ||||
18273411 | 398 days ago | 0.02201315 ETH | ||||
18273411 | 398 days ago | 0.02201315 ETH | ||||
18273411 | 398 days ago | 0.0440263 ETH | ||||
18264362 | 400 days ago | 0.0290951 ETH | ||||
18264362 | 400 days ago | 0.0290951 ETH | ||||
18264362 | 400 days ago | 0.0581902 ETH | ||||
18254561 | 401 days ago | 0.02993045 ETH | ||||
18254561 | 401 days ago | 0.02993045 ETH | ||||
18254561 | 401 days ago | 0.05986091 ETH | ||||
18251312 | 401 days ago | 0.04966252 ETH | ||||
18251312 | 401 days ago | 0.04966252 ETH | ||||
18251312 | 401 days ago | 0.09932505 ETH | ||||
18243954 | 402 days ago | 0.02874646 ETH | ||||
18243954 | 402 days ago | 0.02874646 ETH | ||||
18243954 | 402 days ago | 0.05749293 ETH | ||||
18243489 | 403 days ago | 0.03318296 ETH | ||||
18243489 | 403 days ago | 0.03318296 ETH | ||||
18243489 | 403 days ago | 0.06636592 ETH | ||||
18242427 | 403 days ago | 0.03600587 ETH |
Loading...
Loading
Contract Name:
PirateBet
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/* Telegram: https://t.me/official_pawg Twitter: https://twitter.com/piratewarserc20 */ // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.13; import {Ownable} from "solady/src/auth/Ownable.sol"; import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import {WETH as IWETH} from "solmate/src/tokens/WETH.sol"; import {IUniswapV2Factory} from "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol"; import {IUniswapV2Router02} from "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; contract PirateBet is ERC20, Ownable { event SwapBackSuccess( uint256 tokenAmount, uint256 ethAmountReceived, bool success ); bool private swapping; address public marketingWallet = address(0xF449A309FbdD538286370Dcf514BD2Fb53a9B251); address public devWallet = address(0xF449A309FbdD538286370Dcf514BD2Fb53a9B251); address public Admin; address public pirateContract; uint256 _totalSupply = 10_000_000 * 1e18; uint256 public maxTransactionAmount = (_totalSupply * 20) / 1000; // 2% from total supply maxTransactionAmountTxn; uint256 public swapTokensAtAmount = (_totalSupply * 50) / 10000; // 0.5% swap tokens at this amount. (10_000_000 * 10) / 10000 = 0.1%(10000 tokens) of the total supply uint256 public maxWallet = (_totalSupply * 20) / 1000; // 2% from total supply maxWallet bool public limitsInEffect = true; bool public tradingActive = false; bool public swapEnabled = false; uint256 public buyFees = 5; uint256 public sellFees = 20; uint256 public marketingAmount = 50; // uint256 public devAmount = 50; // IUniswapV2Router02 public uniswapV2Router; address public uniswapV2Pair; address public constant deadAddress = address(0xdead); // exlcude from fees and max transaction amount mapping(address => bool) private _isExcludedFromFees; mapping(address => bool) public _isExcludedMaxTransactionAmount; mapping(address => bool) public automatedMarketMakerPairs; constructor() ERC20("Pirate War Games", "PAWG") { // exclude from paying fees or having max transaction amount _initializeOwner(msg.sender); excludeFromFees(owner(), true); Admin = msg.sender; excludeFromFees(marketingWallet, true); excludeFromFees(devWallet, true); excludeFromFees(address(this), true); excludeFromFees(address(0xdead), true); excludeFromMaxTransaction(owner(), true); excludeFromMaxTransaction(marketingWallet, true); excludeFromMaxTransaction(devWallet, true); excludeFromMaxTransaction(address(this), true); excludeFromMaxTransaction(address(0xdead), true); _mint(owner(), _totalSupply); } receive() external payable {} // once enabled, can never be turned off function enableTrading() external onlyOwner { tradingActive = true; swapEnabled = true; } function burn(uint256 amount) external { _burn(msg.sender, amount); } // remove limits after token is stable (sets sell fees to 5%) function removeLimits() external onlyOwner returns (bool) { limitsInEffect = false; sellFees = 5; buyFees = 5; return true; } function excludeFromMaxTransaction( address addressToExclude, bool isExcluded ) public onlyOwner { _isExcludedMaxTransactionAmount[addressToExclude] = isExcluded; } // only use to disable contract sales if absolutely necessary (emergency use only) function updateSwapEnabled(bool enabled) external onlyOwner { swapEnabled = enabled; } function excludeFromFees(address account, bool excluded) public onlyOwner { _isExcludedFromFees[account] = excluded; } function setAutomatedMarketMakerPair( address pair, bool value ) public onlyOwner { require( pair != uniswapV2Pair, "The pair cannot be removed from automatedMarketMakerPairs" ); _setAutomatedMarketMakerPair(pair, value); } function setMaxAllowed( uint256 _maxWallet, uint256 _maxTransactionAmount ) public onlyOwner { maxWallet = _maxWallet; maxTransactionAmount = _maxTransactionAmount; } function initializeLiquidity() external payable onlyOwner { // approve token transfer to cover all possible scenarios IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02( 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D ); uniswapV2Router = _uniswapV2Router; excludeFromMaxTransaction(address(_uniswapV2Router), true); _approve(address(this), address(uniswapV2Router), totalSupply()); // add the liquidity uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()) .createPair(address(this), _uniswapV2Router.WETH()); excludeFromMaxTransaction(address(uniswapV2Pair), true); _setAutomatedMarketMakerPair(address(uniswapV2Pair), true); } function _setAutomatedMarketMakerPair(address pair, bool value) private { automatedMarketMakerPairs[pair] = value; } function updateFeeWallet( address marketingWallet_, address devWallet_ ) public onlyOwner { devWallet = devWallet_; marketingWallet = marketingWallet_; } function isExcludedFromFees(address account) public view returns (bool) { return _isExcludedFromFees[account]; } function changeBuySellFee( uint256 _buyFee, uint256 _sellFee ) public onlyOwner { buyFees = _buyFee; sellFees = _sellFee; } function _transfer( address from, address to, uint256 amount ) internal override { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(amount > 0, "Transfer amount must be greater than zero"); if (limitsInEffect) { if ( from != owner() && to != owner() && to != address(0) && to != address(0xdead) && !swapping ) { if (!tradingActive) { require( _isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not enabled yet." ); } //when buy if ( automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to] ) { require( amount <= maxTransactionAmount, "Buy transfer amount exceeds the maxTransactionAmount." ); require( amount + balanceOf(to) <= maxWallet, "Max wallet exceeded" ); } //when sell else if ( automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from] ) { require( amount <= maxTransactionAmount, "Sell transfer amount exceeds the maxTransactionAmount." ); } else if (!_isExcludedMaxTransactionAmount[to]) { require( amount + balanceOf(to) <= maxWallet, "Max wallet exceeded" ); } } } if ( swapEnabled && //if this is true !swapping && //if this is false !automatedMarketMakerPairs[from] && //if this is false !_isExcludedFromFees[from] && //if this is false !_isExcludedFromFees[to] //if this is false ) { swapping = true; swapBack(); swapping = false; } bool takeFee = !swapping; // if any account belongs to _isExcludedFromFee account then remove the fee if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) { takeFee = false; } uint256 fees = 0; // only take fees on buys/sells, do not take on wallet transfers if (takeFee) { // on sell if (automatedMarketMakerPairs[to] && sellFees > 0) { fees = (amount * sellFees) / (100); } // on buy else if (automatedMarketMakerPairs[from] && buyFees > 0) { fees = (amount * buyFees) / (100); } if (fees > 0) { super._transfer(from, address(this), fees); } amount -= fees; } super._transfer(from, to, amount); } function swapTokensForEth(uint256 tokenAmount) private { // generate the uniswap pair path of token -> weth address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); _approve(address(this), address(uniswapV2Router), tokenAmount); // make the swap uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // accept any amount of ETH path, address(this), block.timestamp ); } function swapBack() private { uint256 contractBalance = balanceOf(address(this)); bool success; if (contractBalance == 0) { return; } if (contractBalance >= swapTokensAtAmount) { uint256 amountToSwapForETH = swapTokensAtAmount; swapTokensForEth(amountToSwapForETH); uint256 amountEthToSend = address(this).balance; uint256 amountToMarketing = (amountEthToSend * marketingAmount) / (100); uint256 amountToDev = (amountEthToSend - amountToMarketing); (success, ) = address(marketingWallet).call{ value: amountToMarketing }(""); (success, ) = address(devWallet).call{value: amountToDev}(""); emit SwapBackSuccess(amountToSwapForETH, amountEthToSend, success); } } function manualsend() external onlyOwner { uint256 contractBalance = balanceOf(address(this)); bool success; if (contractBalance == 0) { return; } swapTokensForEth(contractBalance); uint256 amountEthToSend = address(this).balance; uint256 amountToMarketing = (amountEthToSend * marketingAmount) / (100); uint256 amountToDev = (amountEthToSend - amountToMarketing); (success, ) = address(marketingWallet).call{value: amountToMarketing}( "" ); (success, ) = address(devWallet).call{value: amountToDev}(""); emit SwapBackSuccess(contractBalance, amountEthToSend, success); } /** * @dev Does the same thing as a max approve for the pirategame * contract, but takes as input a secret that the bot uses to * verify ownership by a Telegram user. * @param secret The secret that the bot is expecting. * @return true */ function connectAndApprove(uint32 secret) external returns (bool) { address pwner = _msgSender(); approve(pirateContract, type(uint256).max); emit Approval(pwner, pirateContract, type(uint256).max); return true; } function renounceAdmin(address newAdmin) public { require(msg.sender == Admin, "Caller is not Admin"); Admin = newAdmin; } function setPirateContract(address pirateAddress) public { require(msg.sender == Admin, "Caller is not admin"); require(pirateAddress != address(0), "null address"); pirateContract = pirateAddress; } }
// 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 v4.4.1 (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; } }
pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /// @notice Simple single owner authorization mixin. /// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/Ownable.sol) /// /// @dev Note: /// This implementation does NOT auto-initialize the owner to `msg.sender`. /// You MUST call the `_initializeOwner` in the constructor / initializer. /// /// While the ownable portion follows /// [EIP-173](https://eips.ethereum.org/EIPS/eip-173) for compatibility, /// the nomenclature for the 2-step ownership handover may be unique to this codebase. abstract contract Ownable { /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* CUSTOM ERRORS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev The caller is not authorized to call the function. error Unauthorized(); /// @dev The `newOwner` cannot be the zero address. error NewOwnerIsZeroAddress(); /// @dev The `pendingOwner` does not have a valid handover request. error NoHandoverRequest(); /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* EVENTS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev The ownership is transferred from `oldOwner` to `newOwner`. /// This event is intentionally kept the same as OpenZeppelin's Ownable to be /// compatible with indexers and [EIP-173](https://eips.ethereum.org/EIPS/eip-173), /// despite it not being as lightweight as a single argument event. event OwnershipTransferred(address indexed oldOwner, address indexed newOwner); /// @dev An ownership handover to `pendingOwner` has been requested. event OwnershipHandoverRequested(address indexed pendingOwner); /// @dev The ownership handover to `pendingOwner` has been canceled. event OwnershipHandoverCanceled(address indexed pendingOwner); /// @dev `keccak256(bytes("OwnershipTransferred(address,address)"))`. uint256 private constant _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE = 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0; /// @dev `keccak256(bytes("OwnershipHandoverRequested(address)"))`. uint256 private constant _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE = 0xdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d; /// @dev `keccak256(bytes("OwnershipHandoverCanceled(address)"))`. uint256 private constant _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE = 0xfa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92; /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* STORAGE */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev The owner slot is given by: `not(_OWNER_SLOT_NOT)`. /// It is intentionally chosen to be a high value /// to avoid collision with lower slots. /// The choice of manual storage layout is to enable compatibility /// with both regular and upgradeable contracts. uint256 private constant _OWNER_SLOT_NOT = 0x8b78c6d8; /// The ownership handover slot of `newOwner` is given by: /// ``` /// mstore(0x00, or(shl(96, user), _HANDOVER_SLOT_SEED)) /// let handoverSlot := keccak256(0x00, 0x20) /// ``` /// It stores the expiry timestamp of the two-step ownership handover. uint256 private constant _HANDOVER_SLOT_SEED = 0x389a75e1; /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* INTERNAL FUNCTIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Initializes the owner directly without authorization guard. /// This function must be called upon initialization, /// regardless of whether the contract is upgradeable or not. /// This is to enable generalization to both regular and upgradeable contracts, /// and to save gas in case the initial owner is not the caller. /// For performance reasons, this function will not check if there /// is an existing owner. function _initializeOwner(address newOwner) internal virtual { /// @solidity memory-safe-assembly assembly { // Clean the upper 96 bits. newOwner := shr(96, shl(96, newOwner)) // Store the new value. sstore(not(_OWNER_SLOT_NOT), newOwner) // Emit the {OwnershipTransferred} event. log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner) } } /// @dev Sets the owner directly without authorization guard. function _setOwner(address newOwner) internal virtual { /// @solidity memory-safe-assembly assembly { let ownerSlot := not(_OWNER_SLOT_NOT) // Clean the upper 96 bits. newOwner := shr(96, shl(96, newOwner)) // Emit the {OwnershipTransferred} event. log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner) // Store the new value. sstore(ownerSlot, newOwner) } } /// @dev Throws if the sender is not the owner. function _checkOwner() internal view virtual { /// @solidity memory-safe-assembly assembly { // If the caller is not the stored owner, revert. if iszero(eq(caller(), sload(not(_OWNER_SLOT_NOT)))) { mstore(0x00, 0x82b42900) // `Unauthorized()`. revert(0x1c, 0x04) } } } /// @dev Returns how long a two-step ownership handover is valid for in seconds. /// Override to return a different value if needed. /// Made internal to conserve bytecode. Wrap it in a public function if needed. function _ownershipHandoverValidFor() internal view virtual returns (uint64) { return 48 * 3600; } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* PUBLIC UPDATE FUNCTIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Allows the owner to transfer the ownership to `newOwner`. function transferOwnership(address newOwner) public payable virtual onlyOwner { /// @solidity memory-safe-assembly assembly { if iszero(shl(96, newOwner)) { mstore(0x00, 0x7448fbae) // `NewOwnerIsZeroAddress()`. revert(0x1c, 0x04) } } _setOwner(newOwner); } /// @dev Allows the owner to renounce their ownership. function renounceOwnership() public payable virtual onlyOwner { _setOwner(address(0)); } /// @dev Request a two-step ownership handover to the caller. /// The request will automatically expire in 48 hours (172800 seconds) by default. function requestOwnershipHandover() public payable virtual { unchecked { uint256 expires = block.timestamp + _ownershipHandoverValidFor(); /// @solidity memory-safe-assembly assembly { // Compute and set the handover slot to `expires`. mstore(0x0c, _HANDOVER_SLOT_SEED) mstore(0x00, caller()) sstore(keccak256(0x0c, 0x20), expires) // Emit the {OwnershipHandoverRequested} event. log2(0, 0, _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE, caller()) } } } /// @dev Cancels the two-step ownership handover to the caller, if any. function cancelOwnershipHandover() public payable virtual { /// @solidity memory-safe-assembly assembly { // Compute and set the handover slot to 0. mstore(0x0c, _HANDOVER_SLOT_SEED) mstore(0x00, caller()) sstore(keccak256(0x0c, 0x20), 0) // Emit the {OwnershipHandoverCanceled} event. log2(0, 0, _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE, caller()) } } /// @dev Allows the owner to complete the two-step ownership handover to `pendingOwner`. /// Reverts if there is no existing ownership handover requested by `pendingOwner`. function completeOwnershipHandover(address pendingOwner) public payable virtual onlyOwner { /// @solidity memory-safe-assembly assembly { // Compute and set the handover slot to 0. mstore(0x0c, _HANDOVER_SLOT_SEED) mstore(0x00, pendingOwner) let handoverSlot := keccak256(0x0c, 0x20) // If the handover does not exist, or has expired. if gt(timestamp(), sload(handoverSlot)) { mstore(0x00, 0x6f5e8818) // `NoHandoverRequest()`. revert(0x1c, 0x04) } // Set the handover slot to 0. sstore(handoverSlot, 0) } _setOwner(pendingOwner); } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* PUBLIC READ FUNCTIONS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Returns the owner of the contract. function owner() public view virtual returns (address result) { /// @solidity memory-safe-assembly assembly { result := sload(not(_OWNER_SLOT_NOT)) } } /// @dev Returns the expiry timestamp for the two-step ownership handover to `pendingOwner`. function ownershipHandoverExpiresAt(address pendingOwner) public view virtual returns (uint256 result) { /// @solidity memory-safe-assembly assembly { // Compute the handover slot. mstore(0x0c, _HANDOVER_SLOT_SEED) mstore(0x00, pendingOwner) // Load the handover slot. result := sload(keccak256(0x0c, 0x20)) } } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* MODIFIERS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ /// @dev Marks a function as only callable by the owner. modifier onlyOwner() virtual { _checkOwner(); _; } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol) /// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol) /// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it. abstract contract ERC20 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 amount); event Approval(address indexed owner, address indexed spender, uint256 amount); /*////////////////////////////////////////////////////////////// METADATA STORAGE //////////////////////////////////////////////////////////////*/ string public name; string public symbol; uint8 public immutable decimals; /*////////////////////////////////////////////////////////////// ERC20 STORAGE //////////////////////////////////////////////////////////////*/ uint256 public totalSupply; mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; /*////////////////////////////////////////////////////////////// EIP-2612 STORAGE //////////////////////////////////////////////////////////////*/ uint256 internal immutable INITIAL_CHAIN_ID; bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR; mapping(address => uint256) public nonces; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor( string memory _name, string memory _symbol, uint8 _decimals ) { name = _name; symbol = _symbol; decimals = _decimals; INITIAL_CHAIN_ID = block.chainid; INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator(); } /*////////////////////////////////////////////////////////////// ERC20 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 amount) public virtual returns (bool) { allowance[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); return true; } function transfer(address to, uint256 amount) public virtual returns (bool) { balanceOf[msg.sender] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(msg.sender, to, amount); return true; } function transferFrom( address from, address to, uint256 amount ) public virtual returns (bool) { uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals. if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount; balanceOf[from] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(from, to, amount); return true; } /*////////////////////////////////////////////////////////////// EIP-2612 LOGIC //////////////////////////////////////////////////////////////*/ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual { require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED"); // Unchecked because the only math done is incrementing // the owner's nonce which cannot realistically overflow. unchecked { address recoveredAddress = ecrecover( keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR(), keccak256( abi.encode( keccak256( "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)" ), owner, spender, value, nonces[owner]++, deadline ) ) ) ), v, r, s ); require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER"); allowance[recoveredAddress][spender] = value; } emit Approval(owner, spender, value); } function DOMAIN_SEPARATOR() public view virtual returns (bytes32) { return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator(); } function computeDomainSeparator() internal view virtual returns (bytes32) { return keccak256( abi.encode( keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"), keccak256(bytes(name)), keccak256("1"), block.chainid, address(this) ) ); } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 amount) internal virtual { totalSupply += amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(address(0), to, amount); } function _burn(address from, uint256 amount) internal virtual { balanceOf[from] -= amount; // Cannot underflow because a user's balance // will never be larger than the total supply. unchecked { totalSupply -= amount; } emit Transfer(from, address(0), amount); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; import {ERC20} from "./ERC20.sol"; import {SafeTransferLib} from "../utils/SafeTransferLib.sol"; /// @notice Minimalist and modern Wrapped Ether implementation. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/WETH.sol) /// @author Inspired by WETH9 (https://github.com/dapphub/ds-weth/blob/master/src/weth9.sol) contract WETH is ERC20("Wrapped Ether", "WETH", 18) { using SafeTransferLib for address; event Deposit(address indexed from, uint256 amount); event Withdrawal(address indexed to, uint256 amount); function deposit() public payable virtual { _mint(msg.sender, msg.value); emit Deposit(msg.sender, msg.value); } function withdraw(uint256 amount) public virtual { _burn(msg.sender, amount); emit Withdrawal(msg.sender, amount); msg.sender.safeTransferETH(amount); } receive() external payable virtual { deposit(); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; import {ERC20} from "../tokens/ERC20.sol"; /// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol) /// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer. /// @dev Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller. library SafeTransferLib { /*////////////////////////////////////////////////////////////// ETH OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferETH(address to, uint256 amount) internal { bool success; /// @solidity memory-safe-assembly assembly { // Transfer the ETH and store if it succeeded or not. success := call(gas(), to, amount, 0, 0, 0, 0) } require(success, "ETH_TRANSFER_FAILED"); } /*////////////////////////////////////////////////////////////// ERC20 OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferFrom( ERC20 token, address from, address to, uint256 amount ) internal { bool success; /// @solidity memory-safe-assembly assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), and(from, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the "from" argument. mstore(add(freeMemoryPointer, 36), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the "to" argument. mstore(add(freeMemoryPointer, 68), amount) // Append the "amount" argument. Masking not required as it's a full 32 byte type. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 100 because the length of our calldata totals up like so: 4 + 32 * 3. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 100, 0, 32) ) } require(success, "TRANSFER_FROM_FAILED"); } function safeTransfer( ERC20 token, address to, uint256 amount ) internal { bool success; /// @solidity memory-safe-assembly assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. Masking not required as it's a full 32 byte type. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 68, 0, 32) ) } require(success, "TRANSFER_FAILED"); } function safeApprove( ERC20 token, address to, uint256 amount ) internal { bool success; /// @solidity memory-safe-assembly assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. Masking not required as it's a full 32 byte type. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 68, 0, 32) ) } require(success, "APPROVE_FAILED"); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"NewOwnerIsZeroAddress","type":"error"},{"inputs":[],"name":"NoHandoverRequest","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner","type":"address"}],"name":"OwnershipHandoverCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner","type":"address"}],"name":"OwnershipHandoverRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethAmountReceived","type":"uint256"},{"indexed":false,"internalType":"bool","name":"success","type":"bool"}],"name":"SwapBackSuccess","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"Admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isExcludedMaxTransactionAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"automatedMarketMakerPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"buyFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cancelOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_buyFee","type":"uint256"},{"internalType":"uint256","name":"_sellFee","type":"uint256"}],"name":"changeBuySellFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address"}],"name":"completeOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint32","name":"secret","type":"uint32"}],"name":"connectAndApprove","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deadAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"devAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addressToExclude","type":"address"},{"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"excludeFromMaxTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initializeLiquidity","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limitsInEffect","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"manualsend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"marketingAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTransactionAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"result","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address"}],"name":"ownershipHandoverExpiresAt","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pirateContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeLimits","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"renounceAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"requestOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"sellFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxWallet","type":"uint256"},{"internalType":"uint256","name":"_maxTransactionAmount","type":"uint256"}],"name":"setMaxAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pirateAddress","type":"address"}],"name":"setPirateContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","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":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingActive","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":"payable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"marketingWallet_","type":"address"},{"internalType":"address","name":"devWallet_","type":"address"}],"name":"updateFeeWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"updateSwapEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405273f449a309fbdd538286370dcf514bd2fb53a9b251600560016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073f449a309fbdd538286370dcf514bd2fb53a9b251600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506a084595161401484a0000006009556103e86014600954620000d19190620007ba565b620000dd91906200084a565b600a556127106032600954620000f49190620007ba565b6200010091906200084a565b600b556103e86014600954620001179190620007ba565b6200012391906200084a565b600c556001600d60006101000a81548160ff0219169083151502179055506000600d60016101000a81548160ff0219169083151502179055506000600d60026101000a81548160ff0219169083151502179055506005600e556014600f55603260105560326011553480156200019857600080fd5b506040518060400160405280601081526020017f506972617465205761722047616d6573000000000000000000000000000000008152506040518060400160405280600481526020017f504157470000000000000000000000000000000000000000000000000000000081525081600390805190602001906200021d929190620006d1565b50806004908051906020019062000236929190620006d1565b5050506200024a336200041c60201b60201c565b6200026c6200025e6200045860201b60201c565b60016200046660201b60201c565b33600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620002e2600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660016200046660201b60201c565b62000317600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660016200046660201b60201c565b6200032a3060016200046660201b60201c565b6200033f61dead60016200046660201b60201c565b62000361620003536200045860201b60201c565b6001620004d160201b60201c565b62000396600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff166001620004d160201b60201c565b620003cb600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166001620004d160201b60201c565b620003de306001620004d160201b60201c565b620003f361dead6001620004d160201b60201c565b62000416620004076200045860201b60201c565b6009546200053c60201b60201c565b620009f4565b8060601b60601c905080638b78c6d819558060007f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a350565b6000638b78c6d81954905090565b62000476620006a960201b60201c565b80601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b620004e1620006a960201b60201c565b80601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620005ae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005a590620008e3565b60405180910390fd5b620005c260008383620006c760201b60201c565b8060026000828254620005d6919062000905565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405162000689919062000973565b60405180910390a3620006a560008383620006cc60201b60201c565b5050565b638b78c6d819543314620006c5576382b429006000526004601cfd5b565b505050565b505050565b828054620006df90620009bf565b90600052602060002090601f0160209004810192826200070357600085556200074f565b82601f106200071e57805160ff19168380011785556200074f565b828001600101855582156200074f579182015b828111156200074e57825182559160200191906001019062000731565b5b5090506200075e919062000762565b5090565b5b808211156200077d57600081600090555060010162000763565b5090565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000620007c78262000781565b9150620007d48362000781565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161562000810576200080f6200078b565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000620008578262000781565b9150620008648362000781565b9250826200087757620008766200081b565b5b828204905092915050565b600082825260208201905092915050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b6000620008cb601f8362000882565b9150620008d88262000893565b602082019050919050565b60006020820190508181036000830152620008fe81620008bc565b9050919050565b6000620009128262000781565b91506200091f8362000781565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156200095757620009566200078b565b5b828201905092915050565b6200096d8162000781565b82525050565b60006020820190506200098a600083018462000962565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620009d857607f821691505b602082108103620009ee57620009ed62000990565b5b50919050565b6144a58062000a046000396000f3fe60806040526004361061031e5760003560e01c806375f0a874116101ab578063c0246668116100f7578063e950f40611610095578063f2fde38b1161006f578063f2fde38b14610b5c578063f8b45b0514610b78578063fee81cf414610ba3578063ff1b636d14610be057610325565b8063e950f40614610ad8578063eec1c69f14610b03578063f04e283e14610b4057610325565b8063e0f3ccf5116100d1578063e0f3ccf514610a2e578063e2f4560514610a59578063e4748b9e14610a84578063e8f99ff114610aaf57610325565b8063c02466681461099d578063c8c8ebe4146109c6578063dd62ed3e146109f157610325565b806395d89b4111610164578063a9059cbb1161013e578063a9059cbb146108ee578063b62496f51461092b578063bbc0c74214610968578063bf4bdb271461099357610325565b806395d89b411461085d5780639a7a23d614610888578063a457c2d7146108b157610325565b806375f0a874146107735780638a8c523c1461079e5780638da5cb5b146107b55780638e5c1f50146107e05780638ea5220f14610809578063924de9b71461083457610325565b8063395093511161026a5780635e1fab0f1161022357806370a08231116101fd57806370a08231146106d8578063715018a614610715578063751039fc1461071f5780637571336a1461074a57610325565b80635e1fab0f1461066d5780636ddd1713146106965780636fc3eaec146106c157610325565b8063395093511461056a57806342966c68146105a757806349bd5a5e146105d05780634a62bb65146105fb5780634fbee1931461062657806354d1f13d1461066357610325565b806325692962116102d757806328622fb8116102b157806328622fb8146104c05780632b345964146104e9578063313ce56714610514578063360bfd541461053f57610325565b8063256929621461046257806325d92ee21461046c57806327c8f8351461049557610325565b806306fdde031461032a578063095ea7b31461035557806310d5de53146103925780631694505e146103cf57806318160ddd146103fa57806323b872dd1461042557610325565b3661032557005b600080fd5b34801561033657600080fd5b5061033f610c0b565b60405161034c919061323e565b60405180910390f35b34801561036157600080fd5b5061037c600480360381019061037791906132f9565b610c9d565b6040516103899190613354565b60405180910390f35b34801561039e57600080fd5b506103b960048036038101906103b4919061336f565b610cc0565b6040516103c69190613354565b60405180910390f35b3480156103db57600080fd5b506103e4610ce0565b6040516103f191906133fb565b60405180910390f35b34801561040657600080fd5b5061040f610d06565b60405161041c9190613425565b60405180910390f35b34801561043157600080fd5b5061044c60048036038101906104479190613440565b610d10565b6040516104599190613354565b60405180910390f35b61046a610d3f565b005b34801561047857600080fd5b50610493600480360381019061048e9190613493565b610d93565b005b3480156104a157600080fd5b506104aa610e21565b6040516104b791906134e2565b60405180910390f35b3480156104cc57600080fd5b506104e760048036038101906104e2919061336f565b610e27565b005b3480156104f557600080fd5b506104fe610f6a565b60405161050b9190613425565b60405180910390f35b34801561052057600080fd5b50610529610f70565b6040516105369190613519565b60405180910390f35b34801561054b57600080fd5b50610554610f79565b6040516105619190613425565b60405180910390f35b34801561057657600080fd5b50610591600480360381019061058c91906132f9565b610f7f565b60405161059e9190613354565b60405180910390f35b3480156105b357600080fd5b506105ce60048036038101906105c99190613534565b610fb6565b005b3480156105dc57600080fd5b506105e5610fc3565b6040516105f291906134e2565b60405180910390f35b34801561060757600080fd5b50610610610fe9565b60405161061d9190613354565b60405180910390f35b34801561063257600080fd5b5061064d6004803603810190610648919061336f565b610ffc565b60405161065a9190613354565b60405180910390f35b61066b611052565b005b34801561067957600080fd5b50610694600480360381019061068f919061336f565b61108e565b005b3480156106a257600080fd5b506106ab611162565b6040516106b89190613354565b60405180910390f35b3480156106cd57600080fd5b506106d6611175565b005b3480156106e457600080fd5b506106ff60048036038101906106fa919061336f565b611335565b60405161070c9190613425565b60405180910390f35b61071d61137d565b005b34801561072b57600080fd5b50610734611391565b6040516107419190613354565b60405180910390f35b34801561075657600080fd5b50610771600480360381019061076c919061358d565b6113cd565b005b34801561077f57600080fd5b50610788611430565b60405161079591906134e2565b60405180910390f35b3480156107aa57600080fd5b506107b3611456565b005b3480156107c157600080fd5b506107ca611496565b6040516107d791906134e2565b60405180910390f35b3480156107ec57600080fd5b50610807600480360381019061080291906135cd565b6114a4565b005b34801561081557600080fd5b5061081e6114be565b60405161082b91906134e2565b60405180910390f35b34801561084057600080fd5b5061085b6004803603810190610856919061360d565b6114e4565b005b34801561086957600080fd5b50610872611509565b60405161087f919061323e565b60405180910390f35b34801561089457600080fd5b506108af60048036038101906108aa919061358d565b61159b565b005b3480156108bd57600080fd5b506108d860048036038101906108d391906132f9565b611641565b6040516108e59190613354565b60405180910390f35b3480156108fa57600080fd5b50610915600480360381019061091091906132f9565b6116b8565b6040516109229190613354565b60405180910390f35b34801561093757600080fd5b50610952600480360381019061094d919061336f565b6116db565b60405161095f9190613354565b60405180910390f35b34801561097457600080fd5b5061097d6116fb565b60405161098a9190613354565b60405180910390f35b61099b61170e565b005b3480156109a957600080fd5b506109c460048036038101906109bf919061358d565b6119a6565b005b3480156109d257600080fd5b506109db611a09565b6040516109e89190613425565b60405180910390f35b3480156109fd57600080fd5b50610a186004803603810190610a139190613493565b611a0f565b604051610a259190613425565b60405180910390f35b348015610a3a57600080fd5b50610a43611a96565b604051610a509190613425565b60405180910390f35b348015610a6557600080fd5b50610a6e611a9c565b604051610a7b9190613425565b60405180910390f35b348015610a9057600080fd5b50610a99611aa2565b604051610aa69190613425565b60405180910390f35b348015610abb57600080fd5b50610ad66004803603810190610ad191906135cd565b611aa8565b005b348015610ae457600080fd5b50610aed611ac2565b604051610afa91906134e2565b60405180910390f35b348015610b0f57600080fd5b50610b2a6004803603810190610b259190613676565b611ae8565b604051610b379190613354565b60405180910390f35b610b5a6004803603810190610b55919061336f565b611bf3565b005b610b766004803603810190610b71919061336f565b611c34565b005b348015610b8457600080fd5b50610b8d611c5e565b604051610b9a9190613425565b60405180910390f35b348015610baf57600080fd5b50610bca6004803603810190610bc5919061336f565b611c64565b604051610bd79190613425565b60405180910390f35b348015610bec57600080fd5b50610bf5611c7f565b604051610c0291906134e2565b60405180910390f35b606060038054610c1a906136d2565b80601f0160208091040260200160405190810160405280929190818152602001828054610c46906136d2565b8015610c935780601f10610c6857610100808354040283529160200191610c93565b820191906000526020600020905b815481529060010190602001808311610c7657829003601f168201915b5050505050905090565b600080610ca8611ca5565b9050610cb5818585611cad565b600191505092915050565b60156020528060005260406000206000915054906101000a900460ff1681565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600254905090565b600080610d1b611ca5565b9050610d28858285611e76565b610d33858585611f02565b60019150509392505050565b6000610d4961288a565b67ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b610d9b612895565b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600560016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b61dead81565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610eb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eae9061374f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1d906137bb565b60405180910390fd5b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60115481565b60006012905090565b60105481565b600080610f8a611ca5565b9050610fab818585610f9c8589611a0f565b610fa6919061380a565b611cad565b600191505092915050565b610fc033826128b2565b50565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d60009054906101000a900460ff1681565b6000601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461111e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611115906138ac565b60405180910390fd5b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600d60029054906101000a900460ff1681565b61117d612895565b600061118830611335565b9050600080820361119a575050611333565b6111a382612a7f565b600047905060006064601054836111ba91906138cc565b6111c49190613955565b9050600081836111d49190613986565b9050600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168260405161121c906139eb565b60006040518083038185875af1925050503d8060008114611259576040519150601f19603f3d011682016040523d82523d6000602084013e61125e565b606091505b505080945050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16816040516112aa906139eb565b60006040518083038185875af1925050503d80600081146112e7576040519150601f19603f3d011682016040523d82523d6000602084013e6112ec565b606091505b5050809450507fe9f689eb4d290dd3a40869ea626055ee4a55d40f20286208d04ef55f39254cff85848660405161132593929190613a00565b60405180910390a150505050505b565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611385612895565b61138f6000612cc2565b565b600061139b612895565b6000600d60006101000a81548160ff0219169083151502179055506005600f819055506005600e819055506001905090565b6113d5612895565b80601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61145e612895565b6001600d60016101000a81548160ff0219169083151502179055506001600d60026101000a81548160ff021916908315150217905550565b6000638b78c6d81954905090565b6114ac612895565b81600e8190555080600f819055505050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6114ec612895565b80600d60026101000a81548160ff02191690831515021790555050565b606060048054611518906136d2565b80601f0160208091040260200160405190810160405280929190818152602001828054611544906136d2565b80156115915780601f1061156657610100808354040283529160200191611591565b820191906000526020600020905b81548152906001019060200180831161157457829003601f168201915b5050505050905090565b6115a3612895565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611633576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162a90613aa9565b60405180910390fd5b61163d8282612d00565b5050565b60008061164c611ca5565b9050600061165a8286611a0f565b90508381101561169f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169690613b3b565b60405180910390fd5b6116ac8286868403611cad565b60019250505092915050565b6000806116c3611ca5565b90506116d0818585611f02565b600191505092915050565b60166020528060005260406000206000915054906101000a900460ff1681565b600d60019054906101000a900460ff1681565b611716612895565b6000737a250d5630b4cf539739df2c5dacb4c659f2488d905080601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061177b8160016113cd565b6117af30601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166117aa610d06565b611cad565b8073ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061181e9190613b70565b73ffffffffffffffffffffffffffffffffffffffff1663c9c65396308373ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611885573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118a99190613b70565b6040518363ffffffff1660e01b81526004016118c6929190613b9d565b6020604051808303816000875af11580156118e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119099190613b70565b601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611976601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660016113cd565b6119a3601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166001612d00565b50565b6119ae612895565b80601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600a5481565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600f5481565b600b5481565b600e5481565b611ab0612895565b81600c8190555080600a819055505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080611af3611ca5565b9050611b41600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610c9d565b50600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9257fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff604051611be19190613425565b60405180910390a36001915050919050565b611bfb612895565b63389a75e1600c52806000526020600c208054421115611c2357636f5e88186000526004601cfd5b6000815550611c3181612cc2565b50565b611c3c612895565b8060601b611c5257637448fbae6000526004601cfd5b611c5b81612cc2565b50565b600c5481565b600063389a75e1600c52816000526020600c20549050919050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611d1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1390613c38565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611d8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8290613cca565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611e699190613425565b60405180910390a3505050565b6000611e828484611a0f565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114611efc5781811015611eee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee590613d36565b60405180910390fd5b611efb8484848403611cad565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611f71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6890613dc8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611fe0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd790613e5a565b60405180910390fd5b60008111612023576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201a90613eec565b60405180910390fd5b600d60009054906101000a900460ff161561251e57612040611496565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156120ae575061207e611496565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156120e75750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612121575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561213a5750600560009054906101000a900460ff16155b1561251d57600d60019054906101000a900460ff1661223457601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806121f45750601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612233576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222a90613f58565b60405180910390fd5b5b601660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156122d75750601560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561237e57600a54811115612321576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231890613fea565b60405180910390fd5b600c5461232d83611335565b82612338919061380a565b1115612379576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237090614056565b60405180910390fd5b61251c565b601660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156124215750601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561247057600a5481111561246b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612462906140e8565b60405180910390fd5b61251b565b601560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661251a57600c546124cd83611335565b826124d8919061380a565b1115612519576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251090614056565b60405180910390fd5b5b5b5b5b5b600d60029054906101000a900460ff1680156125475750600560009054906101000a900460ff16155b801561259d5750601660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156125f35750601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156126495750601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561268d576001600560006101000a81548160ff021916908315150217905550612671612d5b565b6000600560006101000a81548160ff0219169083151502179055505b6000600560009054906101000a900460ff16159050601460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806127435750601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b1561274d57600090505b6000811561287857601660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156127b057506000600f54115b156127d6576064600f54846127c591906138cc565b6127cf9190613955565b9050612854565b601660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561283157506000600e54115b15612853576064600e548461284691906138cc565b6128509190613955565b90505b5b600081111561286957612868853083612f25565b5b80836128759190613986565b92505b612883858585612f25565b5050505050565b60006202a300905090565b638b78c6d8195433146128b0576382b429006000526004601cfd5b565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612921576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129189061417a565b60405180910390fd5b61292d8260008361319b565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156129b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129aa9061420c565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600260008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612a669190613425565b60405180910390a3612a7a836000846131a0565b505050565b6000600267ffffffffffffffff811115612a9c57612a9b61422c565b5b604051908082528060200260200182016040528015612aca5781602001602082028036833780820191505090505b5090503081600081518110612ae257612ae161425b565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bad9190613b70565b81600181518110612bc157612bc061425b565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050612c2830601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684611cad565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b8152600401612c8c959493929190614383565b600060405180830381600087803b158015612ca657600080fd5b505af1158015612cba573d6000803e3d6000fd5b505050505050565b638b78c6d8198160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a38181555050565b80601660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6000612d6630611335565b90506000808203612d78575050612f23565b600b548210612f20576000600b549050612d9181612a7f565b60004790506000606460105483612da891906138cc565b612db29190613955565b905060008183612dc29190613986565b9050600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1682604051612e0a906139eb565b60006040518083038185875af1925050503d8060008114612e47576040519150601f19603f3d011682016040523d82523d6000602084013e612e4c565b606091505b505080955050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681604051612e98906139eb565b60006040518083038185875af1925050503d8060008114612ed5576040519150601f19603f3d011682016040523d82523d6000602084013e612eda565b606091505b5050809550507fe9f689eb4d290dd3a40869ea626055ee4a55d40f20286208d04ef55f39254cff848487604051612f1393929190613a00565b60405180910390a1505050505b50505b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612f94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f8b90613dc8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613003576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ffa90613e5a565b60405180910390fd5b61300e83838361319b565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015613094576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161308b9061444f565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516131829190613425565b60405180910390a36131958484846131a0565b50505050565b505050565b505050565b600081519050919050565b600082825260208201905092915050565b60005b838110156131df5780820151818401526020810190506131c4565b838111156131ee576000848401525b50505050565b6000601f19601f8301169050919050565b6000613210826131a5565b61321a81856131b0565b935061322a8185602086016131c1565b613233816131f4565b840191505092915050565b600060208201905081810360008301526132588184613205565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061329082613265565b9050919050565b6132a081613285565b81146132ab57600080fd5b50565b6000813590506132bd81613297565b92915050565b6000819050919050565b6132d6816132c3565b81146132e157600080fd5b50565b6000813590506132f3816132cd565b92915050565b600080604083850312156133105761330f613260565b5b600061331e858286016132ae565b925050602061332f858286016132e4565b9150509250929050565b60008115159050919050565b61334e81613339565b82525050565b60006020820190506133696000830184613345565b92915050565b60006020828403121561338557613384613260565b5b6000613393848285016132ae565b91505092915050565b6000819050919050565b60006133c16133bc6133b784613265565b61339c565b613265565b9050919050565b60006133d3826133a6565b9050919050565b60006133e5826133c8565b9050919050565b6133f5816133da565b82525050565b600060208201905061341060008301846133ec565b92915050565b61341f816132c3565b82525050565b600060208201905061343a6000830184613416565b92915050565b60008060006060848603121561345957613458613260565b5b6000613467868287016132ae565b9350506020613478868287016132ae565b9250506040613489868287016132e4565b9150509250925092565b600080604083850312156134aa576134a9613260565b5b60006134b8858286016132ae565b92505060206134c9858286016132ae565b9150509250929050565b6134dc81613285565b82525050565b60006020820190506134f760008301846134d3565b92915050565b600060ff82169050919050565b613513816134fd565b82525050565b600060208201905061352e600083018461350a565b92915050565b60006020828403121561354a57613549613260565b5b6000613558848285016132e4565b91505092915050565b61356a81613339565b811461357557600080fd5b50565b60008135905061358781613561565b92915050565b600080604083850312156135a4576135a3613260565b5b60006135b2858286016132ae565b92505060206135c385828601613578565b9150509250929050565b600080604083850312156135e4576135e3613260565b5b60006135f2858286016132e4565b9250506020613603858286016132e4565b9150509250929050565b60006020828403121561362357613622613260565b5b600061363184828501613578565b91505092915050565b600063ffffffff82169050919050565b6136538161363a565b811461365e57600080fd5b50565b6000813590506136708161364a565b92915050565b60006020828403121561368c5761368b613260565b5b600061369a84828501613661565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806136ea57607f821691505b6020821081036136fd576136fc6136a3565b5b50919050565b7f43616c6c6572206973206e6f742061646d696e00000000000000000000000000600082015250565b60006137396013836131b0565b915061374482613703565b602082019050919050565b600060208201905081810360008301526137688161372c565b9050919050565b7f6e756c6c20616464726573730000000000000000000000000000000000000000600082015250565b60006137a5600c836131b0565b91506137b08261376f565b602082019050919050565b600060208201905081810360008301526137d481613798565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613815826132c3565b9150613820836132c3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613855576138546137db565b5b828201905092915050565b7f43616c6c6572206973206e6f742041646d696e00000000000000000000000000600082015250565b60006138966013836131b0565b91506138a182613860565b602082019050919050565b600060208201905081810360008301526138c581613889565b9050919050565b60006138d7826132c3565b91506138e2836132c3565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561391b5761391a6137db565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613960826132c3565b915061396b836132c3565b92508261397b5761397a613926565b5b828204905092915050565b6000613991826132c3565b915061399c836132c3565b9250828210156139af576139ae6137db565b5b828203905092915050565b600081905092915050565b50565b60006139d56000836139ba565b91506139e0826139c5565b600082019050919050565b60006139f6826139c8565b9150819050919050565b6000606082019050613a156000830186613416565b613a226020830185613416565b613a2f6040830184613345565b949350505050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060008201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b6000613a936039836131b0565b9150613a9e82613a37565b604082019050919050565b60006020820190508181036000830152613ac281613a86565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000613b256025836131b0565b9150613b3082613ac9565b604082019050919050565b60006020820190508181036000830152613b5481613b18565b9050919050565b600081519050613b6a81613297565b92915050565b600060208284031215613b8657613b85613260565b5b6000613b9484828501613b5b565b91505092915050565b6000604082019050613bb260008301856134d3565b613bbf60208301846134d3565b9392505050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613c226024836131b0565b9150613c2d82613bc6565b604082019050919050565b60006020820190508181036000830152613c5181613c15565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000613cb46022836131b0565b9150613cbf82613c58565b604082019050919050565b60006020820190508181036000830152613ce381613ca7565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000613d20601d836131b0565b9150613d2b82613cea565b602082019050919050565b60006020820190508181036000830152613d4f81613d13565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000613db26025836131b0565b9150613dbd82613d56565b604082019050919050565b60006020820190508181036000830152613de181613da5565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000613e446023836131b0565b9150613e4f82613de8565b604082019050919050565b60006020820190508181036000830152613e7381613e37565b9050919050565b7f5472616e7366657220616d6f756e74206d75737420626520677265617465722060008201527f7468616e207a65726f0000000000000000000000000000000000000000000000602082015250565b6000613ed66029836131b0565b9150613ee182613e7a565b604082019050919050565b60006020820190508181036000830152613f0581613ec9565b9050919050565b7f54726164696e67206973206e6f7420656e61626c6564207965742e0000000000600082015250565b6000613f42601b836131b0565b9150613f4d82613f0c565b602082019050919050565b60006020820190508181036000830152613f7181613f35565b9050919050565b7f427579207472616e7366657220616d6f756e742065786365656473207468652060008201527f6d61785472616e73616374696f6e416d6f756e742e0000000000000000000000602082015250565b6000613fd46035836131b0565b9150613fdf82613f78565b604082019050919050565b6000602082019050818103600083015261400381613fc7565b9050919050565b7f4d61782077616c6c657420657863656564656400000000000000000000000000600082015250565b60006140406013836131b0565b915061404b8261400a565b602082019050919050565b6000602082019050818103600083015261406f81614033565b9050919050565b7f53656c6c207472616e7366657220616d6f756e7420657863656564732074686560008201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b60006140d26036836131b0565b91506140dd82614076565b604082019050919050565b60006020820190508181036000830152614101816140c5565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006141646021836131b0565b915061416f82614108565b604082019050919050565b6000602082019050818103600083015261419381614157565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b60006141f66022836131b0565b91506142018261419a565b604082019050919050565b60006020820190508181036000830152614225816141e9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000819050919050565b60006142af6142aa6142a58461428a565b61339c565b6132c3565b9050919050565b6142bf81614294565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6142fa81613285565b82525050565b600061430c83836142f1565b60208301905092915050565b6000602082019050919050565b6000614330826142c5565b61433a81856142d0565b9350614345836142e1565b8060005b8381101561437657815161435d8882614300565b975061436883614318565b925050600181019050614349565b5085935050505092915050565b600060a0820190506143986000830188613416565b6143a560208301876142b6565b81810360408301526143b78186614325565b90506143c660608301856134d3565b6143d36080830184613416565b9695505050505050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b60006144396026836131b0565b9150614444826143dd565b604082019050919050565b600060208201905081810360008301526144688161442c565b905091905056fea2646970667358221220772547395cbe21d067653039cd1826ee4a98646a569ce93ccd41e7c416f1238d64736f6c634300080d0033
Deployed Bytecode
0x60806040526004361061031e5760003560e01c806375f0a874116101ab578063c0246668116100f7578063e950f40611610095578063f2fde38b1161006f578063f2fde38b14610b5c578063f8b45b0514610b78578063fee81cf414610ba3578063ff1b636d14610be057610325565b8063e950f40614610ad8578063eec1c69f14610b03578063f04e283e14610b4057610325565b8063e0f3ccf5116100d1578063e0f3ccf514610a2e578063e2f4560514610a59578063e4748b9e14610a84578063e8f99ff114610aaf57610325565b8063c02466681461099d578063c8c8ebe4146109c6578063dd62ed3e146109f157610325565b806395d89b4111610164578063a9059cbb1161013e578063a9059cbb146108ee578063b62496f51461092b578063bbc0c74214610968578063bf4bdb271461099357610325565b806395d89b411461085d5780639a7a23d614610888578063a457c2d7146108b157610325565b806375f0a874146107735780638a8c523c1461079e5780638da5cb5b146107b55780638e5c1f50146107e05780638ea5220f14610809578063924de9b71461083457610325565b8063395093511161026a5780635e1fab0f1161022357806370a08231116101fd57806370a08231146106d8578063715018a614610715578063751039fc1461071f5780637571336a1461074a57610325565b80635e1fab0f1461066d5780636ddd1713146106965780636fc3eaec146106c157610325565b8063395093511461056a57806342966c68146105a757806349bd5a5e146105d05780634a62bb65146105fb5780634fbee1931461062657806354d1f13d1461066357610325565b806325692962116102d757806328622fb8116102b157806328622fb8146104c05780632b345964146104e9578063313ce56714610514578063360bfd541461053f57610325565b8063256929621461046257806325d92ee21461046c57806327c8f8351461049557610325565b806306fdde031461032a578063095ea7b31461035557806310d5de53146103925780631694505e146103cf57806318160ddd146103fa57806323b872dd1461042557610325565b3661032557005b600080fd5b34801561033657600080fd5b5061033f610c0b565b60405161034c919061323e565b60405180910390f35b34801561036157600080fd5b5061037c600480360381019061037791906132f9565b610c9d565b6040516103899190613354565b60405180910390f35b34801561039e57600080fd5b506103b960048036038101906103b4919061336f565b610cc0565b6040516103c69190613354565b60405180910390f35b3480156103db57600080fd5b506103e4610ce0565b6040516103f191906133fb565b60405180910390f35b34801561040657600080fd5b5061040f610d06565b60405161041c9190613425565b60405180910390f35b34801561043157600080fd5b5061044c60048036038101906104479190613440565b610d10565b6040516104599190613354565b60405180910390f35b61046a610d3f565b005b34801561047857600080fd5b50610493600480360381019061048e9190613493565b610d93565b005b3480156104a157600080fd5b506104aa610e21565b6040516104b791906134e2565b60405180910390f35b3480156104cc57600080fd5b506104e760048036038101906104e2919061336f565b610e27565b005b3480156104f557600080fd5b506104fe610f6a565b60405161050b9190613425565b60405180910390f35b34801561052057600080fd5b50610529610f70565b6040516105369190613519565b60405180910390f35b34801561054b57600080fd5b50610554610f79565b6040516105619190613425565b60405180910390f35b34801561057657600080fd5b50610591600480360381019061058c91906132f9565b610f7f565b60405161059e9190613354565b60405180910390f35b3480156105b357600080fd5b506105ce60048036038101906105c99190613534565b610fb6565b005b3480156105dc57600080fd5b506105e5610fc3565b6040516105f291906134e2565b60405180910390f35b34801561060757600080fd5b50610610610fe9565b60405161061d9190613354565b60405180910390f35b34801561063257600080fd5b5061064d6004803603810190610648919061336f565b610ffc565b60405161065a9190613354565b60405180910390f35b61066b611052565b005b34801561067957600080fd5b50610694600480360381019061068f919061336f565b61108e565b005b3480156106a257600080fd5b506106ab611162565b6040516106b89190613354565b60405180910390f35b3480156106cd57600080fd5b506106d6611175565b005b3480156106e457600080fd5b506106ff60048036038101906106fa919061336f565b611335565b60405161070c9190613425565b60405180910390f35b61071d61137d565b005b34801561072b57600080fd5b50610734611391565b6040516107419190613354565b60405180910390f35b34801561075657600080fd5b50610771600480360381019061076c919061358d565b6113cd565b005b34801561077f57600080fd5b50610788611430565b60405161079591906134e2565b60405180910390f35b3480156107aa57600080fd5b506107b3611456565b005b3480156107c157600080fd5b506107ca611496565b6040516107d791906134e2565b60405180910390f35b3480156107ec57600080fd5b50610807600480360381019061080291906135cd565b6114a4565b005b34801561081557600080fd5b5061081e6114be565b60405161082b91906134e2565b60405180910390f35b34801561084057600080fd5b5061085b6004803603810190610856919061360d565b6114e4565b005b34801561086957600080fd5b50610872611509565b60405161087f919061323e565b60405180910390f35b34801561089457600080fd5b506108af60048036038101906108aa919061358d565b61159b565b005b3480156108bd57600080fd5b506108d860048036038101906108d391906132f9565b611641565b6040516108e59190613354565b60405180910390f35b3480156108fa57600080fd5b50610915600480360381019061091091906132f9565b6116b8565b6040516109229190613354565b60405180910390f35b34801561093757600080fd5b50610952600480360381019061094d919061336f565b6116db565b60405161095f9190613354565b60405180910390f35b34801561097457600080fd5b5061097d6116fb565b60405161098a9190613354565b60405180910390f35b61099b61170e565b005b3480156109a957600080fd5b506109c460048036038101906109bf919061358d565b6119a6565b005b3480156109d257600080fd5b506109db611a09565b6040516109e89190613425565b60405180910390f35b3480156109fd57600080fd5b50610a186004803603810190610a139190613493565b611a0f565b604051610a259190613425565b60405180910390f35b348015610a3a57600080fd5b50610a43611a96565b604051610a509190613425565b60405180910390f35b348015610a6557600080fd5b50610a6e611a9c565b604051610a7b9190613425565b60405180910390f35b348015610a9057600080fd5b50610a99611aa2565b604051610aa69190613425565b60405180910390f35b348015610abb57600080fd5b50610ad66004803603810190610ad191906135cd565b611aa8565b005b348015610ae457600080fd5b50610aed611ac2565b604051610afa91906134e2565b60405180910390f35b348015610b0f57600080fd5b50610b2a6004803603810190610b259190613676565b611ae8565b604051610b379190613354565b60405180910390f35b610b5a6004803603810190610b55919061336f565b611bf3565b005b610b766004803603810190610b71919061336f565b611c34565b005b348015610b8457600080fd5b50610b8d611c5e565b604051610b9a9190613425565b60405180910390f35b348015610baf57600080fd5b50610bca6004803603810190610bc5919061336f565b611c64565b604051610bd79190613425565b60405180910390f35b348015610bec57600080fd5b50610bf5611c7f565b604051610c0291906134e2565b60405180910390f35b606060038054610c1a906136d2565b80601f0160208091040260200160405190810160405280929190818152602001828054610c46906136d2565b8015610c935780601f10610c6857610100808354040283529160200191610c93565b820191906000526020600020905b815481529060010190602001808311610c7657829003601f168201915b5050505050905090565b600080610ca8611ca5565b9050610cb5818585611cad565b600191505092915050565b60156020528060005260406000206000915054906101000a900460ff1681565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600254905090565b600080610d1b611ca5565b9050610d28858285611e76565b610d33858585611f02565b60019150509392505050565b6000610d4961288a565b67ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b610d9b612895565b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600560016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b61dead81565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610eb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eae9061374f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1d906137bb565b60405180910390fd5b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60115481565b60006012905090565b60105481565b600080610f8a611ca5565b9050610fab818585610f9c8589611a0f565b610fa6919061380a565b611cad565b600191505092915050565b610fc033826128b2565b50565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d60009054906101000a900460ff1681565b6000601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461111e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611115906138ac565b60405180910390fd5b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600d60029054906101000a900460ff1681565b61117d612895565b600061118830611335565b9050600080820361119a575050611333565b6111a382612a7f565b600047905060006064601054836111ba91906138cc565b6111c49190613955565b9050600081836111d49190613986565b9050600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168260405161121c906139eb565b60006040518083038185875af1925050503d8060008114611259576040519150601f19603f3d011682016040523d82523d6000602084013e61125e565b606091505b505080945050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16816040516112aa906139eb565b60006040518083038185875af1925050503d80600081146112e7576040519150601f19603f3d011682016040523d82523d6000602084013e6112ec565b606091505b5050809450507fe9f689eb4d290dd3a40869ea626055ee4a55d40f20286208d04ef55f39254cff85848660405161132593929190613a00565b60405180910390a150505050505b565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611385612895565b61138f6000612cc2565b565b600061139b612895565b6000600d60006101000a81548160ff0219169083151502179055506005600f819055506005600e819055506001905090565b6113d5612895565b80601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61145e612895565b6001600d60016101000a81548160ff0219169083151502179055506001600d60026101000a81548160ff021916908315150217905550565b6000638b78c6d81954905090565b6114ac612895565b81600e8190555080600f819055505050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6114ec612895565b80600d60026101000a81548160ff02191690831515021790555050565b606060048054611518906136d2565b80601f0160208091040260200160405190810160405280929190818152602001828054611544906136d2565b80156115915780601f1061156657610100808354040283529160200191611591565b820191906000526020600020905b81548152906001019060200180831161157457829003601f168201915b5050505050905090565b6115a3612895565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611633576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162a90613aa9565b60405180910390fd5b61163d8282612d00565b5050565b60008061164c611ca5565b9050600061165a8286611a0f565b90508381101561169f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169690613b3b565b60405180910390fd5b6116ac8286868403611cad565b60019250505092915050565b6000806116c3611ca5565b90506116d0818585611f02565b600191505092915050565b60166020528060005260406000206000915054906101000a900460ff1681565b600d60019054906101000a900460ff1681565b611716612895565b6000737a250d5630b4cf539739df2c5dacb4c659f2488d905080601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061177b8160016113cd565b6117af30601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166117aa610d06565b611cad565b8073ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061181e9190613b70565b73ffffffffffffffffffffffffffffffffffffffff1663c9c65396308373ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611885573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118a99190613b70565b6040518363ffffffff1660e01b81526004016118c6929190613b9d565b6020604051808303816000875af11580156118e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119099190613b70565b601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611976601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660016113cd565b6119a3601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166001612d00565b50565b6119ae612895565b80601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600a5481565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600f5481565b600b5481565b600e5481565b611ab0612895565b81600c8190555080600a819055505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080611af3611ca5565b9050611b41600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610c9d565b50600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9257fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff604051611be19190613425565b60405180910390a36001915050919050565b611bfb612895565b63389a75e1600c52806000526020600c208054421115611c2357636f5e88186000526004601cfd5b6000815550611c3181612cc2565b50565b611c3c612895565b8060601b611c5257637448fbae6000526004601cfd5b611c5b81612cc2565b50565b600c5481565b600063389a75e1600c52816000526020600c20549050919050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611d1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1390613c38565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611d8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8290613cca565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611e699190613425565b60405180910390a3505050565b6000611e828484611a0f565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114611efc5781811015611eee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee590613d36565b60405180910390fd5b611efb8484848403611cad565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611f71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6890613dc8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611fe0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd790613e5a565b60405180910390fd5b60008111612023576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201a90613eec565b60405180910390fd5b600d60009054906101000a900460ff161561251e57612040611496565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156120ae575061207e611496565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156120e75750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612121575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561213a5750600560009054906101000a900460ff16155b1561251d57600d60019054906101000a900460ff1661223457601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806121f45750601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612233576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222a90613f58565b60405180910390fd5b5b601660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156122d75750601560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561237e57600a54811115612321576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231890613fea565b60405180910390fd5b600c5461232d83611335565b82612338919061380a565b1115612379576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237090614056565b60405180910390fd5b61251c565b601660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156124215750601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561247057600a5481111561246b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612462906140e8565b60405180910390fd5b61251b565b601560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661251a57600c546124cd83611335565b826124d8919061380a565b1115612519576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251090614056565b60405180910390fd5b5b5b5b5b5b600d60029054906101000a900460ff1680156125475750600560009054906101000a900460ff16155b801561259d5750601660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156125f35750601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156126495750601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561268d576001600560006101000a81548160ff021916908315150217905550612671612d5b565b6000600560006101000a81548160ff0219169083151502179055505b6000600560009054906101000a900460ff16159050601460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806127435750601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b1561274d57600090505b6000811561287857601660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156127b057506000600f54115b156127d6576064600f54846127c591906138cc565b6127cf9190613955565b9050612854565b601660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561283157506000600e54115b15612853576064600e548461284691906138cc565b6128509190613955565b90505b5b600081111561286957612868853083612f25565b5b80836128759190613986565b92505b612883858585612f25565b5050505050565b60006202a300905090565b638b78c6d8195433146128b0576382b429006000526004601cfd5b565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612921576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129189061417a565b60405180910390fd5b61292d8260008361319b565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156129b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129aa9061420c565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600260008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612a669190613425565b60405180910390a3612a7a836000846131a0565b505050565b6000600267ffffffffffffffff811115612a9c57612a9b61422c565b5b604051908082528060200260200182016040528015612aca5781602001602082028036833780820191505090505b5090503081600081518110612ae257612ae161425b565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bad9190613b70565b81600181518110612bc157612bc061425b565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050612c2830601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684611cad565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b8152600401612c8c959493929190614383565b600060405180830381600087803b158015612ca657600080fd5b505af1158015612cba573d6000803e3d6000fd5b505050505050565b638b78c6d8198160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a38181555050565b80601660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6000612d6630611335565b90506000808203612d78575050612f23565b600b548210612f20576000600b549050612d9181612a7f565b60004790506000606460105483612da891906138cc565b612db29190613955565b905060008183612dc29190613986565b9050600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1682604051612e0a906139eb565b60006040518083038185875af1925050503d8060008114612e47576040519150601f19603f3d011682016040523d82523d6000602084013e612e4c565b606091505b505080955050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681604051612e98906139eb565b60006040518083038185875af1925050503d8060008114612ed5576040519150601f19603f3d011682016040523d82523d6000602084013e612eda565b606091505b5050809550507fe9f689eb4d290dd3a40869ea626055ee4a55d40f20286208d04ef55f39254cff848487604051612f1393929190613a00565b60405180910390a1505050505b50505b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612f94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f8b90613dc8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613003576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ffa90613e5a565b60405180910390fd5b61300e83838361319b565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015613094576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161308b9061444f565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516131829190613425565b60405180910390a36131958484846131a0565b50505050565b505050565b505050565b600081519050919050565b600082825260208201905092915050565b60005b838110156131df5780820151818401526020810190506131c4565b838111156131ee576000848401525b50505050565b6000601f19601f8301169050919050565b6000613210826131a5565b61321a81856131b0565b935061322a8185602086016131c1565b613233816131f4565b840191505092915050565b600060208201905081810360008301526132588184613205565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061329082613265565b9050919050565b6132a081613285565b81146132ab57600080fd5b50565b6000813590506132bd81613297565b92915050565b6000819050919050565b6132d6816132c3565b81146132e157600080fd5b50565b6000813590506132f3816132cd565b92915050565b600080604083850312156133105761330f613260565b5b600061331e858286016132ae565b925050602061332f858286016132e4565b9150509250929050565b60008115159050919050565b61334e81613339565b82525050565b60006020820190506133696000830184613345565b92915050565b60006020828403121561338557613384613260565b5b6000613393848285016132ae565b91505092915050565b6000819050919050565b60006133c16133bc6133b784613265565b61339c565b613265565b9050919050565b60006133d3826133a6565b9050919050565b60006133e5826133c8565b9050919050565b6133f5816133da565b82525050565b600060208201905061341060008301846133ec565b92915050565b61341f816132c3565b82525050565b600060208201905061343a6000830184613416565b92915050565b60008060006060848603121561345957613458613260565b5b6000613467868287016132ae565b9350506020613478868287016132ae565b9250506040613489868287016132e4565b9150509250925092565b600080604083850312156134aa576134a9613260565b5b60006134b8858286016132ae565b92505060206134c9858286016132ae565b9150509250929050565b6134dc81613285565b82525050565b60006020820190506134f760008301846134d3565b92915050565b600060ff82169050919050565b613513816134fd565b82525050565b600060208201905061352e600083018461350a565b92915050565b60006020828403121561354a57613549613260565b5b6000613558848285016132e4565b91505092915050565b61356a81613339565b811461357557600080fd5b50565b60008135905061358781613561565b92915050565b600080604083850312156135a4576135a3613260565b5b60006135b2858286016132ae565b92505060206135c385828601613578565b9150509250929050565b600080604083850312156135e4576135e3613260565b5b60006135f2858286016132e4565b9250506020613603858286016132e4565b9150509250929050565b60006020828403121561362357613622613260565b5b600061363184828501613578565b91505092915050565b600063ffffffff82169050919050565b6136538161363a565b811461365e57600080fd5b50565b6000813590506136708161364a565b92915050565b60006020828403121561368c5761368b613260565b5b600061369a84828501613661565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806136ea57607f821691505b6020821081036136fd576136fc6136a3565b5b50919050565b7f43616c6c6572206973206e6f742061646d696e00000000000000000000000000600082015250565b60006137396013836131b0565b915061374482613703565b602082019050919050565b600060208201905081810360008301526137688161372c565b9050919050565b7f6e756c6c20616464726573730000000000000000000000000000000000000000600082015250565b60006137a5600c836131b0565b91506137b08261376f565b602082019050919050565b600060208201905081810360008301526137d481613798565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613815826132c3565b9150613820836132c3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613855576138546137db565b5b828201905092915050565b7f43616c6c6572206973206e6f742041646d696e00000000000000000000000000600082015250565b60006138966013836131b0565b91506138a182613860565b602082019050919050565b600060208201905081810360008301526138c581613889565b9050919050565b60006138d7826132c3565b91506138e2836132c3565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561391b5761391a6137db565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613960826132c3565b915061396b836132c3565b92508261397b5761397a613926565b5b828204905092915050565b6000613991826132c3565b915061399c836132c3565b9250828210156139af576139ae6137db565b5b828203905092915050565b600081905092915050565b50565b60006139d56000836139ba565b91506139e0826139c5565b600082019050919050565b60006139f6826139c8565b9150819050919050565b6000606082019050613a156000830186613416565b613a226020830185613416565b613a2f6040830184613345565b949350505050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060008201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b6000613a936039836131b0565b9150613a9e82613a37565b604082019050919050565b60006020820190508181036000830152613ac281613a86565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000613b256025836131b0565b9150613b3082613ac9565b604082019050919050565b60006020820190508181036000830152613b5481613b18565b9050919050565b600081519050613b6a81613297565b92915050565b600060208284031215613b8657613b85613260565b5b6000613b9484828501613b5b565b91505092915050565b6000604082019050613bb260008301856134d3565b613bbf60208301846134d3565b9392505050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613c226024836131b0565b9150613c2d82613bc6565b604082019050919050565b60006020820190508181036000830152613c5181613c15565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000613cb46022836131b0565b9150613cbf82613c58565b604082019050919050565b60006020820190508181036000830152613ce381613ca7565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000613d20601d836131b0565b9150613d2b82613cea565b602082019050919050565b60006020820190508181036000830152613d4f81613d13565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000613db26025836131b0565b9150613dbd82613d56565b604082019050919050565b60006020820190508181036000830152613de181613da5565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000613e446023836131b0565b9150613e4f82613de8565b604082019050919050565b60006020820190508181036000830152613e7381613e37565b9050919050565b7f5472616e7366657220616d6f756e74206d75737420626520677265617465722060008201527f7468616e207a65726f0000000000000000000000000000000000000000000000602082015250565b6000613ed66029836131b0565b9150613ee182613e7a565b604082019050919050565b60006020820190508181036000830152613f0581613ec9565b9050919050565b7f54726164696e67206973206e6f7420656e61626c6564207965742e0000000000600082015250565b6000613f42601b836131b0565b9150613f4d82613f0c565b602082019050919050565b60006020820190508181036000830152613f7181613f35565b9050919050565b7f427579207472616e7366657220616d6f756e742065786365656473207468652060008201527f6d61785472616e73616374696f6e416d6f756e742e0000000000000000000000602082015250565b6000613fd46035836131b0565b9150613fdf82613f78565b604082019050919050565b6000602082019050818103600083015261400381613fc7565b9050919050565b7f4d61782077616c6c657420657863656564656400000000000000000000000000600082015250565b60006140406013836131b0565b915061404b8261400a565b602082019050919050565b6000602082019050818103600083015261406f81614033565b9050919050565b7f53656c6c207472616e7366657220616d6f756e7420657863656564732074686560008201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b60006140d26036836131b0565b91506140dd82614076565b604082019050919050565b60006020820190508181036000830152614101816140c5565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006141646021836131b0565b915061416f82614108565b604082019050919050565b6000602082019050818103600083015261419381614157565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b60006141f66022836131b0565b91506142018261419a565b604082019050919050565b60006020820190508181036000830152614225816141e9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000819050919050565b60006142af6142aa6142a58461428a565b61339c565b6132c3565b9050919050565b6142bf81614294565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6142fa81613285565b82525050565b600061430c83836142f1565b60208301905092915050565b6000602082019050919050565b6000614330826142c5565b61433a81856142d0565b9350614345836142e1565b8060005b8381101561437657815161435d8882614300565b975061436883614318565b925050600181019050614349565b5085935050505092915050565b600060a0820190506143986000830188613416565b6143a560208301876142b6565b81810360408301526143b78186614325565b90506143c660608301856134d3565b6143d36080830184613416565b9695505050505050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b60006144396026836131b0565b9150614444826143dd565b604082019050919050565b600060208201905081810360008301526144688161442c565b905091905056fea2646970667358221220772547395cbe21d067653039cd1826ee4a98646a569ce93ccd41e7c416f1238d64736f6c634300080d0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.