ERC-20
Overview
Max Total Supply
1,000,000,000 EXOTIX
Holders
767
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 9 Decimals)
Balance
1,021.587862166 EXOTIXValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
ExotixTech
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: UNLICENSED /** * Exotix v2 * * Note: Transfer tax is hard-limited to 0 */ pragma solidity ^0.8.15; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IWETH.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "./DPT/TokenDividendTracker.sol"; import "./IMultisend.sol"; import "hardhat/console.sol"; // Seriously if you audit this and ping it for "no safemath used" you're gonna out yourself as an idiot // SafeMath is by default included in solidity 0.8, I've only included it for the transferFrom contract ExotixTech is Context, IERC20, Ownable, IMultisend, IERC20Permit { event Bought(address indexed buyer, uint256 amount); event Sold(address indexed seller, uint256 amount); using SafeMath for uint256; // Constants string private constant _name = "Exotix Tech"; string private constant _symbol = "EXOTIX"; // Standard decimals uint8 private immutable _decimals; uint256 private immutable totalTokens; address private constant usdc = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48; // Mappings mapping(address => uint256) private balances; mapping(address => mapping(address => uint256)) private _allowances; /** START OF EIP2612/EIP712 VARS */ using Counters for Counters.Counter; mapping(address => Counters.Counter) private _nonces; /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; address private immutable _CACHED_THIS; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /** END OF EIP2612/EIP712 VARS */ struct mappingStructs { bool _isExcludedFromFee; bool _bots; uint32 _lastTxBlock; uint32 botBlock; bool isLPPair; } struct TaxWallet { address wallet; uint32 ratio; } mapping(address => mappingStructs) mappedAddresses; // Arrays address[] private holders; TaxWallet[] private taxWallets; // Global variables // Block of 256 bits address public dividendTracker; uint32 private openBlock; uint32 private sellTax = 12000; // Storage block closed // Block of 256 bits address private _controller; bool private tradingOpen; bool private inSwap = false; bool private swapEnabled = false; bool private cooldownEnabled = false; // Storage block closed // Block of 256 bits address private devWallet; uint32 ethSendThresholdDivisor = 1000; uint32 private totalRatio; bool disableAddToBlocklist = false; // 48 bits left IUniswapV2Router02 private uniswapV2Router; modifier onlyERC20Controller() { require( _msgSender() == _controller, "TokenClawback: caller is not the ERC20 controller." ); _; } modifier onlyDev() { require( _msgSender() == devWallet, "Exotix: Only developer can set this." ); _; } constructor(address controller, address dev, TaxWallet[] memory wallets) { // Set up EIP712 bytes32 hashedName = keccak256(bytes(_name)); bytes32 hashedVersion = keccak256(bytes("1")); bytes32 typeHash = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _CACHED_THIS = address(this); _TYPE_HASH = typeHash; // ERC20 controller _controller = payable(controller); devWallet = dev; // Create the DPT, pays out in USDC and Exotix TokenDividendTracker tracker = new TokenDividendTracker(usdc, address(this), 1000000000000000, 1000000000); dividendTracker = address(tracker); tracker.excludeFromDividends(dividendTracker); tracker.excludeFromDividends(address(this)); tracker.excludeFromDividends(owner()); tracker.excludeFromDividends(address(0x000000000000000000000000000000000000dEaD)); { uint256 totalSupplyND = 1000000000; uint8 decimalsC = 9; balances[_msgSender()] = totalSupplyND * 10**decimalsC; totalTokens = totalSupplyND * 10**decimalsC; _decimals = decimalsC; } mappedAddresses[_msgSender()] = mappingStructs({ _isExcludedFromFee: true, _bots: false, _lastTxBlock: 0, botBlock: 0, isLPPair: false }); mappedAddresses[address(this)] = mappingStructs({ _isExcludedFromFee: true, _bots: false, _lastTxBlock: 0, botBlock: 0, isLPPair: false }); // For instrumentation, we have to make this copy ourselves uint32 initialRatio = 0; for(uint256 i = 0; i < wallets.length; i++) { mappedAddresses[wallets[i].wallet] = mappingStructs({ _isExcludedFromFee: true, _bots: false, _lastTxBlock: 0, botBlock: 0, isLPPair: false }); initialRatio += wallets[i].ratio; tracker.excludeFromDividends(wallets[i].wallet); // Copy across now as the "classic" non-IR compiler can't do this copy taxWallets.push(TaxWallet(wallets[i].wallet, wallets[i].ratio)); } totalRatio = initialRatio; emit Transfer(address(0), _msgSender(), totalTokens); } function name() public pure returns (string memory) { return _name; } function symbol() public pure returns (string memory) { return _symbol; } function decimals() public view returns (uint8) { return _decimals; } function totalSupply() public view override returns (uint256) { return totalTokens; } function balanceOf(address account) public view override returns (uint256) { return balances[account]; } function transfer(address recipient, uint256 amount) public override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } function allowance(address owner, address spender) public view override returns (uint256) { return _allowances[owner][spender]; } function approve(address spender, uint256 amount) public override returns (bool) { _approve(_msgSender(), spender, amount); return true; } function transferFrom( address sender, address recipient, uint256 amount ) public override returns (bool) { _transfer(sender, recipient, amount); _approve( sender, _msgSender(), _allowances[sender][_msgSender()].sub( amount, "ERC20: transfer amount exceeds allowance" ) ); return true; } /// @notice Sets cooldown status. Only callable by owner. /// @param onoff The boolean to set. function setCooldownEnabled(bool onoff) external onlyOwner { cooldownEnabled = onoff; } /// @notice Starts trading. Only callable by owner. function openTrading() public onlyOwner { require(!tradingOpen, "trading is already open"); IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02( 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D ); uniswapV2Router = _uniswapV2Router; _approve(address(this), address(uniswapV2Router), totalTokens); address uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()) .createPair(address(this), _uniswapV2Router.WETH()); uniswapV2Router.addLiquidityETH{value: address(this).balance}( address(this), balanceOf(address(this)), 0, 0, owner(), block.timestamp ); swapEnabled = true; cooldownEnabled = true; tradingOpen = true; openBlock = uint32(block.number); // Add the pairs to the list mappedAddresses[uniswapV2Pair] = mappingStructs({ _isExcludedFromFee: false, _bots: false, _lastTxBlock: 0, botBlock: 0, isLPPair: true }); // Lock from dividends TokenDividendTracker(dividendTracker).excludeFromDividends(address(_uniswapV2Router)); TokenDividendTracker(dividendTracker).excludeFromDividends(address(uniswapV2Pair)); } function _approve( address owner, address spender, uint256 amount ) private { 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); } function _transfer( address from, address to, uint256 amount ) private { 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"); uint32 _taxAmt; bool isSell = false; if ( from != owner() && to != owner() && from != address(this) && !mappedAddresses[to]._isExcludedFromFee && !mappedAddresses[from]._isExcludedFromFee ) { require( !mappedAddresses[to]._bots && !mappedAddresses[from]._bots, "Exotix: Blocklisted." ); // Buys if ( (mappedAddresses[from].isLPPair) && to != address(uniswapV2Router) ) { _taxAmt = 0; if (cooldownEnabled) { // Check if last tx occurred this block - prevents sandwich attacks require( mappedAddresses[to]._lastTxBlock != block.number, "Exotix: One tx per block." ); mappedAddresses[to]._lastTxBlock = uint32(block.number); } } else if ( (mappedAddresses[to].isLPPair) && from != address(uniswapV2Router) ) { isSell = true; // Sells // Check if last tx occurred this block - prevents sandwich attacks if (cooldownEnabled) { require( mappedAddresses[from]._lastTxBlock != block.number, "Exotix: One tx per block." ); mappedAddresses[from]._lastTxBlock == block.number; } // Sells _taxAmt = sellTax; } else { // No code to change transfer tax _taxAmt = 0; } } else { // Only make it here if it's from or to owner or from contract address. _taxAmt = 0; } _tokenTransfer(from, to, amount, _taxAmt, isSell); } function setMinDividendBalanceUSDC(uint256 newMin) external onlyOwner { require(newMin < totalTokens, "Can't have new minimum above total supply"); TokenDividendTracker(dividendTracker).setminimumTokenBalanceForDividends1(newMin); } function doTaxes(uint256 tokenAmount) private { // Reentrancy guard/stop infinite tax sells mainly inSwap = true; if(_allowances[address(this)][address(uniswapV2Router)] < tokenAmount) { // Our approvals run low, redo it _approve(address(this), address(uniswapV2Router), totalTokens); } address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); // Swap direct to WETH and let router unwrap uniswapV2Router.swapExactTokensForETH( tokenAmount, 0, path, address(this), block.timestamp ); sendETHToFee(address(this).balance); inSwap = false; } function sendETHToFee(uint256 amount) private { // This fixes gas reprice issues - reentrancy is not an issue as the fee wallets are trusted. for(uint256 i = 0; i < taxWallets.length; i++) { Address.sendValue(payable(taxWallets[i].wallet), (amount * taxWallets[i].ratio) / totalRatio); } } /** * We can do this because we're the controller */ function sendExotixDividends(uint256 amount) public { _tokenTransfer(_msgSender(), dividendTracker, amount, 0, false); TokenDividendTracker(dividendTracker).afterReceivedExotix(amount); } /** * This requires you approve the CA to spend USDC */ function sendUSDCDividends(uint256 amount) public { IERC20(usdc).transferFrom(_msgSender(), dividendTracker, amount); TokenDividendTracker(dividendTracker).afterReceivedUSDC(amount); } receive() external payable {} // Underlying transfer functions go here function _tokenTransfer( address sender, address recipient, uint256 amount, uint32 _taxAmt, bool isSell ) private { uint256 receiverAmount; if(isSell) { // Do the normal tax setup uint256 taxAmount = calculateTaxesFee(amount, _taxAmt); receiverAmount = amount - taxAmount; if (taxAmount > 0) { balances[address(this)] = balances[address(this)] + taxAmount; emit Transfer(sender, address(this), taxAmount); doTaxes(taxAmount); } emit Sold(sender, receiverAmount); } else { receiverAmount = amount; emit Bought(recipient, amount); } // Actually send tokens subtractTokens(sender, amount); addTokens(recipient, receiverAmount); try TokenDividendTracker(dividendTracker).setBalance(payable(sender), balanceOf(sender)) {} catch {} try TokenDividendTracker(dividendTracker).setBalance(payable(recipient), balanceOf(recipient)) {} catch {} // Emit transfers, because the specs say to emit Transfer(sender, recipient, receiverAmount); } /// @dev Does holder count maths function subtractTokens(address account, uint256 amount) private { balances[account] = balances[account] - amount; } /// @dev Does holder count maths and adds to the raffle list if a new buyer function addTokens(address account, uint256 amount) private { if(balances[account] == 0) { holders.push(account); } balances[account] = balances[account] + amount; } function calculateTaxesFee(uint256 _amount, uint32 _taxAmt) private pure returns (uint256 tax) { tax = (_amount * _taxAmt) / 100000; } /// @notice Sets an ETH send divisor. Only callable by owner. /// @param newDivisor the new divisor to set. function setEthSendDivisor(uint32 newDivisor) public onlyOwner { ethSendThresholdDivisor = newDivisor; } function addTaxWallet(TaxWallet calldata wall) external onlyOwner { taxWallets.push(wall); mappedAddresses[wall.wallet]._isExcludedFromFee = true; // Recalculate the ratio, as we're adding, just add that ratio on totalRatio += wall.ratio; } function removeTaxWallet(address wallet) external onlyOwner { mappedAddresses[wallet]._isExcludedFromFee = false; bool found = false; for(uint256 i = 0; i < taxWallets.length; i++) { if(taxWallets[i].wallet == wallet) { // Fill this with the end taxWallets[i] = taxWallets[taxWallets.length - 1]; taxWallets.pop(); found = true; } } require(found, "Exotix: Not in tax list."); // Have to recalculate the entire ratio as we dunno what was removed uint32 initialRatio = 0; for(uint256 i = 0; i < taxWallets.length; i++) { initialRatio += taxWallets[i].ratio; } totalRatio = initialRatio; } /// @notice Changes ERC20 controller address. Only callable by dev. /// @param newWallet the address to set as the controller. function changeERC20Controller(address newWallet) external onlyDev { _controller = payable(newWallet); } /// @notice Allows new pairs to be added to the "watcher" code /// @param pair the address to add as the liquidity pair function addNewLPPair(address pair) external onlyOwner { mappedAddresses[pair].isLPPair = true; } /// @notice Irreversibly disables blocklist additions after launch has settled. /// @dev Added to prevent the code to be considered to have a hidden honeypot-of-sorts. function disableBlocklistAdd() external onlyOwner { disableAddToBlocklist = true; } /// @notice Sets an account exclusion or inclusion from fees. /// @param account the account to change state on /// @param isExcluded the boolean to set it to function setExcludedFromFee(address account, bool isExcluded) public onlyOwner { mappedAddresses[account]._isExcludedFromFee = isExcluded; } /// @notice Sets the sell tax, out of 100000. Only callable by owner. Max of 20000. /// @param amount the tax out of 100000. function setSellTax(uint32 amount) external onlyOwner { require(amount <= 20000, "Exotix: Maximum sell tax of 20%."); sellTax = amount; } /// @notice Changes bot flag. Only callable by owner. Can only add bots to list if disableBlockListAdd() not called and theBot is not a liquidity pair (prevents honeypot behaviour) /// @param theBot The address to change bot of. /// @param toSet The value to set. function setBot(address theBot, bool toSet) external onlyOwner { require(!mappedAddresses[theBot].isLPPair, "Exotix: Cannot manipulate blocklist status of a liquidity pair."); if(toSet) { require(!disableAddToBlocklist, "Exotix: Blocklist additions have been disabled."); } mappedAddresses[theBot]._bots = toSet; } function checkBot(address bot) public view returns(bool) { return mappedAddresses[bot]._bots; } /// @notice Returns if an account is excluded from fees. /// @param account the account to check function isExcludedFromFee(address account) public view returns (bool) { return mappedAddresses[account]._isExcludedFromFee; } // IMultisend implementation /// @notice Allows a multi-send to save on gas /// @param addr array of addresses to send to /// @param val array of values to go with addresses function multisend(address[] calldata addr, uint256[] calldata val) external override { require(addr.length == val.length, "Exotix: MISMATCH"); for(uint i = 0; i < addr.length; i++) { // There's gas savings to be had to do this - we bypass top-level subtractTokens(_msgSender(), val[i]); addTokens(addr[i], val[i]); try TokenDividendTracker(dividendTracker).setBalance(payable(addr[i]), balanceOf(addr[i])) {} catch {} // Emit transfers, because the specs say to emit Transfer(_msgSender(), addr[i], val[i]); } // Do this at the end try TokenDividendTracker(dividendTracker).setBalance(payable(_msgSender()), balanceOf(_msgSender())) {} catch {} } /// @notice Allows a multi-send to save on gas on behalf of someone - need approvals /// @param sender sender to use - must be approved to spend /// @param addrRecipients array of addresses to send to /// @param vals array of values to go with addresses function multisendFrom(address sender, address[] calldata addrRecipients, uint256[] calldata vals) external override { require(addrRecipients.length == vals.length, "Exotix: MISMATCH"); uint256 totalSpend = 0; for(uint i = 0; i < addrRecipients.length; i++) { // More gas savings as we bypass top-level checks - we have to do approval subs tho subtractTokens(_msgSender(), vals[i]); addTokens(addrRecipients[i], vals[i]); try TokenDividendTracker(dividendTracker).setBalance(payable(addrRecipients[i]), balanceOf(addrRecipients[i])) {} catch {} // Emit transfers, because the specs say to emit Transfer(_msgSender(), addrRecipients[i], vals[i]); totalSpend += vals[i]; } // One approve at the end _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(totalSpend, "Multisend: Not enough allowance.")); // Set the new balance try TokenDividendTracker(dividendTracker).setBalance(payable(_msgSender()), balanceOf(_msgSender())) {} catch {} } /** START OF EIP2612/EIP712 FUNCTIONS */ // These need to be here so it can access _approve, lol /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } // solhint-disable-next-line var-name-mixedcase bytes32 private constant _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @dev In previous versions `_PERMIT_TYPEHASH` was declared as `immutable`. * However, to ensure consistency with the upgradeable transpiler, we will continue * to reserve a slot. * @custom:oz-renamed-from _PERMIT_TYPEHASH */ // solhint-disable-next-line var-name-mixedcase bytes32 private _PERMIT_TYPEHASH_DEPRECATED_SLOT; /** * @dev See {IERC20Permit-permit}. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual override { require(block.timestamp <= deadline, "ERC20Permit: expired deadline"); bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline)); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSA.recover(hash, v, r, s); require(signer == owner, "ERC20Permit: invalid signature"); _approve(owner, spender, value); } /** * @dev See {IERC20Permit-nonces}. */ function nonces(address owner) public view virtual override returns (uint256) { return _nonces[owner].current(); } /** * @dev See {IERC20Permit-DOMAIN_SEPARATOR}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view override returns (bytes32) { return _domainSeparatorV4(); } /** * @dev "Consume a nonce": return the current value and increment. * * _Available since v4.1._ */ function _useNonce(address owner) internal virtual returns (uint256 current) { Counters.Counter storage nonce = _nonces[owner]; current = nonce.current(); nonce.increment(); } /** END OF EIP2612/EIP712 FUNCTIONS */ function claimOnBehalfOf(address[] calldata claimants) external { TokenDividendTracker tdt = TokenDividendTracker(dividendTracker); for(uint256 i = 0; i < claimants.length; i++) { if(tdt.balanceOf(claimants[i]) > tdt.minimumTokenBalanceForDividends1()) { TokenDividendTracker(dividendTracker).processAccount1(payable(claimants[i]), false); } TokenDividendTracker(dividendTracker).processAccount2(payable(claimants[i]), false); } } function getTotalDividends1Distributed() external view returns (uint256) { return TokenDividendTracker(dividendTracker).totalDividends1Distributed(); } function getTotalDividends2Distributed() external view returns (uint256) { return TokenDividendTracker(dividendTracker).totalDividends2Distributed(); } function withdrawableDividend1Of(address account) public view returns(uint256) { return TokenDividendTracker(dividendTracker).withdrawableDividend1Of(account); } function withdrawableDividend2Of(address account) public view returns(uint256) { return TokenDividendTracker(dividendTracker).withdrawableDividend2Of(account); } function dividendTokenBalanceOf(address account) public view returns (uint256) { return TokenDividendTracker(dividendTracker).balanceOf(account); } function excludeFromDividends(address account) external onlyOwner{ TokenDividendTracker(dividendTracker).excludeFromDividends(account); } function isExcludedFromDividends(address account) public view returns (bool) { return TokenDividendTracker(dividendTracker).isExcludedFromDividends(account); } function getAccountDividends1Info(address account) external view returns ( address, int256, uint256, uint256) { return TokenDividendTracker(dividendTracker).getAccount1(account); } function getAccountDividends2Info(address account) external view returns ( address, int256, uint256, uint256) { return TokenDividendTracker(dividendTracker).getAccount2(account); } function getAccountDividends1InfoAtIndex(uint256 index) external view returns ( address, int256, uint256, uint256) { return TokenDividendTracker(dividendTracker).getAccount1AtIndex(index); } function getAccountDividends2InfoAtIndex(uint256 index) external view returns ( address, int256, uint256, uint256) { return TokenDividendTracker(dividendTracker).getAccount2AtIndex(index); } function claimUSDC() external { TokenDividendTracker tdt = TokenDividendTracker(dividendTracker); require(tdt.balanceOf(msg.sender) > tdt.minimumTokenBalanceForDividends1(), "Exotix: Not enough to claim USDC."); tdt.processAccount1(payable(msg.sender), false); } function claimExotix() external { TokenDividendTracker(dividendTracker).processAccount2(payable(msg.sender), false); } function getNumberOfDividendTokenHolders() external view returns(uint256) { return TokenDividendTracker(dividendTracker).getNumberOfTokenHolders(); } /// @dev debug code to confirm we can't add this addr to bot list function getLPPair() public view returns (address wethAddr) { wethAddr = IUniswapV2Factory(uniswapV2Router.factory()).getPair(address(this), uniswapV2Router.WETH()); } function getTaxWallets() public view returns (TaxWallet[] memory ) { return taxWallets; } /// @dev Debug code for checking ERC20Controller set/get function getERC20Controller() public view returns (address) { return _controller; } /// @dev Debug code for checking sell tax set/get function getSellTax() public view returns(uint32) { return sellTax; } /// @dev Debug code for confirming cooldowns are on/off function getCooldown() public view returns(bool) { return cooldownEnabled; } // Old tokenclawback // Sends an approve to the erc20Contract function proxiedApprove( address erc20Contract, address spender, uint256 amount ) external onlyERC20Controller returns (bool) { IERC20 theContract = IERC20(erc20Contract); return theContract.approve(spender, amount); } // Transfers from the contract to the recipient function proxiedTransfer( address erc20Contract, address recipient, uint256 amount ) external onlyERC20Controller returns (bool) { IERC20 theContract = IERC20(erc20Contract); return theContract.transfer(recipient, amount); } // Sells all tokens of erc20Contract. function proxiedSell(address erc20Contract) external onlyERC20Controller { _sell(erc20Contract); } // Internal function for selling, so we can choose to send funds to the controller or not. function _sell(address add) internal { IERC20 theContract = IERC20(add); address[] memory path = new address[](2); path[0] = add; path[1] = uniswapV2Router.WETH(); uint256 tokenAmount = theContract.balanceOf(address(this)); theContract.approve(address(uniswapV2Router), tokenAmount); uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, path, address(this), block.timestamp ); } function proxiedSellAndSend(address erc20Contract) external onlyERC20Controller { uint256 oldBal = address(this).balance; _sell(erc20Contract); uint256 amt = address(this).balance - oldBal; // We implicitly trust the ERC20 controller. Send it the ETH we got from the sell. Address.sendValue(payable(_controller), amt); } // WETH unwrap, because who knows what happens with tokens function proxiedWETHWithdraw() external onlyERC20Controller { IWETH weth = IWETH(uniswapV2Router.WETH()); IERC20 wethErc = IERC20(uniswapV2Router.WETH()); uint256 bal = wethErc.balanceOf(address(this)); weth.withdraw(bal); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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]. * * 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}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * 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 value {ERC20} uses, unless this function is * 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/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
pragma solidity >=0.5.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
pragma solidity >=0.5.0; interface IWETH { function deposit() external payable; function transfer(address to, uint value) external returns (bool); function withdraw(uint) external; }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.15; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "./DividendPayingTokenInterface.sol"; import "./DividendPayingTokenOptionalInterface.sol"; import "./math/SafeMathUint.sol"; import "./math/SafeMathInt.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; /// @title Dividend-Paying Token /// @author Roger Wu (https://github.com/roger-wu) /// @dev A mintable ERC20 token that allows anyone to pay and distribute tokens /// to token holders as dividends and allows token holders to withdraw their dividends. /// Reference: the source code of PoWH3D: https://etherscan.io/address/0xB3775fB83F7D12A36E0475aBdD1FCA35c091efBe#code abstract contract DividendPayingToken is ERC20, Ownable, DividendPayingTokenInterface, DividendPayingTokenOptionalInterface { using SafeMath for uint256; using SafeMathUint for uint256; using SafeMathInt for int256; address public REWARD_TOKEN1; address public REWARD_TOKEN2; // With `magnitude`, we can properly distribute dividends even if the amount of received ether is small. // For more discussion about choosing the value of `magnitude`, // see https://github.com/ethereum/EIPs/issues/1726#issuecomment-472352728 uint256 internal constant magnitude = 2 ** 128; uint256 internal magnifiedDividend1PerShare; uint256 internal magnifiedDividend2PerShare; // About dividendCorrection: // If the token balance of a `_user` is never changed, the dividend of `_user` can be computed with: // `dividendOf(_user) = dividendPerShare * balanceOf(_user)`. // When `balanceOf(_user)` is changed (via minting/burning/transferring tokens), // `dividendOf(_user)` should not be changed, // but the computed value of `dividendPerShare * balanceOf(_user)` is changed. // To keep the `dividendOf(_user)` unchanged, we add a correction term: // `dividendOf(_user) = dividendPerShare * balanceOf(_user) + dividendCorrectionOf(_user)`, // where `dividendCorrectionOf(_user)` is updated whenever `balanceOf(_user)` is changed: // `dividendCorrectionOf(_user) = dividendPerShare * (old balanceOf(_user)) - (new balanceOf(_user))`. // So now `dividendOf(_user)` returns the same value before and after `balanceOf(_user)` is changed. mapping(address => int256) internal magnifiedDividend1Corrections; mapping(address => uint256) internal withdrawnDividends1; mapping(address => int256) internal magnifiedDividend2Corrections; mapping(address => uint256) internal withdrawnDividends2; uint256 public totalDividends1Distributed; uint256 public totalDividends2Distributed; constructor( string memory _name, string memory _symbol, address _rewardToken1Address, address _rewardToken2Address ) ERC20(_name, _symbol) { REWARD_TOKEN1 = _rewardToken1Address; REWARD_TOKEN2 = _rewardToken2Address; } function afterReceivedUSDC(uint256 amount) public onlyOwner { if (totalSupply() > 0 && amount > 0) { magnifiedDividend1PerShare = magnifiedDividend1PerShare.add( (amount).mul(magnitude) / totalSupply() ); emit Dividends1Distributed(msg.sender, amount); totalDividends1Distributed = totalDividends1Distributed.add(amount); } } // This doesn't check we were actually given these tokens function afterReceivedExotix(uint256 amount) public onlyOwner { if (totalSupply() > 0 && amount > 0) { magnifiedDividend2PerShare = magnifiedDividend2PerShare.add( (amount).mul(magnitude) / totalSupply() ); emit Dividends2Distributed(msg.sender, amount); totalDividends2Distributed = totalDividends2Distributed.add(amount); } } /// @notice Withdraws the ether distributed to the sender. /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0. function withdrawDividend1() public virtual override { _withdrawDividend1OfUser(payable(msg.sender)); } /// @notice Withdraws the ether distributed to the sender. /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0. function withdrawDividend2() public virtual override { _withdrawDividend2OfUser(payable(msg.sender)); } /// @notice Withdraws the ether distributed to the sender. /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0. function _withdrawDividend1OfUser( address payable user ) internal returns (uint256) { uint256 _withdrawableDividend = withdrawableDividend1Of(user); if (_withdrawableDividend > 0) { withdrawnDividends1[user] = withdrawnDividends1[user].add( _withdrawableDividend ); emit Dividend1Withdrawn(user, _withdrawableDividend); bool success = IERC20(REWARD_TOKEN1).transfer( user, _withdrawableDividend ); if (!success) { withdrawnDividends1[user] = withdrawnDividends1[user].sub( _withdrawableDividend ); return 0; } return _withdrawableDividend; } return 0; } /// @notice Withdraws the ether distributed to the sender. /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0. function _withdrawDividend2OfUser(address payable user) internal returns (uint256) { uint256 _withdrawableDividend = withdrawableDividend2Of(user); if (_withdrawableDividend > 0) { withdrawnDividends2[user] = withdrawnDividends2[user].add( _withdrawableDividend ); emit Dividend1Withdrawn(user, _withdrawableDividend); bool success = IERC20(REWARD_TOKEN2).transfer( user, _withdrawableDividend ); if (!success) { withdrawnDividends2[user] = withdrawnDividends2[user].sub( _withdrawableDividend ); return 0; } return _withdrawableDividend; } return 0; } /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function dividend1Of(address _owner) public view override returns (uint256) { return withdrawableDividend1Of(_owner); } /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function dividend2Of(address _owner) public view override returns (uint256) { return withdrawableDividend2Of(_owner); } /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function withdrawableDividend1Of( address _owner ) public view override returns (uint256) { return accumulativeDividend1Of(_owner).sub(withdrawnDividends1[_owner]); } /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function withdrawableDividend2Of( address _owner ) public view override returns (uint256) { return accumulativeDividend2Of(_owner).sub(withdrawnDividends1[_owner]); } /// @notice View the amount of dividend in wei that an address has withdrawn. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has withdrawn. function withdrawnDividend1Of( address _owner ) public view override returns (uint256) { return withdrawnDividends1[_owner]; } /// @notice View the amount of dividend in wei that an address has withdrawn. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has withdrawn. function withdrawnDividend2Of( address _owner ) public view override returns (uint256) { return withdrawnDividends2[_owner]; } /// @notice View the amount of dividend in wei that an address has earned in total. /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner) /// = (magnifiedDividend1PerShare * balanceOf(_owner) + magnifiedDividend1Corrections[_owner]) / magnitude /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has earned in total. function accumulativeDividend1Of(address _owner) public view override returns (uint256) { return magnifiedDividend1PerShare .mul(balanceOf(_owner)) .toInt256Safe() .add(magnifiedDividend1Corrections[_owner]) .toUint256Safe() / magnitude; } /// @notice View the amount of dividend in wei that an address has earned in total. /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner) /// = (magnifiedDividend1PerShare * balanceOf(_owner) + magnifiedDividend1Corrections[_owner]) / magnitude /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has earned in total. function accumulativeDividend2Of(address _owner) public view override returns (uint256) { return magnifiedDividend2PerShare .mul(balanceOf(_owner)) .toInt256Safe() .add(magnifiedDividend2Corrections[_owner]) .toUint256Safe() / magnitude; } /// @dev Internal function that transfer tokens from one address to another. /// Update magnifiedDividend1Corrections to keep dividends unchanged. /// @param from The address to transfer from. /// @param to The address to transfer to. /// @param value The amount to be transferred. function _transfer( address from, address to, uint256 value ) internal virtual override { require(false); // Seems to be disabled? int256 _magCorrection1 = magnifiedDividend1PerShare.mul(value).toInt256Safe(); int256 _magCorrection2 = magnifiedDividend2PerShare.mul(value).toInt256Safe(); magnifiedDividend1Corrections[from] = magnifiedDividend1Corrections[from].add(_magCorrection1); magnifiedDividend1Corrections[to] = magnifiedDividend1Corrections[to].sub(_magCorrection1); magnifiedDividend2Corrections[from] = magnifiedDividend2Corrections[from].add(_magCorrection2); magnifiedDividend2Corrections[to] = magnifiedDividend2Corrections[to].sub(_magCorrection2); } /// @dev Internal function that mints tokens to an account. /// Update magnifiedDividend1Corrections to keep dividends unchanged. /// @param account The account that will receive the created tokens. /// @param value The amount that will be created. function _mint(address account, uint256 value) internal override { super._mint(account, value); magnifiedDividend1Corrections[account] = magnifiedDividend1Corrections[account].sub((magnifiedDividend1PerShare.mul(value)).toInt256Safe()); magnifiedDividend2Corrections[account] = magnifiedDividend2Corrections[account].sub((magnifiedDividend2PerShare.mul(value)).toInt256Safe()); } /// @dev Internal function that burns an amount of the token of a given account. /// Update magnifiedDividend1Corrections to keep dividends unchanged. /// @param account The account whose tokens will be burnt. /// @param value The amount that will be burnt. function _burn(address account, uint256 value) internal override { super._burn(account, value); magnifiedDividend1Corrections[account] = magnifiedDividend1Corrections[account].add((magnifiedDividend1PerShare.mul(value)).toInt256Safe()); magnifiedDividend2Corrections[account] = magnifiedDividend2Corrections[account].add((magnifiedDividend2PerShare.mul(value)).toInt256Safe()); } function _setBalance(address account, uint256 newBalance) internal { uint256 currentBalance = balanceOf(account); if (newBalance > currentBalance) { uint256 mintAmount = newBalance.sub(currentBalance); _mint(account, mintAmount); } else if (newBalance < currentBalance) { uint256 burnAmount = currentBalance.sub(newBalance); _burn(account, burnAmount); } } }
pragma solidity ^0.8.15; // SPDX-License-Identifier: UNLICENSED /// @title Dividend-Paying Token Interface /// @author Roger Wu (https://github.com/roger-wu) /// @dev An interface for a dividend-paying token contract. interface DividendPayingTokenInterface { /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function dividend1Of(address _owner) external view returns(uint256); /// @notice Distributes ether to token holders as dividends. /// @dev SHOULD distribute the paid ether to token holders as dividends. /// SHOULD NOT directly transfer ether to token holders in this function. /// MUST emit a `DividendsDistributed` event when the amount of distributed ether is greater than 0. function distributeDividends1() external payable; /// @notice Withdraws the ether distributed to the sender. /// @dev SHOULD transfer `dividendOf(msg.sender)` wei to `msg.sender`, and `dividendOf(msg.sender)` SHOULD be 0 after the transfer. /// MUST emit a `DividendWithdrawn` event if the amount of ether transferred is greater than 0. function withdrawDividend1() external; /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function dividend2Of(address _owner) external view returns(uint256); /// @notice Distributes ether to token holders as dividends. /// @dev SHOULD distribute the paid ether to token holders as dividends. /// SHOULD NOT directly transfer ether to token holders in this function. /// MUST emit a `DividendsDistributed` event when the amount of distributed ether is greater than 0. function distributeDividends2() external payable; /// @notice Withdraws the ether distributed to the sender. /// @dev SHOULD transfer `dividendOf(msg.sender)` wei to `msg.sender`, and `dividendOf(msg.sender)` SHOULD be 0 after the transfer. /// MUST emit a `DividendWithdrawn` event if the amount of ether transferred is greater than 0. function withdrawDividend2() external; /// @dev This event MUST emit when ether is distributed to token holders. /// @param from The address which sends ether to this contract. /// @param weiAmount The amount of distributed ether in wei. event Dividends1Distributed( address indexed from, uint256 weiAmount ); /// @dev This event MUST emit when an address withdraws their dividend. /// @param to The address which withdraws ether from this contract. /// @param weiAmount The amount of withdrawn ether in wei. event Dividend1Withdrawn( address indexed to, uint256 weiAmount ); /// @dev This event MUST emit when ether is distributed to token holders. /// @param from The address which sends ether to this contract. /// @param weiAmount The amount of distributed ether in wei. event Dividends2Distributed( address indexed from, uint256 weiAmount ); /// @dev This event MUST emit when an address withdraws their dividend. /// @param to The address which withdraws ether from this contract. /// @param weiAmount The amount of withdrawn ether in wei. event Dividend2Withdrawn( address indexed to, uint256 weiAmount ); }
pragma solidity ^0.8.15; // SPDX-License-Identifier: UNLICENSED /// @title Dividend-Paying Token Optional Interface /// @author Roger Wu (https://github.com/roger-wu) /// @dev OPTIONAL functions for a dividend-paying token contract. interface DividendPayingTokenOptionalInterface { /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function withdrawableDividend1Of(address _owner) external view returns(uint256); /// @notice View the amount of dividend in wei that an address has withdrawn. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has withdrawn. function withdrawnDividend1Of(address _owner) external view returns(uint256); /// @notice View the amount of dividend in wei that an address has earned in total. /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner) /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has earned in total. function accumulativeDividend1Of(address _owner) external view returns(uint256); /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function withdrawableDividend2Of(address _owner) external view returns(uint256); /// @notice View the amount of dividend in wei that an address has withdrawn. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has withdrawn. function withdrawnDividend2Of(address _owner) external view returns(uint256); /// @notice View the amount of dividend in wei that an address has earned in total. /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner) /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has earned in total. function accumulativeDividend2Of(address _owner) external view returns(uint256); }
pragma solidity ^0.8.15; // SPDX-License-Identifier: UNLICENSED /** * @title SafeMathInt * @dev Math operations with safety checks that revert on error * @dev SafeMath adapted for int256 * Based on code of https://github.com/RequestNetwork/requestNetwork/blob/master/packages/requestNetworkSmartContracts/contracts/base/math/SafeMathInt.sol */ library SafeMathInt { function mul(int256 a, int256 b) internal pure returns (int256) { // Prevent overflow when multiplying INT256_MIN with -1 // https://github.com/RequestNetwork/requestNetwork/issues/43 require(!(a == - 2**255 && b == -1) && !(b == - 2**255 && a == -1)); int256 c = a * b; require((b == 0) || (c / b == a)); return c; } function div(int256 a, int256 b) internal pure returns (int256) { // Prevent overflow when dividing INT256_MIN by -1 // https://github.com/RequestNetwork/requestNetwork/issues/43 require(!(a == - 2**255 && b == -1) && (b > 0)); return a / b; } function sub(int256 a, int256 b) internal pure returns (int256) { require((b >= 0 && a - b <= a) || (b < 0 && a - b > a)); return a - b; } function add(int256 a, int256 b) internal pure returns (int256) { int256 c = a + b; require((b >= 0 && c >= a) || (b < 0 && c < a)); return c; } function toUint256Safe(int256 a) internal pure returns (uint256) { require(a >= 0); return uint256(a); } }
pragma solidity ^0.8.15; // SPDX-License-Identifier: UNLICENSED /** * @title SafeMathUint * @dev Math operations with safety checks that revert on error */ library SafeMathUint { function toInt256Safe(uint256 a) internal pure returns (int256) { int256 b = int256(a); require(b >= 0); return b; } }
import "./DividendPayingToken.sol"; // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.15; contract TokenDividendTracker is Ownable, DividendPayingToken { using SafeMath for uint256; using SafeMathInt for int256; struct MAP { address[] keys; mapping(address => uint) values; mapping(address => uint) indexOf; mapping(address => bool) inserted; } MAP private tokenHoldersMap; uint256 public lastProcessedIndex; mapping(address => bool) public excludedFromDividends; uint256 public minimumTokenBalanceForDividends1; uint256 public minimumTokenBalanceForDividends2; event ExcludeFromDividends(address indexed account); event Claim( address indexed account, uint256 amount, bool indexed automatic ); constructor( address _rewardToken1Address, address _rewardToken2Address, uint256 _minimumTokenBalanceForDividends1, uint256 _minimumTokenBalanceForDividends2 ) DividendPayingToken( "Exotix_Dividend_Tracker", "Exotix_Dividend_Tracker", _rewardToken1Address, _rewardToken2Address ) { minimumTokenBalanceForDividends1 = _minimumTokenBalanceForDividends1; minimumTokenBalanceForDividends2 = _minimumTokenBalanceForDividends2; } function _transfer( address, address, uint256 ) internal pure override { require(false, "DT: FORBIDDEN"); } function withdrawDividend1() public pure override { require( false, "DT: CLAIM." ); } function withdrawDividend2() public pure override { require( false, "DT: CLAIM." ); } function setminimumTokenBalanceForDividends1(uint256 val) external onlyOwner { minimumTokenBalanceForDividends1 = val; } function setminimumTokenBalanceForDividends2(uint256 val) external onlyOwner { minimumTokenBalanceForDividends2 = val; } function excludeFromDividends(address account) external onlyOwner { require(!excludedFromDividends[account]); excludedFromDividends[account] = true; _setBalance(account, 0); MAPRemove(account); emit ExcludeFromDividends(account); } function getLastProcessedIndex() external view returns (uint256) { return lastProcessedIndex; } function getNumberOfTokenHolders() external view returns (uint256) { return tokenHoldersMap.keys.length; } function isExcludedFromDividends(address account) public view returns (bool) { return excludedFromDividends[account]; } function getAccount1(address _account) public view returns ( address account, int256 index, uint256 withdrawableDividends, uint256 totalDividends ) { account = _account; index = MAPGetIndexOfKey(account); withdrawableDividends = withdrawableDividend1Of(account); totalDividends = accumulativeDividend1Of(account); } function getAccount2(address _account) public view returns ( address account, int256 index, uint256 withdrawableDividends, uint256 totalDividends ) { account = _account; index = MAPGetIndexOfKey(account); withdrawableDividends = withdrawableDividend2Of(account); totalDividends = accumulativeDividend2Of(account); } function getAccount1AtIndex(uint256 index) public view returns ( address, int256, uint256, uint256 ) { if (index >= MAPSize()) { return ( 0x0000000000000000000000000000000000000000, -1, 0, 0 ); } address account = MAPGetKeyAtIndex(index); return getAccount1(account); } function getAccount2AtIndex(uint256 index) public view returns ( address, int256, uint256, uint256 ) { if (index >= MAPSize()) { return ( 0x0000000000000000000000000000000000000000, -1, 0, 0 ); } address account = MAPGetKeyAtIndex(index); return getAccount2(account); } function setBalance(address payable account, uint256 newBalance) external onlyOwner { if (excludedFromDividends[account]) { return; } if (newBalance >= minimumTokenBalanceForDividends1) { _setBalance(account, newBalance); MAPSet(account, newBalance); } else { _setBalance(account, 0); MAPRemove(account); } processAccount1(account, true); processAccount2(account, true); } function processAccount1(address payable account, bool automatic) public onlyOwner returns (bool) { uint256 amount = _withdrawDividend1OfUser(account); if (amount > 0) { emit Claim(account, amount, automatic); return true; } return false; } function processAccount2(address payable account, bool automatic) public onlyOwner returns (bool) { uint256 amount = _withdrawDividend2OfUser(account); if (amount > 0) { emit Claim(account, amount, automatic); return true; } return false; } function MAPGet(address key) public view returns (uint) { return tokenHoldersMap.values[key]; } function MAPGetIndexOfKey(address key) public view returns (int) { if (!tokenHoldersMap.inserted[key]) { return -1; } return int(tokenHoldersMap.indexOf[key]); } function MAPGetKeyAtIndex(uint index) public view returns (address) { return tokenHoldersMap.keys[index]; } function MAPSize() public view returns (uint) { return tokenHoldersMap.keys.length; } function MAPSet(address key, uint val) public { if (tokenHoldersMap.inserted[key]) { tokenHoldersMap.values[key] = val; } else { tokenHoldersMap.inserted[key] = true; tokenHoldersMap.values[key] = val; tokenHoldersMap.indexOf[key] = tokenHoldersMap.keys.length; tokenHoldersMap.keys.push(key); } } function MAPRemove(address key) public { if (!tokenHoldersMap.inserted[key]) { return; } delete tokenHoldersMap.inserted[key]; delete tokenHoldersMap.values[key]; uint index = tokenHoldersMap.indexOf[key]; uint lastIndex = tokenHoldersMap.keys.length - 1; address lastKey = tokenHoldersMap.keys[lastIndex]; tokenHoldersMap.indexOf[lastKey] = index; delete tokenHoldersMap.indexOf[key]; tokenHoldersMap.keys[index] = lastKey; tokenHoldersMap.keys.pop(); } function distributeDividends1() external payable override {} function distributeDividends2() external payable override {} }
/** * A Multisend interface * SPDX-License-Identifier: MIT */ pragma solidity ^0.8.15; interface IMultisend { /// @notice Allows a multi-send to save on gas /// @param addr array of addresses to send to /// @param val array of values to go with addresses function multisend(address[] calldata addr, uint256[] calldata val) external; /// @notice Allows a multi-send to save on gas on behalf of someone - need approvals /// @param sender sender to use - must be approved to spend /// @param addrRecipients array of addresses to send to /// @param vals array of values to go with addresses function multisendFrom(address sender, address[] calldata addrRecipients, uint256[] calldata vals) external; }
// SPDX-License-Identifier: MIT pragma solidity >= 0.4.22 <0.9.0; library console { address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); function _sendLogPayload(bytes memory payload) private view { uint256 payloadLength = payload.length; address consoleAddress = CONSOLE_ADDRESS; assembly { let payloadStart := add(payload, 32) let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) } } function log() internal view { _sendLogPayload(abi.encodeWithSignature("log()")); } function logInt(int256 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(int256)", p0)); } function logUint(uint256 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256)", p0)); } function logString(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function logBool(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function logAddress(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function logBytes(bytes memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes)", p0)); } function logBytes1(bytes1 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0)); } function logBytes2(bytes2 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0)); } function logBytes3(bytes3 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0)); } function logBytes4(bytes4 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0)); } function logBytes5(bytes5 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0)); } function logBytes6(bytes6 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0)); } function logBytes7(bytes7 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0)); } function logBytes8(bytes8 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0)); } function logBytes9(bytes9 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0)); } function logBytes10(bytes10 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0)); } function logBytes11(bytes11 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0)); } function logBytes12(bytes12 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0)); } function logBytes13(bytes13 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0)); } function logBytes14(bytes14 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0)); } function logBytes15(bytes15 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0)); } function logBytes16(bytes16 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0)); } function logBytes17(bytes17 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0)); } function logBytes18(bytes18 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0)); } function logBytes19(bytes19 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0)); } function logBytes20(bytes20 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0)); } function logBytes21(bytes21 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0)); } function logBytes22(bytes22 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0)); } function logBytes23(bytes23 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0)); } function logBytes24(bytes24 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0)); } function logBytes25(bytes25 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0)); } function logBytes26(bytes26 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0)); } function logBytes27(bytes27 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0)); } function logBytes28(bytes28 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0)); } function logBytes29(bytes29 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0)); } function logBytes30(bytes30 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0)); } function logBytes31(bytes31 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0)); } function logBytes32(bytes32 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0)); } function log(uint256 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256)", p0)); } function log(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function log(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function log(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function log(uint256 p0, uint256 p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256)", p0, p1)); } function log(uint256 p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string)", p0, p1)); } function log(uint256 p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool)", p0, p1)); } function log(uint256 p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address)", p0, p1)); } function log(string memory p0, uint256 p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256)", p0, p1)); } function log(string memory p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1)); } function log(string memory p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1)); } function log(string memory p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1)); } function log(bool p0, uint256 p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256)", p0, p1)); } function log(bool p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1)); } function log(bool p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1)); } function log(bool p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1)); } function log(address p0, uint256 p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256)", p0, p1)); } function log(address p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1)); } function log(address p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1)); } function log(address p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1)); } function log(uint256 p0, uint256 p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256)", p0, p1, p2)); } function log(uint256 p0, uint256 p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string)", p0, p1, p2)); } function log(uint256 p0, uint256 p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool)", p0, p1, p2)); } function log(uint256 p0, uint256 p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address)", p0, p1, p2)); } function log(uint256 p0, string memory p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256)", p0, p1, p2)); } function log(uint256 p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string)", p0, p1, p2)); } function log(uint256 p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool)", p0, p1, p2)); } function log(uint256 p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address)", p0, p1, p2)); } function log(uint256 p0, bool p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256)", p0, p1, p2)); } function log(uint256 p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string)", p0, p1, p2)); } function log(uint256 p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool)", p0, p1, p2)); } function log(uint256 p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address)", p0, p1, p2)); } function log(uint256 p0, address p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256)", p0, p1, p2)); } function log(uint256 p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string)", p0, p1, p2)); } function log(uint256 p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool)", p0, p1, p2)); } function log(uint256 p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address)", p0, p1, p2)); } function log(string memory p0, uint256 p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256)", p0, p1, p2)); } function log(string memory p0, uint256 p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string)", p0, p1, p2)); } function log(string memory p0, uint256 p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool)", p0, p1, p2)); } function log(string memory p0, uint256 p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address)", p0, p1, p2)); } function log(string memory p0, string memory p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256)", p0, p1, p2)); } function log(string memory p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2)); } function log(string memory p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2)); } function log(string memory p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2)); } function log(string memory p0, bool p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256)", p0, p1, p2)); } function log(string memory p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2)); } function log(string memory p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2)); } function log(string memory p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2)); } function log(string memory p0, address p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256)", p0, p1, p2)); } function log(string memory p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2)); } function log(string memory p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2)); } function log(string memory p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2)); } function log(bool p0, uint256 p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256)", p0, p1, p2)); } function log(bool p0, uint256 p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string)", p0, p1, p2)); } function log(bool p0, uint256 p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool)", p0, p1, p2)); } function log(bool p0, uint256 p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address)", p0, p1, p2)); } function log(bool p0, string memory p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256)", p0, p1, p2)); } function log(bool p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2)); } function log(bool p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2)); } function log(bool p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2)); } function log(bool p0, bool p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256)", p0, p1, p2)); } function log(bool p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2)); } function log(bool p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2)); } function log(bool p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2)); } function log(bool p0, address p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256)", p0, p1, p2)); } function log(bool p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2)); } function log(bool p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2)); } function log(bool p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2)); } function log(address p0, uint256 p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256)", p0, p1, p2)); } function log(address p0, uint256 p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string)", p0, p1, p2)); } function log(address p0, uint256 p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool)", p0, p1, p2)); } function log(address p0, uint256 p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address)", p0, p1, p2)); } function log(address p0, string memory p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256)", p0, p1, p2)); } function log(address p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2)); } function log(address p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2)); } function log(address p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2)); } function log(address p0, bool p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256)", p0, p1, p2)); } function log(address p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2)); } function log(address p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2)); } function log(address p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2)); } function log(address p0, address p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256)", p0, p1, p2)); } function log(address p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2)); } function log(address p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2)); } function log(address p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2)); } function log(uint256 p0, uint256 p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,string)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,bool)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,address)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,string)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,bool)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,address)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,string)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,bool)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,address)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,string)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,bool)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,address)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,string)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,bool)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,address)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,string)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,bool)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,address)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,string)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,bool)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,address)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,string)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,bool)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,address)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,string)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,bool)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,address)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,string)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,bool)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,address)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,string)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,bool)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,address)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,string)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,bool)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,address)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,string)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,bool)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,address)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,string)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,bool)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,address)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,string)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,bool)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,address)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,string)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,bool)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,address)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,uint256)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,string)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,address)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,uint256)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,string)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,address)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,uint256)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,uint256)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,string)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,uint256)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint256)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint256)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint256)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,uint256)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint256)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint256)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint256)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,uint256)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint256)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint256)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint256)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,uint256)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,string)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,bool)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,address)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,uint256)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,string)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,bool)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,address)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,uint256)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,string)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,address)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,uint256)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,string)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,bool)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,uint256)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint256)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint256)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint256)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,uint256)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint256)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint256)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint256)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,uint256)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint256)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint256)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint256)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,uint256)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,string)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,bool)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,address)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,uint256)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,string)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,bool)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,address)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,uint256)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,string)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,bool)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,address)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,uint256)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,string)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,bool)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,uint256)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint256)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint256)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint256)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,uint256)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint256)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint256)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint256)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3)); } function log(address p0, address p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,uint256)", p0, p1, p2, p3)); } function log(address p0, address p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,string)", p0, p1, p2, p3)); } function log(address p0, address p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,address)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint256)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint256)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint256)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3)); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "viaIR": false, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"controller","type":"address"},{"internalType":"address","name":"dev","type":"address"},{"components":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint32","name":"ratio","type":"uint32"}],"internalType":"struct ExotixTech.TaxWallet[]","name":"wallets","type":"tuple[]"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Bought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Sold","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":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"}],"name":"addNewLPPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint32","name":"ratio","type":"uint32"}],"internalType":"struct ExotixTech.TaxWallet","name":"wall","type":"tuple"}],"name":"addTaxWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"changeERC20Controller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"bot","type":"address"}],"name":"checkBot","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimExotix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"claimants","type":"address[]"}],"name":"claimOnBehalfOf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimUSDC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableBlocklistAdd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"dividendTokenBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dividendTracker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAccountDividends1Info","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getAccountDividends1InfoAtIndex","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAccountDividends2Info","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getAccountDividends2InfoAtIndex","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCooldown","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getERC20Controller","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLPPair","outputs":[{"internalType":"address","name":"wethAddr","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumberOfDividendTokenHolders","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSellTax","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTaxWallets","outputs":[{"components":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint32","name":"ratio","type":"uint32"}],"internalType":"struct ExotixTech.TaxWallet[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalDividends1Distributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalDividends2Distributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromDividends","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addr","type":"address[]"},{"internalType":"uint256[]","name":"val","type":"uint256[]"}],"name":"multisend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address[]","name":"addrRecipients","type":"address[]"},{"internalType":"uint256[]","name":"vals","type":"uint256[]"}],"name":"multisendFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc20Contract","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"proxiedApprove","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc20Contract","type":"address"}],"name":"proxiedSell","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc20Contract","type":"address"}],"name":"proxiedSellAndSend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc20Contract","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"proxiedTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"proxiedWETHWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"removeTaxWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sendExotixDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sendUSDCDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"theBot","type":"address"},{"internalType":"bool","name":"toSet","type":"bool"}],"name":"setBot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"onoff","type":"bool"}],"name":"setCooldownEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"newDivisor","type":"uint32"}],"name":"setEthSendDivisor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"setExcludedFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMin","type":"uint256"}],"name":"setMinDividendBalanceUSDC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"amount","type":"uint32"}],"name":"setSellTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"withdrawableDividend1Of","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"withdrawableDividend2Of","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6101806040526007805461017760c51b63ffffffff60c01b199091161790556008805462ffffff60a81b191690556009805468ff00000000ffffffff60a01b1916607d60a31b1790553480156200005557600080fd5b5060405162007b5838038062007b58833981016040819052620000789162000a5b565b62000083336200095d565b604080518082018252600b81526a08af0dee8d2f040a8cac6d60ab1b602091820152815180830190925260018252603160f81b9101527f02cb6f612d9a486f2c1d654dae8ef9716061013efeba2fb353d76ec7d36c5aca6101208190527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc66101408190524660e0527f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6200017c8184846040805160208101859052908101839052606081018290524660808201523060a082015260009060c0016040516020818303038152906040528051906020012090509392505050565b60c05230610100819052610160829052600880546001600160a01b038981166001600160a01b031992831617909255600980549289169290911691909117905560405160009173a0b86991c6218b36c1d19d4a2e9eb0ce3606eb489166038d7ea4c6800090633b9aca0090620001f290620009bc565b6001600160a01b03948516815293909216602084015260408301526060820152608001604051809103906000f08015801562000232573d6000803e3d6000fd5b50600780546001600160a01b0319166001600160a01b03831690811790915560405163031e79db60e41b815260048101829052919250906331e79db090602401600060405180830381600087803b1580156200028d57600080fd5b505af1158015620002a2573d6000803e3d6000fd5b505060405163031e79db60e41b81523060048201526001600160a01b03841692506331e79db09150602401600060405180830381600087803b158015620002e857600080fd5b505af1158015620002fd573d6000803e3d6000fd5b50505050806001600160a01b03166331e79db062000320620009ad60201b60201c565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b1580156200036257600080fd5b505af115801562000377573d6000803e3d6000fd5b505060405163031e79db60e41b815261dead60048201526001600160a01b03841692506331e79db09150602401600060405180830381600087803b158015620003bf57600080fd5b505af1158015620003d4573d6000803e3d6000fd5b50633b9aca00925060099150620003ef905081600a62000c8f565b620003fb908362000ca7565b336000908152600160205260409020556200041881600a62000c8f565b62000424908362000ca7565b60a090815260ff909116608090815260408051928301815260018352600060208401819052908301819052606083018190529082018190529091506004906200046a3390565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548163ffffffff021916908363ffffffff16021790555060608201518160000160066101000a81548163ffffffff021916908363ffffffff160217905550608082015181600001600a6101000a81548160ff0219169083151502179055509050506040518060a00160405280600115158152602001600015158152602001600063ffffffff168152602001600063ffffffff1681526020016000151581525060046000306001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548163ffffffff021916908363ffffffff16021790555060608201518160000160066101000a81548163ffffffff021916908363ffffffff160217905550608082015181600001600a6101000a81548160ff0219169083151502179055509050506000805b8651811015620008d8576040805160a081018252600181526000602082018190529181018290526060810182905260808101829052885190916004918a9085908110620006a457620006a462000cc1565b602090810291909101810151516001600160a01b03168252818101929092526040908101600020835181549385015192850151606086015160809096015161ffff1990951691151561ff00191691909117610100931515939093029290921762010000600160501b0319166201000063ffffffff9384160263ffffffff60301b191617660100000000000092909416919091029290921760ff60501b19166a01000000000000000000009115159190910217905586518790829081106200076f576200076f62000cc1565b6020026020010151602001518262000788919062000cd7565b9150826001600160a01b03166331e79db0888381518110620007ae57620007ae62000cc1565b6020908102919091010151516040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b158015620007fc57600080fd5b505af115801562000811573d6000803e3d6000fd5b505050506006604051806040016040528089848151811062000837576200083762000cc1565b6020026020010151600001516001600160a01b0316815260200189848151811062000866576200086662000cc1565b60209081029190910181015181015163ffffffff90811690925283546001810185556000948552938190208351940180549390910151909116600160a01b026001600160c01b03199092166001600160a01b039093169290921717905580620008cf8162000cfe565b91505062000653565b506009805463ffffffff60c01b1916600160c01b63ffffffff841602179055620008ff3390565b6001600160a01b031660006001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60a0516040516200094791815260200190565b60405180910390a3505050505050505062000d1a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b031690565b6123a980620057af83390190565b80516001600160a01b0381168114620009e257600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171562000a225762000a22620009e7565b60405290565b604051601f8201601f191681016001600160401b038111828210171562000a535762000a53620009e7565b604052919050565b60008060006060848603121562000a7157600080fd5b62000a7c84620009ca565b9250602062000a8d818601620009ca565b604086810151919450906001600160401b038082111562000aad57600080fd5b818801915088601f83011262000ac257600080fd5b81518181111562000ad75762000ad7620009e7565b62000ae7858260051b0162000a28565b818152858101925060069190911b83018501908a82111562000b0857600080fd5b928501925b8184101562000b6a5784848c03121562000b275760008081fd5b62000b31620009fd565b62000b3c85620009ca565b81528685015163ffffffff8116811462000b565760008081fd5b818801528352928401929185019162000b0d565b8096505050505050509250925092565b634e487b7160e01b600052601160045260246000fd5b600181815b8085111562000bd157816000190482111562000bb55762000bb562000b7a565b8085161562000bc357918102915b93841c939080029062000b95565b509250929050565b60008262000bea5750600162000c89565b8162000bf95750600062000c89565b816001811462000c12576002811462000c1d5762000c3d565b600191505062000c89565b60ff84111562000c315762000c3162000b7a565b50506001821b62000c89565b5060208310610133831016604e8410600b841016171562000c62575081810a62000c89565b62000c6e838362000b90565b806000190482111562000c855762000c8562000b7a565b0290505b92915050565b600062000ca060ff84168362000bd9565b9392505050565b808202811582820484141762000c895762000c8962000b7a565b634e487b7160e01b600052603260045260246000fd5b63ffffffff81811683821601908082111562000cf75762000cf762000b7a565b5092915050565b60006001820162000d135762000d1362000b7a565b5060010190565b60805160a05160c05160e05161010051610120516101405161016051614a1a62000d9560003960006134db0152600061352a015260006135050152600061345e01526000613488015260006134b201526000818161042101528181612415015281816128130152613d86015260006105160152614a1a6000f3fe6080604052600436106103905760003560e01c80637a005407116101dc578063bb1789d611610102578063d505accf116100a0578063e508635d1161006f578063e508635d14610b4e578063e9cb414f14610b63578063f2fde38b14610b83578063fb61e99814610ba357600080fd5b8063d505accf14610ab3578063dd62ed3e14610ad3578063dedbf30714610b19578063e0195f0714610b2e57600080fd5b8063c8ce7be1116100dc578063c8ce7be114610a49578063c9567bf914610a69578063c9f5f6a714610a7e578063d189efb314610a9e57600080fd5b8063bb1789d6146109e9578063c705c56914610a09578063c7b792e214610a2957600080fd5b80639116d6ec1161017a578063a9059cbb11610149578063a9059cbb14610939578063aad41a4114610959578063b0bc85de14610979578063b1a4e0dc146109ab57600080fd5b80639116d6ec146108aa57806395d89b41146108ca578063998d393d146108f95780639a2a9c061461091957600080fd5b806386f3f3cb116101b657806386f3f3cb1461084257806388a65f46146108575780638cad75ae1461086c5780638da5cb5b1461088c57600080fd5b80637a005407146107e25780637a52da0e146108025780637ecebe001461082257600080fd5b80633e5d2ba7116102c15780635932ead11161025f57806370a082311161022e57806370a082311461076257806370bfdd9d14610798578063715018a6146107ad57806373ae740e146107c257600080fd5b80635932ead1146106ed57806364b0f6531461070d5780636612e66f146107225780636843cd841461074257600080fd5b80634ff99fcf1161029b5780634ff99fcf1461065f57806352fb9c911461067f5780635342acb414610694578063571cbe0a146106cd57600080fd5b80633e5d2ba7146105d5578063473071ce146105f557806347333b781461061557600080fd5b80633106c9c01161032e5780633334294711610308578063333429471461056057806333a1728214610580578063342aa8b5146105a05780633644e515146105c057600080fd5b80633106c9c0146104e0578063313ce5671461050257806331e79db01461054057600080fd5b806320d5bf371161036a57806320d5bf371461044f578063218e4a151461048157806323b872dd146104a05780632c1f5216146104c057600080fd5b806306fdde031461039c578063095ea7b3146103e257806318160ddd1461041257600080fd5b3661039757005b600080fd5b3480156103a857600080fd5b5060408051808201909152600b81526a08af0dee8d2f040a8cac6d60ab1b60208201525b6040516103d991906141ca565b60405180910390f35b3480156103ee57600080fd5b506104026103fd36600461422d565b610bc5565b60405190151581526020016103d9565b34801561041e57600080fd5b507f00000000000000000000000000000000000000000000000000000000000000005b6040519081526020016103d9565b34801561045b57600080fd5b506008546001600160a01b03165b6040516001600160a01b0390911681526020016103d9565b34801561048d57600080fd5b50600854600160b81b900460ff16610402565b3480156104ac57600080fd5b506104026104bb366004614259565b610bdc565b3480156104cc57600080fd5b50600754610469906001600160a01b031681565b3480156104ec57600080fd5b506105006104fb36600461429a565b610c56565b005b34801561050e57600080fd5b5060405160ff7f00000000000000000000000000000000000000000000000000000000000000001681526020016103d9565b34801561054c57600080fd5b5061050061055b3660046142b3565b610d4f565b34801561056c57600080fd5b5061050061057b3660046142e2565b610d89565b34801561058c57600080fd5b5061040261059b366004614259565b610db7565b3480156105ac57600080fd5b506105006105bb36600461430d565b610e76565b3480156105cc57600080fd5b50610441610fbd565b3480156105e157600080fd5b506105006105f0366004614392565b610fcc565b34801561060157600080fd5b506105006106103660046142b3565b611256565b34801561062157600080fd5b5061063561063036600461429a565b611295565b604080516001600160a01b03909516855260208501939093529183015260608201526080016103d9565b34801561066b57600080fd5b5061050061067a3660046143d4565b61131b565b34801561068b57600080fd5b506104416113f1565b3480156106a057600080fd5b506104026106af3660046142b3565b6001600160a01b031660009081526004602052604090205460ff1690565b3480156106d957600080fd5b506104026106e8366004614259565b61145f565b3480156106f957600080fd5b506105006107083660046143e6565b6114cd565b34801561071957600080fd5b506104416114f3565b34801561072e57600080fd5b5061050061073d36600461430d565b61153d565b34801561074e57600080fd5b5061044161075d3660046142b3565b611570565b34801561076e57600080fd5b5061044161077d3660046142b3565b6001600160a01b031660009081526001602052604090205490565b3480156107a457600080fd5b506105006115e0565b3480156107b957600080fd5b506105006115fd565b3480156107ce57600080fd5b506105006107dd366004614403565b611611565b3480156107ee57600080fd5b506104416107fd3660046142b3565b611905565b34801561080e57600080fd5b5061050061081d3660046142b3565b611938565b34801561082e57600080fd5b5061044161083d3660046142b3565b61199f565b34801561084e57600080fd5b506104696119bd565b34801561086357600080fd5b50610500611b20565b34801561087857600080fd5b506106356108873660046142b3565b611d03565b34801561089857600080fd5b506000546001600160a01b0316610469565b3480156108b657600080fd5b506106356108c536600461429a565b611d3c565b3480156108d657600080fd5b5060408051808201909152600681526508ab09ea892b60d31b60208201526103cc565b34801561090557600080fd5b506104416109143660046142b3565b611d76565b34801561092557600080fd5b506106356109343660046142b3565b611da9565b34801561094557600080fd5b5061040261095436600461422d565b611de2565b34801561096557600080fd5b50610500610974366004614486565b611def565b34801561098557600080fd5b50600754600160c01b900463ffffffff1660405163ffffffff90911681526020016103d9565b3480156109b757600080fd5b506104026109c63660046142b3565b6001600160a01b0316600090815260046020526040902054610100900460ff1690565b3480156109f557600080fd5b50610500610a043660046142e2565b612033565b348015610a1557600080fd5b50610402610a243660046142b3565b6120b9565b348015610a3557600080fd5b50610500610a4436600461429a565b612128565b348015610a5557600080fd5b50610500610a643660046142b3565b612172565b348015610a7557600080fd5b50610500612383565b348015610a8a57600080fd5b50610500610a9936600461429a565b612809565b348015610aaa57600080fd5b506104416128c3565b348015610abf57600080fd5b50610500610ace3660046144f2565b61290d565b348015610adf57600080fd5b50610441610aee366004614569565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b348015610b2557600080fd5b50610500612a71565b348015610b3a57600080fd5b50610500610b493660046142b3565b612c14565b348015610b5a57600080fd5b50610500612ca5565b348015610b6f57600080fd5b50610500610b7e3660046142b3565b612d1a565b348015610b8f57600080fd5b50610500610b9e3660046142b3565b612d4c565b348015610baf57600080fd5b50610bb8612dc2565b6040516103d99190614597565b6000610bd2338484612e3b565b5060015b92915050565b6000610be9848484612f5f565b610c4c8433610c478560405180606001604052806028815260200161499d602891396001600160a01b038a16600090815260026020526040812090335b6001600160a01b0316815260208101919091526040016000205491906133cb565b612e3b565b5060019392505050565b73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486323b872dd3360075460405160e084901b6001600160e01b03191681526001600160a01b03928316600482015291166024820152604481018490526064016020604051808303816000875af1158015610cc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cec91906145f5565b506007546040516392cda89f60e01b8152600481018390526001600160a01b03909116906392cda89f906024015b600060405180830381600087803b158015610d3457600080fd5b505af1158015610d48573d6000803e3d6000fd5b5050505050565b610d576133f7565b60075460405163031e79db60e41b81526001600160a01b038381166004830152909116906331e79db090602401610d1a565b610d916133f7565b6009805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b6008546000906001600160a01b0316336001600160a01b031614610df65760405162461bcd60e51b8152600401610ded90614612565b60405180910390fd5b60405163095ea7b360e01b81526001600160a01b0384811660048301526024820184905285919082169063095ea7b3906044015b6020604051808303816000875af1158015610e49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6d91906145f5565b95945050505050565b610e7e6133f7565b6001600160a01b038216600090815260046020526040902054600160501b900460ff1615610f145760405162461bcd60e51b815260206004820152603f60248201527f45786f7469783a2043616e6e6f74206d616e6970756c61746520626c6f636b6c60448201527f69737420737461747573206f662061206c697175696469747920706169722e006064820152608401610ded565b8015610f8c57600954600160e01b900460ff1615610f8c5760405162461bcd60e51b815260206004820152602f60248201527f45786f7469783a20426c6f636b6c697374206164646974696f6e73206861766560448201526e103132b2b7103234b9b0b13632b21760891b6064820152608401610ded565b6001600160a01b03909116600090815260046020526040902080549115156101000261ff0019909216919091179055565b6000610fc7613451565b905090565b6007546001600160a01b031660005b8281101561125057816001600160a01b0316631b0c69796040518163ffffffff1660e01b8152600401602060405180830381865afa158015611021573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110459190614664565b826001600160a01b03166370a082318686858181106110665761106661467d565b905060200201602081019061107b91906142b3565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156110bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110e39190614664565b1115611194576007546001600160a01b0316638586839785858481811061110c5761110c61467d565b905060200201602081019061112191906142b3565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152600060248201526044016020604051808303816000875af115801561116e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119291906145f5565b505b6007546001600160a01b031663a658de0f8585848181106111b7576111b761467d565b90506020020160208101906111cc91906142b3565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152600060248201526044016020604051808303816000875af1158015611219573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123d91906145f5565b5080611248816146a9565b915050610fdb565b50505050565b6008546001600160a01b0316336001600160a01b0316146112895760405162461bcd60e51b8152600401610ded90614612565b61129281613578565b50565b6007546040516311ec349b60e11b8152600481018390526000918291829182916001600160a01b03909116906323d86936906024015b608060405180830381865afa1580156112e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061130c91906146c2565b93509350935093509193509193565b6113236133f7565b6006805460018101825560009190915281907ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f016113618282614701565b50600190506004600061137760208501856142b3565b6001600160a01b031681526020808201929092526040908101600020805460ff1916931515939093179092556113b19183019083016142e2565b600980546018906113d0908490600160c01b900463ffffffff1661475d565b92506101000a81548163ffffffff021916908363ffffffff16021790555050565b6007546040805163256c683f60e11b815290516000926001600160a01b031691634ad8d07e9160048083019260209291908290030181865afa15801561143b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc79190614664565b6008546000906001600160a01b0316336001600160a01b0316146114955760405162461bcd60e51b8152600401610ded90614612565b60405163a9059cbb60e01b81526001600160a01b0384811660048301526024820184905285919082169063a9059cbb90604401610e2a565b6114d56133f7565b60088054911515600160b81b0260ff60b81b19909216919091179055565b600754604080516304ddf6ef60e11b815290516000926001600160a01b0316916309bbedde9160048083019260209291908290030181865afa15801561143b573d6000803e3d6000fd5b6115456133f7565b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b6007546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a08231906024015b602060405180830381865afa1580156115bc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd69190614664565b6115e86133f7565b6009805460ff60e01b1916600160e01b179055565b6116056133f7565b61160f60006137a5565b565b8281146116535760405162461bcd60e51b815260206004820152601060248201526f08af0dee8d2f074409a92a69a82a886960831b6044820152606401610ded565b6000805b8481101561182b57611681338585848181106116755761167561467d565b905060200201356137f5565b6116c98686838181106116965761169661467d565b90506020020160208101906116ab91906142b3565b8585848181106116bd576116bd61467d565b90506020020135613839565b6007546001600160a01b031663e30443bc8787848181106116ec576116ec61467d565b905060200201602081019061170191906142b3565b61172b8989868181106117165761171661467d565b905060200201602081019061077d91906142b3565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561177157600080fd5b505af1925050508015611782575060015b508585828181106117955761179561467d565b90506020020160208101906117aa91906142b3565b6001600160a01b0316336000805160206149c58339815191528686858181106117d5576117d561467d565b905060200201356040516117eb91815260200190565b60405180910390a38383828181106118055761180561467d565b90506020020135826118179190614781565b915080611823816146a9565b915050611657565b50611889863360408051808201825260208082527f4d756c746973656e643a204e6f7420656e6f75676820616c6c6f77616e63652e818301526001600160a01b038c1660009081526002909152918220610c47928792919033610c26565b6007546001600160a01b031663e30443bc336118a43361077d565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156118ea57600080fd5b505af19250505080156118fb575060015b505b505050505050565b600754604051637a00540760e01b81526001600160a01b0383811660048301526000921690637a0054079060240161159f565b6008546001600160a01b0316336001600160a01b03161461196b5760405162461bcd60e51b8152600401610ded90614612565b4761197582613578565b60006119818247614794565b60085490915061199a906001600160a01b0316826138c8565b505050565b6001600160a01b038116600090815260036020526040812054610bd6565b600a546040805163c45a015560e01b815290516000926001600160a01b03169163c45a01559160048083019260209291908290030181865afa158015611a07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a2b91906147a7565b6001600160a01b031663e6a4390530600a60009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab191906147a7565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381865afa158015611afc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc791906147a7565b6008546001600160a01b0316336001600160a01b031614611b535760405162461bcd60e51b8152600401610ded90614612565b600a54604080516315ab88c960e31b815290516000926001600160a01b03169163ad5c46489160048083019260209291908290030181865afa158015611b9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bc191906147a7565b90506000600a60009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611c18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c3c91906147a7565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa158015611c86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611caa9190614664565b604051632e1a7d4d60e01b8152600481018290529091506001600160a01b03841690632e1a7d4d90602401600060405180830381600087803b158015611cef57600080fd5b505af11580156118fb573d6000803e3d6000fd5b6007546040516373ecdd9d60e11b81526001600160a01b038381166004830152600092839283928392169063e7d9bb3a906024016112cb565b600754604051631eb4301d60e31b8152600481018390526000918291829182916001600160a01b039091169063f5a180e8906024016112cb565b60075460405163998d393d60e01b81526001600160a01b038381166004830152600092169063998d393d9060240161159f565b60075460405163dd03912560e01b81526001600160a01b038381166004830152600092839283928392169063dd039125906024016112cb565b6000610bd2338484612f5f565b828114611e315760405162461bcd60e51b815260206004820152601060248201526f08af0dee8d2f074409a92a69a82a886960831b6044820152606401610ded565b60005b83811015611fb557611e52338484848181106116755761167561467d565b611e8e858583818110611e6757611e6761467d565b9050602002016020810190611e7c91906142b3565b8484848181106116bd576116bd61467d565b6007546001600160a01b031663e30443bc868684818110611eb157611eb161467d565b9050602002016020810190611ec691906142b3565b611edb8888868181106117165761171661467d565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611f2157600080fd5b505af1925050508015611f32575060015b50848482818110611f4557611f4561467d565b9050602002016020810190611f5a91906142b3565b6001600160a01b0316336000805160206149c5833981519152858585818110611f8557611f8561467d565b90506020020135604051611f9b91815260200190565b60405180910390a380611fad816146a9565b915050611e34565b506007546001600160a01b031663e30443bc33611fd13361077d565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561201757600080fd5b505af1925050508015612028575060015b156112505750505050565b61203b6133f7565b614e208163ffffffff1611156120935760405162461bcd60e51b815260206004820181905260248201527f45786f7469783a204d6178696d756d2073656c6c20746178206f66203230252e6044820152606401610ded565b6007805463ffffffff909216600160c01b0263ffffffff60c01b19909216919091179055565b60075460405163c705c56960e01b81526001600160a01b038381166004830152600092169063c705c56990602401602060405180830381865afa158015612104573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd691906145f5565b612141336007546001600160a01b0316836000806139e1565b60075460405163f2f43adf60e01b8152600481018390526001600160a01b039091169063f2f43adf90602401610d1a565b61217a6133f7565b6001600160a01b0381166000908152600460205260408120805460ff19169055805b6006548110156122b457826001600160a01b0316600682815481106121c3576121c361467d565b6000918252602090912001546001600160a01b0316036122a257600680546121ed90600190614794565b815481106121fd576121fd61467d565b906000526020600020016006828154811061221a5761221a61467d565b600091825260209091208254910180546001600160a01b039092166001600160a01b031983168117825592546001600160c01b0319909216909217600160a01b9182900463ffffffff16909102179055600680548061227b5761227b6147c4565b600082815260209020810160001990810180546001600160c01b0319169055019055600191505b806122ac816146a9565b91505061219c565b50806123025760405162461bcd60e51b815260206004820152601860248201527f45786f7469783a204e6f7420696e20746178206c6973742e00000000000000006044820152606401610ded565b6000805b60065481101561235a57600681815481106123235761232361467d565b60009182526020909120015461234690600160a01b900463ffffffff168361475d565b915080612352816146a9565b915050612306565b506009805463ffffffff909216600160c01b0263ffffffff60c01b199092169190911790555050565b61238b6133f7565b600854600160a01b900460ff16156123e55760405162461bcd60e51b815260206004820152601760248201527f74726164696e6720697320616c7265616479206f70656e0000000000000000006044820152606401610ded565b600a80546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d90811790915561243930827f0000000000000000000000000000000000000000000000000000000000000000612e3b565b6000816001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015612479573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061249d91906147a7565b6001600160a01b031663c9c6539630846001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156124ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061250e91906147a7565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801561255b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061257f91906147a7565b600a549091506001600160a01b031663f305d71947306125b4816001600160a01b031660009081526001602052604090205490565b6000806125c96000546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af1158015612631573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061265691906147da565b50506008805463ffff00ff60a01b1916630101000160a01b179055506007805463ffffffff60a01b1916600160a01b4363ffffffff908116919091029190911782556040805160a08101825260008082526020808301828152838501838152606085018481526001608087019081526001600160a01b038b811687526004958690529588902096518754945193519251915161ffff1990951690151561ff00191617610100931515939093029290921769ffffffffffffffff00001916620100009189169190910269ffffffff000000000000191617660100000000000091909716029590951760ff60501b1916600160501b95151595909502949094179091559254905163031e79db60e41b815285841692810192909252909116906331e79db090602401600060405180830381600087803b15801561279657600080fd5b505af11580156127aa573d6000803e3d6000fd5b505060075460405163031e79db60e41b81526001600160a01b03858116600483015290911692506331e79db09150602401600060405180830381600087803b1580156127f557600080fd5b505af11580156118fd573d6000803e3d6000fd5b6128116133f7565b7f000000000000000000000000000000000000000000000000000000000000000081106128925760405162461bcd60e51b815260206004820152602960248201527f43616e27742068617665206e6577206d696e696d756d2061626f766520746f74604482015268616c20737570706c7960b81b6064820152608401610ded565b6007546040516335bebe9d60e11b8152600481018390526001600160a01b0390911690636b7d7d3a90602401610d1a565b60075460408051630ecfbf0560e31b815290516000926001600160a01b03169163767df8289160048083019260209291908290030181865afa15801561143b573d6000803e3d6000fd5b8342111561295d5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610ded565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c988888861298c8c613c6d565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e00160405160208183030381529060405280519060200120905060006129e782613c95565b905060006129f782878787613ce3565b9050896001600160a01b0316816001600160a01b031614612a5a5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610ded565b612a658a8a8a612e3b565b50505050505050505050565b60075460408051631b0c697960e01b815290516001600160a01b03909216918291631b0c69799160048083019260209291908290030181865afa158015612abc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ae09190614664565b6040516370a0823160e01b81523360048201526001600160a01b038316906370a0823190602401602060405180830381865afa158015612b24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b489190614664565b11612b9f5760405162461bcd60e51b815260206004820152602160248201527f45786f7469783a204e6f7420656e6f75676820746f20636c61696d20555344436044820152601760f91b6064820152608401610ded565b604051638586839760e01b8152336004820152600060248201526001600160a01b038216906385868397906044016020604051808303816000875af1158015612bec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c1091906145f5565b5050565b6009546001600160a01b0316336001600160a01b031614612c835760405162461bcd60e51b8152602060048201526024808201527f45786f7469783a204f6e6c7920646576656c6f7065722063616e2073657420746044820152633434b99760e11b6064820152608401610ded565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b60075460405163a658de0f60e01b8152336004820152600060248201526001600160a01b039091169063a658de0f906044016020604051808303816000875af1158015612cf6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061129291906145f5565b612d226133f7565b6001600160a01b03166000908152600460205260409020805460ff60501b1916600160501b179055565b612d546133f7565b6001600160a01b038116612db95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ded565b611292816137a5565b60606006805480602002602001604051908101604052809291908181526020016000905b82821015612e3257600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b900463ffffffff1681830152825260019092019101612de6565b50505050905090565b6001600160a01b038316612e9d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610ded565b6001600160a01b038216612efe5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610ded565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316612fc35760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610ded565b6001600160a01b0382166130255760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610ded565b600081116130875760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610ded565b60008061309c6000546001600160a01b031690565b6001600160a01b0316856001600160a01b0316141580156130cb57506000546001600160a01b03858116911614155b80156130e057506001600160a01b0385163014155b801561310557506001600160a01b03841660009081526004602052604090205460ff16155b801561312a57506001600160a01b03851660009081526004602052604090205460ff16155b156133b9576001600160a01b038416600090815260046020526040902054610100900460ff1615801561317b57506001600160a01b038516600090815260046020526040902054610100900460ff16155b6131be5760405162461bcd60e51b815260206004820152601460248201527322bc37ba34bc1d10213637b1b5b634b9ba32b21760611b6044820152606401610ded565b6001600160a01b038516600090815260046020526040902054600160501b900460ff1680156131fb5750600a546001600160a01b03858116911614155b156132be5760085460009250600160b81b900460ff16156132b9576001600160a01b038416600090815260046020526040902054436201000090910463ffffffff16036132865760405162461bcd60e51b815260206004820152601960248201527822bc37ba34bc1d1027b732903a3c103832b910313637b1b59760391b6044820152606401610ded565b6001600160a01b0384166000908152600460205260409020805465ffffffff00001916620100004363ffffffff16021790555b6133be565b6001600160a01b038416600090815260046020526040902054600160501b900460ff1680156132fb5750600a546001600160a01b03868116911614155b156133b05750600854600190600160b81b900460ff1615613399576001600160a01b038516600090815260046020526040902054436201000090910463ffffffff16036133865760405162461bcd60e51b815260206004820152601960248201527822bc37ba34bc1d1027b732903a3c103832b910313637b1b59760391b6044820152606401610ded565b6001600160a01b03851660005260046020525b600754600160c01b900463ffffffff1691506133be565b600091506133be565b600091505b610d4885858585856139e1565b600081848411156133ef5760405162461bcd60e51b8152600401610ded91906141ca565b505050900390565b6000546001600160a01b0316331461160f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ded565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480156134aa57507f000000000000000000000000000000000000000000000000000000000000000046145b156134d457507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6040805160028082526060820183528392600092919060208301908036833701905050905082816000815181106135b1576135b161467d565b6001600160a01b03928316602091820292909201810191909152600a54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa15801561360a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061362e91906147a7565b816001815181106136415761364161467d565b6001600160a01b0392831660209182029290920101526040516370a0823160e01b81523060048201526000918416906370a0823190602401602060405180830381865afa158015613696573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136ba9190614664565b600a5460405163095ea7b360e01b81526001600160a01b0391821660048201526024810183905291925084169063095ea7b3906044016020604051808303816000875af115801561370f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061373391906145f5565b50600a5460405163791ac94760e01b81526001600160a01b039091169063791ac9479061376d90849060009087903090429060040161481e565b600060405180830381600087803b15801561378757600080fd5b505af115801561379b573d6000803e3d6000fd5b5050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216600090815260016020526040902054613819908290614794565b6001600160a01b0390921660009081526001602052604090209190915550565b6001600160a01b03821660009081526001602052604081205490036138a457600580546001810182556000919091527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b0319166001600160a01b0384161790555b6001600160a01b038216600090815260016020526040902054613819908290614781565b804710156139185760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610ded565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613965576040519150601f19603f3d011682016040523d82523d6000602084013e61396a565b606091505b505090508061199a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610ded565b60008115613abd5760006139f58585613d0b565b9050613a018186614794565b91508015613a745730600090815260016020526040902054613a24908290614781565b30600081815260016020526040908190209290925590516001600160a01b038916906000805160206149c583398151915290613a639085815260200190565b60405180910390a3613a7481613d32565b866001600160a01b03167fae92ab4b6f8f401ead768d3273e6bb937a13e39827d19c6376e8fd4512a05d9a83604051613aaf91815260200190565b60405180910390a250613b04565b839050846001600160a01b03167fc55650ccda1011e1cdc769b1fbf546ebb8c97800b6072b49e06cd560305b1d6785604051613afb91815260200190565b60405180910390a25b613b0e86856137f5565b613b188582613839565b6007546001600160a01b031663e30443bc87613b49816001600160a01b031660009081526001602052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015613b8f57600080fd5b505af1925050508015613ba0575060015b506007546001600160a01b031663e30443bc86613bd2816001600160a01b031660009081526001602052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015613c1857600080fd5b505af1925050508015613c29575060015b50846001600160a01b0316866001600160a01b03166000805160206149c583398151915283604051613c5d91815260200190565b60405180910390a3505050505050565b6001600160a01b03811660009081526003602052604090208054600181018255905b50919050565b6000610bd6613ca2613451565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000613cf487878787613f17565b91509150613d0181613fdb565b5095945050505050565b6000620186a0613d2163ffffffff84168561488f565b613d2b91906148a6565b9392505050565b6008805460ff60a81b1916600160a81b179055306000908152600260209081526040808320600a546001600160a01b03168452909152902054811115613daa57600a54613daa9030906001600160a01b03167f0000000000000000000000000000000000000000000000000000000000000000612e3b565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110613ddf57613ddf61467d565b6001600160a01b03928316602091820292909201810191909152600a54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015613e38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e5c91906147a7565b81600181518110613e6f57613e6f61467d565b6001600160a01b039283166020918202929092010152600a546040516318cbafe560e01b81529116906318cbafe590613eb590859060009086903090429060040161481e565b6000604051808303816000875af1158015613ed4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613efc91908101906148c8565b50613f0647614125565b50506008805460ff60a81b19169055565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613f4e5750600090506003613fd2565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613fa2573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613fcb57600060019250925050613fd2565b9150600090505b94509492505050565b6000816004811115613fef57613fef614986565b03613ff75750565b600181600481111561400b5761400b614986565b036140585760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610ded565b600281600481111561406c5761406c614986565b036140b95760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610ded565b60038160048111156140cd576140cd614986565b036112925760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610ded565b60005b600654811015612c10576141b8600682815481106141485761414861467d565b600091825260209091200154600954600680546001600160a01b0390931692600160c01b90920463ffffffff1691859081106141865761418661467d565b6000918252602090912001546141a990600160a01b900463ffffffff168661488f565b6141b391906148a6565b6138c8565b806141c2816146a9565b915050614128565b600060208083528351808285015260005b818110156141f7578581018301518582016040015282016141db565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461129257600080fd5b6000806040838503121561424057600080fd5b823561424b81614218565b946020939093013593505050565b60008060006060848603121561426e57600080fd5b833561427981614218565b9250602084013561428981614218565b929592945050506040919091013590565b6000602082840312156142ac57600080fd5b5035919050565b6000602082840312156142c557600080fd5b8135613d2b81614218565b63ffffffff8116811461129257600080fd5b6000602082840312156142f457600080fd5b8135613d2b816142d0565b801515811461129257600080fd5b6000806040838503121561432057600080fd5b823561432b81614218565b9150602083013561433b816142ff565b809150509250929050565b60008083601f84011261435857600080fd5b50813567ffffffffffffffff81111561437057600080fd5b6020830191508360208260051b850101111561438b57600080fd5b9250929050565b600080602083850312156143a557600080fd5b823567ffffffffffffffff8111156143bc57600080fd5b6143c885828601614346565b90969095509350505050565b600060408284031215613c8f57600080fd5b6000602082840312156143f857600080fd5b8135613d2b816142ff565b60008060008060006060868803121561441b57600080fd5b853561442681614218565b9450602086013567ffffffffffffffff8082111561444357600080fd5b61444f89838a01614346565b9096509450604088013591508082111561446857600080fd5b5061447588828901614346565b969995985093965092949392505050565b6000806000806040858703121561449c57600080fd5b843567ffffffffffffffff808211156144b457600080fd5b6144c088838901614346565b909650945060208701359150808211156144d957600080fd5b506144e687828801614346565b95989497509550505050565b600080600080600080600060e0888a03121561450d57600080fd5b873561451881614218565b9650602088013561452881614218565b95506040880135945060608801359350608088013560ff8116811461454c57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561457c57600080fd5b823561458781614218565b9150602083013561433b81614218565b602080825282518282018190526000919060409081850190868401855b828110156145e857815180516001600160a01b0316855286015163ffffffff168685015292840192908501906001016145b4565b5091979650505050505050565b60006020828403121561460757600080fd5b8151613d2b816142ff565b60208082526032908201527f546f6b656e436c61776261636b3a2063616c6c6572206973206e6f74207468656040820152711022a92199181031b7b73a3937b63632b91760711b606082015260800190565b60006020828403121561467657600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016146bb576146bb614693565b5060010190565b600080600080608085870312156146d857600080fd5b84516146e381614218565b60208601516040870151606090970151919890975090945092505050565b813561470c81614218565b81546001600160a01b031981166001600160a01b039290921691821783556020840135614738816142d0565b6001600160c01b03199190911690911760a09190911b63ffffffff60a01b1617905550565b63ffffffff81811683821601908082111561477a5761477a614693565b5092915050565b80820180821115610bd657610bd6614693565b81810381811115610bd657610bd6614693565b6000602082840312156147b957600080fd5b8151613d2b81614218565b634e487b7160e01b600052603160045260246000fd5b6000806000606084860312156147ef57600080fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b600052604160045260246000fd5b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b8181101561486e5784516001600160a01b031683529383019391830191600101614849565b50506001600160a01b03969096166060850152505050608001529392505050565b8082028115828204841417610bd657610bd6614693565b6000826148c357634e487b7160e01b600052601260045260246000fd5b500490565b600060208083850312156148db57600080fd5b825167ffffffffffffffff808211156148f357600080fd5b818501915085601f83011261490757600080fd5b81518181111561491957614919614808565b8060051b604051601f19603f8301168101818110858211171561493e5761493e614808565b60405291825284820192508381018501918883111561495c57600080fd5b938501935b8285101561497a57845184529385019392850192614961565b98975050505050505050565b634e487b7160e01b600052602160045260246000fdfe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220ac6bedf300d1aa51231aaade1dacb0a2836c897c4b63f39fb235255a4e6b17f664736f6c6343000811003360806040523480156200001157600080fd5b50604051620023a9380380620023a983398101604081905262000034916200016c565b60408051808201825260178082527f45786f7469785f4469766964656e645f547261636b65720000000000000000006020808401829052845180860190955291845290830152908585838360036200008d838262000259565b5060046200009c828262000259565b505050620000b9620000b3620000f960201b60201c565b620000fd565b600680546001600160a01b039384166001600160a01b03199182161790915560078054929093169116179055505060169190915560175550620003259050565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516001600160a01b03811681146200016757600080fd5b919050565b600080600080608085870312156200018357600080fd5b6200018e856200014f565b93506200019e602086016200014f565b6040860151606090960151949790965092505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001df57607f821691505b6020821081036200020057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200025457600081815260208120601f850160051c810160208610156200022f5750805b601f850160051c820191505b8181101562000250578281556001016200023b565b5050505b505050565b81516001600160401b03811115620002755762000275620001b4565b6200028d81620002868454620001ca565b8462000206565b602080601f831160018114620002c55760008415620002ac5750858301515b600019600386901b1c1916600185901b17855562000250565b600085815260208120601f198616915b82811015620002f657888601518255948401946001909101908401620002d5565b5085821015620003155787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61207480620003356000396000f3fe6080604052600436106103505760003560e01c806372d58ae5116101c6578063c705c569116100f7578063e7841ec011610095578063f2fde38b1161006f578063f2fde38b146109a5578063f4980fe5146109c5578063f5a180e8146109e5578063f65dd81614610a0557600080fd5b8063e7841ec014610950578063e7d9bb3a14610965578063f2f43adf1461098557600080fd5b8063dd039125116100d1578063dd039125146108ba578063dd62ed3e146108da578063e30443bc146108fa578063e501ac4a1461091a57600080fd5b8063c705c5691461084b578063c743209314610884578063c8e0a6ce146108a457600080fd5b8063998d393d11610164578063a658de0f1161013e578063a658de0f146107eb578063a9059cbb1461080b578063b1181e55146103d2578063bed60ea21461082b57600080fd5b8063998d393d1461078b578063a3395cb4146107ab578063a457c2d7146107cb57600080fd5b806385868397116101a057806385868397146107185780638da5cb5b1461073857806392cda89f1461075657806395d89b411461077657600080fd5b806372d58ae5146106c2578063767df828146106e25780637a005407146106f857600080fd5b80633009a609116102a05780634e7b827f1161023e5780635f13e782116102185780635f13e782146106375780636b7d7d3a1461065757806370a0823114610677578063715018a6146106ad57600080fd5b80634e7b827f146105b157806354747cba146105e1578063556cafb01461060157600080fd5b8063395093511161027a578063395093511461057b578063430fdf9e146103a05780634824575e146104945780634ad8d07e1461059b57600080fd5b80633009a60914610529578063313ce5671461053f57806331e79db01461055b57600080fd5b806310c37abd1161030d5780631ae42b35116102e75780631ae42b35146104945780631b0c6979146104a957806323b872dd146104bf57806323d86936146104df57600080fd5b806310c37abd146104295780631105e7401461045f57806318160ddd1461047f57600080fd5b806306fdde03146103555780630716c6111461038057806308e243ca146103a0578063095ea7b3146103a257806309bbedde146103d257806310a8c46b146103f1575b600080fd5b34801561036157600080fd5b5061036a610a25565b6040516103779190611d83565b60405180910390f35b34801561038c57600080fd5b506103a061039b366004611de6565b610ab7565b005b3480156103ae57600080fd5b506103c26103bd366004611e03565b610bec565b6040519015158152602001610377565b3480156103de57600080fd5b506010545b604051908152602001610377565b3480156103fd57600080fd5b5061041161040c366004611e2f565b610c06565b6040516001600160a01b039091168152602001610377565b34801561043557600080fd5b506103e3610444366004611de6565b6001600160a01b03166000908152600b602052604090205490565b34801561046b57600080fd5b506103a061047a366004611e03565b610c39565b34801561048b57600080fd5b506002546103e3565b3480156104a057600080fd5b506103a0610cf8565b3480156104b557600080fd5b506103e360165481565b3480156104cb57600080fd5b506103c26104da366004611e48565b610d32565b3480156104eb57600080fd5b506104ff6104fa366004611e2f565b610d56565b604080516001600160a01b0390951685526020850193909352918301526060820152608001610377565b34801561053557600080fd5b506103e360145481565b34801561054b57600080fd5b5060405160128152602001610377565b34801561056757600080fd5b506103a0610576366004611de6565b610da5565b34801561058757600080fd5b506103c2610596366004611e03565b610e41565b3480156105a757600080fd5b506103e3600e5481565b3480156105bd57600080fd5b506103c26105cc366004611de6565b60156020526000908152604090205460ff1681565b3480156105ed57600080fd5b50600654610411906001600160a01b031681565b34801561060d57600080fd5b506103e361061c366004611de6565b6001600160a01b031660009081526011602052604090205490565b34801561064357600080fd5b506103e3610652366004611de6565b610e63565b34801561066357600080fd5b506103a0610672366004611e2f565b610ebf565b34801561068357600080fd5b506103e3610692366004611de6565b6001600160a01b031660009081526020819052604090205490565b3480156106b957600080fd5b506103a0610ecc565b3480156106ce57600080fd5b50600754610411906001600160a01b031681565b3480156106ee57600080fd5b506103e3600f5481565b34801561070457600080fd5b506103e3610713366004611de6565b610ede565b34801561072457600080fd5b506103c2610733366004611e97565b610f0a565b34801561074457600080fd5b506005546001600160a01b0316610411565b34801561076257600080fd5b506103a0610771366004611e2f565b610f81565b34801561078257600080fd5b5061036a61101f565b34801561079757600080fd5b506103e36107a6366004611de6565b61102e565b3480156107b757600080fd5b506103e36107c6366004611de6565b611054565b3480156107d757600080fd5b506103c26107e6366004611e03565b611099565b3480156107f757600080fd5b506103c2610806366004611e97565b611114565b34801561081757600080fd5b506103c2610826366004611e03565b611129565b34801561083757600080fd5b506103e3610846366004611de6565b611137565b34801561085757600080fd5b506103c2610866366004611de6565b6001600160a01b031660009081526015602052604090205460ff1690565b34801561089057600080fd5b506103e361089f366004611de6565b611142565b3480156108b057600080fd5b506103e360175481565b3480156108c657600080fd5b506104ff6108d5366004611de6565b61114d565b3480156108e657600080fd5b506103e36108f5366004611ed0565b61117a565b34801561090657600080fd5b506103a0610915366004611e03565b6111a5565b34801561092657600080fd5b506103e3610935366004611de6565b6001600160a01b03166000908152600d602052604090205490565b34801561095c57600080fd5b506014546103e3565b34801561097157600080fd5b506104ff610980366004611de6565b61121f565b34801561099157600080fd5b506103a06109a0366004611e2f565b611243565b3480156109b157600080fd5b506103a06109c0366004611de6565b6112e0565b3480156109d157600080fd5b506103a06109e0366004611e2f565b611356565b3480156109f157600080fd5b506104ff610a00366004611e2f565b611363565b348015610a1157600080fd5b506103e3610a20366004611de6565b6113a1565b606060038054610a3490611efe565b80601f0160208091040260200160405190810160405280929190818152602001828054610a6090611efe565b8015610aad5780601f10610a8257610100808354040283529160200191610aad565b820191906000526020600020905b815481529060010190602001808311610a9057829003601f168201915b5050505050905090565b6001600160a01b03811660009081526013602052604090205460ff16610ada5750565b6001600160a01b0381166000908152601360209081526040808320805460ff19169055601182528083208390556012909152812054601054909190610b2190600190611f4e565b9050600060106000018281548110610b3b57610b3b611f61565b60009182526020808320909101546001600160a01b0390811680845260129092526040808420879055908716835282209190915560108054919250829185908110610b8857610b88611f61565b600091825260209091200180546001600160a01b0319166001600160a01b03929092169190911790556010805480610bc257610bc2611f77565b600082815260209020810160001990810180546001600160a01b031916905501905550505050565b565b600033610bfa8185856113e3565b60019150505b92915050565b600060106000018281548110610c1e57610c1e611f61565b6000918252602090912001546001600160a01b031692915050565b6001600160a01b03821660009081526013602052604090205460ff1615610c77576001600160a01b0391909116600090815260116020526040902055565b6001600160a01b0382166000818152601360209081526040808320805460ff1916600190811790915560118352818420869055601080546012909452918420839055820181559091527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6720180546001600160a01b03191690911790555b5050565b60405162461bcd60e51b815260206004820152600a602482015269222a1d1021a620a4a69760b11b60448201526064015b60405180910390fd5b600033610d40858285611507565b610d4b858585611581565b506001949350505050565b600080600080610d6560105490565b8510610d7e575060009250600019915082905080610d9e565b6000610d8986610c06565b9050610d948161114d565b9450945094509450505b9193509193565b610dad6115b9565b6001600160a01b03811660009081526015602052604090205460ff1615610dd357600080fd5b6001600160a01b0381166000908152601560205260408120805460ff19166001179055610e01908290611613565b610e0a81610ab7565b6040516001600160a01b038216907fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b2590600090a250565b600033610bfa818585610e54838361117a565b610e5e9190611f8d565b6113e3565b6001600160a01b0381166000908152600c602090815260408083205491839052822054600954600160801b92610eb592610eb092610eaa91610ea5919061166c565b61167f565b9061168f565b6116cd565b610c009190611fa0565b610ec76115b9565b601655565b610ed46115b9565b610bea60006116e0565b6001600160a01b0381166000908152600b6020526040812054610c0090610f0484610e63565b90611732565b6000610f146115b9565b6000610f1f8461173e565b90508015610f7757821515846001600160a01b03167fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf09283604051610f6591815260200190565b60405180910390a36001915050610c00565b5060009392505050565b610f896115b9565b6000610f9460025490565b118015610fa15750600081115b1561101c57610fd3610fb260025490565b610fc083600160801b61166c565b610fca9190611fa0565b600854906118a3565b60085560405181815233907f6b3ab0f84682305f47f3c740e7efce8e8da1968f6c32c29c73cadcf67ce7609d9060200160405180910390a2600e5461101890826118a3565b600e555b50565b606060048054610a3490611efe565b6001600160a01b0381166000908152600b6020526040812054610c0090610f04846113a1565b6001600160a01b03811660009081526013602052604081205460ff1661107d5750600019919050565b506001600160a01b031660009081526012602052604090205490565b600033816110a7828661117a565b9050838110156111075760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610d29565b610d4b82868684036113e3565b600061111e6115b9565b6000610f1f846118af565b600033610bfa818585611581565b6000610c008261102e565b6000610c0082610ede565b806000808061115b84611054565b925061116684610ede565b915061117184610e63565b90509193509193565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6111ad6115b9565b6001600160a01b03821660009081526015602052604090205460ff16610cf45760165481106111ef576111e08282611613565b6111ea8282610c39565b611203565b6111fa826000611613565b61120382610ab7565b61120e826001610f0a565b5061121a826001611114565b505050565b806000808061122d84611054565b92506112388461102e565b9150611171846113a1565b61124b6115b9565b600061125660025490565b1180156112635750600081115b1561101c5761129561127460025490565b61128283600160801b61166c565b61128c9190611fa0565b600954906118a3565b60095560405181815233907ffe912d674930e03d0928b402c4ab576bc853732c4ec37c8ad9f0324e39c4ee6b9060200160405180910390a2600f546112da90826118a3565b600f5550565b6112e86115b9565b6001600160a01b03811661134d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d29565b61101c816116e0565b61135e6115b9565b601755565b60008060008061137260105490565b851061138b575060009250600019915082905080610d9e565b600061139686610c06565b9050610d948161121f565b6001600160a01b0381166000908152600a602090815260408083205491839052822054600854600160801b92610eb592610eb092610eaa91610ea5919061166c565b6001600160a01b0383166114455760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610d29565b6001600160a01b0382166114a65760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610d29565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000611513848461117a565b9050600019811461157b578181101561156e5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610d29565b61157b84848484036113e3565b50505050565b60405162461bcd60e51b815260206004820152600d60248201526c222a1d102327a92124a22222a760991b6044820152606401610d29565b6005546001600160a01b03163314610bea5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d29565b6001600160a01b0382166000908152602081905260409020548082111561164c5760006116408383611732565b905061157b8482611a04565b8082101561121a5760006116608284611732565b905061157b8482611ab5565b60006116788284611fc2565b9392505050565b60008181811215610c0057600080fd5b60008061169c8385611fd9565b9050600083121580156116af5750838112155b806116c457506000831280156116c457508381125b61167857600080fd5b6000808212156116dc57600080fd5b5090565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006116788284611f4e565b60008061174a8361102e565b9050801561189a576001600160a01b0383166000908152600b602052604090205461177590826118a3565b6001600160a01b0384166000818152600b6020526040908190209290925590517f0bdadf8a2b60010d7f6fd91c9d00445dfc3ebafc37dc66980092b35831e0779a906117c49084815260200190565b60405180910390a260065460405163a9059cbb60e01b81526001600160a01b03858116600483015260248201849052600092169063a9059cbb906044016020604051808303816000875af1158015611820573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118449190612001565b905080611893576001600160a01b0384166000908152600b602052604090205461186e9083611732565b6001600160a01b039094166000908152600b6020526040812094909455509192915050565b5092915050565b50600092915050565b60006116788284611f8d565b6000806118bb83610ede565b9050801561189a576001600160a01b0383166000908152600d60205260409020546118e690826118a3565b6001600160a01b0384166000818152600d6020526040908190209290925590517f0bdadf8a2b60010d7f6fd91c9d00445dfc3ebafc37dc66980092b35831e0779a906119359084815260200190565b60405180910390a260075460405163a9059cbb60e01b81526001600160a01b03858116600483015260248201849052600092169063a9059cbb906044016020604051808303816000875af1158015611991573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b59190612001565b905080611893576001600160a01b0384166000908152600d60205260409020546119df9083611732565b6001600160a01b039094166000908152600d6020526040812094909455509192915050565b611a0e8282611b46565b611a48611a29610ea58360085461166c90919063ffffffff16565b6001600160a01b0384166000908152600a602052604090205490611c05565b6001600160a01b0383166000908152600a6020526040902055600954611a9590611a7690610ea5908461166c565b6001600160a01b0384166000908152600c602052604090205490611c05565b6001600160a01b039092166000908152600c602052604090209190915550565b611abf8282611c51565b611af9611ada610ea58360085461166c90919063ffffffff16565b6001600160a01b0384166000908152600a60205260409020549061168f565b6001600160a01b0383166000908152600a6020526040902055600954611a9590611b2790610ea5908461166c565b6001600160a01b0384166000908152600c60205260409020549061168f565b6001600160a01b038216611b9c5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610d29565b8060026000828254611bae9190611f8d565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6000808212158015611c20575082611c1d838261201e565b13155b80611c3e5750600082128015611c3e575082611c3c838261201e565b135b611c4757600080fd5b611678828461201e565b6001600160a01b038216611cb15760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610d29565b6001600160a01b03821660009081526020819052604090205481811015611d255760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610d29565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600060208083528351808285015260005b81811015611db057858101830151858201604001528201611d94565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461101c57600080fd5b600060208284031215611df857600080fd5b813561167881611dd1565b60008060408385031215611e1657600080fd5b8235611e2181611dd1565b946020939093013593505050565b600060208284031215611e4157600080fd5b5035919050565b600080600060608486031215611e5d57600080fd5b8335611e6881611dd1565b92506020840135611e7881611dd1565b929592945050506040919091013590565b801515811461101c57600080fd5b60008060408385031215611eaa57600080fd5b8235611eb581611dd1565b91506020830135611ec581611e89565b809150509250929050565b60008060408385031215611ee357600080fd5b8235611eee81611dd1565b91506020830135611ec581611dd1565b600181811c90821680611f1257607f821691505b602082108103611f3257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610c0057610c00611f38565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b80820180821115610c0057610c00611f38565b600082611fbd57634e487b7160e01b600052601260045260246000fd5b500490565b8082028115828204841417610c0057610c00611f38565b8082018281126000831280158216821582161715611ff957611ff9611f38565b505092915050565b60006020828403121561201357600080fd5b815161167881611e89565b818103600083128015838313168383128216171561189357611893611f3856fea26469706673582212200c9c0e9a671bbe7b1eece1bb48e619474d26e53e98474355ab283b65ddb0443264736f6c634300081100330000000000000000000000005e3c623a02e7a50e0f09a3ed95ea6955b2b836570000000000000000000000005e3c623a02e7a50e0f09a3ed95ea6955b2b83657000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000040000000000000000000000009587b9f2a4b9fd1b8e8a6da22e55c19fc12764e10000000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000eba44af4c0ca51f6713c257b5ec5e485ac0b12090000000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000ff2d66c8fc9d6d4650b50cf357065409326f09fd0000000000000000000000000000000000000000000000000000000000000bb80000000000000000000000005e3c623a02e7a50e0f09a3ed95ea6955b2b836570000000000000000000000000000000000000000000000000000000000000bb8
Deployed Bytecode
0x6080604052600436106103905760003560e01c80637a005407116101dc578063bb1789d611610102578063d505accf116100a0578063e508635d1161006f578063e508635d14610b4e578063e9cb414f14610b63578063f2fde38b14610b83578063fb61e99814610ba357600080fd5b8063d505accf14610ab3578063dd62ed3e14610ad3578063dedbf30714610b19578063e0195f0714610b2e57600080fd5b8063c8ce7be1116100dc578063c8ce7be114610a49578063c9567bf914610a69578063c9f5f6a714610a7e578063d189efb314610a9e57600080fd5b8063bb1789d6146109e9578063c705c56914610a09578063c7b792e214610a2957600080fd5b80639116d6ec1161017a578063a9059cbb11610149578063a9059cbb14610939578063aad41a4114610959578063b0bc85de14610979578063b1a4e0dc146109ab57600080fd5b80639116d6ec146108aa57806395d89b41146108ca578063998d393d146108f95780639a2a9c061461091957600080fd5b806386f3f3cb116101b657806386f3f3cb1461084257806388a65f46146108575780638cad75ae1461086c5780638da5cb5b1461088c57600080fd5b80637a005407146107e25780637a52da0e146108025780637ecebe001461082257600080fd5b80633e5d2ba7116102c15780635932ead11161025f57806370a082311161022e57806370a082311461076257806370bfdd9d14610798578063715018a6146107ad57806373ae740e146107c257600080fd5b80635932ead1146106ed57806364b0f6531461070d5780636612e66f146107225780636843cd841461074257600080fd5b80634ff99fcf1161029b5780634ff99fcf1461065f57806352fb9c911461067f5780635342acb414610694578063571cbe0a146106cd57600080fd5b80633e5d2ba7146105d5578063473071ce146105f557806347333b781461061557600080fd5b80633106c9c01161032e5780633334294711610308578063333429471461056057806333a1728214610580578063342aa8b5146105a05780633644e515146105c057600080fd5b80633106c9c0146104e0578063313ce5671461050257806331e79db01461054057600080fd5b806320d5bf371161036a57806320d5bf371461044f578063218e4a151461048157806323b872dd146104a05780632c1f5216146104c057600080fd5b806306fdde031461039c578063095ea7b3146103e257806318160ddd1461041257600080fd5b3661039757005b600080fd5b3480156103a857600080fd5b5060408051808201909152600b81526a08af0dee8d2f040a8cac6d60ab1b60208201525b6040516103d991906141ca565b60405180910390f35b3480156103ee57600080fd5b506104026103fd36600461422d565b610bc5565b60405190151581526020016103d9565b34801561041e57600080fd5b507f0000000000000000000000000000000000000000000000000de0b6b3a76400005b6040519081526020016103d9565b34801561045b57600080fd5b506008546001600160a01b03165b6040516001600160a01b0390911681526020016103d9565b34801561048d57600080fd5b50600854600160b81b900460ff16610402565b3480156104ac57600080fd5b506104026104bb366004614259565b610bdc565b3480156104cc57600080fd5b50600754610469906001600160a01b031681565b3480156104ec57600080fd5b506105006104fb36600461429a565b610c56565b005b34801561050e57600080fd5b5060405160ff7f00000000000000000000000000000000000000000000000000000000000000091681526020016103d9565b34801561054c57600080fd5b5061050061055b3660046142b3565b610d4f565b34801561056c57600080fd5b5061050061057b3660046142e2565b610d89565b34801561058c57600080fd5b5061040261059b366004614259565b610db7565b3480156105ac57600080fd5b506105006105bb36600461430d565b610e76565b3480156105cc57600080fd5b50610441610fbd565b3480156105e157600080fd5b506105006105f0366004614392565b610fcc565b34801561060157600080fd5b506105006106103660046142b3565b611256565b34801561062157600080fd5b5061063561063036600461429a565b611295565b604080516001600160a01b03909516855260208501939093529183015260608201526080016103d9565b34801561066b57600080fd5b5061050061067a3660046143d4565b61131b565b34801561068b57600080fd5b506104416113f1565b3480156106a057600080fd5b506104026106af3660046142b3565b6001600160a01b031660009081526004602052604090205460ff1690565b3480156106d957600080fd5b506104026106e8366004614259565b61145f565b3480156106f957600080fd5b506105006107083660046143e6565b6114cd565b34801561071957600080fd5b506104416114f3565b34801561072e57600080fd5b5061050061073d36600461430d565b61153d565b34801561074e57600080fd5b5061044161075d3660046142b3565b611570565b34801561076e57600080fd5b5061044161077d3660046142b3565b6001600160a01b031660009081526001602052604090205490565b3480156107a457600080fd5b506105006115e0565b3480156107b957600080fd5b506105006115fd565b3480156107ce57600080fd5b506105006107dd366004614403565b611611565b3480156107ee57600080fd5b506104416107fd3660046142b3565b611905565b34801561080e57600080fd5b5061050061081d3660046142b3565b611938565b34801561082e57600080fd5b5061044161083d3660046142b3565b61199f565b34801561084e57600080fd5b506104696119bd565b34801561086357600080fd5b50610500611b20565b34801561087857600080fd5b506106356108873660046142b3565b611d03565b34801561089857600080fd5b506000546001600160a01b0316610469565b3480156108b657600080fd5b506106356108c536600461429a565b611d3c565b3480156108d657600080fd5b5060408051808201909152600681526508ab09ea892b60d31b60208201526103cc565b34801561090557600080fd5b506104416109143660046142b3565b611d76565b34801561092557600080fd5b506106356109343660046142b3565b611da9565b34801561094557600080fd5b5061040261095436600461422d565b611de2565b34801561096557600080fd5b50610500610974366004614486565b611def565b34801561098557600080fd5b50600754600160c01b900463ffffffff1660405163ffffffff90911681526020016103d9565b3480156109b757600080fd5b506104026109c63660046142b3565b6001600160a01b0316600090815260046020526040902054610100900460ff1690565b3480156109f557600080fd5b50610500610a043660046142e2565b612033565b348015610a1557600080fd5b50610402610a243660046142b3565b6120b9565b348015610a3557600080fd5b50610500610a4436600461429a565b612128565b348015610a5557600080fd5b50610500610a643660046142b3565b612172565b348015610a7557600080fd5b50610500612383565b348015610a8a57600080fd5b50610500610a9936600461429a565b612809565b348015610aaa57600080fd5b506104416128c3565b348015610abf57600080fd5b50610500610ace3660046144f2565b61290d565b348015610adf57600080fd5b50610441610aee366004614569565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b348015610b2557600080fd5b50610500612a71565b348015610b3a57600080fd5b50610500610b493660046142b3565b612c14565b348015610b5a57600080fd5b50610500612ca5565b348015610b6f57600080fd5b50610500610b7e3660046142b3565b612d1a565b348015610b8f57600080fd5b50610500610b9e3660046142b3565b612d4c565b348015610baf57600080fd5b50610bb8612dc2565b6040516103d99190614597565b6000610bd2338484612e3b565b5060015b92915050565b6000610be9848484612f5f565b610c4c8433610c478560405180606001604052806028815260200161499d602891396001600160a01b038a16600090815260026020526040812090335b6001600160a01b0316815260208101919091526040016000205491906133cb565b612e3b565b5060019392505050565b73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486323b872dd3360075460405160e084901b6001600160e01b03191681526001600160a01b03928316600482015291166024820152604481018490526064016020604051808303816000875af1158015610cc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cec91906145f5565b506007546040516392cda89f60e01b8152600481018390526001600160a01b03909116906392cda89f906024015b600060405180830381600087803b158015610d3457600080fd5b505af1158015610d48573d6000803e3d6000fd5b5050505050565b610d576133f7565b60075460405163031e79db60e41b81526001600160a01b038381166004830152909116906331e79db090602401610d1a565b610d916133f7565b6009805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b6008546000906001600160a01b0316336001600160a01b031614610df65760405162461bcd60e51b8152600401610ded90614612565b60405180910390fd5b60405163095ea7b360e01b81526001600160a01b0384811660048301526024820184905285919082169063095ea7b3906044015b6020604051808303816000875af1158015610e49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6d91906145f5565b95945050505050565b610e7e6133f7565b6001600160a01b038216600090815260046020526040902054600160501b900460ff1615610f145760405162461bcd60e51b815260206004820152603f60248201527f45786f7469783a2043616e6e6f74206d616e6970756c61746520626c6f636b6c60448201527f69737420737461747573206f662061206c697175696469747920706169722e006064820152608401610ded565b8015610f8c57600954600160e01b900460ff1615610f8c5760405162461bcd60e51b815260206004820152602f60248201527f45786f7469783a20426c6f636b6c697374206164646974696f6e73206861766560448201526e103132b2b7103234b9b0b13632b21760891b6064820152608401610ded565b6001600160a01b03909116600090815260046020526040902080549115156101000261ff0019909216919091179055565b6000610fc7613451565b905090565b6007546001600160a01b031660005b8281101561125057816001600160a01b0316631b0c69796040518163ffffffff1660e01b8152600401602060405180830381865afa158015611021573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110459190614664565b826001600160a01b03166370a082318686858181106110665761106661467d565b905060200201602081019061107b91906142b3565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156110bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110e39190614664565b1115611194576007546001600160a01b0316638586839785858481811061110c5761110c61467d565b905060200201602081019061112191906142b3565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152600060248201526044016020604051808303816000875af115801561116e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119291906145f5565b505b6007546001600160a01b031663a658de0f8585848181106111b7576111b761467d565b90506020020160208101906111cc91906142b3565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152600060248201526044016020604051808303816000875af1158015611219573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123d91906145f5565b5080611248816146a9565b915050610fdb565b50505050565b6008546001600160a01b0316336001600160a01b0316146112895760405162461bcd60e51b8152600401610ded90614612565b61129281613578565b50565b6007546040516311ec349b60e11b8152600481018390526000918291829182916001600160a01b03909116906323d86936906024015b608060405180830381865afa1580156112e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061130c91906146c2565b93509350935093509193509193565b6113236133f7565b6006805460018101825560009190915281907ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f016113618282614701565b50600190506004600061137760208501856142b3565b6001600160a01b031681526020808201929092526040908101600020805460ff1916931515939093179092556113b19183019083016142e2565b600980546018906113d0908490600160c01b900463ffffffff1661475d565b92506101000a81548163ffffffff021916908363ffffffff16021790555050565b6007546040805163256c683f60e11b815290516000926001600160a01b031691634ad8d07e9160048083019260209291908290030181865afa15801561143b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc79190614664565b6008546000906001600160a01b0316336001600160a01b0316146114955760405162461bcd60e51b8152600401610ded90614612565b60405163a9059cbb60e01b81526001600160a01b0384811660048301526024820184905285919082169063a9059cbb90604401610e2a565b6114d56133f7565b60088054911515600160b81b0260ff60b81b19909216919091179055565b600754604080516304ddf6ef60e11b815290516000926001600160a01b0316916309bbedde9160048083019260209291908290030181865afa15801561143b573d6000803e3d6000fd5b6115456133f7565b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b6007546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a08231906024015b602060405180830381865afa1580156115bc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd69190614664565b6115e86133f7565b6009805460ff60e01b1916600160e01b179055565b6116056133f7565b61160f60006137a5565b565b8281146116535760405162461bcd60e51b815260206004820152601060248201526f08af0dee8d2f074409a92a69a82a886960831b6044820152606401610ded565b6000805b8481101561182b57611681338585848181106116755761167561467d565b905060200201356137f5565b6116c98686838181106116965761169661467d565b90506020020160208101906116ab91906142b3565b8585848181106116bd576116bd61467d565b90506020020135613839565b6007546001600160a01b031663e30443bc8787848181106116ec576116ec61467d565b905060200201602081019061170191906142b3565b61172b8989868181106117165761171661467d565b905060200201602081019061077d91906142b3565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561177157600080fd5b505af1925050508015611782575060015b508585828181106117955761179561467d565b90506020020160208101906117aa91906142b3565b6001600160a01b0316336000805160206149c58339815191528686858181106117d5576117d561467d565b905060200201356040516117eb91815260200190565b60405180910390a38383828181106118055761180561467d565b90506020020135826118179190614781565b915080611823816146a9565b915050611657565b50611889863360408051808201825260208082527f4d756c746973656e643a204e6f7420656e6f75676820616c6c6f77616e63652e818301526001600160a01b038c1660009081526002909152918220610c47928792919033610c26565b6007546001600160a01b031663e30443bc336118a43361077d565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156118ea57600080fd5b505af19250505080156118fb575060015b505b505050505050565b600754604051637a00540760e01b81526001600160a01b0383811660048301526000921690637a0054079060240161159f565b6008546001600160a01b0316336001600160a01b03161461196b5760405162461bcd60e51b8152600401610ded90614612565b4761197582613578565b60006119818247614794565b60085490915061199a906001600160a01b0316826138c8565b505050565b6001600160a01b038116600090815260036020526040812054610bd6565b600a546040805163c45a015560e01b815290516000926001600160a01b03169163c45a01559160048083019260209291908290030181865afa158015611a07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a2b91906147a7565b6001600160a01b031663e6a4390530600a60009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab191906147a7565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381865afa158015611afc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc791906147a7565b6008546001600160a01b0316336001600160a01b031614611b535760405162461bcd60e51b8152600401610ded90614612565b600a54604080516315ab88c960e31b815290516000926001600160a01b03169163ad5c46489160048083019260209291908290030181865afa158015611b9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bc191906147a7565b90506000600a60009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611c18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c3c91906147a7565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa158015611c86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611caa9190614664565b604051632e1a7d4d60e01b8152600481018290529091506001600160a01b03841690632e1a7d4d90602401600060405180830381600087803b158015611cef57600080fd5b505af11580156118fb573d6000803e3d6000fd5b6007546040516373ecdd9d60e11b81526001600160a01b038381166004830152600092839283928392169063e7d9bb3a906024016112cb565b600754604051631eb4301d60e31b8152600481018390526000918291829182916001600160a01b039091169063f5a180e8906024016112cb565b60075460405163998d393d60e01b81526001600160a01b038381166004830152600092169063998d393d9060240161159f565b60075460405163dd03912560e01b81526001600160a01b038381166004830152600092839283928392169063dd039125906024016112cb565b6000610bd2338484612f5f565b828114611e315760405162461bcd60e51b815260206004820152601060248201526f08af0dee8d2f074409a92a69a82a886960831b6044820152606401610ded565b60005b83811015611fb557611e52338484848181106116755761167561467d565b611e8e858583818110611e6757611e6761467d565b9050602002016020810190611e7c91906142b3565b8484848181106116bd576116bd61467d565b6007546001600160a01b031663e30443bc868684818110611eb157611eb161467d565b9050602002016020810190611ec691906142b3565b611edb8888868181106117165761171661467d565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611f2157600080fd5b505af1925050508015611f32575060015b50848482818110611f4557611f4561467d565b9050602002016020810190611f5a91906142b3565b6001600160a01b0316336000805160206149c5833981519152858585818110611f8557611f8561467d565b90506020020135604051611f9b91815260200190565b60405180910390a380611fad816146a9565b915050611e34565b506007546001600160a01b031663e30443bc33611fd13361077d565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561201757600080fd5b505af1925050508015612028575060015b156112505750505050565b61203b6133f7565b614e208163ffffffff1611156120935760405162461bcd60e51b815260206004820181905260248201527f45786f7469783a204d6178696d756d2073656c6c20746178206f66203230252e6044820152606401610ded565b6007805463ffffffff909216600160c01b0263ffffffff60c01b19909216919091179055565b60075460405163c705c56960e01b81526001600160a01b038381166004830152600092169063c705c56990602401602060405180830381865afa158015612104573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd691906145f5565b612141336007546001600160a01b0316836000806139e1565b60075460405163f2f43adf60e01b8152600481018390526001600160a01b039091169063f2f43adf90602401610d1a565b61217a6133f7565b6001600160a01b0381166000908152600460205260408120805460ff19169055805b6006548110156122b457826001600160a01b0316600682815481106121c3576121c361467d565b6000918252602090912001546001600160a01b0316036122a257600680546121ed90600190614794565b815481106121fd576121fd61467d565b906000526020600020016006828154811061221a5761221a61467d565b600091825260209091208254910180546001600160a01b039092166001600160a01b031983168117825592546001600160c01b0319909216909217600160a01b9182900463ffffffff16909102179055600680548061227b5761227b6147c4565b600082815260209020810160001990810180546001600160c01b0319169055019055600191505b806122ac816146a9565b91505061219c565b50806123025760405162461bcd60e51b815260206004820152601860248201527f45786f7469783a204e6f7420696e20746178206c6973742e00000000000000006044820152606401610ded565b6000805b60065481101561235a57600681815481106123235761232361467d565b60009182526020909120015461234690600160a01b900463ffffffff168361475d565b915080612352816146a9565b915050612306565b506009805463ffffffff909216600160c01b0263ffffffff60c01b199092169190911790555050565b61238b6133f7565b600854600160a01b900460ff16156123e55760405162461bcd60e51b815260206004820152601760248201527f74726164696e6720697320616c7265616479206f70656e0000000000000000006044820152606401610ded565b600a80546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d90811790915561243930827f0000000000000000000000000000000000000000000000000de0b6b3a7640000612e3b565b6000816001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015612479573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061249d91906147a7565b6001600160a01b031663c9c6539630846001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156124ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061250e91906147a7565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801561255b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061257f91906147a7565b600a549091506001600160a01b031663f305d71947306125b4816001600160a01b031660009081526001602052604090205490565b6000806125c96000546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af1158015612631573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061265691906147da565b50506008805463ffff00ff60a01b1916630101000160a01b179055506007805463ffffffff60a01b1916600160a01b4363ffffffff908116919091029190911782556040805160a08101825260008082526020808301828152838501838152606085018481526001608087019081526001600160a01b038b811687526004958690529588902096518754945193519251915161ffff1990951690151561ff00191617610100931515939093029290921769ffffffffffffffff00001916620100009189169190910269ffffffff000000000000191617660100000000000091909716029590951760ff60501b1916600160501b95151595909502949094179091559254905163031e79db60e41b815285841692810192909252909116906331e79db090602401600060405180830381600087803b15801561279657600080fd5b505af11580156127aa573d6000803e3d6000fd5b505060075460405163031e79db60e41b81526001600160a01b03858116600483015290911692506331e79db09150602401600060405180830381600087803b1580156127f557600080fd5b505af11580156118fd573d6000803e3d6000fd5b6128116133f7565b7f0000000000000000000000000000000000000000000000000de0b6b3a764000081106128925760405162461bcd60e51b815260206004820152602960248201527f43616e27742068617665206e6577206d696e696d756d2061626f766520746f74604482015268616c20737570706c7960b81b6064820152608401610ded565b6007546040516335bebe9d60e11b8152600481018390526001600160a01b0390911690636b7d7d3a90602401610d1a565b60075460408051630ecfbf0560e31b815290516000926001600160a01b03169163767df8289160048083019260209291908290030181865afa15801561143b573d6000803e3d6000fd5b8342111561295d5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610ded565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c988888861298c8c613c6d565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e00160405160208183030381529060405280519060200120905060006129e782613c95565b905060006129f782878787613ce3565b9050896001600160a01b0316816001600160a01b031614612a5a5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610ded565b612a658a8a8a612e3b565b50505050505050505050565b60075460408051631b0c697960e01b815290516001600160a01b03909216918291631b0c69799160048083019260209291908290030181865afa158015612abc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ae09190614664565b6040516370a0823160e01b81523360048201526001600160a01b038316906370a0823190602401602060405180830381865afa158015612b24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b489190614664565b11612b9f5760405162461bcd60e51b815260206004820152602160248201527f45786f7469783a204e6f7420656e6f75676820746f20636c61696d20555344436044820152601760f91b6064820152608401610ded565b604051638586839760e01b8152336004820152600060248201526001600160a01b038216906385868397906044016020604051808303816000875af1158015612bec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c1091906145f5565b5050565b6009546001600160a01b0316336001600160a01b031614612c835760405162461bcd60e51b8152602060048201526024808201527f45786f7469783a204f6e6c7920646576656c6f7065722063616e2073657420746044820152633434b99760e11b6064820152608401610ded565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b60075460405163a658de0f60e01b8152336004820152600060248201526001600160a01b039091169063a658de0f906044016020604051808303816000875af1158015612cf6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061129291906145f5565b612d226133f7565b6001600160a01b03166000908152600460205260409020805460ff60501b1916600160501b179055565b612d546133f7565b6001600160a01b038116612db95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ded565b611292816137a5565b60606006805480602002602001604051908101604052809291908181526020016000905b82821015612e3257600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b900463ffffffff1681830152825260019092019101612de6565b50505050905090565b6001600160a01b038316612e9d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610ded565b6001600160a01b038216612efe5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610ded565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316612fc35760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610ded565b6001600160a01b0382166130255760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610ded565b600081116130875760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610ded565b60008061309c6000546001600160a01b031690565b6001600160a01b0316856001600160a01b0316141580156130cb57506000546001600160a01b03858116911614155b80156130e057506001600160a01b0385163014155b801561310557506001600160a01b03841660009081526004602052604090205460ff16155b801561312a57506001600160a01b03851660009081526004602052604090205460ff16155b156133b9576001600160a01b038416600090815260046020526040902054610100900460ff1615801561317b57506001600160a01b038516600090815260046020526040902054610100900460ff16155b6131be5760405162461bcd60e51b815260206004820152601460248201527322bc37ba34bc1d10213637b1b5b634b9ba32b21760611b6044820152606401610ded565b6001600160a01b038516600090815260046020526040902054600160501b900460ff1680156131fb5750600a546001600160a01b03858116911614155b156132be5760085460009250600160b81b900460ff16156132b9576001600160a01b038416600090815260046020526040902054436201000090910463ffffffff16036132865760405162461bcd60e51b815260206004820152601960248201527822bc37ba34bc1d1027b732903a3c103832b910313637b1b59760391b6044820152606401610ded565b6001600160a01b0384166000908152600460205260409020805465ffffffff00001916620100004363ffffffff16021790555b6133be565b6001600160a01b038416600090815260046020526040902054600160501b900460ff1680156132fb5750600a546001600160a01b03868116911614155b156133b05750600854600190600160b81b900460ff1615613399576001600160a01b038516600090815260046020526040902054436201000090910463ffffffff16036133865760405162461bcd60e51b815260206004820152601960248201527822bc37ba34bc1d1027b732903a3c103832b910313637b1b59760391b6044820152606401610ded565b6001600160a01b03851660005260046020525b600754600160c01b900463ffffffff1691506133be565b600091506133be565b600091505b610d4885858585856139e1565b600081848411156133ef5760405162461bcd60e51b8152600401610ded91906141ca565b505050900390565b6000546001600160a01b0316331461160f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ded565b6000306001600160a01b037f000000000000000000000000e9f7031fc5a0496c217658292b35187cc71bfc92161480156134aa57507f000000000000000000000000000000000000000000000000000000000000000146145b156134d457507f252340e7984ce60bfddd17baf6013ff6b2e9b0ea229faf304c185d41a159e63390565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f02cb6f612d9a486f2c1d654dae8ef9716061013efeba2fb353d76ec7d36c5aca828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6040805160028082526060820183528392600092919060208301908036833701905050905082816000815181106135b1576135b161467d565b6001600160a01b03928316602091820292909201810191909152600a54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa15801561360a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061362e91906147a7565b816001815181106136415761364161467d565b6001600160a01b0392831660209182029290920101526040516370a0823160e01b81523060048201526000918416906370a0823190602401602060405180830381865afa158015613696573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136ba9190614664565b600a5460405163095ea7b360e01b81526001600160a01b0391821660048201526024810183905291925084169063095ea7b3906044016020604051808303816000875af115801561370f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061373391906145f5565b50600a5460405163791ac94760e01b81526001600160a01b039091169063791ac9479061376d90849060009087903090429060040161481e565b600060405180830381600087803b15801561378757600080fd5b505af115801561379b573d6000803e3d6000fd5b5050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216600090815260016020526040902054613819908290614794565b6001600160a01b0390921660009081526001602052604090209190915550565b6001600160a01b03821660009081526001602052604081205490036138a457600580546001810182556000919091527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b0319166001600160a01b0384161790555b6001600160a01b038216600090815260016020526040902054613819908290614781565b804710156139185760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610ded565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613965576040519150601f19603f3d011682016040523d82523d6000602084013e61396a565b606091505b505090508061199a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610ded565b60008115613abd5760006139f58585613d0b565b9050613a018186614794565b91508015613a745730600090815260016020526040902054613a24908290614781565b30600081815260016020526040908190209290925590516001600160a01b038916906000805160206149c583398151915290613a639085815260200190565b60405180910390a3613a7481613d32565b866001600160a01b03167fae92ab4b6f8f401ead768d3273e6bb937a13e39827d19c6376e8fd4512a05d9a83604051613aaf91815260200190565b60405180910390a250613b04565b839050846001600160a01b03167fc55650ccda1011e1cdc769b1fbf546ebb8c97800b6072b49e06cd560305b1d6785604051613afb91815260200190565b60405180910390a25b613b0e86856137f5565b613b188582613839565b6007546001600160a01b031663e30443bc87613b49816001600160a01b031660009081526001602052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015613b8f57600080fd5b505af1925050508015613ba0575060015b506007546001600160a01b031663e30443bc86613bd2816001600160a01b031660009081526001602052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015613c1857600080fd5b505af1925050508015613c29575060015b50846001600160a01b0316866001600160a01b03166000805160206149c583398151915283604051613c5d91815260200190565b60405180910390a3505050505050565b6001600160a01b03811660009081526003602052604090208054600181018255905b50919050565b6000610bd6613ca2613451565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000613cf487878787613f17565b91509150613d0181613fdb565b5095945050505050565b6000620186a0613d2163ffffffff84168561488f565b613d2b91906148a6565b9392505050565b6008805460ff60a81b1916600160a81b179055306000908152600260209081526040808320600a546001600160a01b03168452909152902054811115613daa57600a54613daa9030906001600160a01b03167f0000000000000000000000000000000000000000000000000de0b6b3a7640000612e3b565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110613ddf57613ddf61467d565b6001600160a01b03928316602091820292909201810191909152600a54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015613e38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e5c91906147a7565b81600181518110613e6f57613e6f61467d565b6001600160a01b039283166020918202929092010152600a546040516318cbafe560e01b81529116906318cbafe590613eb590859060009086903090429060040161481e565b6000604051808303816000875af1158015613ed4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613efc91908101906148c8565b50613f0647614125565b50506008805460ff60a81b19169055565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613f4e5750600090506003613fd2565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613fa2573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613fcb57600060019250925050613fd2565b9150600090505b94509492505050565b6000816004811115613fef57613fef614986565b03613ff75750565b600181600481111561400b5761400b614986565b036140585760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610ded565b600281600481111561406c5761406c614986565b036140b95760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610ded565b60038160048111156140cd576140cd614986565b036112925760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610ded565b60005b600654811015612c10576141b8600682815481106141485761414861467d565b600091825260209091200154600954600680546001600160a01b0390931692600160c01b90920463ffffffff1691859081106141865761418661467d565b6000918252602090912001546141a990600160a01b900463ffffffff168661488f565b6141b391906148a6565b6138c8565b806141c2816146a9565b915050614128565b600060208083528351808285015260005b818110156141f7578581018301518582016040015282016141db565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461129257600080fd5b6000806040838503121561424057600080fd5b823561424b81614218565b946020939093013593505050565b60008060006060848603121561426e57600080fd5b833561427981614218565b9250602084013561428981614218565b929592945050506040919091013590565b6000602082840312156142ac57600080fd5b5035919050565b6000602082840312156142c557600080fd5b8135613d2b81614218565b63ffffffff8116811461129257600080fd5b6000602082840312156142f457600080fd5b8135613d2b816142d0565b801515811461129257600080fd5b6000806040838503121561432057600080fd5b823561432b81614218565b9150602083013561433b816142ff565b809150509250929050565b60008083601f84011261435857600080fd5b50813567ffffffffffffffff81111561437057600080fd5b6020830191508360208260051b850101111561438b57600080fd5b9250929050565b600080602083850312156143a557600080fd5b823567ffffffffffffffff8111156143bc57600080fd5b6143c885828601614346565b90969095509350505050565b600060408284031215613c8f57600080fd5b6000602082840312156143f857600080fd5b8135613d2b816142ff565b60008060008060006060868803121561441b57600080fd5b853561442681614218565b9450602086013567ffffffffffffffff8082111561444357600080fd5b61444f89838a01614346565b9096509450604088013591508082111561446857600080fd5b5061447588828901614346565b969995985093965092949392505050565b6000806000806040858703121561449c57600080fd5b843567ffffffffffffffff808211156144b457600080fd5b6144c088838901614346565b909650945060208701359150808211156144d957600080fd5b506144e687828801614346565b95989497509550505050565b600080600080600080600060e0888a03121561450d57600080fd5b873561451881614218565b9650602088013561452881614218565b95506040880135945060608801359350608088013560ff8116811461454c57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561457c57600080fd5b823561458781614218565b9150602083013561433b81614218565b602080825282518282018190526000919060409081850190868401855b828110156145e857815180516001600160a01b0316855286015163ffffffff168685015292840192908501906001016145b4565b5091979650505050505050565b60006020828403121561460757600080fd5b8151613d2b816142ff565b60208082526032908201527f546f6b656e436c61776261636b3a2063616c6c6572206973206e6f74207468656040820152711022a92199181031b7b73a3937b63632b91760711b606082015260800190565b60006020828403121561467657600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016146bb576146bb614693565b5060010190565b600080600080608085870312156146d857600080fd5b84516146e381614218565b60208601516040870151606090970151919890975090945092505050565b813561470c81614218565b81546001600160a01b031981166001600160a01b039290921691821783556020840135614738816142d0565b6001600160c01b03199190911690911760a09190911b63ffffffff60a01b1617905550565b63ffffffff81811683821601908082111561477a5761477a614693565b5092915050565b80820180821115610bd657610bd6614693565b81810381811115610bd657610bd6614693565b6000602082840312156147b957600080fd5b8151613d2b81614218565b634e487b7160e01b600052603160045260246000fd5b6000806000606084860312156147ef57600080fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b600052604160045260246000fd5b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b8181101561486e5784516001600160a01b031683529383019391830191600101614849565b50506001600160a01b03969096166060850152505050608001529392505050565b8082028115828204841417610bd657610bd6614693565b6000826148c357634e487b7160e01b600052601260045260246000fd5b500490565b600060208083850312156148db57600080fd5b825167ffffffffffffffff808211156148f357600080fd5b818501915085601f83011261490757600080fd5b81518181111561491957614919614808565b8060051b604051601f19603f8301168101818110858211171561493e5761493e614808565b60405291825284820192508381018501918883111561495c57600080fd5b938501935b8285101561497a57845184529385019392850192614961565b98975050505050505050565b634e487b7160e01b600052602160045260246000fdfe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220ac6bedf300d1aa51231aaade1dacb0a2836c897c4b63f39fb235255a4e6b17f664736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000005e3c623a02e7a50e0f09a3ed95ea6955b2b836570000000000000000000000005e3c623a02e7a50e0f09a3ed95ea6955b2b83657000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000040000000000000000000000009587b9f2a4b9fd1b8e8a6da22e55c19fc12764e10000000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000eba44af4c0ca51f6713c257b5ec5e485ac0b12090000000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000ff2d66c8fc9d6d4650b50cf357065409326f09fd0000000000000000000000000000000000000000000000000000000000000bb80000000000000000000000005e3c623a02e7a50e0f09a3ed95ea6955b2b836570000000000000000000000000000000000000000000000000000000000000bb8
-----Decoded View---------------
Arg [0] : controller (address): 0x5e3c623A02e7a50E0f09A3ED95Ea6955b2b83657
Arg [1] : dev (address): 0x5e3c623A02e7a50E0f09A3ED95Ea6955b2b83657
Arg [2] : wallets (tuple[]): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000005e3c623a02e7a50e0f09a3ed95ea6955b2b83657
Arg [1] : 0000000000000000000000005e3c623a02e7a50e0f09a3ed95ea6955b2b83657
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [4] : 0000000000000000000000009587b9f2a4b9fd1b8e8a6da22e55c19fc12764e1
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000bb8
Arg [6] : 000000000000000000000000eba44af4c0ca51f6713c257b5ec5e485ac0b1209
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000bb8
Arg [8] : 000000000000000000000000ff2d66c8fc9d6d4650b50cf357065409326f09fd
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000bb8
Arg [10] : 0000000000000000000000005e3c623a02e7a50e0f09a3ed95ea6955b2b83657
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000bb8
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.