ERC-20
Overview
Max Total Supply
189,223,351.763993538625659988 BULL
Holders
96
Market
Price
$0.00 @ 0.000000 FTM
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
6.885944693350792082 BULLValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
BullToken
Compiler Version
v0.8.4+commit.c7e474f2
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.8.4; import "./libs/IBEP20.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; // 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 contract BullGovernance { using SafeMath for uint256; /// @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); IBEP20 bullToken; constructor(address _bullToken) { bullToken = IBEP20(_bullToken); } /** * @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(bullToken.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), "BULL::delegateBySig: invalid signature"); require(nonce == nonces[signatory]++, "BULL::delegateBySig: invalid nonce"); require(block.timestamp <= expiry, "BULL::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, "BULL::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 = bullToken.balanceOf(delegator); // balance of underlying BULLs (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, "BULL::_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 view returns (uint) { uint256 chainId; assembly { chainId := chainid() } return chainId; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import "./interfaces/IBullNFT.sol"; import "./libs/BEP20.sol"; import "./BullGovernance.sol"; /** * @dev Main token of the protocol. Auto liquidity and burn. * In each transaction it charges a fee (by default 5%) for the formation of new LP tokens and to burn a part of bull. */ // BullToken with Governance. contract BullToken is BEP20, BullGovernance { using SafeMath for uint256; // 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 tax rate: 10%. uint16 public constant MAXIMUM_TRANSFER_TAX_RATE = 1000; // Burn address address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD; // Max balance amount rate in basis points. (default is 0.5% of total supply) uint16 public maxBalanceAmountRate = 50; // Addresses that excluded from antiWhale mapping(address => bool) private _excludedFromAntiWhale; // Addresses that excluded from antiWhale mapping(address => bool) private _excludedFromTax; // Automatic swap and liquify enabled bool public swapAndLiquifyEnabled = false; // Min amount to liquify. (default 500 BULLs) uint256 public minAmountToLiquify = 500 ether; // The swap router, modifiable IUniswapV2Router02 public bullFinanceRouter; // LP Locker address public lpLocker; // The trading pair address public bullFinancePair; // In swap and liquify bool private _inSwapAndLiquify; // The operator can only update the transfer tax rate address public operator; // NFT address to manage boosts by BullNFTs IBullNFT public bullNFT; // NFT boostIds uint256 constant goldenBull = 1; uint256 constant silverBull = 2; uint256 constant bronzeBull = 3; // Events event OperatorTransferred(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 maxBalanceAmountRateUpdated(address indexed operator, uint256 previousRate, uint256 newRate); event SwapAndLiquifyEnabledUpdated(address indexed operator, bool enabled); event MinAmountToLiquifyUpdated(address indexed operator, uint256 previousAmount, uint256 newAmount); event BullFinanceRouterUpdated(address indexed operator, address indexed router, address indexed pair); event SwapAndLiquify(uint256 tokensSwapped, uint256 ethReceived, uint256 tokensIntoLiqudity); modifier onlyOperator() { require(operator == msg.sender, "operator: caller is not the operator"); _; } modifier antiWhale(address sender, address recipient, uint256 amount) { if (maxBalanceAmount() > 0) { if ( _excludedFromAntiWhale[recipient] == false && sender != owner() ) { require(balanceOf(recipient).add(amount) <= maxBalanceAmount(), "BULL::antiWhale: Transfer would exceed the maxBalanceAmount of the recipient"); } } _; } modifier lockTheSwap { _inSwapAndLiquify = true; _; _inSwapAndLiquify = false; } modifier transferTaxFree { uint16 _transferTaxRate = transferTaxRate; transferTaxRate = 0; _; transferTaxRate = _transferTaxRate; } constructor() BEP20("BullRun Token", "BULL") BullGovernance(address(this)) { operator = _msgSender(); lpLocker = _msgSender(); emit OperatorTransferred(address(0), operator); _excludedFromAntiWhale[msg.sender] = true; _excludedFromAntiWhale[address(0)] = true; _excludedFromAntiWhale[address(this)] = true; _excludedFromAntiWhale[BURN_ADDRESS] = true; _excludedFromTax[msg.sender] = true; } /// @dev Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef). function mint(address _to, uint256 _amount) external onlyOwner { _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); } function getTransferTax(address _sender, address _recipient) public view returns(uint256){ uint256 userTransferTaxRate = transferTaxRate; // if the NFT contract are defined and the sender o receiver has some of this nfts, it has a discount in transfer tax if(address(bullNFT) != address(0)){ if(bullNFT.hasBoost(_sender, goldenBull) || bullNFT.hasBoost(_recipient, goldenBull)){ userTransferTaxRate = userTransferTaxRate.sub(userTransferTaxRate.mul(bullNFT.getBonus(goldenBull)).div(10000)); }else if(bullNFT.hasBoost(_sender, silverBull) || bullNFT.hasBoost(_recipient, silverBull)){ userTransferTaxRate = userTransferTaxRate.sub(userTransferTaxRate.mul(bullNFT.getBonus(silverBull)).div(10000)); }else if(bullNFT.hasBoost(_sender, bronzeBull) || bullNFT.hasBoost(_recipient, bronzeBull)){ userTransferTaxRate = userTransferTaxRate.sub(userTransferTaxRate.mul(bullNFT.getBonus(bronzeBull)).div(10000)); } } return userTransferTaxRate; } /// @dev overrides transfer function to meet tokenomics of BULL function _transfer(address sender, address recipient, uint256 amount) internal virtual override antiWhale(sender, recipient, amount) { // swap and liquify if ( swapAndLiquifyEnabled && !_inSwapAndLiquify && address(bullFinanceRouter) != address(0) && bullFinancePair != address(0) && sender != bullFinancePair && sender != owner() ) { swapAndLiquify(); } if (recipient == BURN_ADDRESS || transferTaxRate == 0 || _excludedFromTax[sender] || _excludedFromTax[recipient]) { super._transfer(sender, recipient, amount); } else { uint256 userTransferTaxRate = getTransferTax(sender, recipient); // default tax is 5% of every transfer uint256 taxAmount = amount.mul(userTransferTaxRate).div(10000); uint256 burnAmount = taxAmount.mul(burnRate).div(100); uint256 liquidityAmount = taxAmount.sub(burnAmount); // default 95% of transfer sent to recipient uint256 sendAmount = amount.sub(taxAmount); 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 maxBalanceAmount = maxBalanceAmount(); contractTokenBalance = contractTokenBalance > maxBalanceAmount ? maxBalanceAmount : 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 bullFinance pair path of token -> weth address[] memory path = new address[](2); path[0] = address(this); path[1] = bullFinanceRouter.WETH(); _approve(address(this), address(bullFinanceRouter), tokenAmount); // make the swap bullFinanceRouter.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // accept any amount of ETH path, address(this), block.timestamp ); } /// @dev Add liquidity function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private { // approve token transfer to cover all possible scenarios _approve(address(this), address(bullFinanceRouter), tokenAmount); // add the liquidity bullFinanceRouter.addLiquidityETH{value: ethAmount}( address(this), tokenAmount, 0, // slippage is unavoidable 0, // slippage is unavoidable lpLocker, block.timestamp ); } /** * @dev Returns the max transfer amount. */ function maxBalanceAmount() public view returns (uint256) { return totalSupply().mul(maxBalanceAmountRate).div(10000); } /** * @dev Returns the address is excluded from antiWhale or not. */ function isExcludedFromAntiWhale(address _account) external view returns (bool) { return _excludedFromAntiWhale[_account]; } /** * @dev Returns the address is excluded from tax or not. */ function isExcludedFromTax(address _account) external view returns (bool) { return _excludedFromTax[_account]; } // To receive BNB from bullFinanceRouter when swapping receive() external payable {} /** * @dev Update the transfer tax rate. * Can only be called by the current operator. */ function updateTransferTaxRate(uint16 _transferTaxRate) external onlyOperator { require(_transferTaxRate <= MAXIMUM_TRANSFER_TAX_RATE, "BULL::updateTransferTaxRate: Transfer tax rate must not exceed the maximum rate."); emit TransferTaxRateUpdated(msg.sender, transferTaxRate, _transferTaxRate); transferTaxRate = _transferTaxRate; } /** * @dev Update the burn rate. * Can only be called by the current operator. */ function updateBurnRate(uint16 _burnRate) external onlyOperator { require(_burnRate <= 100, "BULL::updateBurnRate: Burn rate must not exceed the maximum rate."); emit BurnRateUpdated(msg.sender, burnRate, _burnRate); burnRate = _burnRate; } /** * @dev Update the max balance amount rate. * Can only be called by the current operator. */ function updatemaxBalanceAmountRate(uint16 _maxBalanceAmountRate) external onlyOperator { require(_maxBalanceAmountRate <= 10000, "BULL::updatemaxBalanceAmountRate: Max transfer amount rate must not exceed the maximum rate."); emit maxBalanceAmountRateUpdated(msg.sender, maxBalanceAmountRate, _maxBalanceAmountRate); maxBalanceAmountRate = _maxBalanceAmountRate; } /** * @dev Update the min amount to liquify. * Can only be called by the current operator. */ function updateMinAmountToLiquify(uint256 _minAmount) external onlyOperator { emit MinAmountToLiquifyUpdated(msg.sender, minAmountToLiquify, _minAmount); minAmountToLiquify = _minAmount; } /** * @dev Exclude or include an address from antiWhale. * Can only be called by the current operator. */ function setExcludedFromAntiWhale(address _account, bool _excluded) external onlyOperator { _excludedFromAntiWhale[_account] = _excluded; } /** * @dev Exclude or include an address from tax. * Can only be called by the current operator. */ function setExcludedFromTax(address _account, bool _excluded) external onlyOperator { _excludedFromTax[_account] = _excluded; } /** * @dev Update the swapAndLiquifyEnabled. * Can only be called by the current operator. */ function updateSwapAndLiquifyEnabled(bool _enabled) external onlyOperator { emit SwapAndLiquifyEnabledUpdated(msg.sender, _enabled); swapAndLiquifyEnabled = _enabled; } /** * @dev Update the swap router. * Can only be called by the current operator. */ function updateBullFinanceRouter(address _router) external onlyOperator { bullFinanceRouter = IUniswapV2Router02(_router); bullFinancePair = IUniswapV2Factory(bullFinanceRouter.factory()).getPair(address(this), bullFinanceRouter.WETH()); require(bullFinancePair != address(0), "BULL::updateBullFinanceRouter: Invalid pair address."); emit BullFinanceRouterUpdated(msg.sender, address(bullFinanceRouter), bullFinancePair); } /** * @dev Update the NFT contract. * Can only be called by the current operator. */ function updateBullNFTContract(address _bullNFT) external onlyOperator { bullNFT = IBullNFT(_bullNFT); } /** * @dev Update the lpLocker. * Can only be called by the current operator. */ function updateLpLocker(address _lpLocker) external onlyOperator { lpLocker = _lpLocker; } /** * @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), "BULL::transferOperator: new operator is the zero address"); emit OperatorTransferred(operator, newOperator); operator = newOperator; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.4.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; interface IBullNFT is IERC721{ /// @dev Mint a new nft with a given _boostId to the _to address. function mint(uint256 _boostId, address _to) external; /// @return Return true if the actual supply of nft with the given _boostId is lower than the masSupply of that type of nft. function canMint(uint256 _boostId) external view returns(bool); /// @return Return the remaining amount of nft with the given _boostId can be mined before reach the maxSupply. function remainingMint(uint256 _boostId) external view returns(uint256); /// @return Return true if a _user has some nft with the given _boostId. function hasBoost(address _user, uint256 _boostId) external view returns(bool); /// @return Return the boostId of the given _nftId. If the nft hasn't a boost, returns 0. function getBoost(uint256 _nftId) external view returns (uint256); /// @return Return the bonus attribute of the given _nftId. function getBonus(uint256 _nftId) external view returns(uint256); /// @return Return the address allowed to mind nfts with the given _boostId. function getAuthorizedMiner(uint256 _boostId) external view returns(address); }
// SPDX-License-Identifier: MIT // File: contracts/libs/BEP20.sol pragma solidity >=0.4.0; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./IBEP20.sol"; import "@openzeppelin/contracts/access/Ownable.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") ); } }
// SPDX-License-Identifier: MIT // File: contracts/libs/IBEP20.sol 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.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 () { 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: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; }
// SPDX-License-Identifier: MIT pragma solidity ^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.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { 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.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
{ "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":true,"internalType":"address","name":"router","type":"address"},{"indexed":true,"internalType":"address","name":"pair","type":"address"}],"name":"BullFinanceRouterUpdated","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":"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":"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"},{"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":"maxBalanceAmountRateUpdated","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":[{"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":"bullFinancePair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bullFinanceRouter","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bullNFT","outputs":[{"internalType":"contract IBullNFT","name":"","type":"address"}],"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":"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":[{"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":"_sender","type":"address"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"getTransferTax","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":[{"internalType":"address","name":"_account","type":"address"}],"name":"isExcludedFromTax","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpLocker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBalanceAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBalanceAmountRate","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":"_account","type":"address"},{"internalType":"bool","name":"_excluded","type":"bool"}],"name":"setExcludedFromAntiWhale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bool","name":"_excluded","type":"bool"}],"name":"setExcludedFromTax","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":"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":"address","name":"_router","type":"address"}],"name":"updateBullFinanceRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bullNFT","type":"address"}],"name":"updateBullNFTContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_burnRate","type":"uint16"}],"name":"updateBurnRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_lpLocker","type":"address"}],"name":"updateLpLocker","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":"uint16","name":"_maxBalanceAmountRate","type":"uint16"}],"name":"updatemaxBalanceAmountRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052600b805465ffffffffffff60a01b1916640c8005007d60a21b179055600e805460ff19169055681b1ae4d6e2ef500000600f553480156200004457600080fd5b50306040518060400160405280600d81526020016c213ab636293ab7102a37b5b2b760991b815250604051806040016040528060048152602001631095531360e21b81525060006200009b6200025860201b60201c565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508151620000fa9060049060208501906200025c565b508051620001109060059060208401906200025c565b50506006805460ff1916601217905550600b80546001600160a01b039092166001600160a01b0319909216919091179055620001493390565b601380546001600160a01b0319166001600160a01b0392909216919091179055620001713390565b601180546001600160a01b0319166001600160a01b039283161790556013546040519116906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3336000818152600c602090815260408083208054600160ff1991821681179092557f13649b2456f1b42fef0f0040b3aaeabcd21a76a0f3f5defd4f583839455116e8805482168317905530855282852080548216831790557f45117a726ea4f344045dc210793664a28d2d320b7e03f6bffdae553d24c3586c8054821683179055948452600d90925290912080549092161790556200033f565b3390565b8280546200026a9062000302565b90600052602060002090601f0160209004810192826200028e5760008555620002d9565b82601f10620002a957805160ff1916838001178555620002d9565b82800160010185558215620002d9579182015b82811115620002d9578251825591602001919060010190620002bc565b50620002e7929150620002eb565b5090565b5b80821115620002e75760008155600101620002ec565b600181811c908216806200031757607f821691505b602082108114156200033957634e487b7160e01b600052602260045260246000fd5b50919050565b6137d3806200034f6000396000f3fe6080604052600436106103395760003560e01c80638da5cb5b116101ab578063b65d08b0116100f7578063d824835811610095578063f1127ed81161006f578063f1127ed814610a5b578063f2fde38b14610abf578063f607f2b414610adf578063fccc281314610aff57600080fd5b8063d8248358146109cb578063dd62ed3e146109e1578063e7a324dc14610a2757600080fd5b8063c3cda520116100d1578063c3cda52014610932578063c7f59a6714610952578063cb4ca63114610972578063d1dfccfa146109ab57600080fd5b8063b65d08b0146108ce578063bed99850146108f0578063c2ed286b1461091257600080fd5b8063a0712d6811610164578063a6ceadb31161013e578063a6ceadb314610859578063a9059cbb14610879578063ab04acd414610899578063b4b5ea57146108ae57600080fd5b8063a0712d68146107f9578063a392e67414610819578063a457c2d71461083957600080fd5b80638da5cb5b14610746578063905bed9b1461076457806394eeb09c1461078457806395d89b41146107a45780639a33c8f2146107b95780639f9a4e7f146107d957600080fd5b80633e9cdedf116102855780636fcfff4511610223578063782d6fe1116101fd578063782d6fe1146106d95780637beb2c14146106f95780637ecebe0014610719578063893d20e81461074657600080fd5b80636fcfff451461064657806370a082311461068e578063715018a6146106c457600080fd5b80634ef910631161025f5780634ef91063146105ab578063570ca735146105cd578063587cde1e146105ed5780635c19a95c1461062657600080fd5b80633e9cdedf1461055157806340c10f19146105715780634a74bb021461059157600080fd5b806320606b70116102f257806329605e77116102cc57806329605e77146104cd578063313ce567146104ef578063376c239114610511578063395093511461053157600080fd5b806320606b701461044057806323b872dd14610474578063269f534c1461049457600080fd5b806303fc20131461034557806306fdde0314610382578063095ea7b3146103a457806309cdcb8f146103d457806318160ddd146104025780631ad9339a1461041757600080fd5b3661034057005b600080fd5b34801561035157600080fd5b50601154610365906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561038e57600080fd5b50610397610b15565b6040516103799190613421565b3480156103b057600080fd5b506103c46103bf366004613201565b610ba7565b6040519015158152602001610379565b3480156103e057600080fd5b506103f46103ef36600461315c565b610bbe565b604051908152602001610379565b34801561040e57600080fd5b506003546103f4565b34801561042357600080fd5b5061042d6103e881565b60405161ffff9091168152602001610379565b34801561044c57600080fd5b506103f47f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b34801561048057600080fd5b506103c461048f366004613194565b61104e565b3480156104a057600080fd5b506103c46104af366004613124565b6001600160a01b03166000908152600c602052604090205460ff1690565b3480156104d957600080fd5b506104ed6104e8366004613124565b6110b7565b005b3480156104fb57600080fd5b5060065460405160ff9091168152602001610379565b34801561051d57600080fd5b506104ed61052c3660046133a2565b6111c2565b34801561053d57600080fd5b506103c461054c366004613201565b6112ee565b34801561055d57600080fd5b50601054610365906001600160a01b031681565b34801561057d57600080fd5b506104ed61058c366004613201565b611324565b34801561059d57600080fd5b50600e546103c49060ff1681565b3480156105b757600080fd5b50600b5461042d90600160c01b900461ffff1681565b3480156105d957600080fd5b50601354610365906001600160a01b031681565b3480156105f957600080fd5b50610365610608366004613124565b6001600160a01b039081166000908152600760205260409020541690565b34801561063257600080fd5b506104ed610641366004613124565b611381565b34801561065257600080fd5b50610679610661366004613124565b60096020526000908152604090205463ffffffff1681565b60405163ffffffff9091168152602001610379565b34801561069a57600080fd5b506103f46106a9366004613124565b6001600160a01b031660009081526001602052604090205490565b3480156106d057600080fd5b506104ed61138e565b3480156106e557600080fd5b506103f46106f4366004613201565b611402565b34801561070557600080fd5b506104ed6107143660046133a2565b611667565b34801561072557600080fd5b506103f4610734366004613124565b600a6020526000908152604090205481565b34801561075257600080fd5b506000546001600160a01b0316610365565b34801561077057600080fd5b50601254610365906001600160a01b031681565b34801561079057600080fd5b506104ed61079f366004613124565b6117a5565b3480156107b057600080fd5b506103976117f1565b3480156107c557600080fd5b50601454610365906001600160a01b031681565b3480156107e557600080fd5b506104ed6107f43660046132c1565b611800565b34801561080557600080fd5b506103c46108143660046133c4565b611874565b34801561082557600080fd5b506104ed6108343660046133c4565b6118b1565b34801561084557600080fd5b506103c4610854366004613201565b61191e565b34801561086557600080fd5b506104ed610874366004613124565b61196d565b34801561088557600080fd5b506103c4610894366004613201565b611c02565b3480156108a557600080fd5b506103f4611c0f565b3480156108ba57600080fd5b506103f46108c9366004613124565b611c3c565b3480156108da57600080fd5b50600b5461042d90600160a01b900461ffff1681565b3480156108fc57600080fd5b50600b5461042d90600160b01b900461ffff1681565b34801561091e57600080fd5b506104ed61092d3660046131d4565b611cb0565b34801561093e57600080fd5b506104ed61094d36600461322c565b611d05565b34801561095e57600080fd5b506104ed61096d3660046131d4565b612055565b34801561097e57600080fd5b506103c461098d366004613124565b6001600160a01b03166000908152600d602052604090205460ff1690565b3480156109b757600080fd5b506104ed6109c6366004613124565b6120aa565b3480156109d757600080fd5b506103f4600f5481565b3480156109ed57600080fd5b506103f46109fc36600461315c565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b348015610a3357600080fd5b506103f47fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b348015610a6757600080fd5b50610aa3610a7636600461328c565b60086020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b6040805163ffffffff9093168352602083019190915201610379565b348015610acb57600080fd5b506104ed610ada366004613124565b6120f6565b348015610aeb57600080fd5b506104ed610afa3660046133a2565b6121e0565b348015610b0b57600080fd5b5061036561dead81565b606060048054610b249061363b565b80601f0160208091040260200160405190810160405280929190818152602001828054610b509061363b565b8015610b9d5780601f10610b7257610100808354040283529160200191610b9d565b820191906000526020600020905b815481529060010190602001808311610b8057829003601f168201915b5050505050905090565b6000610bb43384846122fc565b5060015b92915050565b600b54601454600091600160a01b900461ffff16906001600160a01b031615611047576014546040516356771b9160e11b81526001600160a01b038681166004830152600160248301529091169063acee37229060440160206040518083038186803b158015610c2d57600080fd5b505afa158015610c41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6591906132dd565b80610cef57506014546040516356771b9160e11b81526001600160a01b038581166004830152600160248301529091169063acee37229060440160206040518083038186803b158015610cb757600080fd5b505afa158015610ccb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cef91906132dd565b15610d9c57601454604051630954cd6560e31b815260016004820152610d9591610d8e9161271091610d88916001600160a01b0390911690634aa66b28906024015b60206040518083038186803b158015610d4957600080fd5b505afa158015610d5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8191906133dc565b8590612421565b9061242d565b8290612439565b9050611047565b6014546040516356771b9160e11b81526001600160a01b038681166004830152600260248301529091169063acee37229060440160206040518083038186803b158015610de857600080fd5b505afa158015610dfc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2091906132dd565b80610eaa57506014546040516356771b9160e11b81526001600160a01b038581166004830152600260248301529091169063acee37229060440160206040518083038186803b158015610e7257600080fd5b505afa158015610e86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eaa91906132dd565b15610ef057601454604051630954cd6560e31b815260026004820152610d9591610d8e9161271091610d88916001600160a01b0390911690634aa66b2890602401610d31565b6014546040516356771b9160e11b81526001600160a01b038681166004830152600360248301529091169063acee37229060440160206040518083038186803b158015610f3c57600080fd5b505afa158015610f50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7491906132dd565b80610ffe57506014546040516356771b9160e11b81526001600160a01b038581166004830152600360248301529091169063acee37229060440160206040518083038186803b158015610fc657600080fd5b505afa158015610fda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ffe91906132dd565b1561104757601454604051630954cd6560e31b81526003600482015261104491610d8e9161271091610d88916001600160a01b0390911690634aa66b2890602401610d31565b90505b9392505050565b600061105b848484612445565b6110ad84336110a8856040518060600160405280602881526020016136f7602891396001600160a01b038a16600090815260026020908152604080832033845290915290205491906126ea565b6122fc565b5060019392505050565b6013546001600160a01b031633146110ea5760405162461bcd60e51b81526004016110e190613489565b60405180910390fd5b6001600160a01b0381166111665760405162461bcd60e51b815260206004820152603860248201527f42554c4c3a3a7472616e736665724f70657261746f723a206e6577206f70657260448201527f61746f7220697320746865207a65726f2061646472657373000000000000000060648201526084016110e1565b6013546040516001600160a01b038084169216907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed90600090a3601380546001600160a01b0319166001600160a01b0392909216919091179055565b6013546001600160a01b031633146111ec5760405162461bcd60e51b81526004016110e190613489565b6103e861ffff821611156112815760405162461bcd60e51b815260206004820152605060248201527f42554c4c3a3a7570646174655472616e73666572546178526174653a2054726160448201527f6e73666572207461782072617465206d757374206e6f7420657863656564207460648201526f34329036b0bc34b6bab6903930ba329760811b608482015260a4016110e1565b600b5460408051600160a01b90920461ffff90811683528316602083015233917fe9d5c8ee2a65d4fb859c680669d8f902172d53e3f15f9f11108a31bbada4b70b910160405180910390a2600b805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b3360008181526002602090815260408083206001600160a01b03871684529091528120549091610bb49185906110a89086612716565b6000546001600160a01b0316331461134e5760405162461bcd60e51b81526004016110e190613454565b6113588282612722565b6001600160a01b0380831660009081526007602052604081205461137d921683612808565b5050565b61138b338261296c565b50565b6000546001600160a01b031633146113b85760405162461bcd60e51b81526004016110e190613454565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60004382106114635760405162461bcd60e51b815260206004820152602760248201527f42554c4c3a3a6765745072696f72566f7465733a206e6f742079657420646574604482015266195c9b5a5b995960ca1b60648201526084016110e1565b6001600160a01b03831660009081526009602052604090205463ffffffff1680611491576000915050610bb8565b6001600160a01b038416600090815260086020526040812084916114b66001856135ea565b63ffffffff9081168252602082019290925260400160002054161161151f576001600160a01b0384166000908152600860205260408120906114f96001846135ea565b63ffffffff1663ffffffff16815260200190815260200160002060010154915050610bb8565b6001600160a01b038416600090815260086020908152604080832083805290915290205463ffffffff1683101561155a576000915050610bb8565b6000806115686001846135ea565b90505b8163ffffffff168163ffffffff161115611630576000600261158d84846135ea565b6115979190613591565b6115a190836135ea565b6001600160a01b038816600090815260086020908152604080832063ffffffff808616855290835292819020815180830190925280549093168082526001909301549181019190915291925087141561160457602001519450610bb89350505050565b805163ffffffff1687111561161b57819350611629565b6116266001836135ea565b92505b505061156b565b506001600160a01b038516600090815260086020908152604080832063ffffffff9094168352929052206001015491505092915050565b6013546001600160a01b031633146116915760405162461bcd60e51b81526004016110e190613489565b6127108161ffff1611156117335760405162461bcd60e51b815260206004820152605c60248201527f42554c4c3a3a7570646174656d617842616c616e6365416d6f756e745261746560448201527f3a204d6178207472616e7366657220616d6f756e742072617465206d7573742060648201527f6e6f742065786365656420746865206d6178696d756d20726174652e00000000608482015260a4016110e1565b600b5460408051600160c01b90920461ffff90811683528316602083015233917f48a8b3c17c1c8f369741a18a6b61adb482f30aa47685d7d5fd01ca16c3104ef6910160405180910390a2600b805461ffff909216600160c01b0261ffff60c01b19909216919091179055565b905090565b6013546001600160a01b031633146117cf5760405162461bcd60e51b81526004016110e190613489565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b606060058054610b249061363b565b6013546001600160a01b0316331461182a5760405162461bcd60e51b81526004016110e190613489565b604051811515815233907f3ca65588b29182880283bc8778fea5f01b351e01d874839a39a99e1c281a21139060200160405180910390a2600e805460ff1916911515919091179055565b600080546001600160a01b0316331461189f5760405162461bcd60e51b81526004016110e190613454565b6118a93383612722565b506001919050565b6013546001600160a01b031633146118db5760405162461bcd60e51b81526004016110e190613489565b600f54604080519182526020820183905233917f54c7a13ff01698e4ed3550a23216585f8472c7b1515a932eac98c9a6d48990c5910160405180910390a2600f55565b6000610bb433846110a885604051806060016040528060258152602001613745602591393360009081526002602090815260408083206001600160a01b038d16845290915290205491906126ea565b6013546001600160a01b031633146119975760405162461bcd60e51b81526004016110e190613489565b601080546001600160a01b0319166001600160a01b0383169081179091556040805163c45a015560e01b8152905163c45a015591600480820192602092909190829003018186803b1580156119eb57600080fd5b505afa1580156119ff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a239190613140565b6001600160a01b031663e6a4390530601060009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015611a8057600080fd5b505afa158015611a94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab89190613140565b6040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260440160206040518083038186803b158015611afe57600080fd5b505afa158015611b12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b369190613140565b601280546001600160a01b0319166001600160a01b03929092169182179055611bbe5760405162461bcd60e51b815260206004820152603460248201527f42554c4c3a3a75706461746542756c6c46696e616e6365526f757465723a2049604482015273373b30b634b2103830b4b91030b2323932b9b99760611b60648201526084016110e1565b6012546010546040516001600160a01b03928316929091169033907fa120486f10b7610e92f31b3338ec5dc01fb98059624ec518305b1f844c2e607d90600090a450565b6000610bb4338484612445565b600b546000906117a09061271090610d889061ffff600160c01b90910416611c3660035490565b90612421565b6001600160a01b03811660009081526009602052604081205463ffffffff1680611c67576000611047565b6001600160a01b038316600090815260086020526040812090611c8b6001846135ea565b63ffffffff1663ffffffff168152602001908152602001600020600101549392505050565b6013546001600160a01b03163314611cda5760405162461bcd60e51b81526004016110e190613489565b6001600160a01b03919091166000908152600d60205260409020805460ff1916911515919091179055565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866600b60009054906101000a90046001600160a01b03166001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b158015611d7657600080fd5b505afa158015611d8a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611db291908101906132f9565b80519060200120611dc04690565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a90528251808503909101815261014084019092528151919093012061190160f01b610160830152610162820183905261018282018190529192506000906101a20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015611eec573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611f5e5760405162461bcd60e51b815260206004820152602660248201527f42554c4c3a3a64656c656761746542795369673a20696e76616c6964207369676044820152656e617475726560d01b60648201526084016110e1565b6001600160a01b0381166000908152600a60205260408120805491611f8283613676565b919050558914611fdf5760405162461bcd60e51b815260206004820152602260248201527f42554c4c3a3a64656c656761746542795369673a20696e76616c6964206e6f6e604482015261636560f01b60648201526084016110e1565b8742111561203e5760405162461bcd60e51b815260206004820152602660248201527f42554c4c3a3a64656c656761746542795369673a207369676e617475726520656044820152651e1c1a5c995960d21b60648201526084016110e1565b612048818b61296c565b505050505b505050505050565b6013546001600160a01b0316331461207f5760405162461bcd60e51b81526004016110e190613489565b6001600160a01b03919091166000908152600c60205260409020805460ff1916911515919091179055565b6013546001600160a01b031633146120d45760405162461bcd60e51b81526004016110e190613489565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146121205760405162461bcd60e51b81526004016110e190613454565b6001600160a01b0381166121855760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016110e1565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6013546001600160a01b0316331461220a5760405162461bcd60e51b81526004016110e190613489565b60648161ffff16111561228f5760405162461bcd60e51b815260206004820152604160248201527f42554c4c3a3a7570646174654275726e526174653a204275726e20726174652060448201527f6d757374206e6f742065786365656420746865206d6178696d756d20726174656064820152601760f91b608482015260a4016110e1565b600b5460408051600160b01b90920461ffff90811683528316602083015233917f3eec69630b6f49d4e10eec296fce4baddec5f34c5430fb2cd72f8c4218f63fd0910160405180910390a2600b805461ffff909216600160b01b0261ffff60b01b19909216919091179055565b6001600160a01b03831661235e5760405162461bcd60e51b8152602060048201526024808201527f42455032303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016110e1565b6001600160a01b0382166123bf5760405162461bcd60e51b815260206004820152602260248201527f42455032303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016110e1565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b600061104782846135b4565b6000611047828461357d565b600061104782846135d3565b8282826000612452611c0f565b111561254e576001600160a01b0382166000908152600c602052604090205460ff1615801561248f57506000546001600160a01b03848116911614155b1561254e5761249c611c0f565b6124c5826124bf856001600160a01b031660009081526001602052604090205490565b90612716565b111561254e5760405162461bcd60e51b815260206004820152604c60248201527f42554c4c3a3a616e74695768616c653a205472616e7366657220776f756c642060448201527f65786365656420746865206d617842616c616e6365416d6f756e74206f66207460648201526b1a19481c9958da5c1a595b9d60a21b608482015260a4016110e1565b600e5460ff16801561256a5750601254600160a01b900460ff16155b801561258057506010546001600160a01b031615155b801561259657506012546001600160a01b031615155b80156125b057506012546001600160a01b03878116911614155b80156125ca57506000546001600160a01b03878116911614155b156125d7576125d7612a6d565b6001600160a01b03851661dead14806125fb5750600b54600160a01b900461ffff16155b8061261e57506001600160a01b0386166000908152600d602052604090205460ff165b8061264157506001600160a01b0385166000908152600d602052604090205460ff165b1561265657612651868686612b8c565b61204d565b60006126628787610bbe565b90506000612676612710610d888885612421565b600b5490915060009061269c90606490610d88908590600160b01b900461ffff16612421565b905060006126aa8383612439565b905060006126b88985612439565b90506126c78b61dead85612b8c565b6126d28b3084612b8c565b6126dd8b8b83612b8c565b5050505050505050505050565b6000818484111561270e5760405162461bcd60e51b81526004016110e19190613421565b505050900390565b6000611047828461353d565b6001600160a01b0382166127785760405162461bcd60e51b815260206004820152601f60248201527f42455032303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016110e1565b6003546127859082612716565b6003556001600160a01b0382166000908152600160205260409020546127ab9082612716565b6001600160a01b0383166000818152600160205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906127fc9085815260200190565b60405180910390a35050565b816001600160a01b0316836001600160a01b03161415801561282a5750600081115b15612967576001600160a01b038316156128cd576001600160a01b03831660009081526009602052604081205463ffffffff16908161286a5760006128ad565b6001600160a01b03851660009081526008602052604081209061288e6001856135ea565b63ffffffff1663ffffffff168152602001908152602001600020600101545b905060006128bb8285612439565b90506128c986848484612d12565b5050505b6001600160a01b03821615612967576001600160a01b03821660009081526009602052604081205463ffffffff16908161290857600061294b565b6001600160a01b03841660009081526008602052604081209061292c6001856135ea565b63ffffffff1663ffffffff168152602001908152602001600020600101545b905060006129598285612716565b905061204d85848484612d12565b505050565b6001600160a01b0382811660008181526007602052604080822054600b5491516370a0823160e01b8152600481019490945284169391929116906370a082319060240160206040518083038186803b1580156129c757600080fd5b505afa1580156129db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129ff91906133dc565b6001600160a01b0385811660008181526007602052604080822080546001600160a01b031916898616908117909155905194955093928616927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4612a67828483612808565b50505050565b60128054600160a01b60ff60a01b199091168117909155600b805461ffff60a01b198116909155306000908152600160205260408120549290910461ffff169190612ab6611c0f565b9050808211612ac55781612ac7565b805b9150600f548210612b5b57600f546000612ae282600261242d565b90506000612af08383612439565b905047612afc83612eb4565b6000612b084783612439565b9050612b148382613031565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a150505050505b5050600b805461ffff909216600160a01b0261ffff60a01b199092169190911790556012805460ff60a01b19169055565b6001600160a01b038316612bf05760405162461bcd60e51b815260206004820152602560248201527f42455032303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016110e1565b6001600160a01b038216612c525760405162461bcd60e51b815260206004820152602360248201527f42455032303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016110e1565b612c8f8160405180606001604052806026815260200161371f602691396001600160a01b03861660009081526001602052604090205491906126ea565b6001600160a01b038085166000908152600160205260408082209390935590841681522054612cbe9082612716565b6001600160a01b0380841660008181526001602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906124149085815260200190565b6000612d364360405180606001604052806034815260200161376a603491396130f4565b905060008463ffffffff16118015612d9057506001600160a01b038516600090815260086020526040812063ffffffff831691612d746001886135ea565b63ffffffff908116825260208201929092526040016000205416145b15612dd9576001600160a01b03851660009081526008602052604081208391612dba6001886135ea565b63ffffffff168152602081019190915260400160002060010155612e69565b60408051808201825263ffffffff838116825260208083018681526001600160a01b038a166000908152600883528581208a851682529092529390209151825463ffffffff191691161781559051600191820155612e38908590613555565b6001600160a01b0386166000908152600960205260409020805463ffffffff191663ffffffff929092169190911790555b60408051848152602081018490526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612ef757634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201810191909152601054604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b158015612f4b57600080fd5b505afa158015612f5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f839190613140565b81600181518110612fa457634e487b7160e01b600052603260045260246000fd5b6001600160a01b039283166020918202929092010152601054612fca91309116846122fc565b60105460405163791ac94760e01b81526001600160a01b039091169063791ac947906130039085906000908690309042906004016134cd565b600060405180830381600087803b15801561301d57600080fd5b505af115801561204d573d6000803e3d6000fd5b6010546130499030906001600160a01b0316846122fc565b60105460115460405163f305d71960e01b81523060048201526024810185905260006044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c4016060604051808303818588803b1580156130b457600080fd5b505af11580156130c8573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906130ed91906133f4565b5050505050565b600081640100000000841061311c5760405162461bcd60e51b81526004016110e19190613421565b509192915050565b600060208284031215613135578081fd5b8135611047816136d3565b600060208284031215613151578081fd5b8151611047816136d3565b6000806040838503121561316e578081fd5b8235613179816136d3565b91506020830135613189816136d3565b809150509250929050565b6000806000606084860312156131a8578081fd5b83356131b3816136d3565b925060208401356131c3816136d3565b929592945050506040919091013590565b600080604083850312156131e6578182fd5b82356131f1816136d3565b91506020830135613189816136e8565b60008060408385031215613213578182fd5b823561321e816136d3565b946020939093013593505050565b60008060008060008060c08789031215613244578182fd5b863561324f816136d3565b95506020870135945060408701359350606087013560ff81168114613272578283fd5b9598949750929560808101359460a0909101359350915050565b6000806040838503121561329e578182fd5b82356132a9816136d3565b9150602083013563ffffffff81168114613189578182fd5b6000602082840312156132d2578081fd5b8135611047816136e8565b6000602082840312156132ee578081fd5b8151611047816136e8565b60006020828403121561330a578081fd5b815167ffffffffffffffff80821115613321578283fd5b818401915084601f830112613334578283fd5b815181811115613346576133466136bd565b604051601f8201601f19908116603f0116810190838211818310171561336e5761336e6136bd565b81604052828152876020848701011115613386578586fd5b61339783602083016020880161360f565b979650505050505050565b6000602082840312156133b3578081fd5b813561ffff81168114611047578182fd5b6000602082840312156133d5578081fd5b5035919050565b6000602082840312156133ed578081fd5b5051919050565b600080600060608486031215613408578081fd5b8351925060208401519150604084015190509250925092565b602081526000825180602084015261344081604085016020870161360f565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526024908201527f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260408201526330ba37b960e11b606082015260800190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b8181101561351c5784516001600160a01b0316835293830193918301916001016134f7565b50506001600160a01b03969096166060850152505050608001529392505050565b6000821982111561355057613550613691565b500190565b600063ffffffff80831681851680830382111561357457613574613691565b01949350505050565b60008261358c5761358c6136a7565b500490565b600063ffffffff808416806135a8576135a86136a7565b92169190910492915050565b60008160001904831182151516156135ce576135ce613691565b500290565b6000828210156135e5576135e5613691565b500390565b600063ffffffff8381169083168181101561360757613607613691565b039392505050565b60005b8381101561362a578181015183820152602001613612565b83811115612a675750506000910152565b600181811c9082168061364f57607f821691505b6020821081141561367057634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561368a5761368a613691565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461138b57600080fd5b801515811461138b57600080fdfe42455032303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636542455032303a207472616e7366657220616d6f756e7420657863656564732062616c616e636542455032303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f42554c4c3a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473a2646970667358221220c8a712814107a0becf63c425dc1b27192379b0c6a514e465a4e65f4f15532cc964736f6c63430008040033
Deployed Bytecode
0x6080604052600436106103395760003560e01c80638da5cb5b116101ab578063b65d08b0116100f7578063d824835811610095578063f1127ed81161006f578063f1127ed814610a5b578063f2fde38b14610abf578063f607f2b414610adf578063fccc281314610aff57600080fd5b8063d8248358146109cb578063dd62ed3e146109e1578063e7a324dc14610a2757600080fd5b8063c3cda520116100d1578063c3cda52014610932578063c7f59a6714610952578063cb4ca63114610972578063d1dfccfa146109ab57600080fd5b8063b65d08b0146108ce578063bed99850146108f0578063c2ed286b1461091257600080fd5b8063a0712d6811610164578063a6ceadb31161013e578063a6ceadb314610859578063a9059cbb14610879578063ab04acd414610899578063b4b5ea57146108ae57600080fd5b8063a0712d68146107f9578063a392e67414610819578063a457c2d71461083957600080fd5b80638da5cb5b14610746578063905bed9b1461076457806394eeb09c1461078457806395d89b41146107a45780639a33c8f2146107b95780639f9a4e7f146107d957600080fd5b80633e9cdedf116102855780636fcfff4511610223578063782d6fe1116101fd578063782d6fe1146106d95780637beb2c14146106f95780637ecebe0014610719578063893d20e81461074657600080fd5b80636fcfff451461064657806370a082311461068e578063715018a6146106c457600080fd5b80634ef910631161025f5780634ef91063146105ab578063570ca735146105cd578063587cde1e146105ed5780635c19a95c1461062657600080fd5b80633e9cdedf1461055157806340c10f19146105715780634a74bb021461059157600080fd5b806320606b70116102f257806329605e77116102cc57806329605e77146104cd578063313ce567146104ef578063376c239114610511578063395093511461053157600080fd5b806320606b701461044057806323b872dd14610474578063269f534c1461049457600080fd5b806303fc20131461034557806306fdde0314610382578063095ea7b3146103a457806309cdcb8f146103d457806318160ddd146104025780631ad9339a1461041757600080fd5b3661034057005b600080fd5b34801561035157600080fd5b50601154610365906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561038e57600080fd5b50610397610b15565b6040516103799190613421565b3480156103b057600080fd5b506103c46103bf366004613201565b610ba7565b6040519015158152602001610379565b3480156103e057600080fd5b506103f46103ef36600461315c565b610bbe565b604051908152602001610379565b34801561040e57600080fd5b506003546103f4565b34801561042357600080fd5b5061042d6103e881565b60405161ffff9091168152602001610379565b34801561044c57600080fd5b506103f47f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b34801561048057600080fd5b506103c461048f366004613194565b61104e565b3480156104a057600080fd5b506103c46104af366004613124565b6001600160a01b03166000908152600c602052604090205460ff1690565b3480156104d957600080fd5b506104ed6104e8366004613124565b6110b7565b005b3480156104fb57600080fd5b5060065460405160ff9091168152602001610379565b34801561051d57600080fd5b506104ed61052c3660046133a2565b6111c2565b34801561053d57600080fd5b506103c461054c366004613201565b6112ee565b34801561055d57600080fd5b50601054610365906001600160a01b031681565b34801561057d57600080fd5b506104ed61058c366004613201565b611324565b34801561059d57600080fd5b50600e546103c49060ff1681565b3480156105b757600080fd5b50600b5461042d90600160c01b900461ffff1681565b3480156105d957600080fd5b50601354610365906001600160a01b031681565b3480156105f957600080fd5b50610365610608366004613124565b6001600160a01b039081166000908152600760205260409020541690565b34801561063257600080fd5b506104ed610641366004613124565b611381565b34801561065257600080fd5b50610679610661366004613124565b60096020526000908152604090205463ffffffff1681565b60405163ffffffff9091168152602001610379565b34801561069a57600080fd5b506103f46106a9366004613124565b6001600160a01b031660009081526001602052604090205490565b3480156106d057600080fd5b506104ed61138e565b3480156106e557600080fd5b506103f46106f4366004613201565b611402565b34801561070557600080fd5b506104ed6107143660046133a2565b611667565b34801561072557600080fd5b506103f4610734366004613124565b600a6020526000908152604090205481565b34801561075257600080fd5b506000546001600160a01b0316610365565b34801561077057600080fd5b50601254610365906001600160a01b031681565b34801561079057600080fd5b506104ed61079f366004613124565b6117a5565b3480156107b057600080fd5b506103976117f1565b3480156107c557600080fd5b50601454610365906001600160a01b031681565b3480156107e557600080fd5b506104ed6107f43660046132c1565b611800565b34801561080557600080fd5b506103c46108143660046133c4565b611874565b34801561082557600080fd5b506104ed6108343660046133c4565b6118b1565b34801561084557600080fd5b506103c4610854366004613201565b61191e565b34801561086557600080fd5b506104ed610874366004613124565b61196d565b34801561088557600080fd5b506103c4610894366004613201565b611c02565b3480156108a557600080fd5b506103f4611c0f565b3480156108ba57600080fd5b506103f46108c9366004613124565b611c3c565b3480156108da57600080fd5b50600b5461042d90600160a01b900461ffff1681565b3480156108fc57600080fd5b50600b5461042d90600160b01b900461ffff1681565b34801561091e57600080fd5b506104ed61092d3660046131d4565b611cb0565b34801561093e57600080fd5b506104ed61094d36600461322c565b611d05565b34801561095e57600080fd5b506104ed61096d3660046131d4565b612055565b34801561097e57600080fd5b506103c461098d366004613124565b6001600160a01b03166000908152600d602052604090205460ff1690565b3480156109b757600080fd5b506104ed6109c6366004613124565b6120aa565b3480156109d757600080fd5b506103f4600f5481565b3480156109ed57600080fd5b506103f46109fc36600461315c565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b348015610a3357600080fd5b506103f47fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b348015610a6757600080fd5b50610aa3610a7636600461328c565b60086020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b6040805163ffffffff9093168352602083019190915201610379565b348015610acb57600080fd5b506104ed610ada366004613124565b6120f6565b348015610aeb57600080fd5b506104ed610afa3660046133a2565b6121e0565b348015610b0b57600080fd5b5061036561dead81565b606060048054610b249061363b565b80601f0160208091040260200160405190810160405280929190818152602001828054610b509061363b565b8015610b9d5780601f10610b7257610100808354040283529160200191610b9d565b820191906000526020600020905b815481529060010190602001808311610b8057829003601f168201915b5050505050905090565b6000610bb43384846122fc565b5060015b92915050565b600b54601454600091600160a01b900461ffff16906001600160a01b031615611047576014546040516356771b9160e11b81526001600160a01b038681166004830152600160248301529091169063acee37229060440160206040518083038186803b158015610c2d57600080fd5b505afa158015610c41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6591906132dd565b80610cef57506014546040516356771b9160e11b81526001600160a01b038581166004830152600160248301529091169063acee37229060440160206040518083038186803b158015610cb757600080fd5b505afa158015610ccb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cef91906132dd565b15610d9c57601454604051630954cd6560e31b815260016004820152610d9591610d8e9161271091610d88916001600160a01b0390911690634aa66b28906024015b60206040518083038186803b158015610d4957600080fd5b505afa158015610d5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8191906133dc565b8590612421565b9061242d565b8290612439565b9050611047565b6014546040516356771b9160e11b81526001600160a01b038681166004830152600260248301529091169063acee37229060440160206040518083038186803b158015610de857600080fd5b505afa158015610dfc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2091906132dd565b80610eaa57506014546040516356771b9160e11b81526001600160a01b038581166004830152600260248301529091169063acee37229060440160206040518083038186803b158015610e7257600080fd5b505afa158015610e86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eaa91906132dd565b15610ef057601454604051630954cd6560e31b815260026004820152610d9591610d8e9161271091610d88916001600160a01b0390911690634aa66b2890602401610d31565b6014546040516356771b9160e11b81526001600160a01b038681166004830152600360248301529091169063acee37229060440160206040518083038186803b158015610f3c57600080fd5b505afa158015610f50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7491906132dd565b80610ffe57506014546040516356771b9160e11b81526001600160a01b038581166004830152600360248301529091169063acee37229060440160206040518083038186803b158015610fc657600080fd5b505afa158015610fda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ffe91906132dd565b1561104757601454604051630954cd6560e31b81526003600482015261104491610d8e9161271091610d88916001600160a01b0390911690634aa66b2890602401610d31565b90505b9392505050565b600061105b848484612445565b6110ad84336110a8856040518060600160405280602881526020016136f7602891396001600160a01b038a16600090815260026020908152604080832033845290915290205491906126ea565b6122fc565b5060019392505050565b6013546001600160a01b031633146110ea5760405162461bcd60e51b81526004016110e190613489565b60405180910390fd5b6001600160a01b0381166111665760405162461bcd60e51b815260206004820152603860248201527f42554c4c3a3a7472616e736665724f70657261746f723a206e6577206f70657260448201527f61746f7220697320746865207a65726f2061646472657373000000000000000060648201526084016110e1565b6013546040516001600160a01b038084169216907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed90600090a3601380546001600160a01b0319166001600160a01b0392909216919091179055565b6013546001600160a01b031633146111ec5760405162461bcd60e51b81526004016110e190613489565b6103e861ffff821611156112815760405162461bcd60e51b815260206004820152605060248201527f42554c4c3a3a7570646174655472616e73666572546178526174653a2054726160448201527f6e73666572207461782072617465206d757374206e6f7420657863656564207460648201526f34329036b0bc34b6bab6903930ba329760811b608482015260a4016110e1565b600b5460408051600160a01b90920461ffff90811683528316602083015233917fe9d5c8ee2a65d4fb859c680669d8f902172d53e3f15f9f11108a31bbada4b70b910160405180910390a2600b805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b3360008181526002602090815260408083206001600160a01b03871684529091528120549091610bb49185906110a89086612716565b6000546001600160a01b0316331461134e5760405162461bcd60e51b81526004016110e190613454565b6113588282612722565b6001600160a01b0380831660009081526007602052604081205461137d921683612808565b5050565b61138b338261296c565b50565b6000546001600160a01b031633146113b85760405162461bcd60e51b81526004016110e190613454565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60004382106114635760405162461bcd60e51b815260206004820152602760248201527f42554c4c3a3a6765745072696f72566f7465733a206e6f742079657420646574604482015266195c9b5a5b995960ca1b60648201526084016110e1565b6001600160a01b03831660009081526009602052604090205463ffffffff1680611491576000915050610bb8565b6001600160a01b038416600090815260086020526040812084916114b66001856135ea565b63ffffffff9081168252602082019290925260400160002054161161151f576001600160a01b0384166000908152600860205260408120906114f96001846135ea565b63ffffffff1663ffffffff16815260200190815260200160002060010154915050610bb8565b6001600160a01b038416600090815260086020908152604080832083805290915290205463ffffffff1683101561155a576000915050610bb8565b6000806115686001846135ea565b90505b8163ffffffff168163ffffffff161115611630576000600261158d84846135ea565b6115979190613591565b6115a190836135ea565b6001600160a01b038816600090815260086020908152604080832063ffffffff808616855290835292819020815180830190925280549093168082526001909301549181019190915291925087141561160457602001519450610bb89350505050565b805163ffffffff1687111561161b57819350611629565b6116266001836135ea565b92505b505061156b565b506001600160a01b038516600090815260086020908152604080832063ffffffff9094168352929052206001015491505092915050565b6013546001600160a01b031633146116915760405162461bcd60e51b81526004016110e190613489565b6127108161ffff1611156117335760405162461bcd60e51b815260206004820152605c60248201527f42554c4c3a3a7570646174656d617842616c616e6365416d6f756e745261746560448201527f3a204d6178207472616e7366657220616d6f756e742072617465206d7573742060648201527f6e6f742065786365656420746865206d6178696d756d20726174652e00000000608482015260a4016110e1565b600b5460408051600160c01b90920461ffff90811683528316602083015233917f48a8b3c17c1c8f369741a18a6b61adb482f30aa47685d7d5fd01ca16c3104ef6910160405180910390a2600b805461ffff909216600160c01b0261ffff60c01b19909216919091179055565b905090565b6013546001600160a01b031633146117cf5760405162461bcd60e51b81526004016110e190613489565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b606060058054610b249061363b565b6013546001600160a01b0316331461182a5760405162461bcd60e51b81526004016110e190613489565b604051811515815233907f3ca65588b29182880283bc8778fea5f01b351e01d874839a39a99e1c281a21139060200160405180910390a2600e805460ff1916911515919091179055565b600080546001600160a01b0316331461189f5760405162461bcd60e51b81526004016110e190613454565b6118a93383612722565b506001919050565b6013546001600160a01b031633146118db5760405162461bcd60e51b81526004016110e190613489565b600f54604080519182526020820183905233917f54c7a13ff01698e4ed3550a23216585f8472c7b1515a932eac98c9a6d48990c5910160405180910390a2600f55565b6000610bb433846110a885604051806060016040528060258152602001613745602591393360009081526002602090815260408083206001600160a01b038d16845290915290205491906126ea565b6013546001600160a01b031633146119975760405162461bcd60e51b81526004016110e190613489565b601080546001600160a01b0319166001600160a01b0383169081179091556040805163c45a015560e01b8152905163c45a015591600480820192602092909190829003018186803b1580156119eb57600080fd5b505afa1580156119ff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a239190613140565b6001600160a01b031663e6a4390530601060009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015611a8057600080fd5b505afa158015611a94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab89190613140565b6040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260440160206040518083038186803b158015611afe57600080fd5b505afa158015611b12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b369190613140565b601280546001600160a01b0319166001600160a01b03929092169182179055611bbe5760405162461bcd60e51b815260206004820152603460248201527f42554c4c3a3a75706461746542756c6c46696e616e6365526f757465723a2049604482015273373b30b634b2103830b4b91030b2323932b9b99760611b60648201526084016110e1565b6012546010546040516001600160a01b03928316929091169033907fa120486f10b7610e92f31b3338ec5dc01fb98059624ec518305b1f844c2e607d90600090a450565b6000610bb4338484612445565b600b546000906117a09061271090610d889061ffff600160c01b90910416611c3660035490565b90612421565b6001600160a01b03811660009081526009602052604081205463ffffffff1680611c67576000611047565b6001600160a01b038316600090815260086020526040812090611c8b6001846135ea565b63ffffffff1663ffffffff168152602001908152602001600020600101549392505050565b6013546001600160a01b03163314611cda5760405162461bcd60e51b81526004016110e190613489565b6001600160a01b03919091166000908152600d60205260409020805460ff1916911515919091179055565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866600b60009054906101000a90046001600160a01b03166001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b158015611d7657600080fd5b505afa158015611d8a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611db291908101906132f9565b80519060200120611dc04690565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a90528251808503909101815261014084019092528151919093012061190160f01b610160830152610162820183905261018282018190529192506000906101a20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015611eec573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611f5e5760405162461bcd60e51b815260206004820152602660248201527f42554c4c3a3a64656c656761746542795369673a20696e76616c6964207369676044820152656e617475726560d01b60648201526084016110e1565b6001600160a01b0381166000908152600a60205260408120805491611f8283613676565b919050558914611fdf5760405162461bcd60e51b815260206004820152602260248201527f42554c4c3a3a64656c656761746542795369673a20696e76616c6964206e6f6e604482015261636560f01b60648201526084016110e1565b8742111561203e5760405162461bcd60e51b815260206004820152602660248201527f42554c4c3a3a64656c656761746542795369673a207369676e617475726520656044820152651e1c1a5c995960d21b60648201526084016110e1565b612048818b61296c565b505050505b505050505050565b6013546001600160a01b0316331461207f5760405162461bcd60e51b81526004016110e190613489565b6001600160a01b03919091166000908152600c60205260409020805460ff1916911515919091179055565b6013546001600160a01b031633146120d45760405162461bcd60e51b81526004016110e190613489565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146121205760405162461bcd60e51b81526004016110e190613454565b6001600160a01b0381166121855760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016110e1565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6013546001600160a01b0316331461220a5760405162461bcd60e51b81526004016110e190613489565b60648161ffff16111561228f5760405162461bcd60e51b815260206004820152604160248201527f42554c4c3a3a7570646174654275726e526174653a204275726e20726174652060448201527f6d757374206e6f742065786365656420746865206d6178696d756d20726174656064820152601760f91b608482015260a4016110e1565b600b5460408051600160b01b90920461ffff90811683528316602083015233917f3eec69630b6f49d4e10eec296fce4baddec5f34c5430fb2cd72f8c4218f63fd0910160405180910390a2600b805461ffff909216600160b01b0261ffff60b01b19909216919091179055565b6001600160a01b03831661235e5760405162461bcd60e51b8152602060048201526024808201527f42455032303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016110e1565b6001600160a01b0382166123bf5760405162461bcd60e51b815260206004820152602260248201527f42455032303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016110e1565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b600061104782846135b4565b6000611047828461357d565b600061104782846135d3565b8282826000612452611c0f565b111561254e576001600160a01b0382166000908152600c602052604090205460ff1615801561248f57506000546001600160a01b03848116911614155b1561254e5761249c611c0f565b6124c5826124bf856001600160a01b031660009081526001602052604090205490565b90612716565b111561254e5760405162461bcd60e51b815260206004820152604c60248201527f42554c4c3a3a616e74695768616c653a205472616e7366657220776f756c642060448201527f65786365656420746865206d617842616c616e6365416d6f756e74206f66207460648201526b1a19481c9958da5c1a595b9d60a21b608482015260a4016110e1565b600e5460ff16801561256a5750601254600160a01b900460ff16155b801561258057506010546001600160a01b031615155b801561259657506012546001600160a01b031615155b80156125b057506012546001600160a01b03878116911614155b80156125ca57506000546001600160a01b03878116911614155b156125d7576125d7612a6d565b6001600160a01b03851661dead14806125fb5750600b54600160a01b900461ffff16155b8061261e57506001600160a01b0386166000908152600d602052604090205460ff165b8061264157506001600160a01b0385166000908152600d602052604090205460ff165b1561265657612651868686612b8c565b61204d565b60006126628787610bbe565b90506000612676612710610d888885612421565b600b5490915060009061269c90606490610d88908590600160b01b900461ffff16612421565b905060006126aa8383612439565b905060006126b88985612439565b90506126c78b61dead85612b8c565b6126d28b3084612b8c565b6126dd8b8b83612b8c565b5050505050505050505050565b6000818484111561270e5760405162461bcd60e51b81526004016110e19190613421565b505050900390565b6000611047828461353d565b6001600160a01b0382166127785760405162461bcd60e51b815260206004820152601f60248201527f42455032303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016110e1565b6003546127859082612716565b6003556001600160a01b0382166000908152600160205260409020546127ab9082612716565b6001600160a01b0383166000818152600160205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906127fc9085815260200190565b60405180910390a35050565b816001600160a01b0316836001600160a01b03161415801561282a5750600081115b15612967576001600160a01b038316156128cd576001600160a01b03831660009081526009602052604081205463ffffffff16908161286a5760006128ad565b6001600160a01b03851660009081526008602052604081209061288e6001856135ea565b63ffffffff1663ffffffff168152602001908152602001600020600101545b905060006128bb8285612439565b90506128c986848484612d12565b5050505b6001600160a01b03821615612967576001600160a01b03821660009081526009602052604081205463ffffffff16908161290857600061294b565b6001600160a01b03841660009081526008602052604081209061292c6001856135ea565b63ffffffff1663ffffffff168152602001908152602001600020600101545b905060006129598285612716565b905061204d85848484612d12565b505050565b6001600160a01b0382811660008181526007602052604080822054600b5491516370a0823160e01b8152600481019490945284169391929116906370a082319060240160206040518083038186803b1580156129c757600080fd5b505afa1580156129db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129ff91906133dc565b6001600160a01b0385811660008181526007602052604080822080546001600160a01b031916898616908117909155905194955093928616927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4612a67828483612808565b50505050565b60128054600160a01b60ff60a01b199091168117909155600b805461ffff60a01b198116909155306000908152600160205260408120549290910461ffff169190612ab6611c0f565b9050808211612ac55781612ac7565b805b9150600f548210612b5b57600f546000612ae282600261242d565b90506000612af08383612439565b905047612afc83612eb4565b6000612b084783612439565b9050612b148382613031565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a150505050505b5050600b805461ffff909216600160a01b0261ffff60a01b199092169190911790556012805460ff60a01b19169055565b6001600160a01b038316612bf05760405162461bcd60e51b815260206004820152602560248201527f42455032303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016110e1565b6001600160a01b038216612c525760405162461bcd60e51b815260206004820152602360248201527f42455032303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016110e1565b612c8f8160405180606001604052806026815260200161371f602691396001600160a01b03861660009081526001602052604090205491906126ea565b6001600160a01b038085166000908152600160205260408082209390935590841681522054612cbe9082612716565b6001600160a01b0380841660008181526001602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906124149085815260200190565b6000612d364360405180606001604052806034815260200161376a603491396130f4565b905060008463ffffffff16118015612d9057506001600160a01b038516600090815260086020526040812063ffffffff831691612d746001886135ea565b63ffffffff908116825260208201929092526040016000205416145b15612dd9576001600160a01b03851660009081526008602052604081208391612dba6001886135ea565b63ffffffff168152602081019190915260400160002060010155612e69565b60408051808201825263ffffffff838116825260208083018681526001600160a01b038a166000908152600883528581208a851682529092529390209151825463ffffffff191691161781559051600191820155612e38908590613555565b6001600160a01b0386166000908152600960205260409020805463ffffffff191663ffffffff929092169190911790555b60408051848152602081018490526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612ef757634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201810191909152601054604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b158015612f4b57600080fd5b505afa158015612f5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f839190613140565b81600181518110612fa457634e487b7160e01b600052603260045260246000fd5b6001600160a01b039283166020918202929092010152601054612fca91309116846122fc565b60105460405163791ac94760e01b81526001600160a01b039091169063791ac947906130039085906000908690309042906004016134cd565b600060405180830381600087803b15801561301d57600080fd5b505af115801561204d573d6000803e3d6000fd5b6010546130499030906001600160a01b0316846122fc565b60105460115460405163f305d71960e01b81523060048201526024810185905260006044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c4016060604051808303818588803b1580156130b457600080fd5b505af11580156130c8573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906130ed91906133f4565b5050505050565b600081640100000000841061311c5760405162461bcd60e51b81526004016110e19190613421565b509192915050565b600060208284031215613135578081fd5b8135611047816136d3565b600060208284031215613151578081fd5b8151611047816136d3565b6000806040838503121561316e578081fd5b8235613179816136d3565b91506020830135613189816136d3565b809150509250929050565b6000806000606084860312156131a8578081fd5b83356131b3816136d3565b925060208401356131c3816136d3565b929592945050506040919091013590565b600080604083850312156131e6578182fd5b82356131f1816136d3565b91506020830135613189816136e8565b60008060408385031215613213578182fd5b823561321e816136d3565b946020939093013593505050565b60008060008060008060c08789031215613244578182fd5b863561324f816136d3565b95506020870135945060408701359350606087013560ff81168114613272578283fd5b9598949750929560808101359460a0909101359350915050565b6000806040838503121561329e578182fd5b82356132a9816136d3565b9150602083013563ffffffff81168114613189578182fd5b6000602082840312156132d2578081fd5b8135611047816136e8565b6000602082840312156132ee578081fd5b8151611047816136e8565b60006020828403121561330a578081fd5b815167ffffffffffffffff80821115613321578283fd5b818401915084601f830112613334578283fd5b815181811115613346576133466136bd565b604051601f8201601f19908116603f0116810190838211818310171561336e5761336e6136bd565b81604052828152876020848701011115613386578586fd5b61339783602083016020880161360f565b979650505050505050565b6000602082840312156133b3578081fd5b813561ffff81168114611047578182fd5b6000602082840312156133d5578081fd5b5035919050565b6000602082840312156133ed578081fd5b5051919050565b600080600060608486031215613408578081fd5b8351925060208401519150604084015190509250925092565b602081526000825180602084015261344081604085016020870161360f565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526024908201527f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260408201526330ba37b960e11b606082015260800190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b8181101561351c5784516001600160a01b0316835293830193918301916001016134f7565b50506001600160a01b03969096166060850152505050608001529392505050565b6000821982111561355057613550613691565b500190565b600063ffffffff80831681851680830382111561357457613574613691565b01949350505050565b60008261358c5761358c6136a7565b500490565b600063ffffffff808416806135a8576135a86136a7565b92169190910492915050565b60008160001904831182151516156135ce576135ce613691565b500290565b6000828210156135e5576135e5613691565b500390565b600063ffffffff8381169083168181101561360757613607613691565b039392505050565b60005b8381101561362a578181015183820152602001613612565b83811115612a675750506000910152565b600181811c9082168061364f57607f821691505b6020821081141561367057634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561368a5761368a613691565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461138b57600080fd5b801515811461138b57600080fdfe42455032303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636542455032303a207472616e7366657220616d6f756e7420657863656564732062616c616e636542455032303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f42554c4c3a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473a2646970667358221220c8a712814107a0becf63c425dc1b27192379b0c6a514e465a4e65f4f15532cc964736f6c63430008040033
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.