More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 8,575 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 91995596 | 14 hrs ago | IN | 0 FTM | 0.00033468 | ||||
Approve | 91392243 | 7 days ago | IN | 0 FTM | 0.00060727 | ||||
Approve | 89814147 | 25 days ago | IN | 0 FTM | 0.00033468 | ||||
Approve | 89814133 | 25 days ago | IN | 0 FTM | 0.00033468 | ||||
Approve | 88689679 | 36 days ago | IN | 0 FTM | 0.0002317 | ||||
Approve | 88689671 | 36 days ago | IN | 0 FTM | 0.0002317 | ||||
Approve | 88689665 | 36 days ago | IN | 0 FTM | 0.0002317 | ||||
Approve | 82399602 | 104 days ago | IN | 0 FTM | 0.00087533 | ||||
Approve | 80947516 | 127 days ago | IN | 0 FTM | 0.00022663 | ||||
Approve | 80947509 | 127 days ago | IN | 0 FTM | 0.00022663 | ||||
Approve | 78874584 | 165 days ago | IN | 0 FTM | 0.00054064 | ||||
Approve | 78874416 | 165 days ago | IN | 0 FTM | 0.00098784 | ||||
Approve | 78874184 | 165 days ago | IN | 0 FTM | 0.00112476 | ||||
Approve | 78400088 | 174 days ago | IN | 0 FTM | 0.00274074 | ||||
Approve | 77478213 | 186 days ago | IN | 0 FTM | 0.00470255 | ||||
Approve | 77326196 | 188 days ago | IN | 0 FTM | 0.00124993 | ||||
Approve | 76732475 | 198 days ago | IN | 0 FTM | 0.00562192 | ||||
Transfer | 75730806 | 216 days ago | IN | 0 FTM | 0.00229644 | ||||
Transfer | 75704770 | 217 days ago | IN | 0 FTM | 0.00184722 | ||||
Transfer | 75696949 | 217 days ago | IN | 0 FTM | 0.00209593 | ||||
Approve | 75280634 | 224 days ago | IN | 0 FTM | 0.00234553 | ||||
Approve | 75107011 | 227 days ago | IN | 0 FTM | 0.00020781 | ||||
Approve | 74845242 | 235 days ago | IN | 0 FTM | 0.00039122 | ||||
Approve | 74475374 | 242 days ago | IN | 0 FTM | 0.00032309 | ||||
Approve | 74294717 | 246 days ago | IN | 0 FTM | 0.00170058 |
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
20739551 | 1052 days ago | 3.80721916 FTM | ||||
20739551 | 1052 days ago | 3.80721916 FTM | ||||
20735049 | 1052 days ago | 3.87562815 FTM | ||||
20735049 | 1052 days ago | 3.87562815 FTM | ||||
20730656 | 1052 days ago | 3.95206561 FTM | ||||
20730656 | 1052 days ago | 3.95206561 FTM | ||||
20729527 | 1052 days ago | 3.92657847 FTM | ||||
20729527 | 1052 days ago | 3.92657847 FTM | ||||
20729526 | 1052 days ago | 3.92657847 FTM | ||||
20729526 | 1052 days ago | 3.92657847 FTM | ||||
20729524 | 1052 days ago | 3.92657847 FTM | ||||
20729524 | 1052 days ago | 3.92657847 FTM | ||||
20711539 | 1053 days ago | 3.85299943 FTM | ||||
20711539 | 1053 days ago | 3.85299943 FTM | ||||
20704668 | 1053 days ago | 3.80316389 FTM | ||||
20704668 | 1053 days ago | 3.80316389 FTM | ||||
20703744 | 1053 days ago | 3.79066504 FTM | ||||
20703744 | 1053 days ago | 3.79066504 FTM | ||||
20703742 | 1053 days ago | 3.79066504 FTM | ||||
20703742 | 1053 days ago | 3.79066504 FTM | ||||
20700890 | 1053 days ago | 3.79219054 FTM | ||||
20700890 | 1053 days ago | 3.79219054 FTM | ||||
20700170 | 1053 days ago | 4.03872815 FTM | ||||
20700170 | 1053 days ago | 4.03872815 FTM | ||||
20697457 | 1053 days ago | 4.15406931 FTM |
Loading...
Loading
Contract Name:
CougarToken
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "./libs/BEP20.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol"; // CougarToken with Governance. contract CougarToken is BEP20 { // Max transfer tax rate: 5%. uint16 public constant MAXIMUM_TRANSFER_TAX_RATE = 500; // Min transfer amount rate: 2%. uint16 public constant MINIMUM_MAX_TRANSFER_AMOUNT_RATE = 100; // Burn address address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD; // Transfer tax rate in basis points. (default 5%) uint16 public transferTaxRate = 500; // Burn rate % of transfer tax. (default 20% x 5% = 1% of total amount). uint16 public burnRate = 20; // Max transfer amount rate in basis points. (default is 5% of total supply) uint16 public maxTransferAmountRate = 500; // Addresses that excluded from antiWhale mapping(address => bool) private _excludedFromAntiWhale; // Automatic swap and liquify enabled bool public swapAndLiquifyEnabled = false; // Min amount to liquify. (default 688 COUGARs) uint256 public minAmountToLiquify = 688 ether; // The swap router, modifiable. Will be changed to CougarSwap's router when our own AMM release IUniswapV2Router02 public cougarSwapRouter; // The trading pair address public cougarSwapPair; // In swap and liquify bool private _inSwapAndLiquify; // Masterchef address address public masterchef; // Presale address address public cougarPresale; // Set cougarLocker contract address address public cougarLocker; /** * @dev The operator can update the transfer tax rate and its repartition * It will be transferred to the timelock contract */ address private _operator; /** * @dev The essential operator can update the cougarSwapRouter and the cougarLocker address * It will be transferred to a second timelock contract w/ a much longer duration */ address private _essentialOperator; // Events event OperatorTransferred(address indexed previousOperator, address indexed newOperator); event EssentialOperatorTransferred(address indexed previousOperator, address indexed newOperator); event TransferTaxRateUpdated(address indexed operator, uint256 previousRate, uint256 newRate); event BurnRateUpdated(address indexed operator, uint256 previousRate, uint256 newRate); event MaxTransferAmountRateUpdated(address indexed operator, uint256 previousRate, uint256 newRate); event SwapAndLiquifyEnabledUpdated(address indexed operator, bool enabled); event MinAmountToLiquifyUpdated(address indexed operator, uint256 previousAmount, uint256 newAmount); event CougarSwapRouterUpdated(address indexed operator, address indexed router, address indexed pair); event SwapAndLiquify(uint256 tokensSwapped, uint256 ethReceived, uint256 tokensIntoLiqudity); event LockerUpdated(address previousLocker, address newLocker); modifier onlyOperator() { require(_operator == msg.sender, "operator: caller is not the operator"); _; } modifier onlyEssentialOperator() { require(_essentialOperator == msg.sender, "essentialOperator: caller is not the essential operator"); _; } modifier antiWhale(address sender, address recipient, uint256 amount) { bool antiWhaleDeactivate = (sender == masterchef || recipient == masterchef || sender == cougarPresale || recipient == cougarPresale ); if (maxTransferAmount() > 0 && !antiWhaleDeactivate) { if ( _excludedFromAntiWhale[sender] == false && _excludedFromAntiWhale[recipient] == false ) { require(amount <= maxTransferAmount(), "COUGAR::antiWhale: Transfer amount exceeds the maxTransferAmount"); } } _; } modifier lockTheSwap { _inSwapAndLiquify = true; _; _inSwapAndLiquify = false; } modifier transferTaxFree { uint16 _transferTaxRate = transferTaxRate; transferTaxRate = 0; _; transferTaxRate = _transferTaxRate; } /** * @notice Constructs the CougarToken contract. */ constructor() public BEP20("Cougar Token", "CGS") { _operator = _msgSender(); emit OperatorTransferred(address(0), _operator); _essentialOperator = _msgSender(); emit EssentialOperatorTransferred(address(0), _essentialOperator); _excludedFromAntiWhale[msg.sender] = true; _excludedFromAntiWhale[address(0)] = true; _excludedFromAntiWhale[address(this)] = true; _excludedFromAntiWhale[BURN_ADDRESS] = true; } /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (Masterchef). function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); } /// @dev overrides transfer function to meet tokenomics of COUGAR function _transfer(address sender, address recipient, uint256 amount) internal virtual override antiWhale(sender, recipient, amount) { // swap and liquify if (swapAndLiquifyEnabled == true && _inSwapAndLiquify == false && address(cougarSwapRouter) != address(0) && cougarSwapPair != address(0) && sender != cougarSwapPair && sender != owner()) { swapAndLiquify(); } bool isExcludedTransferTax = (recipient == BURN_ADDRESS || transferTaxRate == 0 || sender == cougarPresale || recipient == cougarPresale || sender == masterchef || recipient == masterchef ); if (isExcludedTransferTax) { super._transfer(sender, recipient, amount); } else { // default tax is 5% of every transfer uint256 taxAmount = amount.mul(transferTaxRate).div(10000); uint256 burnAmount = taxAmount.mul(burnRate).div(100); uint256 liquidityAmount = taxAmount.sub(burnAmount); require(taxAmount == burnAmount + liquidityAmount, "COUGAR::transfer: Burn value invalid"); // default 95% of transfer sent to recipient uint256 sendAmount = amount.sub(taxAmount); require(amount == sendAmount + taxAmount, "COUGAR::transfer: Tax value invalid"); super._transfer(sender, BURN_ADDRESS, burnAmount); super._transfer(sender, address(this), liquidityAmount); super._transfer(sender, recipient, sendAmount); amount = sendAmount; } } /// @dev Swap and liquify function swapAndLiquify() private lockTheSwap transferTaxFree { uint256 contractTokenBalance = balanceOf(address(this)); uint256 maxTransferAmount = maxTransferAmount(); contractTokenBalance = contractTokenBalance > maxTransferAmount ? maxTransferAmount : contractTokenBalance; if (contractTokenBalance >= minAmountToLiquify) { // only min amount to liquify uint256 liquifyAmount = minAmountToLiquify; // split the liquify amount into halves uint256 half = liquifyAmount.div(2); uint256 otherHalf = liquifyAmount.sub(half); // capture the contract's current ETH balance. // this is so that we can capture exactly the amount of ETH that the // swap creates, and not make the liquidity event include any ETH that // has been manually sent to the contract uint256 initialBalance = address(this).balance; // swap tokens for ETH swapTokensForEth(half); // how much ETH did we just swap into? uint256 newBalance = address(this).balance.sub(initialBalance); // add liquidity addLiquidity(otherHalf, newBalance); emit SwapAndLiquify(half, newBalance, otherHalf); } } /// @dev Swap tokens for eth function swapTokensForEth(uint256 tokenAmount) private { // generate the cougarSwap pair path of token -> weth address[] memory path = new address[](2); path[0] = address(this); path[1] = cougarSwapRouter.WETH(); _approve(address(this), address(cougarSwapRouter), tokenAmount); // make the swap cougarSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // accept any amount of ETH path, address(this), block.timestamp ); } /// @dev Add liquidity function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private { require(cougarLocker != address(0), "COUGAR::addLiquidity: cougarLocker address must be set"); // approve token transfer to cover all possible scenarios _approve(address(this), address(cougarSwapRouter), tokenAmount); // add the liquidity cougarSwapRouter.addLiquidityETH{value: ethAmount}( address(this), tokenAmount, 0, // slippage is unavoidable 0, // slippage is unavoidable cougarLocker, block.timestamp ); } /** * @dev Returns the max transfer amount. */ function maxTransferAmount() public view returns (uint256) { return totalSupply().mul(maxTransferAmountRate).div(10000); } /** * @dev Returns the address is excluded from antiWhale or not. */ function isExcludedFromAntiWhale(address _account) public view returns (bool) { return _excludedFromAntiWhale[_account]; } // To receive BNB from cougarSwapRouter when swapping receive() external payable {} /** * @dev Update the max transfer amount rate. * Can only be called by the current operator. */ function updateMaxTransferAmountRate(uint16 _maxTransferAmountRate) public onlyOperator { require(_maxTransferAmountRate <= 10000, "COUGAR::updateMaxTransferAmountRate: Max transfer amount rate must not exceed the maximum rate."); require(_maxTransferAmountRate >= MINIMUM_MAX_TRANSFER_AMOUNT_RATE, "COUGAR::updateMaxTransferAmountRate: Max transfer amount rate must exceed the minimum rate."); emit MaxTransferAmountRateUpdated(msg.sender, maxTransferAmountRate, _maxTransferAmountRate); maxTransferAmountRate = _maxTransferAmountRate; } /** * @dev Update the min amount to liquify. * Can only be called by the current operator. */ function updateMinAmountToLiquify(uint256 _minAmount) public onlyOperator { emit MinAmountToLiquifyUpdated(msg.sender, minAmountToLiquify, _minAmount); minAmountToLiquify = _minAmount; } /** * @dev Update the burn rate. * Can only be called by the current operator. */ function updateBurnRate(uint16 _burnRate) public onlyOperator { require(_burnRate <= 100, "COUGAR::updateBurnRate: Burn rate must not exceed the maximum rate."); emit BurnRateUpdated(msg.sender, burnRate, _burnRate); burnRate = _burnRate; } /** * @dev Update the transfer tax rate. * Can only be called by the current operator. */ function updateTransferTaxRate(uint16 _transferTaxRate) public onlyOperator { require(_transferTaxRate <= MAXIMUM_TRANSFER_TAX_RATE, "COUGAR::updateTransferTaxRate: Transfer tax rate must not exceed the maximum rate."); emit TransferTaxRateUpdated(msg.sender, transferTaxRate, _transferTaxRate); transferTaxRate = _transferTaxRate; } /** * @dev Exclude or include an address from antiWhale. * Can only be called by the current operator. */ function setExcludedFromAntiWhale(address _account, bool _excluded) public onlyOperator { _excludedFromAntiWhale[_account] = _excluded; } /** * @dev Update the cougar cougarLocker contract. * Can only be called by the current essentialOperator. */ function updateLocker(address _cougarLocker) public onlyEssentialOperator { require(_cougarLocker != address(0), "COUGAR::updateCougarLocker: new operator is the zero address"); address previousLocker = cougarLocker; cougarLocker = _cougarLocker; // Remove previous cougarLocker from anti-whale if (address(previousLocker) != address(0)) { setExcludedFromAntiWhale(address(previousLocker), false); } // Exclude new cougarLocker from anti-whale setExcludedFromAntiWhale(address(cougarLocker), true); emit LockerUpdated(previousLocker, cougarLocker); } /** * @dev Update the swapAndLiquifyEnabled. * Can only be called by the current operator. */ function updateSwapAndLiquifyEnabled(bool _enabled) public onlyOperator { emit SwapAndLiquifyEnabledUpdated(msg.sender, _enabled); swapAndLiquifyEnabled = _enabled; } /** * @dev Update the swap router. * Can only be called by the current essentialOperator. */ function updatecougarSwapRouter(address _router) public onlyEssentialOperator { cougarSwapRouter = IUniswapV2Router02(_router); cougarSwapPair = IUniswapV2Factory(cougarSwapRouter.factory()).getPair(address(this), cougarSwapRouter.WETH()); require(cougarSwapPair != address(0), "COUGAR::updatecougarSwapRouter: Invalid pair address."); emit CougarSwapRouterUpdated(msg.sender, address(cougarSwapRouter), cougarSwapPair); } /** * @dev Set Masterchef address * Can only be called by the current Operator */ function setMasterchefAddress(address _masterchef) public onlyOperator{ masterchef = _masterchef; } /** * @dev Set CougarPresale address * Can only be called by the current Operator */ function setCougarPresaleAddress(address _value) public onlyOperator { cougarPresale = _value; } /** * @dev Returns the address of the current operator. */ function operator() public view returns (address) { return _operator; } /** * @dev Returns the address of the current essential operator. */ function essentialOperator() public view returns (address) { return _essentialOperator; } /** * @dev Transfers operator of the contract to a new account (`newOperator`). * Can only be called by the current operator. */ function transferOperator(address newOperator) public onlyOperator { require(newOperator != address(0), "COUGAR::transferOperator: new operator is the zero address"); emit OperatorTransferred(_operator, newOperator); _operator = newOperator; } /** * @dev Transfers essentialOperator of the contract to a new account (`newOperator`). * Can only be called by the current essentialOperator. */ function transferEssentialOperator(address newOperator) public onlyEssentialOperator { require(newOperator != address(0), "COUGAR::transferEssentialOperator: new operator is the zero address"); address previousOperator = _operator; _essentialOperator = newOperator; emit EssentialOperatorTransferred(previousOperator, _essentialOperator); } // Copied and modified from YAM code: // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol // Which is copied and modified from COMPOUND: // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol /// @dev A record of each accounts delegate mapping (address => address) internal _delegates; /// @notice A checkpoint for marking number of votes from a given block struct Checkpoint { uint32 fromBlock; uint256 votes; } /// @notice A record of votes checkpoints for each account, by index mapping (address => mapping (uint32 => Checkpoint)) public checkpoints; /// @notice The number of checkpoints for each account mapping (address => uint32) public numCheckpoints; /// @notice The EIP-712 typehash for the contract's domain bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)"); /// @notice The EIP-712 typehash for the delegation struct used by the contract bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)"); /// @notice A record of states for signing / validating signatures mapping (address => uint) public nonces; /// @notice An event thats emitted when an account changes its delegate event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate); /// @notice An event thats emitted when a delegate account's vote balance changes event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance); /** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegator The address to get delegatee for */ function delegates(address delegator) external view returns (address) { return _delegates[delegator]; } /** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegatee The address to delegate votes to */ function delegate(address delegatee) external { return _delegate(msg.sender, delegatee); } /** * @notice Delegates votes from signatory to `delegatee` * @param delegatee The address to delegate votes to * @param nonce The contract state required to match the signature * @param expiry The time at which to expire the signature * @param v The recovery byte of the signature * @param r Half of the ECDSA signature pair * @param s Half of the ECDSA signature pair */ function delegateBySig( address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s ) external { bytes32 domainSeparator = keccak256( abi.encode( DOMAIN_TYPEHASH, keccak256(bytes(name())), getChainId(), address(this) ) ); bytes32 structHash = keccak256( abi.encode( DELEGATION_TYPEHASH, delegatee, nonce, expiry ) ); bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", domainSeparator, structHash ) ); address signatory = ecrecover(digest, v, r, s); require(signatory != address(0), "COUGAR::delegateBySig: invalid signature"); require(nonce == nonces[signatory]++, "COUGAR::delegateBySig: invalid nonce"); require(now <= expiry, "COUGAR::delegateBySig: signature expired"); return _delegate(signatory, delegatee); } /** * @notice Gets the current votes balance for `account` * @param account The address to get votes balance * @return The number of current votes for `account` */ function getCurrentVotes(address account) external view returns (uint256) { uint32 nCheckpoints = numCheckpoints[account]; return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0; } /** * @notice Determine the prior number of votes for an account as of a block number * @dev Block number must be a finalized block or else this function will revert to prevent misinformation. * @param account The address of the account to check * @param blockNumber The block number to get the vote balance at * @return The number of votes the account had as of the given block */ function getPriorVotes(address account, uint blockNumber) external view returns (uint256) { require(blockNumber < block.number, "COUGAR::getPriorVotes: not yet determined"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { return 0; } // First check most recent balance if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) { return checkpoints[account][nCheckpoints - 1].votes; } // Next check implicit zero balance if (checkpoints[account][0].fromBlock > blockNumber) { return 0; } uint32 lower = 0; uint32 upper = nCheckpoints - 1; while (upper > lower) { uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow Checkpoint memory cp = checkpoints[account][center]; if (cp.fromBlock == blockNumber) { return cp.votes; } else if (cp.fromBlock < blockNumber) { lower = center; } else { upper = center - 1; } } return checkpoints[account][lower].votes; } function _delegate(address delegator, address delegatee) internal { address currentDelegate = _delegates[delegator]; uint256 delegatorBalance = balanceOf(delegator); // balance of underlying COUGARs (not scaled); _delegates[delegator] = delegatee; emit DelegateChanged(delegator, currentDelegate, delegatee); _moveDelegates(currentDelegate, delegatee, delegatorBalance); } function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal { if (srcRep != dstRep && amount > 0) { if (srcRep != address(0)) { // decrease old representative uint32 srcRepNum = numCheckpoints[srcRep]; uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0; uint256 srcRepNew = srcRepOld.sub(amount); _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew); } if (dstRep != address(0)) { // increase new representative uint32 dstRepNum = numCheckpoints[dstRep]; uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0; uint256 dstRepNew = dstRepOld.add(amount); _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew); } } } function _writeCheckpoint( address delegatee, uint32 nCheckpoints, uint256 oldVotes, uint256 newVotes ) internal { uint32 blockNumber = safe32(block.number, "COUGAR::_writeCheckpoint: block number exceeds 32 bits"); if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) { checkpoints[delegatee][nCheckpoints - 1].votes = newVotes; } else { checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes); numCheckpoints[delegatee] = nCheckpoints + 1; } emit DelegateVotesChanged(delegatee, oldVotes, newVotes); } function safe32(uint n, string memory errorMessage) internal pure returns (uint32) { require(n < 2**32, errorMessage); return uint32(n); } function getChainId() internal pure returns (uint) { uint256 chainId; assembly { chainId := chainid() } return chainId; } }
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.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.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.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; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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 functionCall(target, data, "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"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(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) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(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) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ 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) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { 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) { // 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) { 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) { 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) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @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) { require(b <= a, "SafeMath: subtraction overflow"); 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) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @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. 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) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); 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) { require(b > 0, "SafeMath: modulo by zero"); 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) { 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. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * 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) { 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) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity >=0.4.0; interface IBEP20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the token name. */ function name() external view returns (string memory); /** * @dev Returns the bep token owner. */ function getOwner() external view returns (address); /** * @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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount ) external returns (bool); /** * @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); }
// SPDX-License-Identifier: MIT pragma solidity >=0.4.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "./IBEP20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Address.sol"; /** * @dev Implementation of the {IBEP20} 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 {BEP20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-BEP20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of BEP20 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 {IBEP20-approve}. */ contract BEP20 is Context, IBEP20, Ownable { using SafeMath for uint256; using Address for address; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor(string memory name, string memory symbol) public { _name = name; _symbol = symbol; _decimals = 18; } /** * @dev Returns the bep token owner. */ function getOwner() external override view returns (address) { return owner(); } /** * @dev Returns the token name. */ function name() public override view returns (string memory) { return _name; } /** * @dev Returns the token decimals. */ function decimals() public override view returns (uint8) { return _decimals; } /** * @dev Returns the token symbol. */ function symbol() public override view returns (string memory) { return _symbol; } /** * @dev See {BEP20-totalSupply}. */ function totalSupply() public override view returns (uint256) { return _totalSupply; } /** * @dev See {BEP20-balanceOf}. */ function balanceOf(address account) public override view returns (uint256) { return _balances[account]; } /** * @dev See {BEP20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {BEP20-allowance}. */ function allowance(address owner, address spender) public override view returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {BEP20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {BEP20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {BEP20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for `sender`'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public override returns (bool) { _transfer(sender, recipient, amount); _approve( sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "BEP20: transfer amount exceeds allowance") ); 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 {BEP20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(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 {BEP20-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 returns (bool) { _approve( _msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "BEP20: decreased allowance below zero") ); return true; } /** * @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing * the total supply. * * Requirements * * - `msg.sender` must be the token owner */ function mint(uint256 amount) public onlyOwner returns (bool) { _mint(_msgSender(), amount); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is 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: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "BEP20: transfer from the zero address"); require(recipient != address(0), "BEP20: transfer to the zero address"); _balances[sender] = _balances[sender].sub(amount, "BEP20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, 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 * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal { require(account != address(0), "BEP20: mint to the zero address"); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(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 { require(account != address(0), "BEP20: burn from the zero address"); _balances[account] = _balances[account].sub(amount, "BEP20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is 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 { require(owner != address(0), "BEP20: approve from the zero address"); require(spender != address(0), "BEP20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Destroys `amount` tokens from `account`.`amount` is then deducted * from the caller's allowance. * * See {_burn} and {_approve}. */ function _burnFrom(address account, uint256 amount) internal { _burn(account, amount); _approve( account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "BEP20: burn amount exceeds allowance") ); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":"operator","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newRate","type":"uint256"}],"name":"BurnRateUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"router","type":"address"},{"indexed":true,"internalType":"address","name":"pair","type":"address"}],"name":"CougarSwapRouterUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"}],"name":"EssentialOperatorTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousLocker","type":"address"},{"indexed":false,"internalType":"address","name":"newLocker","type":"address"}],"name":"LockerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newRate","type":"uint256"}],"name":"MaxTransferAmountRateUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"MinAmountToLiquifyUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"}],"name":"OperatorTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensIntoLiqudity","type":"uint256"}],"name":"SwapAndLiquify","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"SwapAndLiquifyEnabledUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newRate","type":"uint256"}],"name":"TransferTaxRateUpdated","type":"event"},{"inputs":[],"name":"BURN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DELEGATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_TRANSFER_TAX_RATE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINIMUM_MAX_TRANSFER_AMOUNT_RATE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnRate","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"checkpoints","outputs":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint256","name":"votes","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cougarLocker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cougarPresale","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cougarSwapPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cougarSwapRouter","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegator","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"essentialOperator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getCurrentVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPriorVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isExcludedFromAntiWhale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"masterchef","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTransferAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTransferAmountRate","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minAmountToLiquify","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_value","type":"address"}],"name":"setCougarPresaleAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bool","name":"_excluded","type":"bool"}],"name":"setExcludedFromAntiWhale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_masterchef","type":"address"}],"name":"setMasterchefAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapAndLiquifyEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"newOperator","type":"address"}],"name":"transferEssentialOperator","outputs":[],"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":"newOperator","type":"address"}],"name":"transferOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferTaxRate","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_burnRate","type":"uint16"}],"name":"updateBurnRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_cougarLocker","type":"address"}],"name":"updateLocker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_maxTransferAmountRate","type":"uint16"}],"name":"updateMaxTransferAmountRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minAmount","type":"uint256"}],"name":"updateMinAmountToLiquify","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"updateSwapAndLiquifyEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_transferTaxRate","type":"uint16"}],"name":"updateTransferTaxRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_router","type":"address"}],"name":"updatecougarSwapRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526006805462ffff0019166201f4001764ffff000000191663140000001761ffff60281b19166601f400000000001790556008805460ff1916905568254beb02d1dcc000006009553480156200005857600080fd5b506040518060400160405280600c81526020016b21b7bab3b0b9102a37b5b2b760a11b8152506040518060400160405280600381526020016243475360e81b8152506000620000ac6200026a60201b60201c565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35081516200010b9060049060208501906200026e565b508051620001219060059060208401906200026e565b50506006805460ff19166012179055506200013b6200026a565b600f80546001600160a01b0319166001600160a01b0392831617908190556040519116906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3620001916200026a565b601080546001600160a01b0319166001600160a01b0392831617908190556040519116906000907f94456f2c40e81071c944da16731bc7121a2ee223dad7ec0a7f444dc9bf0edf1e908290a3336000908152600760205260408082208054600160ff1991821681179092557f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df8054821683179055308452918320805483168217905561dead9092527fb0c2646e02af70b79e3fe9277b98373379f54150e4e26b2b5650139f7a75a65d805490911690911790556200030a565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002b157805160ff1916838001178555620002e1565b82800160010185558215620002e1579182015b82811115620002e1578251825591602001919060010190620002c4565b50620002ef929150620002f3565b5090565b5b80821115620002ef5760008155600101620002f4565b613a1c806200031a6000396000f3fe60806040526004361061036f5760003560e01c80637ecebe00116101c6578063b65d08b0116100f7578063e7a324dc11610095578063f42e26651161006f578063f42e266514610cb0578063f607f2b414610cc5578063fb1db27814610cf3578063fccc281314610d0857610376565b8063e7a324dc14610c09578063f1127ed814610c1e578063f2fde38b14610c7d57610376565b8063c7f59a67116100d1578063c7f59a6714610b4b578063d824835814610b86578063dd62ed3e14610b9b578063e1d5ea8a14610bd657610376565b8063b65d08b014610acd578063bed9985014610ae2578063c3cda52014610af757610376565b8063a0712d6811610164578063a9059cbb1161013e578063a9059cbb14610a19578063a9e7572314610a52578063b49f559a14610a67578063b4b5ea5714610a9a57610376565b8063a0712d681461098c578063a392e674146109b6578063a457c2d7146109e057610376565b8063893d20e8116101a0578063893d20e8146109215780638da5cb5b1461093657806395d89b411461094b5780639f9a4e7f1461096057610376565b80637ecebe00146108c4578063850171de146108f757806386fac4901461090c57610376565b80633dbc9051116102a05780635c19a95c1161023e57806370a082311161021857806370a0823114610810578063715018a614610843578063782d6fe1146108585780637c040d941461089157610376565b80635c19a95c146107635780636a141e2c146107965780636fcfff45146107c457610376565b80634a74bb021161027a5780634a74bb02146106d3578063570ca735146106e857806357a8c909146106fd578063587cde1e1461073057610376565b80633dbc9051146106525780633ff8bf2e1461068557806340c10f191461069a57610376565b806323b872dd1161030d5780632c4caadb116102e75780632c4caadb146105ab578063313ce567146105c0578063376c2391146105eb578063395093511461061957610376565b806323b872dd14610500578063269f534c1461054357806329605e771461057657610376565b806318160ddd1161034957806318160ddd146104835780631ad9339a146104aa57806320606b70146104d65780632200c4ee146104eb57610376565b806301afe7fc1461037b57806306fdde03146103ac578063095ea7b31461043657610376565b3661037657005b600080fd5b34801561038757600080fd5b50610390610d1d565b604080516001600160a01b039092168252519081900360200190f35b3480156103b857600080fd5b506103c1610d2c565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103fb5781810151838201526020016103e3565b50505050905090810190601f1680156104285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561044257600080fd5b5061046f6004803603604081101561045957600080fd5b506001600160a01b038135169060200135610dc2565b604080519115158252519081900360200190f35b34801561048f57600080fd5b50610498610de0565b60408051918252519081900360200190f35b3480156104b657600080fd5b506104bf610de6565b6040805161ffff9092168252519081900360200190f35b3480156104e257600080fd5b50610498610dec565b3480156104f757600080fd5b50610390610e10565b34801561050c57600080fd5b5061046f6004803603606081101561052357600080fd5b506001600160a01b03813581169160208101359091169060400135610e1f565b34801561054f57600080fd5b5061046f6004803603602081101561056657600080fd5b50356001600160a01b0316610ea6565b34801561058257600080fd5b506105a96004803603602081101561059957600080fd5b50356001600160a01b0316610ec4565b005b3480156105b757600080fd5b50610390610fae565b3480156105cc57600080fd5b506105d5610fbd565b6040805160ff9092168252519081900360200190f35b3480156105f757600080fd5b506105a96004803603602081101561060e57600080fd5b503561ffff16610fc6565b34801561062557600080fd5b5061046f6004803603604081101561063c57600080fd5b506001600160a01b0381351690602001356110bb565b34801561065e57600080fd5b506105a96004803603602081101561067557600080fd5b50356001600160a01b0316611109565b34801561069157600080fd5b506104bf611174565b3480156106a657600080fd5b506105a9600480360360408110156106bd57600080fd5b506001600160a01b038135169060200135611185565b3480156106df57600080fd5b5061046f61121a565b3480156106f457600080fd5b50610390611223565b34801561070957600080fd5b506105a96004803603602081101561072057600080fd5b50356001600160a01b0316611232565b34801561073c57600080fd5b506103906004803603602081101561075357600080fd5b50356001600160a01b031661131a565b34801561076f57600080fd5b506105a96004803603602081101561078657600080fd5b50356001600160a01b0316611338565b3480156107a257600080fd5b506105a9600480360360208110156107b957600080fd5b503561ffff16611345565b3480156107d057600080fd5b506107f7600480360360208110156107e757600080fd5b50356001600160a01b0316611486565b6040805163ffffffff9092168252519081900360200190f35b34801561081c57600080fd5b506104986004803603602081101561083357600080fd5b50356001600160a01b031661149e565b34801561084f57600080fd5b506105a96114b9565b34801561086457600080fd5b506104986004803603604081101561087b57600080fd5b506001600160a01b038135169060200135611565565b34801561089d57600080fd5b506105a9600480360360208110156108b457600080fd5b50356001600160a01b031661176d565b3480156108d057600080fd5b50610498600480360360208110156108e757600080fd5b50356001600160a01b03166117d8565b34801561090357600080fd5b506103906117ea565b34801561091857600080fd5b506104bf6117f9565b34801561092d57600080fd5b506103906117fe565b34801561094257600080fd5b5061039061180d565b34801561095757600080fd5b506103c161181c565b34801561096c57600080fd5b506105a96004803603602081101561098357600080fd5b5035151561187d565b34801561099857600080fd5b5061046f600480360360208110156109af57600080fd5b5035611911565b3480156109c257600080fd5b506105a9600480360360208110156109d957600080fd5b503561198e565b3480156109ec57600080fd5b5061046f60048036036040811015610a0357600080fd5b506001600160a01b038135169060200135611a1a565b348015610a2557600080fd5b5061046f60048036036040811015610a3c57600080fd5b506001600160a01b038135169060200135611a82565b348015610a5e57600080fd5b50610498611a96565b348015610a7357600080fd5b506105a960048036036020811015610a8a57600080fd5b50356001600160a01b0316611ac7565b348015610aa657600080fd5b5061049860048036036020811015610abd57600080fd5b50356001600160a01b0316611d2c565b348015610ad957600080fd5b506104bf611d90565b348015610aee57600080fd5b506104bf611d9f565b348015610b0357600080fd5b506105a9600480360360c0811015610b1a57600080fd5b506001600160a01b038135169060208101359060408101359060ff6060820135169060808101359060a00135611db0565b348015610b5757600080fd5b506105a960048036036040811015610b6e57600080fd5b506001600160a01b0381351690602001351515612023565b348015610b9257600080fd5b50610498612097565b348015610ba757600080fd5b5061049860048036036040811015610bbe57600080fd5b506001600160a01b038135811691602001351661209d565b348015610be257600080fd5b506105a960048036036020811015610bf957600080fd5b50356001600160a01b03166120c8565b348015610c1557600080fd5b506104986121e9565b348015610c2a57600080fd5b50610c5d60048036036040811015610c4157600080fd5b5080356001600160a01b0316906020013563ffffffff1661220d565b6040805163ffffffff909316835260208301919091528051918290030190f35b348015610c8957600080fd5b506105a960048036036020811015610ca057600080fd5b50356001600160a01b031661223a565b348015610cbc57600080fd5b5061039061233c565b348015610cd157600080fd5b506105a960048036036020811015610ce857600080fd5b503561ffff1661234b565b348015610cff57600080fd5b50610390612445565b348015610d1457600080fd5b50610390612454565b600d546001600160a01b031681565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610db85780601f10610d8d57610100808354040283529160200191610db8565b820191906000526020600020905b815481529060010190602001808311610d9b57829003601f168201915b5050505050905090565b6000610dd6610dcf61245a565b848461245e565b5060015b92915050565b60035490565b6101f481565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b600e546001600160a01b031681565b6000610e2c84848461254a565b610e9c84610e3861245a565b610e97856040518060600160405280602881526020016135c9602891396001600160a01b038a16600090815260026020526040812090610e7661245a565b6001600160a01b0316815260208101919091526040016000205491906128a3565b61245e565b5060019392505050565b6001600160a01b031660009081526007602052604090205460ff1690565b600f546001600160a01b03163314610f0d5760405162461bcd60e51b81526004018080602001828103825260248152602001806137c66024913960400191505060405180910390fd5b6001600160a01b038116610f525760405162461bcd60e51b815260040180806020018281038252603a815260200180613680603a913960400191505060405180910390fd5b600f546040516001600160a01b038084169216907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed90600090a3600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6010546001600160a01b031690565b60065460ff1690565b600f546001600160a01b0316331461100f5760405162461bcd60e51b81526004018080602001828103825260248152602001806137c66024913960400191505060405180910390fd5b6101f461ffff821611156110545760405162461bcd60e51b81526004018080602001828103825260528152602001806137746052913960600191505060405180910390fd5b6006546040805161ffff610100909304831681529183166020830152805133927fe9d5c8ee2a65d4fb859c680669d8f902172d53e3f15f9f11108a31bbada4b70b92908290030190a26006805461ffff9092166101000262ffff0019909216919091179055565b6000610dd66110c861245a565b84610e9785600260006110d961245a565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549061293a565b600f546001600160a01b031633146111525760405162461bcd60e51b81526004018080602001828103825260248152602001806137c66024913960400191505060405180910390fd5b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b600654600160281b900461ffff1681565b61118d61245a565b6001600160a01b031661119e61180d565b6001600160a01b0316146111e7576040805162461bcd60e51b81526020600482018190526024820152600080516020613754833981519152604482015290519081900360640190fd5b6111f18282612994565b6001600160a01b03808316600090815260116020526040812054611216921683612a7a565b5050565b60085460ff1681565b600f546001600160a01b031690565b6010546001600160a01b0316331461127b5760405162461bcd60e51b81526004018080602001828103825260378152602001806134576037913960400191505060405180910390fd5b6001600160a01b0381166112c05760405162461bcd60e51b81526004018080602001828103825260438152602001806137116043913960600191505060405180910390fd5b600f54601080546001600160a01b0319166001600160a01b0384811691909117918290556040519281169291169082907f94456f2c40e81071c944da16731bc7121a2ee223dad7ec0a7f444dc9bf0edf1e90600090a35050565b6001600160a01b039081166000908152601160205260409020541690565b6113423382612bbc565b50565b600f546001600160a01b0316331461138e5760405162461bcd60e51b81526004018080602001828103825260248152602001806137c66024913960400191505060405180910390fd5b6127108161ffff1611156113d35760405162461bcd60e51b815260040180806020018281038252605f81526020018061391b605f913960600191505060405180910390fd5b606461ffff821610156114175760405162461bcd60e51b815260040180806020018281038252605b815260200180613880605b913960600191505060405180910390fd5b6006546040805161ffff600160281b909304831681529183166020830152805133927fb62a50fc861a770636e85357becb3b82a32e911106609d4985871eaf29011e0892908290030190a26006805461ffff909216600160281b0266ffff000000000019909216919091179055565b60136020526000908152604090205463ffffffff1681565b6001600160a01b031660009081526001602052604090205490565b6114c161245a565b6001600160a01b03166114d261180d565b6001600160a01b03161461151b576040805162461bcd60e51b81526020600482018190526024820152600080516020613754833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60004382106115a55760405162461bcd60e51b81526004018080602001828103825260298152602001806135a06029913960400191505060405180910390fd5b6001600160a01b03831660009081526013602052604090205463ffffffff16806115d3576000915050610dda565b6001600160a01b038416600090815260126020908152604080832063ffffffff600019860181168552925290912054168310611642576001600160a01b03841660009081526012602090815260408083206000199490940163ffffffff16835292905220600101549050610dda565b6001600160a01b038416600090815260126020908152604080832083805290915290205463ffffffff1683101561167d576000915050610dda565b600060001982015b8163ffffffff168163ffffffff16111561173657600282820363ffffffff160481036116af61343f565b506001600160a01b038716600090815260126020908152604080832063ffffffff80861685529083529281902081518083019092528054909316808252600190930154918101919091529087141561171157602001519450610dda9350505050565b805163ffffffff168711156117285781935061172f565b6001820392505b5050611685565b506001600160a01b038516600090815260126020908152604080832063ffffffff9094168352929052206001015491505092915050565b600f546001600160a01b031633146117b65760405162461bcd60e51b81526004018080602001828103825260248152602001806137c66024913960400191505060405180910390fd5b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b60146020526000908152604090205481565b600a546001600160a01b031681565b606481565b600061180861180d565b905090565b6000546001600160a01b031690565b60058054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610db85780601f10610d8d57610100808354040283529160200191610db8565b600f546001600160a01b031633146118c65760405162461bcd60e51b81526004018080602001828103825260248152602001806137c66024913960400191505060405180910390fd5b604080518215158152905133917f3ca65588b29182880283bc8778fea5f01b351e01d874839a39a99e1c281a2113919081900360200190a26008805460ff1916911515919091179055565b600061191b61245a565b6001600160a01b031661192c61180d565b6001600160a01b031614611975576040805162461bcd60e51b81526020600482018190526024820152600080516020613754833981519152604482015290519081900360640190fd5b61198661198061245a565b83612994565b506001919050565b600f546001600160a01b031633146119d75760405162461bcd60e51b81526004018080602001828103825260248152602001806137c66024913960400191505060405180910390fd5b6009546040805191825260208201839052805133927f54c7a13ff01698e4ed3550a23216585f8472c7b1515a932eac98c9a6d48990c592908290030190a2600955565b6000610dd6611a2761245a565b84610e978560405180606001604052806025815260200161385b6025913960026000611a5161245a565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906128a3565b6000610dd6611a8f61245a565b848461254a565b6006546000906118089061271090611ac190600160281b900461ffff16611abb610de0565b90612c51565b90612caa565b6010546001600160a01b03163314611b105760405162461bcd60e51b81526004018080602001828103825260378152602001806134576037913960400191505060405180910390fd5b600a80546001600160a01b0319166001600160a01b0383811691909117918290556040805163c45a015560e01b81529051929091169163c45a015591600480820192602092909190829003018186803b158015611b6c57600080fd5b505afa158015611b80573d6000803e3d6000fd5b505050506040513d6020811015611b9657600080fd5b5051600a54604080516315ab88c960e31b815290516001600160a01b039384169363e6a4390593309391169163ad5c464891600480820192602092909190829003018186803b158015611be857600080fd5b505afa158015611bfc573d6000803e3d6000fd5b505050506040513d6020811015611c1257600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b039384166004820152929091166024830152516044808301926020929190829003018186803b158015611c6257600080fd5b505afa158015611c76573d6000803e3d6000fd5b505050506040513d6020811015611c8c57600080fd5b5051600b80546001600160a01b0319166001600160a01b03928316179081905516611ce85760405162461bcd60e51b815260040180806020018281038252603581526020018061364b6035913960400191505060405180910390fd5b600b54600a546040516001600160a01b03928316929091169033907f58da2ff344347a3e833e8bb5fe42ddf7d8f7cc697e4054a0ce52ca9117ec875090600090a450565b6001600160a01b03811660009081526013602052604081205463ffffffff1680611d57576000611d89565b6001600160a01b038316600090815260126020908152604080832063ffffffff60001986011684529091529020600101545b9392505050565b600654610100900461ffff1681565b6006546301000000900461ffff1681565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866611ddb610d2c565b80519060200120611dea612d11565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a9052825180850390910181526101408401835280519085012061190160f01b6101608501526101628401829052610182808501829052835180860390910181526101a285018085528151918701919091206000918290526101c2860180865281905260ff8b166101e287015261020286018a90526102228601899052935192965090949293909260019261024280840193601f198301929081900390910190855afa158015611f1d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611f6f5760405162461bcd60e51b81526004018080602001828103825260288152602001806137ea6028913960400191505060405180910390fd5b6001600160a01b03811660009081526014602052604090208054600181019091558914611fcd5760405162461bcd60e51b81526004018080602001828103825260248152602001806135f16024913960400191505060405180910390fd5b8742111561200c5760405162461bcd60e51b81526004018080602001828103825260288152602001806139bf6028913960400191505060405180910390fd5b612016818b612bbc565b505050505b505050505050565b600f546001600160a01b0316331461206c5760405162461bcd60e51b81526004018080602001828103825260248152602001806137c66024913960400191505060405180910390fd5b6001600160a01b03919091166000908152600760205260409020805460ff1916911515919091179055565b60095481565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6010546001600160a01b031633146121115760405162461bcd60e51b81526004018080602001828103825260378152602001806134576037913960400191505060405180910390fd5b6001600160a01b0381166121565760405162461bcd60e51b815260040180806020018281038252603c81526020018061351a603c913960400191505060405180910390fd5b600e80546001600160a01b038381166001600160a01b031983161790925516801561218657612186816000612023565b600e5461219d906001600160a01b03166001612023565b600e54604080516001600160a01b038085168252909216602083015280517fedd461554a9b57aab6b87471b49adccdbe876ec3480ae63a85e4f41df63272a09281900390910190a15050565b7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b60126020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b61224261245a565b6001600160a01b031661225361180d565b6001600160a01b03161461229c576040805162461bcd60e51b81526020600482018190526024820152600080516020613754833981519152604482015290519081900360640190fd5b6001600160a01b0381166122e15760405162461bcd60e51b81526004018080602001828103825260268152602001806135566026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600b546001600160a01b031681565b600f546001600160a01b031633146123945760405162461bcd60e51b81526004018080602001828103825260248152602001806137c66024913960400191505060405180910390fd5b60648161ffff1611156123d85760405162461bcd60e51b81526004018080602001828103825260438152602001806134b36043913960600191505060405180910390fd5b6006546040805161ffff6301000000909304831681529183166020830152805133927f3eec69630b6f49d4e10eec296fce4baddec5f34c5430fb2cd72f8c4218f63fd092908290030190a26006805461ffff90921663010000000264ffff00000019909216919091179055565b600c546001600160a01b031681565b61dead81565b3390565b6001600160a01b0383166124a35760405162461bcd60e51b81526004018080602001828103825260248152602001806134f66024913960400191505060405180910390fd5b6001600160a01b0382166124e85760405162461bcd60e51b815260040180806020018281038252602281526020018061397a6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600c548390839083906000906001600160a01b038086169116148061257c5750600c546001600160a01b038481169116145b806125945750600d546001600160a01b038581169116145b806125ac5750600d546001600160a01b038481169116145b905060006125b8611a96565b1180156125c3575080155b15612655576001600160a01b03841660009081526007602052604090205460ff1615801561260a57506001600160a01b03831660009081526007602052604090205460ff16155b1561265557612617611a96565b8211156126555760405162461bcd60e51b81526004018080602001828103825260408152602001806138db6040913960400191505060405180910390fd5b60085460ff16151560011480156126765750600b54600160a01b900460ff16155b801561268c5750600a546001600160a01b031615155b80156126a25750600b546001600160a01b031615155b80156126bc5750600b546001600160a01b03888116911614155b80156126e157506126cb61180d565b6001600160a01b0316876001600160a01b031614155b156126ee576126ee612d15565b60006001600160a01b03871661dead14806127125750600654610100900461ffff16155b8061272a5750600d546001600160a01b038981169116145b806127425750600d546001600160a01b038881169116145b8061275a5750600c546001600160a01b038981169116145b806127725750600c546001600160a01b038881169116145b9050801561278a57612785888888612e28565b612899565b6006546000906127ac9061271090611ac1908a90610100900461ffff16612c51565b6006549091506000906127d290606490611ac19085906301000000900461ffff16612c51565b905060006127e08383612f7a565b905080820183146128225760405162461bcd60e51b815260040180806020018281038252602481526020018061357c6024913960400191505060405180910390fd5b600061282e8a85612f7a565b90508381018a146128705760405162461bcd60e51b815260040180806020018281038252602381526020018061399c6023913960400191505060405180910390fd5b61287d8c61dead85612e28565b6128888c3084612e28565b6128938c8c83612e28565b98505050505b5050505050505050565b600081848411156129325760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156128f75781810151838201526020016128df565b50505050905090810190601f1680156129245780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611d89576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b0382166129ef576040805162461bcd60e51b815260206004820152601f60248201527f42455032303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6003546129fc908261293a565b6003556001600160a01b038216600090815260016020526040902054612a22908261293a565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b816001600160a01b0316836001600160a01b031614158015612a9c5750600081115b15612bb7576001600160a01b03831615612b2e576001600160a01b03831660009081526013602052604081205463ffffffff169081612adc576000612b0e565b6001600160a01b038516600090815260126020908152604080832063ffffffff60001987011684529091529020600101545b90506000612b1c8285612f7a565b9050612b2a86848484612fd7565b5050505b6001600160a01b03821615612bb7576001600160a01b03821660009081526013602052604081205463ffffffff169081612b69576000612b9b565b6001600160a01b038416600090815260126020908152604080832063ffffffff60001987011684529091529020600101545b90506000612ba9828561293a565b905061201b85848484612fd7565b505050565b6001600160a01b0380831660009081526011602052604081205490911690612be38461149e565b6001600160a01b0385811660008181526011602052604080822080546001600160a01b031916898616908117909155905194955093928616927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4612c4b828483612a7a565b50505050565b600082612c6057506000610dda565b82820282848281612c6d57fe5b0414611d895760405162461bcd60e51b81526004018080602001828103825260218152602001806136f06021913960400191505060405180910390fd5b6000808211612d00576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381612d0957fe5b049392505050565b4690565b600b805460ff60a01b1916600160a01b1790556006805462ffff0019811690915561ffff610100909104166000612d4b3061149e565b90506000612d57611a96565b9050808211612d665781612d68565b805b91506009548210612dfb576009546000612d83826002612caa565b90506000612d918383612f7a565b905047612d9d8361313c565b6000612da94783612f7a565b9050612db583826132e2565b604080518581526020810183905280820185905290517f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619181900360600190a150505050505b50506006805461ffff9092166101000262ffff0019909216919091179055600b805460ff60a01b19169055565b6001600160a01b038316612e6d5760405162461bcd60e51b815260040180806020018281038252602581526020018061348e6025913960400191505060405180910390fd5b6001600160a01b038216612eb25760405162461bcd60e51b81526004018080602001828103825260238152602001806138386023913960400191505060405180910390fd5b612eef81604051806060016040528060268152602001613812602691396001600160a01b03861660009081526001602052604090205491906128a3565b6001600160a01b038085166000908152600160205260408082209390935590841681522054612f1e908261293a565b6001600160a01b0380841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600082821115612fd1576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000612ffb43604051806060016040528060368152602001613615603691396133e1565b905060008463ffffffff1611801561304457506001600160a01b038516600090815260126020908152604080832063ffffffff6000198901811685529252909120548282169116145b15613081576001600160a01b038516600090815260126020908152604080832063ffffffff600019890116845290915290206001018290556130f2565b60408051808201825263ffffffff808416825260208083018681526001600160a01b038a166000818152601284528681208b8616825284528681209551865490861663ffffffff19918216178755925160019687015590815260139092529390208054928801909116919092161790555b604080518481526020810184905281516001600160a01b038816927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a25050505050565b6040805160028082526060808301845292602083019080368337019050509050308160008151811061316a57fe5b6001600160a01b03928316602091820292909201810191909152600a54604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b1580156131be57600080fd5b505afa1580156131d2573d6000803e3d6000fd5b505050506040513d60208110156131e857600080fd5b50518151829060019081106131f957fe5b6001600160a01b039283166020918202929092010152600a5461321f913091168461245e565b600a5460405163791ac94760e01b8152600481018481526000602483018190523060648401819052426084850181905260a060448601908152875160a487015287516001600160a01b039097169663791ac947968a968a9594939092909160c40190602080880191028083838b5b838110156132a557818101518382015260200161328d565b505050509050019650505050505050600060405180830381600087803b1580156132ce57600080fd5b505af115801561201b573d6000803e3d6000fd5b600e546001600160a01b03166133295760405162461bcd60e51b81526004018080602001828103825260368152602001806136ba6036913960400191505060405180910390fd5b600a546133419030906001600160a01b03168461245e565b600a54600e546040805163f305d71960e01b81523060048201526024810186905260006044820181905260648201526001600160a01b0392831660848201524260a48201529051919092169163f305d71991849160c48082019260609290919082900301818588803b1580156133b657600080fd5b505af11580156133ca573d6000803e3d6000fd5b50505050506040513d6060811015612c4b57600080fd5b60008164010000000084106134375760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156128f75781810151838201526020016128df565b509192915050565b60408051808201909152600080825260208201529056fe657373656e7469616c4f70657261746f723a2063616c6c6572206973206e6f742074686520657373656e7469616c206f70657261746f7242455032303a207472616e736665722066726f6d20746865207a65726f2061646472657373434f554741523a3a7570646174654275726e526174653a204275726e2072617465206d757374206e6f742065786365656420746865206d6178696d756d20726174652e42455032303a20617070726f76652066726f6d20746865207a65726f2061646472657373434f554741523a3a757064617465436f756761724c6f636b65723a206e6577206f70657261746f7220697320746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373434f554741523a3a7472616e736665723a204275726e2076616c756520696e76616c6964434f554741523a3a6765745072696f72566f7465733a206e6f74207965742064657465726d696e656442455032303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365434f554741523a3a64656c656761746542795369673a20696e76616c6964206e6f6e6365434f554741523a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473434f554741523a3a757064617465636f7567617253776170526f757465723a20496e76616c6964207061697220616464726573732e434f554741523a3a7472616e736665724f70657261746f723a206e6577206f70657261746f7220697320746865207a65726f2061646472657373434f554741523a3a6164644c69717569646974793a20636f756761724c6f636b65722061646472657373206d75737420626520736574536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77434f554741523a3a7472616e73666572457373656e7469616c4f70657261746f723a206e6577206f70657261746f7220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572434f554741523a3a7570646174655472616e73666572546178526174653a205472616e73666572207461782072617465206d757374206e6f742065786365656420746865206d6178696d756d20726174652e6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657261746f72434f554741523a3a64656c656761746542795369673a20696e76616c6964207369676e617475726542455032303a207472616e7366657220616d6f756e7420657863656564732062616c616e636542455032303a207472616e7366657220746f20746865207a65726f206164647265737342455032303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f434f554741523a3a7570646174654d61785472616e73666572416d6f756e74526174653a204d6178207472616e7366657220616d6f756e742072617465206d7573742065786365656420746865206d696e696d756d20726174652e434f554741523a3a616e74695768616c653a205472616e7366657220616d6f756e74206578636565647320746865206d61785472616e73666572416d6f756e74434f554741523a3a7570646174654d61785472616e73666572416d6f756e74526174653a204d6178207472616e7366657220616d6f756e742072617465206d757374206e6f742065786365656420746865206d6178696d756d20726174652e42455032303a20617070726f766520746f20746865207a65726f2061646472657373434f554741523a3a7472616e736665723a205461782076616c756520696e76616c6964434f554741523a3a64656c656761746542795369673a207369676e61747572652065787069726564a264697066735822122087927f092ce384fba58ddbd45a4ac1ee1c9419033af7dad3e8fc7bcd766e38ff64736f6c634300060c0033
Deployed Bytecode
0x60806040526004361061036f5760003560e01c80637ecebe00116101c6578063b65d08b0116100f7578063e7a324dc11610095578063f42e26651161006f578063f42e266514610cb0578063f607f2b414610cc5578063fb1db27814610cf3578063fccc281314610d0857610376565b8063e7a324dc14610c09578063f1127ed814610c1e578063f2fde38b14610c7d57610376565b8063c7f59a67116100d1578063c7f59a6714610b4b578063d824835814610b86578063dd62ed3e14610b9b578063e1d5ea8a14610bd657610376565b8063b65d08b014610acd578063bed9985014610ae2578063c3cda52014610af757610376565b8063a0712d6811610164578063a9059cbb1161013e578063a9059cbb14610a19578063a9e7572314610a52578063b49f559a14610a67578063b4b5ea5714610a9a57610376565b8063a0712d681461098c578063a392e674146109b6578063a457c2d7146109e057610376565b8063893d20e8116101a0578063893d20e8146109215780638da5cb5b1461093657806395d89b411461094b5780639f9a4e7f1461096057610376565b80637ecebe00146108c4578063850171de146108f757806386fac4901461090c57610376565b80633dbc9051116102a05780635c19a95c1161023e57806370a082311161021857806370a0823114610810578063715018a614610843578063782d6fe1146108585780637c040d941461089157610376565b80635c19a95c146107635780636a141e2c146107965780636fcfff45146107c457610376565b80634a74bb021161027a5780634a74bb02146106d3578063570ca735146106e857806357a8c909146106fd578063587cde1e1461073057610376565b80633dbc9051146106525780633ff8bf2e1461068557806340c10f191461069a57610376565b806323b872dd1161030d5780632c4caadb116102e75780632c4caadb146105ab578063313ce567146105c0578063376c2391146105eb578063395093511461061957610376565b806323b872dd14610500578063269f534c1461054357806329605e771461057657610376565b806318160ddd1161034957806318160ddd146104835780631ad9339a146104aa57806320606b70146104d65780632200c4ee146104eb57610376565b806301afe7fc1461037b57806306fdde03146103ac578063095ea7b31461043657610376565b3661037657005b600080fd5b34801561038757600080fd5b50610390610d1d565b604080516001600160a01b039092168252519081900360200190f35b3480156103b857600080fd5b506103c1610d2c565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103fb5781810151838201526020016103e3565b50505050905090810190601f1680156104285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561044257600080fd5b5061046f6004803603604081101561045957600080fd5b506001600160a01b038135169060200135610dc2565b604080519115158252519081900360200190f35b34801561048f57600080fd5b50610498610de0565b60408051918252519081900360200190f35b3480156104b657600080fd5b506104bf610de6565b6040805161ffff9092168252519081900360200190f35b3480156104e257600080fd5b50610498610dec565b3480156104f757600080fd5b50610390610e10565b34801561050c57600080fd5b5061046f6004803603606081101561052357600080fd5b506001600160a01b03813581169160208101359091169060400135610e1f565b34801561054f57600080fd5b5061046f6004803603602081101561056657600080fd5b50356001600160a01b0316610ea6565b34801561058257600080fd5b506105a96004803603602081101561059957600080fd5b50356001600160a01b0316610ec4565b005b3480156105b757600080fd5b50610390610fae565b3480156105cc57600080fd5b506105d5610fbd565b6040805160ff9092168252519081900360200190f35b3480156105f757600080fd5b506105a96004803603602081101561060e57600080fd5b503561ffff16610fc6565b34801561062557600080fd5b5061046f6004803603604081101561063c57600080fd5b506001600160a01b0381351690602001356110bb565b34801561065e57600080fd5b506105a96004803603602081101561067557600080fd5b50356001600160a01b0316611109565b34801561069157600080fd5b506104bf611174565b3480156106a657600080fd5b506105a9600480360360408110156106bd57600080fd5b506001600160a01b038135169060200135611185565b3480156106df57600080fd5b5061046f61121a565b3480156106f457600080fd5b50610390611223565b34801561070957600080fd5b506105a96004803603602081101561072057600080fd5b50356001600160a01b0316611232565b34801561073c57600080fd5b506103906004803603602081101561075357600080fd5b50356001600160a01b031661131a565b34801561076f57600080fd5b506105a96004803603602081101561078657600080fd5b50356001600160a01b0316611338565b3480156107a257600080fd5b506105a9600480360360208110156107b957600080fd5b503561ffff16611345565b3480156107d057600080fd5b506107f7600480360360208110156107e757600080fd5b50356001600160a01b0316611486565b6040805163ffffffff9092168252519081900360200190f35b34801561081c57600080fd5b506104986004803603602081101561083357600080fd5b50356001600160a01b031661149e565b34801561084f57600080fd5b506105a96114b9565b34801561086457600080fd5b506104986004803603604081101561087b57600080fd5b506001600160a01b038135169060200135611565565b34801561089d57600080fd5b506105a9600480360360208110156108b457600080fd5b50356001600160a01b031661176d565b3480156108d057600080fd5b50610498600480360360208110156108e757600080fd5b50356001600160a01b03166117d8565b34801561090357600080fd5b506103906117ea565b34801561091857600080fd5b506104bf6117f9565b34801561092d57600080fd5b506103906117fe565b34801561094257600080fd5b5061039061180d565b34801561095757600080fd5b506103c161181c565b34801561096c57600080fd5b506105a96004803603602081101561098357600080fd5b5035151561187d565b34801561099857600080fd5b5061046f600480360360208110156109af57600080fd5b5035611911565b3480156109c257600080fd5b506105a9600480360360208110156109d957600080fd5b503561198e565b3480156109ec57600080fd5b5061046f60048036036040811015610a0357600080fd5b506001600160a01b038135169060200135611a1a565b348015610a2557600080fd5b5061046f60048036036040811015610a3c57600080fd5b506001600160a01b038135169060200135611a82565b348015610a5e57600080fd5b50610498611a96565b348015610a7357600080fd5b506105a960048036036020811015610a8a57600080fd5b50356001600160a01b0316611ac7565b348015610aa657600080fd5b5061049860048036036020811015610abd57600080fd5b50356001600160a01b0316611d2c565b348015610ad957600080fd5b506104bf611d90565b348015610aee57600080fd5b506104bf611d9f565b348015610b0357600080fd5b506105a9600480360360c0811015610b1a57600080fd5b506001600160a01b038135169060208101359060408101359060ff6060820135169060808101359060a00135611db0565b348015610b5757600080fd5b506105a960048036036040811015610b6e57600080fd5b506001600160a01b0381351690602001351515612023565b348015610b9257600080fd5b50610498612097565b348015610ba757600080fd5b5061049860048036036040811015610bbe57600080fd5b506001600160a01b038135811691602001351661209d565b348015610be257600080fd5b506105a960048036036020811015610bf957600080fd5b50356001600160a01b03166120c8565b348015610c1557600080fd5b506104986121e9565b348015610c2a57600080fd5b50610c5d60048036036040811015610c4157600080fd5b5080356001600160a01b0316906020013563ffffffff1661220d565b6040805163ffffffff909316835260208301919091528051918290030190f35b348015610c8957600080fd5b506105a960048036036020811015610ca057600080fd5b50356001600160a01b031661223a565b348015610cbc57600080fd5b5061039061233c565b348015610cd157600080fd5b506105a960048036036020811015610ce857600080fd5b503561ffff1661234b565b348015610cff57600080fd5b50610390612445565b348015610d1457600080fd5b50610390612454565b600d546001600160a01b031681565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610db85780601f10610d8d57610100808354040283529160200191610db8565b820191906000526020600020905b815481529060010190602001808311610d9b57829003601f168201915b5050505050905090565b6000610dd6610dcf61245a565b848461245e565b5060015b92915050565b60035490565b6101f481565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b600e546001600160a01b031681565b6000610e2c84848461254a565b610e9c84610e3861245a565b610e97856040518060600160405280602881526020016135c9602891396001600160a01b038a16600090815260026020526040812090610e7661245a565b6001600160a01b0316815260208101919091526040016000205491906128a3565b61245e565b5060019392505050565b6001600160a01b031660009081526007602052604090205460ff1690565b600f546001600160a01b03163314610f0d5760405162461bcd60e51b81526004018080602001828103825260248152602001806137c66024913960400191505060405180910390fd5b6001600160a01b038116610f525760405162461bcd60e51b815260040180806020018281038252603a815260200180613680603a913960400191505060405180910390fd5b600f546040516001600160a01b038084169216907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed90600090a3600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6010546001600160a01b031690565b60065460ff1690565b600f546001600160a01b0316331461100f5760405162461bcd60e51b81526004018080602001828103825260248152602001806137c66024913960400191505060405180910390fd5b6101f461ffff821611156110545760405162461bcd60e51b81526004018080602001828103825260528152602001806137746052913960600191505060405180910390fd5b6006546040805161ffff610100909304831681529183166020830152805133927fe9d5c8ee2a65d4fb859c680669d8f902172d53e3f15f9f11108a31bbada4b70b92908290030190a26006805461ffff9092166101000262ffff0019909216919091179055565b6000610dd66110c861245a565b84610e9785600260006110d961245a565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549061293a565b600f546001600160a01b031633146111525760405162461bcd60e51b81526004018080602001828103825260248152602001806137c66024913960400191505060405180910390fd5b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b600654600160281b900461ffff1681565b61118d61245a565b6001600160a01b031661119e61180d565b6001600160a01b0316146111e7576040805162461bcd60e51b81526020600482018190526024820152600080516020613754833981519152604482015290519081900360640190fd5b6111f18282612994565b6001600160a01b03808316600090815260116020526040812054611216921683612a7a565b5050565b60085460ff1681565b600f546001600160a01b031690565b6010546001600160a01b0316331461127b5760405162461bcd60e51b81526004018080602001828103825260378152602001806134576037913960400191505060405180910390fd5b6001600160a01b0381166112c05760405162461bcd60e51b81526004018080602001828103825260438152602001806137116043913960600191505060405180910390fd5b600f54601080546001600160a01b0319166001600160a01b0384811691909117918290556040519281169291169082907f94456f2c40e81071c944da16731bc7121a2ee223dad7ec0a7f444dc9bf0edf1e90600090a35050565b6001600160a01b039081166000908152601160205260409020541690565b6113423382612bbc565b50565b600f546001600160a01b0316331461138e5760405162461bcd60e51b81526004018080602001828103825260248152602001806137c66024913960400191505060405180910390fd5b6127108161ffff1611156113d35760405162461bcd60e51b815260040180806020018281038252605f81526020018061391b605f913960600191505060405180910390fd5b606461ffff821610156114175760405162461bcd60e51b815260040180806020018281038252605b815260200180613880605b913960600191505060405180910390fd5b6006546040805161ffff600160281b909304831681529183166020830152805133927fb62a50fc861a770636e85357becb3b82a32e911106609d4985871eaf29011e0892908290030190a26006805461ffff909216600160281b0266ffff000000000019909216919091179055565b60136020526000908152604090205463ffffffff1681565b6001600160a01b031660009081526001602052604090205490565b6114c161245a565b6001600160a01b03166114d261180d565b6001600160a01b03161461151b576040805162461bcd60e51b81526020600482018190526024820152600080516020613754833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60004382106115a55760405162461bcd60e51b81526004018080602001828103825260298152602001806135a06029913960400191505060405180910390fd5b6001600160a01b03831660009081526013602052604090205463ffffffff16806115d3576000915050610dda565b6001600160a01b038416600090815260126020908152604080832063ffffffff600019860181168552925290912054168310611642576001600160a01b03841660009081526012602090815260408083206000199490940163ffffffff16835292905220600101549050610dda565b6001600160a01b038416600090815260126020908152604080832083805290915290205463ffffffff1683101561167d576000915050610dda565b600060001982015b8163ffffffff168163ffffffff16111561173657600282820363ffffffff160481036116af61343f565b506001600160a01b038716600090815260126020908152604080832063ffffffff80861685529083529281902081518083019092528054909316808252600190930154918101919091529087141561171157602001519450610dda9350505050565b805163ffffffff168711156117285781935061172f565b6001820392505b5050611685565b506001600160a01b038516600090815260126020908152604080832063ffffffff9094168352929052206001015491505092915050565b600f546001600160a01b031633146117b65760405162461bcd60e51b81526004018080602001828103825260248152602001806137c66024913960400191505060405180910390fd5b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b60146020526000908152604090205481565b600a546001600160a01b031681565b606481565b600061180861180d565b905090565b6000546001600160a01b031690565b60058054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610db85780601f10610d8d57610100808354040283529160200191610db8565b600f546001600160a01b031633146118c65760405162461bcd60e51b81526004018080602001828103825260248152602001806137c66024913960400191505060405180910390fd5b604080518215158152905133917f3ca65588b29182880283bc8778fea5f01b351e01d874839a39a99e1c281a2113919081900360200190a26008805460ff1916911515919091179055565b600061191b61245a565b6001600160a01b031661192c61180d565b6001600160a01b031614611975576040805162461bcd60e51b81526020600482018190526024820152600080516020613754833981519152604482015290519081900360640190fd5b61198661198061245a565b83612994565b506001919050565b600f546001600160a01b031633146119d75760405162461bcd60e51b81526004018080602001828103825260248152602001806137c66024913960400191505060405180910390fd5b6009546040805191825260208201839052805133927f54c7a13ff01698e4ed3550a23216585f8472c7b1515a932eac98c9a6d48990c592908290030190a2600955565b6000610dd6611a2761245a565b84610e978560405180606001604052806025815260200161385b6025913960026000611a5161245a565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906128a3565b6000610dd6611a8f61245a565b848461254a565b6006546000906118089061271090611ac190600160281b900461ffff16611abb610de0565b90612c51565b90612caa565b6010546001600160a01b03163314611b105760405162461bcd60e51b81526004018080602001828103825260378152602001806134576037913960400191505060405180910390fd5b600a80546001600160a01b0319166001600160a01b0383811691909117918290556040805163c45a015560e01b81529051929091169163c45a015591600480820192602092909190829003018186803b158015611b6c57600080fd5b505afa158015611b80573d6000803e3d6000fd5b505050506040513d6020811015611b9657600080fd5b5051600a54604080516315ab88c960e31b815290516001600160a01b039384169363e6a4390593309391169163ad5c464891600480820192602092909190829003018186803b158015611be857600080fd5b505afa158015611bfc573d6000803e3d6000fd5b505050506040513d6020811015611c1257600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b039384166004820152929091166024830152516044808301926020929190829003018186803b158015611c6257600080fd5b505afa158015611c76573d6000803e3d6000fd5b505050506040513d6020811015611c8c57600080fd5b5051600b80546001600160a01b0319166001600160a01b03928316179081905516611ce85760405162461bcd60e51b815260040180806020018281038252603581526020018061364b6035913960400191505060405180910390fd5b600b54600a546040516001600160a01b03928316929091169033907f58da2ff344347a3e833e8bb5fe42ddf7d8f7cc697e4054a0ce52ca9117ec875090600090a450565b6001600160a01b03811660009081526013602052604081205463ffffffff1680611d57576000611d89565b6001600160a01b038316600090815260126020908152604080832063ffffffff60001986011684529091529020600101545b9392505050565b600654610100900461ffff1681565b6006546301000000900461ffff1681565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866611ddb610d2c565b80519060200120611dea612d11565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a9052825180850390910181526101408401835280519085012061190160f01b6101608501526101628401829052610182808501829052835180860390910181526101a285018085528151918701919091206000918290526101c2860180865281905260ff8b166101e287015261020286018a90526102228601899052935192965090949293909260019261024280840193601f198301929081900390910190855afa158015611f1d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611f6f5760405162461bcd60e51b81526004018080602001828103825260288152602001806137ea6028913960400191505060405180910390fd5b6001600160a01b03811660009081526014602052604090208054600181019091558914611fcd5760405162461bcd60e51b81526004018080602001828103825260248152602001806135f16024913960400191505060405180910390fd5b8742111561200c5760405162461bcd60e51b81526004018080602001828103825260288152602001806139bf6028913960400191505060405180910390fd5b612016818b612bbc565b505050505b505050505050565b600f546001600160a01b0316331461206c5760405162461bcd60e51b81526004018080602001828103825260248152602001806137c66024913960400191505060405180910390fd5b6001600160a01b03919091166000908152600760205260409020805460ff1916911515919091179055565b60095481565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6010546001600160a01b031633146121115760405162461bcd60e51b81526004018080602001828103825260378152602001806134576037913960400191505060405180910390fd5b6001600160a01b0381166121565760405162461bcd60e51b815260040180806020018281038252603c81526020018061351a603c913960400191505060405180910390fd5b600e80546001600160a01b038381166001600160a01b031983161790925516801561218657612186816000612023565b600e5461219d906001600160a01b03166001612023565b600e54604080516001600160a01b038085168252909216602083015280517fedd461554a9b57aab6b87471b49adccdbe876ec3480ae63a85e4f41df63272a09281900390910190a15050565b7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b60126020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b61224261245a565b6001600160a01b031661225361180d565b6001600160a01b03161461229c576040805162461bcd60e51b81526020600482018190526024820152600080516020613754833981519152604482015290519081900360640190fd5b6001600160a01b0381166122e15760405162461bcd60e51b81526004018080602001828103825260268152602001806135566026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600b546001600160a01b031681565b600f546001600160a01b031633146123945760405162461bcd60e51b81526004018080602001828103825260248152602001806137c66024913960400191505060405180910390fd5b60648161ffff1611156123d85760405162461bcd60e51b81526004018080602001828103825260438152602001806134b36043913960600191505060405180910390fd5b6006546040805161ffff6301000000909304831681529183166020830152805133927f3eec69630b6f49d4e10eec296fce4baddec5f34c5430fb2cd72f8c4218f63fd092908290030190a26006805461ffff90921663010000000264ffff00000019909216919091179055565b600c546001600160a01b031681565b61dead81565b3390565b6001600160a01b0383166124a35760405162461bcd60e51b81526004018080602001828103825260248152602001806134f66024913960400191505060405180910390fd5b6001600160a01b0382166124e85760405162461bcd60e51b815260040180806020018281038252602281526020018061397a6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600c548390839083906000906001600160a01b038086169116148061257c5750600c546001600160a01b038481169116145b806125945750600d546001600160a01b038581169116145b806125ac5750600d546001600160a01b038481169116145b905060006125b8611a96565b1180156125c3575080155b15612655576001600160a01b03841660009081526007602052604090205460ff1615801561260a57506001600160a01b03831660009081526007602052604090205460ff16155b1561265557612617611a96565b8211156126555760405162461bcd60e51b81526004018080602001828103825260408152602001806138db6040913960400191505060405180910390fd5b60085460ff16151560011480156126765750600b54600160a01b900460ff16155b801561268c5750600a546001600160a01b031615155b80156126a25750600b546001600160a01b031615155b80156126bc5750600b546001600160a01b03888116911614155b80156126e157506126cb61180d565b6001600160a01b0316876001600160a01b031614155b156126ee576126ee612d15565b60006001600160a01b03871661dead14806127125750600654610100900461ffff16155b8061272a5750600d546001600160a01b038981169116145b806127425750600d546001600160a01b038881169116145b8061275a5750600c546001600160a01b038981169116145b806127725750600c546001600160a01b038881169116145b9050801561278a57612785888888612e28565b612899565b6006546000906127ac9061271090611ac1908a90610100900461ffff16612c51565b6006549091506000906127d290606490611ac19085906301000000900461ffff16612c51565b905060006127e08383612f7a565b905080820183146128225760405162461bcd60e51b815260040180806020018281038252602481526020018061357c6024913960400191505060405180910390fd5b600061282e8a85612f7a565b90508381018a146128705760405162461bcd60e51b815260040180806020018281038252602381526020018061399c6023913960400191505060405180910390fd5b61287d8c61dead85612e28565b6128888c3084612e28565b6128938c8c83612e28565b98505050505b5050505050505050565b600081848411156129325760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156128f75781810151838201526020016128df565b50505050905090810190601f1680156129245780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611d89576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b0382166129ef576040805162461bcd60e51b815260206004820152601f60248201527f42455032303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6003546129fc908261293a565b6003556001600160a01b038216600090815260016020526040902054612a22908261293a565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b816001600160a01b0316836001600160a01b031614158015612a9c5750600081115b15612bb7576001600160a01b03831615612b2e576001600160a01b03831660009081526013602052604081205463ffffffff169081612adc576000612b0e565b6001600160a01b038516600090815260126020908152604080832063ffffffff60001987011684529091529020600101545b90506000612b1c8285612f7a565b9050612b2a86848484612fd7565b5050505b6001600160a01b03821615612bb7576001600160a01b03821660009081526013602052604081205463ffffffff169081612b69576000612b9b565b6001600160a01b038416600090815260126020908152604080832063ffffffff60001987011684529091529020600101545b90506000612ba9828561293a565b905061201b85848484612fd7565b505050565b6001600160a01b0380831660009081526011602052604081205490911690612be38461149e565b6001600160a01b0385811660008181526011602052604080822080546001600160a01b031916898616908117909155905194955093928616927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4612c4b828483612a7a565b50505050565b600082612c6057506000610dda565b82820282848281612c6d57fe5b0414611d895760405162461bcd60e51b81526004018080602001828103825260218152602001806136f06021913960400191505060405180910390fd5b6000808211612d00576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381612d0957fe5b049392505050565b4690565b600b805460ff60a01b1916600160a01b1790556006805462ffff0019811690915561ffff610100909104166000612d4b3061149e565b90506000612d57611a96565b9050808211612d665781612d68565b805b91506009548210612dfb576009546000612d83826002612caa565b90506000612d918383612f7a565b905047612d9d8361313c565b6000612da94783612f7a565b9050612db583826132e2565b604080518581526020810183905280820185905290517f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619181900360600190a150505050505b50506006805461ffff9092166101000262ffff0019909216919091179055600b805460ff60a01b19169055565b6001600160a01b038316612e6d5760405162461bcd60e51b815260040180806020018281038252602581526020018061348e6025913960400191505060405180910390fd5b6001600160a01b038216612eb25760405162461bcd60e51b81526004018080602001828103825260238152602001806138386023913960400191505060405180910390fd5b612eef81604051806060016040528060268152602001613812602691396001600160a01b03861660009081526001602052604090205491906128a3565b6001600160a01b038085166000908152600160205260408082209390935590841681522054612f1e908261293a565b6001600160a01b0380841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600082821115612fd1576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000612ffb43604051806060016040528060368152602001613615603691396133e1565b905060008463ffffffff1611801561304457506001600160a01b038516600090815260126020908152604080832063ffffffff6000198901811685529252909120548282169116145b15613081576001600160a01b038516600090815260126020908152604080832063ffffffff600019890116845290915290206001018290556130f2565b60408051808201825263ffffffff808416825260208083018681526001600160a01b038a166000818152601284528681208b8616825284528681209551865490861663ffffffff19918216178755925160019687015590815260139092529390208054928801909116919092161790555b604080518481526020810184905281516001600160a01b038816927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a25050505050565b6040805160028082526060808301845292602083019080368337019050509050308160008151811061316a57fe5b6001600160a01b03928316602091820292909201810191909152600a54604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b1580156131be57600080fd5b505afa1580156131d2573d6000803e3d6000fd5b505050506040513d60208110156131e857600080fd5b50518151829060019081106131f957fe5b6001600160a01b039283166020918202929092010152600a5461321f913091168461245e565b600a5460405163791ac94760e01b8152600481018481526000602483018190523060648401819052426084850181905260a060448601908152875160a487015287516001600160a01b039097169663791ac947968a968a9594939092909160c40190602080880191028083838b5b838110156132a557818101518382015260200161328d565b505050509050019650505050505050600060405180830381600087803b1580156132ce57600080fd5b505af115801561201b573d6000803e3d6000fd5b600e546001600160a01b03166133295760405162461bcd60e51b81526004018080602001828103825260368152602001806136ba6036913960400191505060405180910390fd5b600a546133419030906001600160a01b03168461245e565b600a54600e546040805163f305d71960e01b81523060048201526024810186905260006044820181905260648201526001600160a01b0392831660848201524260a48201529051919092169163f305d71991849160c48082019260609290919082900301818588803b1580156133b657600080fd5b505af11580156133ca573d6000803e3d6000fd5b50505050506040513d6060811015612c4b57600080fd5b60008164010000000084106134375760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156128f75781810151838201526020016128df565b509192915050565b60408051808201909152600080825260208201529056fe657373656e7469616c4f70657261746f723a2063616c6c6572206973206e6f742074686520657373656e7469616c206f70657261746f7242455032303a207472616e736665722066726f6d20746865207a65726f2061646472657373434f554741523a3a7570646174654275726e526174653a204275726e2072617465206d757374206e6f742065786365656420746865206d6178696d756d20726174652e42455032303a20617070726f76652066726f6d20746865207a65726f2061646472657373434f554741523a3a757064617465436f756761724c6f636b65723a206e6577206f70657261746f7220697320746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373434f554741523a3a7472616e736665723a204275726e2076616c756520696e76616c6964434f554741523a3a6765745072696f72566f7465733a206e6f74207965742064657465726d696e656442455032303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365434f554741523a3a64656c656761746542795369673a20696e76616c6964206e6f6e6365434f554741523a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473434f554741523a3a757064617465636f7567617253776170526f757465723a20496e76616c6964207061697220616464726573732e434f554741523a3a7472616e736665724f70657261746f723a206e6577206f70657261746f7220697320746865207a65726f2061646472657373434f554741523a3a6164644c69717569646974793a20636f756761724c6f636b65722061646472657373206d75737420626520736574536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77434f554741523a3a7472616e73666572457373656e7469616c4f70657261746f723a206e6577206f70657261746f7220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572434f554741523a3a7570646174655472616e73666572546178526174653a205472616e73666572207461782072617465206d757374206e6f742065786365656420746865206d6178696d756d20726174652e6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657261746f72434f554741523a3a64656c656761746542795369673a20696e76616c6964207369676e617475726542455032303a207472616e7366657220616d6f756e7420657863656564732062616c616e636542455032303a207472616e7366657220746f20746865207a65726f206164647265737342455032303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f434f554741523a3a7570646174654d61785472616e73666572416d6f756e74526174653a204d6178207472616e7366657220616d6f756e742072617465206d7573742065786365656420746865206d696e696d756d20726174652e434f554741523a3a616e74695768616c653a205472616e7366657220616d6f756e74206578636565647320746865206d61785472616e73666572416d6f756e74434f554741523a3a7570646174654d61785472616e73666572416d6f756e74526174653a204d6178207472616e7366657220616d6f756e742072617465206d757374206e6f742065786365656420746865206d6178696d756d20726174652e42455032303a20617070726f766520746f20746865207a65726f2061646472657373434f554741523a3a7472616e736665723a205461782076616c756520696e76616c6964434f554741523a3a64656c656761746542795369673a207369676e61747572652065787069726564a264697066735822122087927f092ce384fba58ddbd45a4ac1ee1c9419033af7dad3e8fc7bcd766e38ff64736f6c634300060c0033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
FTM | Fantom (FTM) | 100.00% | $0.656061 | 1.4477 | $0.949761 |
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.