ERC-20
Overview
Max Total Supply
100,000,000,000 FLINK
Holders
57
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
900,000,000 FLINKValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
FlokiLINK
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 2000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: Unlicensed pragma solidity ^0.8.4; //////////////////////////////// ///////////// ERC ////////////// //////////////////////////////// /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return payable(msg.sender); } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } /** * @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; } } interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `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); } /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-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 ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; 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_) { _name = name_; _symbol = symbol_; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * 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 virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: 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 {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _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 {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); 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), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: 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 virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _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 virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: 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 internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal virtual { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } //////////////////////////////// ////////// Dividend //////////// //////////////////////////////// /* @title Dividend-Paying Token Interface @author Roger Wu (https://github.com/roger-wu) @dev An interface for a dividend-paying token contract. */ interface IDividendPayingToken { /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function dividendOf(address _owner) external view returns(uint256); /// @notice Distributes ether to token holders as dividends. /// @dev SHOULD distribute the paid ether to token holders as dividends. /// SHOULD NOT directly transfer ether to token holders in this function. /// MUST emit a `DividendsDistributed` event when the amount of distributed ether is greater than 0. function distributeDividends() external payable; /// @notice Withdraws the ether distributed to the sender. /// @dev SHOULD transfer `dividendOf(msg.sender)` wei to `msg.sender`, and `dividendOf(msg.sender)` SHOULD be 0 after the transfer. /// MUST emit a `DividendWithdrawn` event if the amount of ether transferred is greater than 0. function withdrawDividend() external; /// @dev This event MUST emit when ether is distributed to token holders. /// @param from The address which sends ether to this contract. /// @param weiAmount The amount of distributed ether in wei. event DividendsDistributed( address indexed from, uint256 weiAmount ); /// @dev This event MUST emit when an address withdraws their dividend. /// @param to The address which withdraws ether from this contract. /// @param weiAmount The amount of withdrawn ether in wei. event DividendWithdrawn( address indexed to, uint256 weiAmount ); } /* @title Dividend-Paying Token Optional Interface @author Roger Wu (https://github.com/roger-wu) @dev OPTIONAL functions for a dividend-paying token contract. */ interface IDividendPayingTokenOptional { /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function withdrawableDividendOf(address _owner) external view returns(uint256); /// @notice View the amount of dividend in wei that an address has withdrawn. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has withdrawn. function withdrawnDividendOf(address _owner) external view returns(uint256); /// @notice View the amount of dividend in wei that an address has earned in total. /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner) /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has earned in total. function accumulativeDividendOf(address _owner) external view returns(uint256); } /* @title Dividend-Paying Token @author Roger Wu (https://github.com/roger-wu) @dev A mintable ERC20 token that allows anyone to pay and distribute ether to token holders as dividends and allows token holders to withdraw their dividends. Reference: the source code of PoWH3D: https://etherscan.io/address/0xB3775fB83F7D12A36E0475aBdD1FCA35c091efBe#code */ contract DividendPayingToken is ERC20, IDividendPayingToken, IDividendPayingTokenOptional { using SafeMath for uint256; using SafeMathUint for uint256; using SafeMathInt for int256; // With `magnitude`, we can properly distribute dividends even if the amount of received ether is small. // For more discussion about choosing the value of `magnitude`, // see https://github.com/ethereum/EIPs/issues/1726#issuecomment-472352728 uint256 constant internal magnitude = 2**128; uint256 internal magnifiedDividendPerShare; uint256 internal lastAmount; address public dividendToken = 0x514910771AF9Ca656af840dff83E8264EcF986CA; // About dividendCorrection: // If the token balance of a `_user` is never changed, the dividend of `_user` can be computed with: // `dividendOf(_user) = dividendPerShare * balanceOf(_user)`. // When `balanceOf(_user)` is changed (via minting/burning/transferring tokens), // `dividendOf(_user)` should not be changed, // but the computed value of `dividendPerShare * balanceOf(_user)` is changed. // To keep the `dividendOf(_user)` unchanged, we add a correction term: // `dividendOf(_user) = dividendPerShare * balanceOf(_user) + dividendCorrectionOf(_user)`, // where `dividendCorrectionOf(_user)` is updated whenever `balanceOf(_user)` is changed: // `dividendCorrectionOf(_user) = dividendPerShare * (old balanceOf(_user)) - (new balanceOf(_user))`. // So now `dividendOf(_user)` returns the same value before and after `balanceOf(_user)` is changed. mapping(address => int256) internal magnifiedDividendCorrections; mapping(address => uint256) internal withdrawnDividends; uint256 public totalDividendsDistributed; constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol) { } receive() external payable { } /// @notice Distributes ether to token holders as dividends. /// @dev It reverts if the total supply of tokens is 0. /// It emits the `DividendsDistributed` event if the amount of received ether is greater than 0. /// About undistributed ether: /// In each distribution, there is a small amount of ether not distributed, /// the magnified amount of which is /// `(msg.value * magnitude) % totalSupply()`. /// With a well-chosen `magnitude`, the amount of undistributed ether /// (de-magnified) in a distribution can be less than 1 wei. /// We can actually keep track of the undistributed ether in a distribution /// and try to distribute it in the next distribution, /// but keeping track of such data on-chain costs much more than /// the saved ether, so we don't do that. function distributeDividends() public override payable { require(totalSupply() > 0); if (msg.value > 0) { magnifiedDividendPerShare = magnifiedDividendPerShare.add( (msg.value).mul(magnitude) / totalSupply() ); emit DividendsDistributed(msg.sender, msg.value); totalDividendsDistributed = totalDividendsDistributed.add(msg.value); } } function distributeDividends(uint256 amount) public { require(totalSupply() > 0); if (amount > 0) { magnifiedDividendPerShare = magnifiedDividendPerShare.add( (amount).mul(magnitude) / totalSupply() ); emit DividendsDistributed(msg.sender, amount); totalDividendsDistributed = totalDividendsDistributed.add(amount); } } /// @notice Withdraws the ether distributed to the sender. /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0. function withdrawDividend() public virtual override { _withdrawDividendOfUser(payable(msg.sender)); } function setDividendTokenAddress(address newToken) public { dividendToken = newToken; } /// @notice Withdraws the ether distributed to the sender. /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0. function _withdrawDividendOfUser(address payable user) internal returns (uint256) { uint256 _withdrawableDividend = withdrawableDividendOf(user); if (_withdrawableDividend > 0) { withdrawnDividends[user] = withdrawnDividends[user].add(_withdrawableDividend); emit DividendWithdrawn(user, _withdrawableDividend); bool success = IERC20(dividendToken).transfer(user, _withdrawableDividend); if(!success) { withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend); return 0; } return _withdrawableDividend; } return 0; } /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function dividendOf(address _owner) public view override returns(uint256) { return withdrawableDividendOf(_owner); } /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function withdrawableDividendOf(address _owner) public view override returns(uint256) { return accumulativeDividendOf(_owner).sub(withdrawnDividends[_owner]); } /// @notice View the amount of dividend in wei that an address has withdrawn. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has withdrawn. function withdrawnDividendOf(address _owner) public view override returns(uint256) { return withdrawnDividends[_owner]; } /// @notice View the amount of dividend in wei that an address has earned in total. /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner) /// = (magnifiedDividendPerShare * balanceOf(_owner) + magnifiedDividendCorrections[_owner]) / magnitude /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has earned in total. function accumulativeDividendOf(address _owner) public view override returns(uint256) { return magnifiedDividendPerShare.mul(balanceOf(_owner)).toInt256Safe() .add(magnifiedDividendCorrections[_owner]).toUint256Safe() / magnitude; } /// @dev Internal function that transfer tokens from one address to another. /// Update magnifiedDividendCorrections to keep dividends unchanged. /// @param from The address to transfer from. /// @param to The address to transfer to. /// @param value The amount to be transferred. function _transfer(address from, address to, uint256 value) internal virtual override { require(false); int256 _magCorrection = magnifiedDividendPerShare.mul(value).toInt256Safe(); magnifiedDividendCorrections[from] = magnifiedDividendCorrections[from].add(_magCorrection); magnifiedDividendCorrections[to] = magnifiedDividendCorrections[to].sub(_magCorrection); } /// @dev Internal function that mints tokens to an account. /// Update magnifiedDividendCorrections to keep dividends unchanged. /// @param account The account that will receive the created tokens. /// @param value The amount that will be created. function _mint(address account, uint256 value) internal override { super._mint(account, value); magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account] .sub( (magnifiedDividendPerShare.mul(value)).toInt256Safe() ); } /// @dev Internal function that burns an amount of the token of a given account. /// Update magnifiedDividendCorrections to keep dividends unchanged. /// @param account The account whose tokens will be burnt. /// @param value The amount that will be burnt. function _burn(address account, uint256 value) internal override { super._burn(account, value); magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account] .add( (magnifiedDividendPerShare.mul(value)).toInt256Safe() ); } function _setBalance(address account, uint256 newBalance) internal { uint256 currentBalance = balanceOf(account); if(newBalance > currentBalance) { uint256 mintAmount = newBalance.sub(currentBalance); _mint(account, mintAmount); } else if(newBalance < currentBalance) { uint256 burnAmount = currentBalance.sub(newBalance); _burn(account, burnAmount); } } } //////////////////////////////// ///////// Interfaces /////////// //////////////////////////////// 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; } interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; } 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); } 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; } //////////////////////////////// ////////// Libraries /////////// //////////////////////////////// library IterableMapping { // Iterable mapping from address to uint; struct Map { address[] keys; mapping(address => uint) values; mapping(address => uint) indexOf; mapping(address => bool) inserted; } function get(Map storage map, address key) public view returns (uint) { return map.values[key]; } function getIndexOfKey(Map storage map, address key) public view returns (int) { if(!map.inserted[key]) { return -1; } return int(map.indexOf[key]); } function getKeyAtIndex(Map storage map, uint index) public view returns (address) { return map.keys[index]; } function size(Map storage map) public view returns (uint) { return map.keys.length; } function set(Map storage map, address key, uint val) public { if (map.inserted[key]) { map.values[key] = val; } else { map.inserted[key] = true; map.values[key] = val; map.indexOf[key] = map.keys.length; map.keys.push(key); } } function remove(Map storage map, address key) public { if (!map.inserted[key]) { return; } delete map.inserted[key]; delete map.values[key]; uint index = map.indexOf[key]; uint lastIndex = map.keys.length - 1; address lastKey = map.keys[lastIndex]; map.indexOf[lastKey] = index; delete map.indexOf[key]; map.keys[index] = lastKey; map.keys.pop(); } } /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } } /** * @title SafeMathInt * @dev Math operations with safety checks that revert on error * @dev SafeMath adapted for int256 * Based on code of https://github.com/RequestNetwork/requestNetwork/blob/master/packages/requestNetworkSmartContracts/contracts/base/math/SafeMathInt.sol */ library SafeMathInt { function mul(int256 a, int256 b) internal pure returns (int256) { // Prevent overflow when multiplying INT256_MIN with -1 // https://github.com/RequestNetwork/requestNetwork/issues/43 require(!(a == - 2**255 && b == -1) && !(b == - 2**255 && a == -1)); int256 c = a * b; require((b == 0) || (c / b == a)); return c; } function div(int256 a, int256 b) internal pure returns (int256) { // Prevent overflow when dividing INT256_MIN by -1 // https://github.com/RequestNetwork/requestNetwork/issues/43 require(!(a == - 2**255 && b == -1) && (b > 0)); return a / b; } function sub(int256 a, int256 b) internal pure returns (int256) { require((b >= 0 && a - b <= a) || (b < 0 && a - b > a)); return a - b; } function add(int256 a, int256 b) internal pure returns (int256) { int256 c = a + b; require((b >= 0 && c >= a) || (b < 0 && c < a)); return c; } function toUint256Safe(int256 a) internal pure returns (uint256) { require(a >= 0); return uint256(a); } } /** * @title SafeMathUint * @dev Math operations with safety checks that revert on error */ library SafeMathUint { function toInt256Safe(uint256 a) internal pure returns (int256) { int256 b = int256(a); require(b >= 0); return b; } } //////////////////////////////// /////////// Tokens ///////////// //////////////////////////////// contract FlokiLINK is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public uniswapV2Router; address public immutable uniswapV2Pair; address public _dividendToken = 0x514910771AF9Ca656af840dff83E8264EcF986CA; // chain link address public immutable deadAddress = 0x000000000000000000000000000000000000dEaD; bool private swapping; bool public tradingIsEnabled = false; bool public buyBackEnabled = false; bool public buyBackRandomEnabled = true; mapping(address => bool) public _isBlacklisted; FlokiLINKDividendTracker public dividendTracker; address public buyBackWallet = 0x5DF7779714Db87f670707f1F5e36d6A1f1B4dAd0; uint256 public maxBuyTranscationAmount = 1000000000 * (10**18); uint256 public maxSellTransactionAmount = 1000000000 * (10**18); uint256 public swapTokensAtAmount = 10000000 * (10**18); uint256 public maxWalletToken = 1000000000 * (10**18); // 2% of total supply uint256 public dividendRewardsFee= 6; uint256 public treasuryFee =2; uint256 public liquidityFee =2; uint256 public totalFees = dividendRewardsFee.add(treasuryFee).add(liquidityFee); // sells have fees of 12 and 6 (10 * 1.2 and 5 * 1.2) uint256 public sellFeeIncreaseFactor = 130; uint256 public treasuryDivisor = 30; uint256 public _buyBackMultiplier = 100; // use by default 300,000 gas to process auto-claiming dividends uint256 public gasForProcessing = 300000; address public presaleAddress = address(0); bool public walletToWalletTransfer = false; // exlcude from fees and max transaction amount mapping (address => bool) private _isExcludedFromFees; mapping (address => bool) public _isExcludedMaxSellTFransactionAmount; // store addresses that a automatic market maker pairs. Any transfer *to* these addresses // could be subject to a maximum transfer amount mapping (address => bool) public automatedMarketMakerPairs; event UpdateDividendTracker(address indexed newAddress, address indexed oldAddress); event UpdateUniswapV2Router(address indexed newAddress, address indexed oldAddress); event BuyBackEnabledUpdated(bool enabled); event BuyBackRandomEnabledUpdated(bool enabled); event SwapAndLiquifyEnabledUpdated(bool enabled); event ExcludeFromFees(address indexed account, bool isExcluded); event ExcludeMultipleAccountsFromFees(address[] accounts, bool isExcluded); event ExcludedMaxSellTransactionAmount(address indexed account, bool isExcluded); event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value); event BuyBackWalletUpdated(address indexed newLiquidityWallet, address indexed oldLiquidityWallet); event GasForProcessingUpdated(uint256 indexed newValue, uint256 indexed oldValue); event SwapAndLiquify( uint256 tokensSwapped, uint256 ethReceived, uint256 tokensIntoLiqudity ); event SendDividends( uint256 tokensSwapped, uint256 amount ); event SwapETHForTokens( uint256 amountIn, address[] path ); event ProcessedDividendTracker( uint256 iterations, uint256 claims, uint256 lastProcessedIndex, bool indexed automatic, uint256 gas, address indexed processor ); constructor() ERC20("FlokiLINK", "FLINK") { dividendTracker = new FlokiLINKDividendTracker(); IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); //0x9Ac64Cc6e4415144C455BD8E4837Fea55603e5c3 // Create a uniswap pair for this new token address _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()) .createPair(address(this), _uniswapV2Router.WETH()); uniswapV2Router = _uniswapV2Router; uniswapV2Pair = _uniswapV2Pair; _setAutomatedMarketMakerPair(_uniswapV2Pair, true); // exclude from receiving dividends dividendTracker.excludeFromDividends(address(dividendTracker)); dividendTracker.excludeFromDividends(address(this)); dividendTracker.excludeFromDividends(address(_uniswapV2Router)); // exclude from paying fees or having max transaction amount excludeFromFees(buyBackWallet, true); excludeFromFees(address(this), true); excludeFromFees(owner(), true); /* _mint is an internal function in ERC20.sol that is only called here, and CANNOT be called ever again */ _mint(owner(), 100000000000 * (10**18)); } receive() external payable { } function whitelistDxSale(address _presaleAddress, address _routerAddress) public onlyOwner { presaleAddress = _presaleAddress; dividendTracker.excludeFromDividends(_presaleAddress); excludeFromFees(_presaleAddress, true); dividendTracker.excludeFromDividends(_routerAddress); excludeFromFees(_routerAddress, true); } function setMaxBuyTransaction(uint256 maxTxn) external onlyOwner { maxBuyTranscationAmount = maxTxn * (10**18); } function setMaxSellTransaction(uint256 maxTxn) external onlyOwner { maxSellTransactionAmount = maxTxn * (10**18); } function setMaxWalletToken(uint256 maxToken) external onlyOwner { maxWalletToken = maxToken * (10**18); } function setSellTransactionMultiplier(uint256 multiplier) external onlyOwner { require(multiplier >= 100 && multiplier <= 500, "FlokiLINK: Sell transaction multipler must be between 100 (1x) and 500 (5x)"); sellFeeIncreaseFactor = multiplier; } function setTreasuryDivisor(uint256 divisor) external onlyOwner { require(treasuryDivisor >= 0 && treasuryDivisor <= 100, "FlokiLINK: Treasury divisor must be between 0 (0%) and 100 (100%)"); treasuryDivisor = divisor; } function prepareForPreSale() external onlyOwner { setTradingIsEnabled(false); dividendRewardsFee = 0; treasuryFee = 0; maxBuyTranscationAmount = 1000000000 * (10**18); maxWalletToken = 1000000000 * (10**18); maxSellTransactionAmount = 1000000000 * (10**18); } function afterPreSale() external onlyOwner { dividendRewardsFee = 6; treasuryFee = 2; liquidityFee = 2; maxBuyTranscationAmount = 1000000000 * (10**18); maxWalletToken = 1000000000 * (10**18); setTradingIsEnabled(true); maxSellTransactionAmount = 1000000000 * (10**18); } function setTradingIsEnabled(bool _enabled) public onlyOwner { tradingIsEnabled = _enabled; emit SwapAndLiquifyEnabledUpdated(_enabled); } function setWalletToWalletTransferEnabled(bool _enabled) public onlyOwner { walletToWalletTransfer = _enabled; emit SwapAndLiquifyEnabledUpdated(_enabled); } function setBuyBackEnabled(bool _enabled) public onlyOwner { buyBackEnabled = _enabled; emit BuyBackEnabledUpdated(_enabled); } function setBuyBackRandomEnabled(bool _enabled) public onlyOwner { buyBackRandomEnabled = _enabled; emit BuyBackRandomEnabledUpdated(_enabled); } function triggerBuyBack(uint256 amount) public onlyOwner { require(!swapping, "FlokiLINK: A swapping process is currently running, wait till that is complete"); uint256 buyBackBalance = address(this).balance; swapBNBForTokens(buyBackBalance.div(10**2).mul(amount)); } function updateDividendTracker(address newAddress) public onlyOwner { require(newAddress != address(dividendTracker), "FlokiLINK: The dividend tracker already has that address"); FlokiLINKDividendTracker newDividendTracker = FlokiLINKDividendTracker(payable(newAddress)); require(newDividendTracker.owner() == address(this), "FlokiLINK: The new dividend tracker must be owned by the FLOKIBUSD token contract"); newDividendTracker.excludeFromDividends(address(newDividendTracker)); newDividendTracker.excludeFromDividends(address(this)); newDividendTracker.excludeFromDividends(address(uniswapV2Router)); emit UpdateDividendTracker(newAddress, address(dividendTracker)); dividendTracker = newDividendTracker; } function updateDividendRewardFee(uint8 newFee) public onlyOwner { require(newFee >= 0 && newFee <= 10, "FlokiLINK: Dividend reward tax must be between 0 and 10"); dividendRewardsFee = newFee; } function updateTreasuryFee(uint8 newFee) public onlyOwner { require(newFee >= 0 && newFee <= 10, "FlokiLINK: Dividend reward tax must be between 0 and 10"); treasuryFee = newFee; } function updateUniswapV2Router(address newAddress) public onlyOwner { require(newAddress != address(uniswapV2Router), "FlokiLINK: The router already has that address"); emit UpdateUniswapV2Router(newAddress, address(uniswapV2Router)); uniswapV2Router = IUniswapV2Router02(newAddress); } function excludeFromFees(address account, bool excluded) public onlyOwner { require(_isExcludedFromFees[account] != excluded, "FlokiLINK: Account is already the value of 'excluded'"); _isExcludedFromFees[account] = excluded; emit ExcludeFromFees(account, excluded); } function excludeMultipleAccountsFromFees(address[] calldata accounts, bool excluded) public onlyOwner { for(uint256 i = 0; i < accounts.length; i++) { _isExcludedFromFees[accounts[i]] = excluded; } emit ExcludeMultipleAccountsFromFees(accounts, excluded); } function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner { require(pair != uniswapV2Pair, "FlokiLINK: The PancakeSwap pair cannot be removed from automatedMarketMakerPairs"); _setAutomatedMarketMakerPair(pair, value); } function _setAutomatedMarketMakerPair(address pair, bool value) private { require(automatedMarketMakerPairs[pair] != value, "FlokiLINK: Automated market maker pair is already set to that value"); automatedMarketMakerPairs[pair] = value; if(value) { dividendTracker.excludeFromDividends(pair); } emit SetAutomatedMarketMakerPair(pair, value); } function updateBuyBackWallet(address newBuyBackWallet) public onlyOwner { require(newBuyBackWallet != buyBackWallet, "FlokiLINK: The liquidity wallet is already this address"); excludeFromFees(newBuyBackWallet, true); buyBackWallet = newBuyBackWallet; emit BuyBackWalletUpdated(newBuyBackWallet, buyBackWallet); } function updateGasForProcessing(uint256 newValue) public onlyOwner { require(newValue >= 200000 && newValue <= 500000, "FlokiLINK: gasForProcessing must be between 200,000 and 500,000"); require(newValue != gasForProcessing, "FlokiLINK: Cannot update gasForProcessing to same value"); emit GasForProcessingUpdated(newValue, gasForProcessing); gasForProcessing = newValue; } function updateClaimWait(uint256 claimWait) external onlyOwner { dividendTracker.updateClaimWait(claimWait); } function getClaimWait() external view returns(uint256) { return dividendTracker.claimWait(); } function getTotalDividendsDistributed() external view returns (uint256) { return dividendTracker.totalDividendsDistributed(); } function isExcludedFromFees(address account) public view returns(bool) { return _isExcludedFromFees[account]; } function withdrawableDividendOf(address account) public view returns(uint256) { return dividendTracker.withdrawableDividendOf(account); } function dividendTokenBalanceOf(address account) public view returns (uint256) { return dividendTracker.balanceOf(account); } function getAccountDividendsInfo(address account) external view returns ( address, int256, int256, uint256, uint256, uint256, uint256, uint256) { return dividendTracker.getAccount(account); } function getAccountDividendsInfoAtIndex(uint256 index) external view returns ( address, int256, int256, uint256, uint256, uint256, uint256, uint256) { return dividendTracker.getAccountAtIndex(index); } function processDividendTracker(uint256 gas) external { (uint256 iterations, uint256 claims, uint256 lastProcessedIndex) = dividendTracker.process(gas); emit ProcessedDividendTracker(iterations, claims, lastProcessedIndex, false, gas, tx.origin); } function claim() external { dividendTracker.processAccount(payable(msg.sender), false); } function getLastProcessedIndex() external view returns(uint256) { return dividendTracker.getLastProcessedIndex(); } function rand() public view returns(uint256) { uint256 seed = uint256( keccak256( abi.encodePacked( block.timestamp + block.difficulty + ((uint256(keccak256(abi.encodePacked(block.coinbase)))) / (block.timestamp)) + block.gaslimit + ((uint256(keccak256(abi.encodePacked(msg.sender)))) / (block.timestamp)) + block.number) ) ); uint256 randNumber = (seed - ((seed / 100) * 100)); if (randNumber == 0) { randNumber += 1; return randNumber; } else { return randNumber; } } function getNumberOfDividendTokenHolders() external view returns(uint256) { return dividendTracker.getNumberOfTokenHolders(); } function blacklistAddress(address account, bool value) external onlyOwner { _isBlacklisted[account] = value; } function _transfer( address from, address to, uint256 amount ) internal override { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(!_isBlacklisted[from] && !_isBlacklisted[to], "Blacklisted address"); if ( tradingIsEnabled && automatedMarketMakerPairs[from] ) { require( amount <= maxBuyTranscationAmount, "Transfer amount exceeds the maxTxAmount." ); uint256 contractBalanceRecepient = balanceOf(to); require( contractBalanceRecepient + amount <= maxWalletToken, "Exceeds maximum wallet token amount." ); } else if ( tradingIsEnabled && automatedMarketMakerPairs[to] ) { require(amount <= maxSellTransactionAmount, "Sell transfer amount exceeds the maxSellTransactionAmount."); uint256 contractTokenBalance = balanceOf(address(this)); bool canSwap = contractTokenBalance >= swapTokensAtAmount; if (!swapping && canSwap) { swapping = true; uint256 tokensForLp = contractTokenBalance.mul(liquidityFee).div(totalFees); swapAndLiquify(tokensForLp); uint256 swapTokens = contractTokenBalance.mul(treasuryFee).div(totalFees); swapTokensForBNB(swapTokens); transferToBuyBackWallet(payable(buyBackWallet), address(this).balance.div(10**2).mul(treasuryDivisor)); uint256 buyBackBalance = address(this).balance; if (buyBackEnabled && buyBackBalance > uint256(1 * 10**18)) { swapBNBForTokens(buyBackBalance.div(10**2).mul(rand())); } if (_dividendToken == uniswapV2Router.WETH()) { uint256 sellTokens = balanceOf(address(this)); swapAndSendDividendsInBNB(sellTokens); } else { uint256 sellTokens = balanceOf(address(this)); swapAndSendDividends(sellTokens); } swapping = false; } } bool takeFee = tradingIsEnabled && !swapping; if(takeFee) { uint256 fees = amount.div(100).mul(totalFees); // if sell, multiply by 1.2 if(automatedMarketMakerPairs[to]) { fees = fees.div(100).mul(sellFeeIncreaseFactor); } amount = amount.sub(fees); super._transfer(from, address(this), fees); } super._transfer(from, to, amount); try dividendTracker.setBalance(payable(from), balanceOf(from)) {} catch {} try dividendTracker.setBalance(payable(to), balanceOf(to)) {} catch {} if(!swapping) { uint256 gas = gasForProcessing; try dividendTracker.process(gas) returns (uint256 iterations, uint256 claims, uint256 lastProcessedIndex) { emit ProcessedDividendTracker(iterations, claims, lastProcessedIndex, true, gas, tx.origin); } catch { } } } function swapAndLiquify(uint256 tokens) private { // split the contract balance into halves uint256 half = tokens.div(2); uint256 otherHalf = tokens.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 swapTokensForBNB(half); // <- this breaks the ETH -> HATE swap when swap+liquify is triggered // how much ETH did we just swap into? uint256 newBalance = address(this).balance.sub(initialBalance); // add liquidity to uniswap addLiquidity(otherHalf, newBalance); emit SwapAndLiquify(half, newBalance, otherHalf); } function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private { // approve token transfer to cover all possible scenarios _approve(address(this), address(uniswapV2Router), tokenAmount); // add the liquidity uniswapV2Router.addLiquidityETH{value: ethAmount}( address(this), tokenAmount, 0, // slippage is unavoidable 0, // slippage is unavoidable address(0), block.timestamp ); } function swapTokensForBNB(uint256 tokenAmount) private { // generate the uniswap pair path of token -> weth address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); _approve(address(this), address(uniswapV2Router), tokenAmount); // make the swap uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // accept any amount of ETH path, address(this), block.timestamp ); } function swapBNBForTokens(uint256 amount) private { // generate the uniswap pair path of token -> weth address[] memory path = new address[](2); path[0] = uniswapV2Router.WETH(); path[1] = address(this); // make the swap uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}( 0, // accept any amount of Tokens path, deadAddress, // Burn address block.timestamp.add(300) ); emit SwapETHForTokens(amount, path); } function swapTokensForDividendToken(uint256 tokenAmount, address recipient) private { // generate the uniswap pair path of weth -> busd address[] memory path = new address[](3); path[0] = address(this); path[1] = uniswapV2Router.WETH(); path[2] = _dividendToken; _approve(address(this), address(uniswapV2Router), tokenAmount); // make the swap uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens( tokenAmount, 0, // accept any amount of dividend token path, recipient, block.timestamp ); } function swapAndSendDividends(uint256 tokens) private { swapTokensForDividendToken(tokens, address(this)); uint256 dividends = IERC20(_dividendToken).balanceOf(address(this)); bool success = IERC20(_dividendToken).transfer(address(dividendTracker), dividends); if (success) { dividendTracker.distributeDividends(dividends); emit SendDividends(tokens, dividends); } } function swapAndSendDividendsInBNB(uint256 tokens) private { uint256 currentBNBBalance = address(this).balance; swapTokensForBNB(tokens); uint256 newBNBBalance = address(this).balance; uint256 dividends = newBNBBalance.sub(currentBNBBalance); (bool success,) = address(dividendTracker).call{value: dividends}(""); if (success) { dividendTracker.distributeDividends(dividends); emit SendDividends(tokens, dividends); } } function transferToBuyBackWallet(address payable recipient, uint256 amount) private { recipient.transfer(amount); } } contract FlokiLINKDividendTracker is DividendPayingToken, Ownable { using SafeMath for uint256; using SafeMathInt for int256; using IterableMapping for IterableMapping.Map; IterableMapping.Map private tokenHoldersMap; uint256 public lastProcessedIndex; mapping (address => bool) public excludedFromDividends; mapping (address => uint256) public lastClaimTimes; uint256 public claimWait; uint256 public immutable minimumTokenBalanceForDividends; event ExcludeFromDividends(address indexed account); event ClaimWaitUpdated(uint256 indexed newValue, uint256 indexed oldValue); event Claim(address indexed account, uint256 amount, bool indexed automatic); constructor() DividendPayingToken("FlokiLINK_Dividend_Tracker", "FlokiLINK_Dividend_Tracker") { claimWait = 3600; minimumTokenBalanceForDividends = 10000 * (10**18); //must hold 10000+ tokens } function _transfer(address, address, uint256) pure internal override { require(false, "FlokiLINK_Dividend_Tracker: No transfers allowed"); } function withdrawDividend() pure public override { require(false, "FlokiLINK_Dividend_Tracker: withdrawDividend disabled. Use the 'claim' function on the main FlokiLINK contract."); } function excludeFromDividends(address account) external onlyOwner { require(!excludedFromDividends[account]); excludedFromDividends[account] = true; _setBalance(account, 0); tokenHoldersMap.remove(account); emit ExcludeFromDividends(account); } function updateClaimWait(uint256 newClaimWait) external onlyOwner { require(newClaimWait >= 3600 && newClaimWait <= 86400, "FlokiLINK_Dividend_Tracker: claimWait must be updated to between 1 and 24 hours"); require(newClaimWait != claimWait, "FlokiLINK_Dividend_Tracker: Cannot update claimWait to same value"); emit ClaimWaitUpdated(newClaimWait, claimWait); claimWait = newClaimWait; } function getLastProcessedIndex() external view returns(uint256) { return lastProcessedIndex; } function getNumberOfTokenHolders() external view returns(uint256) { return tokenHoldersMap.keys.length; } function getAccount(address _account) public view returns ( address account, int256 index, int256 iterationsUntilProcessed, uint256 withdrawableDividends, uint256 totalDividends, uint256 lastClaimTime, uint256 nextClaimTime, uint256 secondsUntilAutoClaimAvailable) { account = _account; index = tokenHoldersMap.getIndexOfKey(account); iterationsUntilProcessed = -1; if(index >= 0) { if(uint256(index) > lastProcessedIndex) { iterationsUntilProcessed = index.sub(int256(lastProcessedIndex)); } else { uint256 processesUntilEndOfArray = tokenHoldersMap.keys.length > lastProcessedIndex ? tokenHoldersMap.keys.length.sub(lastProcessedIndex) : 0; iterationsUntilProcessed = index.add(int256(processesUntilEndOfArray)); } } withdrawableDividends = withdrawableDividendOf(account); totalDividends = accumulativeDividendOf(account); lastClaimTime = lastClaimTimes[account]; nextClaimTime = lastClaimTime > 0 ? lastClaimTime.add(claimWait) : 0; secondsUntilAutoClaimAvailable = nextClaimTime > block.timestamp ? nextClaimTime.sub(block.timestamp) : 0; } function getAccountAtIndex(uint256 index) public view returns ( address, int256, int256, uint256, uint256, uint256, uint256, uint256) { if(index >= tokenHoldersMap.size()) { return (0x0000000000000000000000000000000000000000, -1, -1, 0, 0, 0, 0, 0); } address account = tokenHoldersMap.getKeyAtIndex(index); return getAccount(account); } function canAutoClaim(uint256 lastClaimTime) private view returns (bool) { if(lastClaimTime > block.timestamp) { return false; } return block.timestamp.sub(lastClaimTime) >= claimWait; } function setBalance(address payable account, uint256 newBalance) external onlyOwner { if(excludedFromDividends[account]) { return; } if(newBalance >= minimumTokenBalanceForDividends) { _setBalance(account, newBalance); tokenHoldersMap.set(account, newBalance); } else { _setBalance(account, 0); tokenHoldersMap.remove(account); } processAccount(account, true); } function process(uint256 gas) public returns (uint256, uint256, uint256) { uint256 numberOfTokenHolders = tokenHoldersMap.keys.length; if(numberOfTokenHolders == 0) { return (0, 0, lastProcessedIndex); } uint256 _lastProcessedIndex = lastProcessedIndex; uint256 gasUsed = 0; uint256 gasLeft = gasleft(); uint256 iterations = 0; uint256 claims = 0; while(gasUsed < gas && iterations < numberOfTokenHolders) { _lastProcessedIndex++; if(_lastProcessedIndex >= tokenHoldersMap.keys.length) { _lastProcessedIndex = 0; } address account = tokenHoldersMap.keys[_lastProcessedIndex]; if(canAutoClaim(lastClaimTimes[account])) { if(processAccount(payable(account), true)) { claims++; } } iterations++; uint256 newGasLeft = gasleft(); if(gasLeft > newGasLeft) { gasUsed = gasUsed.add(gasLeft.sub(newGasLeft)); } gasLeft = newGasLeft; } lastProcessedIndex = _lastProcessedIndex; return (iterations, claims, lastProcessedIndex); } function processAccount(address payable account, bool automatic) public onlyOwner returns (bool) { uint256 amount = _withdrawDividendOfUser(account); if(amount > 0) { lastClaimTimes[account] = block.timestamp; emit Claim(account, amount, automatic); return true; } return false; } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 2000 }, "evmVersion": "istanbul", "libraries": { "/C/Jay-Desktop-02282021/VSC/ACME/projects/FlokiLINK/contracts/FlokiLINK.sol": { "IterableMapping": "0xc44C98905B8F658FBB418755F4E5e00444d11668" } }, "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":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"BuyBackEnabledUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"BuyBackRandomEnabledUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newLiquidityWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldLiquidityWallet","type":"address"}],"name":"BuyBackWalletUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"accounts","type":"address[]"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeMultipleAccountsFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludedMaxSellTransactionAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"oldValue","type":"uint256"}],"name":"GasForProcessingUpdated","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":"iterations","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"claims","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastProcessedIndex","type":"uint256"},{"indexed":true,"internalType":"bool","name":"automatic","type":"bool"},{"indexed":false,"internalType":"uint256","name":"gas","type":"uint256"},{"indexed":true,"internalType":"address","name":"processor","type":"address"}],"name":"ProcessedDividendTracker","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SendDividends","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPair","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":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"SwapAndLiquifyEnabledUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"address[]","name":"path","type":"address[]"}],"name":"SwapETHForTokens","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":"newAddress","type":"address"},{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"}],"name":"UpdateDividendTracker","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"},{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"}],"name":"UpdateUniswapV2Router","type":"event"},{"inputs":[],"name":"_buyBackMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_dividendToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isBlacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isExcludedMaxSellTFransactionAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"afterPreSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"automatedMarketMakerPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"blacklistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"buyBackEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyBackRandomEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyBackWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deadAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dividendRewardsFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"dividendTokenBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dividendTracker","outputs":[{"internalType":"contract FlokiLINKDividendTracker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeMultipleAccountsFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gasForProcessing","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAccountDividendsInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getAccountDividendsInfoAtIndex","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getClaimWait","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLastProcessedIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumberOfDividendTokenHolders","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalDividendsDistributed","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":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBuyTranscationAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSellTransactionAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWalletToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prepareForPreSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"presaleAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gas","type":"uint256"}],"name":"processDividendTracker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rand","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellFeeIncreaseFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setBuyBackEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setBuyBackRandomEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxTxn","type":"uint256"}],"name":"setMaxBuyTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxTxn","type":"uint256"}],"name":"setMaxSellTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxToken","type":"uint256"}],"name":"setMaxWalletToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"multiplier","type":"uint256"}],"name":"setSellTransactionMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setTradingIsEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"divisor","type":"uint256"}],"name":"setTreasuryDivisor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setWalletToWalletTransferEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingIsEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryDivisor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"triggerBuyBack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newBuyBackWallet","type":"address"}],"name":"updateBuyBackWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"claimWait","type":"uint256"}],"name":"updateClaimWait","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"newFee","type":"uint8"}],"name":"updateDividendRewardFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"updateDividendTracker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"updateGasForProcessing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"newFee","type":"uint8"}],"name":"updateTreasuryFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"updateUniswapV2Router","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"walletToWalletTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_presaleAddress","type":"address"},{"internalType":"address","name":"_routerAddress","type":"address"}],"name":"whitelistDxSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"withdrawableDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c0604052600780546ddead00000000000000000000000060a052600163ffffff0160a01b0319167701000000514910771af9ca656af840dff83e8264ecf986ca179055600a8054735df7779714db87f670707f1f5e36d6a1f1b4dad06001600160a01b03199091161790556b033b2e3c9fd0803ce8000000600b819055600c8190556a084595161401484a000000600d55600e556006600f819055600260108190556011819055620000d891620000c49082620005ac602090811b6200308217901c565b620005ac60201b620030821790919060201c565b6012556082601355601e6014556064601555620493e0601655601780546001600160a81b03191690553480156200010e57600080fd5b506040805180820182526009815268466c6f6b694c494e4b60b81b602080830191825283518085019094526005845264464c494e4b60d81b9084015281519192916200015d91600391620009dd565b50805162000173906004906020840190620009dd565b50506005805460ff191660121790555060006200018d3390565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350604051620001f19062000a6c565b604051809103906000f0801580156200020e573d6000803e3d6000fd5b50600960006101000a8154816001600160a01b0302191690836001600160a01b031602179055506000737a250d5630b4cf539739df2c5dacb4c659f2488d90506000816001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b1580156200028a57600080fd5b505afa1580156200029f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002c5919062000a91565b6001600160a01b031663c9c6539630846001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156200030e57600080fd5b505afa15801562000323573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000349919062000a91565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b1580156200039257600080fd5b505af1158015620003a7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003cd919062000a91565b600680546001600160a01b0319166001600160a01b038516179055606081901b6001600160601b0319166080529050620004098160016200061a565b60095460405163031e79db60e41b81526001600160a01b0390911660048201819052906331e79db090602401600060405180830381600087803b1580156200045057600080fd5b505af115801562000465573d6000803e3d6000fd5b505060095460405163031e79db60e41b81523060048201526001600160a01b0390911692506331e79db09150602401600060405180830381600087803b158015620004af57600080fd5b505af1158015620004c4573d6000803e3d6000fd5b505060095460405163031e79db60e41b81526001600160a01b03868116600483015290911692506331e79db09150602401600060405180830381600087803b1580156200051057600080fd5b505af115801562000525573d6000803e3d6000fd5b5050600a546200054392506001600160a01b03169050600162000789565b6200055030600162000789565b620005746200056c60055461010090046001600160a01b031690565b600162000789565b620005a46200059060055461010090046001600160a01b031690565b6c01431e0fae6d7217caa0000000620008e1565b505062000b1c565b600080620005bb838562000aba565b905083811015620006135760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064015b60405180910390fd5b9392505050565b6001600160a01b0382166000908152601a602052604090205460ff1615158115151415620006bd5760405162461bcd60e51b815260206004820152604360248201527f466c6f6b694c494e4b3a204175746f6d61746564206d61726b6574206d616b6560448201527f72207061697220697320616c72656164792073657420746f20746861742076616064820152626c756560e81b608482015260a4016200060a565b6001600160a01b0382166000908152601a60205260409020805460ff191682158015919091179091556200074d5760095460405163031e79db60e41b81526001600160a01b038481166004830152909116906331e79db090602401600060405180830381600087803b1580156200073357600080fd5b505af115801562000748573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6005546001600160a01b03610100909104163314620007eb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200060a565b6001600160a01b03821660009081526018602052604090205460ff1615158115151415620008825760405162461bcd60e51b815260206004820152603560248201527f466c6f6b694c494e4b3a204163636f756e7420697320616c726561647920746860448201527f652076616c7565206f6620276578636c7564656427000000000000000000000060648201526084016200060a565b6001600160a01b038216600081815260186020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6001600160a01b038216620009395760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016200060a565b6200095581600254620005ac60201b620030821790919060201c565b6002556001600160a01b038216600090815260208181526040909120546200098891839062003082620005ac821b17901c565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b828054620009eb9062000adf565b90600052602060002090601f01602090048101928262000a0f576000855562000a5a565b82601f1062000a2a57805160ff191683800117855562000a5a565b8280016001018555821562000a5a579182015b8281111562000a5a57825182559160200191906001019062000a3d565b5062000a6892915062000a7a565b5090565b6128168062005ae683390190565b5b8082111562000a68576000815560010162000a7b565b60006020828403121562000aa3578081fd5b81516001600160a01b038116811462000613578182fd5b6000821982111562000ada57634e487b7160e01b81526011600452602481fd5b500190565b600181811c9082168062000af457607f821691505b6020821081141562000b1657634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c60a05160601c614f9062000b56600039600081816107260152613eaa01526000818161084601526124ac0152614f906000f3fe60806040526004361061050b5760003560e01c806370a0823111610294578063b62496f51161015e578063dd62ed3e116100d6578063e98030c71161008a578063f2fde38b1161006f578063f2fde38b14610ea7578063fa06c1d214610ec7578063fb7f634a14610ee757600080fd5b8063e98030c714610e67578063f27fd25414610e8757600080fd5b8063e2f45605116100bb578063e2f4560514610e26578063e6c75f7114610e3c578063e7841ec014610e5257600080fd5b8063dd62ed3e14610dc0578063e27ad5eb14610e0657600080fd5b8063c6ca88071161012d578063ce547d3b11610112578063ce547d3b14610d7e578063ceb8886814610d94578063d872a7b514610daa57600080fd5b8063c6ca880714610d48578063cc32d17614610d6857600080fd5b8063b62496f514610ca3578063c024666814610cd3578063c492f04614610cf3578063c5a47b1014610d1357600080fd5b80639a7a23d61161020c578063a8b9d240116101c0578063ad56c13c116101a5578063ad56c13c14610bfe578063b3b5e04314610c63578063b5bc894d14610c8357600080fd5b8063a8b9d24014610bbe578063a9059cbb14610bde57600080fd5b8063a26579ad116101f1578063a26579ad14610b73578063a457c2d714610b88578063a6b6388814610ba857600080fd5b80639a7a23d614610b3d5780639c1b8af514610b5d57600080fd5b80638da5cb5b1161026357806393c8090b1161024857806393c8090b14610af257806395d89b4114610b1257806398118cb414610b2757600080fd5b80638da5cb5b14610aaf57806391d55f4114610ad257600080fd5b806370a0823114610a24578063715018a614610a5a578063871c128d14610a6f57806388bdd9be14610a8f57600080fd5b806330bb4cff116103d55780635134f6ab1161034d57806364b0f653116103015780636843cd84116102e65780636843cd84146109c4578063700bb191146109e4578063702ff2b914610a0457600080fd5b806364b0f6531461098f57806365b8dbc0146109a457600080fd5b806358ab73e11161033257806358ab73e11461091b5780635c38ffe21461093b5780636053a0e31461095b57600080fd5b80635134f6ab146108d65780635403e0d7146108eb57600080fd5b8063455a4396116103a45780634e71d92d116103895780634e71d92d146108685780634e83ff6f1461087d5780634fbee1931461089d57600080fd5b8063455a43961461081457806349bd5a5e1461083457600080fd5b806330bb4cff146107a8578063313ce567146107bd57806339509351146107df5780633b3dca76146107ff57600080fd5b806318160ddd1161048357806323b872dd1161043757806329370cc61161041c57806329370cc6146107485780632c1f5216146107685780632deef2841461078857600080fd5b806323b872dd146106f457806327c8f8351461071457600080fd5b80631cd348c0116104685780631cd348c01461068e5780631cdd3be3146106ae57806322bd3f7f146106de57600080fd5b806318160ddd146106585780631af1d7b31461066d57600080fd5b8063095ea7b3116104da578063122fe685116104bf578063122fe685146105ea57806313114a9d146106225780631694505e1461063857600080fd5b8063095ea7b31461059957806309c58fcd146105c957600080fd5b806302259e9e1461051757806306e7b14d1461054057806306fdde031461056257806307efbfdc1461058457600080fd5b3661051257005b600080fd5b34801561052357600080fd5b5061052d600c5481565b6040519081526020015b60405180910390f35b34801561054c57600080fd5b5061056061055b3660046149a9565b610f07565b005b34801561056e57600080fd5b50610577611042565b6040516105379190614d22565b34801561059057600080fd5b506105606110d4565b3480156105a557600080fd5b506105b96105b4366004614aef565b611162565b6040519015158152602001610537565b3480156105d557600080fd5b506007546105b990600160a81b900460ff1681565b3480156105f657600080fd5b5060175461060a906001600160a01b031681565b6040516001600160a01b039091168152602001610537565b34801561062e57600080fd5b5061052d60125481565b34801561064457600080fd5b5060065461060a906001600160a01b031681565b34801561066457600080fd5b5060025461052d565b34801561067957600080fd5b506017546105b990600160a01b900460ff1681565b34801561069a57600080fd5b50600a5461060a906001600160a01b031681565b3480156106ba57600080fd5b506105b96106c93660046149a9565b60086020526000908152604090205460ff1681565b3480156106ea57600080fd5b5061052d60135481565b34801561070057600080fd5b506105b961070f366004614a19565b611179565b34801561072057600080fd5b5061060a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561075457600080fd5b50610560610763366004614b9b565b6111e2565b34801561077457600080fd5b5060095461060a906001600160a01b031681565b34801561079457600080fd5b506105606107a3366004614c30565b6112b6565b3480156107b457600080fd5b5061052d611386565b3480156107c957600080fd5b5060055460405160ff9091168152602001610537565b3480156107eb57600080fd5b506105b96107fa366004614aef565b611421565b34801561080b57600080fd5b5061052d611457565b34801561082057600080fd5b5061056061082f366004614a59565b61157f565b34801561084057600080fd5b5061060a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561087457600080fd5b506105606115f8565b34801561088957600080fd5b506105606108983660046149e1565b611698565b3480156108a957600080fd5b506105b96108b83660046149a9565b6001600160a01b031660009081526018602052604090205460ff1690565b3480156108e257600080fd5b506105606117e2565b3480156108f757600080fd5b506105b96109063660046149a9565b60196020526000908152604090205460ff1681565b34801561092757600080fd5b50610560610936366004614b9b565b611860565b34801561094757600080fd5b50610560610956366004614bd3565b61192a565b34801561096757600080fd5b506007546105b990760100000000000000000000000000000000000000000000900460ff1681565b34801561099b57600080fd5b5061052d611990565b3480156109b057600080fd5b506105606109bf3660046149a9565b6119ee565b3480156109d057600080fd5b5061052d6109df3660046149a9565b611b2a565b3480156109f057600080fd5b506105606109ff366004614bd3565b611bc2565b348015610a1057600080fd5b50610560610a1f366004614c30565b611cb9565b348015610a3057600080fd5b5061052d610a3f3660046149a9565b6001600160a01b031660009081526020819052604090205490565b348015610a6657600080fd5b50610560611d89565b348015610a7b57600080fd5b50610560610a8a366004614bd3565b611e3e565b348015610a9b57600080fd5b50610560610aaa3660046149a9565b611fbf565b348015610abb57600080fd5b5060055461010090046001600160a01b031661060a565b348015610ade57600080fd5b50610560610aed366004614bd3565b612331565b348015610afe57600080fd5b50610560610b0d366004614b9b565b612397565b348015610b1e57600080fd5b5061057761244d565b348015610b3357600080fd5b5061052d60115481565b348015610b4957600080fd5b50610560610b58366004614a59565b61245c565b348015610b6957600080fd5b5061052d60165481565b348015610b7f57600080fd5b5061052d612582565b348015610b9457600080fd5b506105b9610ba3366004614aef565b6125e0565b348015610bb457600080fd5b5061052d600b5481565b348015610bca57600080fd5b5061052d610bd93660046149a9565b61262f565b348015610bea57600080fd5b506105b9610bf9366004614aef565b61267b565b348015610c0a57600080fd5b50610c1e610c193660046149a9565b612688565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e082015261010001610537565b348015610c6f57600080fd5b50610560610c7e366004614bd3565b61274b565b348015610c8f57600080fd5b50610560610c9e366004614bd3565b6127b1565b348015610caf57600080fd5b506105b9610cbe3660046149a9565b601a6020526000908152604090205460ff1681565b348015610cdf57600080fd5b50610560610cee366004614a59565b6128c3565b348015610cff57600080fd5b50610560610d0e366004614b1a565b612a05565b348015610d1f57600080fd5b506007546105b99077010000000000000000000000000000000000000000000000900460ff1681565b348015610d5457600080fd5b50610560610d63366004614bd3565b612b13565b348015610d7457600080fd5b5061052d60105481565b348015610d8a57600080fd5b5061052d600f5481565b348015610da057600080fd5b5061052d60155481565b348015610db657600080fd5b5061052d60145481565b348015610dcc57600080fd5b5061052d610ddb3660046149e1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610e1257600080fd5b50610560610e21366004614b9b565b612c05565b348015610e3257600080fd5b5061052d600d5481565b348015610e4857600080fd5b5061052d600e5481565b348015610e5e57600080fd5b5061052d612cbb565b348015610e7357600080fd5b50610560610e82366004614bd3565b612d19565b348015610e9357600080fd5b50610c1e610ea2366004614bd3565b612de1565b348015610eb357600080fd5b50610560610ec23660046149a9565b612e3c565b348015610ed357600080fd5b5060075461060a906001600160a01b031681565b348015610ef357600080fd5b50610560610f02366004614bd3565b612f84565b6005546001600160a01b03610100909104163314610f5a5760405162461bcd60e51b81526020600482018190526024820152600080516020614f1683398151915260448201526064015b60405180910390fd5b600a546001600160a01b0382811691161415610fde5760405162461bcd60e51b815260206004820152603760248201527f466c6f6b694c494e4b3a20546865206c69717569646974792077616c6c65742060448201527f697320616c7265616479207468697320616464726573730000000000000000006064820152608401610f51565b610fe98160016128c3565b600a805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03831690811790915560405181907f79cc7a4346ee3e4ae1badce5b330777b11e18a64a4f1ee310a51437544c94c5290600090a350565b60606003805461105190614e38565b80601f016020809104026020016040519081016040528092919081815260200182805461107d90614e38565b80156110ca5780601f1061109f576101008083540402835291602001916110ca565b820191906000526020600020905b8154815290600101906020018083116110ad57829003601f168201915b5050505050905090565b6005546001600160a01b036101009091041633146111225760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b6006600f55600260108190556011556b033b2e3c9fd0803ce8000000600b819055600e556111506001612c05565b6b033b2e3c9fd0803ce8000000600c55565b600061116f3384846130e1565b5060015b92915050565b600061118684848461323a565b6111d884336111d385604051806060016040528060288152602001614eee602891396001600160a01b038a1660009081526001602090815260408083203384529091529020549190613ad4565b6130e1565b5060019392505050565b6005546001600160a01b036101009091041633146112305760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b60078054821515760100000000000000000000000000000000000000000000027fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff9091161790556040517f3794234fa370c9f3b948dda3e3040530785b2ef1eb27dda3ffde478f4e2643c0906112ab90831515815260200190565b60405180910390a150565b6005546001600160a01b036101009091041633146113045760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b600a8160ff16111561137e5760405162461bcd60e51b815260206004820152603760248201527f466c6f6b694c494e4b3a204469766964656e642072657761726420746178206d60448201527f757374206265206265747765656e203020616e642031300000000000000000006064820152608401610f51565b60ff16601055565b600954604080517f85a6b3ae00000000000000000000000000000000000000000000000000000000815290516000926001600160a01b0316916385a6b3ae916004808301926020929190829003018186803b1580156113e457600080fd5b505afa1580156113f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061141c9190614beb565b905090565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161116f9185906111d39086613082565b6040516bffffffffffffffffffffffff193360601b1660208201526000908190439042906034016040516020818303038152906040528051906020012060001c6114a19190614de2565b6040516bffffffffffffffffffffffff194160601b166020820152459042906034016040516020818303038152906040528051906020012060001c6114e69190614de2565b6114f04442614dca565b6114fa9190614dca565b6115049190614dca565b61150e9190614dca565b6115189190614dca565b60405160200161152a91815260200190565b60408051601f19818403018152919052805160209091012090506000611551606483614de2565b61155c906064614e02565b6115669083614e21565b90508061117357611578600182614dca565b9392505050565b6005546001600160a01b036101009091041633146115cd5760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b6009546040517fbc4c4b37000000000000000000000000000000000000000000000000000000008152336004820152600060248201526001600160a01b039091169063bc4c4b3790604401602060405180830381600087803b15801561165d57600080fd5b505af1158015611671573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116959190614bb7565b50565b6005546001600160a01b036101009091041633146116e65760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b6017805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384811691821790925560095460405163031e79db60e41b81526004810192909252909116906331e79db090602401600060405180830381600087803b15801561175157600080fd5b505af1158015611765573d6000803e3d6000fd5b505050506117748260016128c3565b60095460405163031e79db60e41b81526001600160a01b038381166004830152909116906331e79db090602401600060405180830381600087803b1580156117bb57600080fd5b505af11580156117cf573d6000803e3d6000fd5b505050506117de8160016128c3565b5050565b6005546001600160a01b036101009091041633146118305760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b61183a6000612c05565b6000600f8190556010556b033b2e3c9fd0803ce8000000600b819055600e819055600c55565b6005546001600160a01b036101009091041633146118ae5760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b6007805482151577010000000000000000000000000000000000000000000000027fffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffff9091161790556040517f945267e51880cd67d32e6ca64bb296294740d8d86dfa4284261903b722e5ee37906112ab90831515815260200190565b6005546001600160a01b036101009091041633146119785760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b61198a81670de0b6b3a7640000614e02565b600c5550565b600954604080517f09bbedde00000000000000000000000000000000000000000000000000000000815290516000926001600160a01b0316916309bbedde916004808301926020929190829003018186803b1580156113e457600080fd5b6005546001600160a01b03610100909104163314611a3c5760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b6006546001600160a01b0382811691161415611ac05760405162461bcd60e51b815260206004820152602e60248201527f466c6f6b694c494e4b3a2054686520726f7574657220616c726561647920686160448201527f73207468617420616464726573730000000000000000000000000000000000006064820152608401610f51565b6006546040516001600160a01b03918216918316907f8fc842bbd331dfa973645f4ed48b11683d501ebf1352708d77a5da2ab49a576e90600090a36006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6009546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b03838116600483015260009216906370a08231906024015b60206040518083038186803b158015611b8a57600080fd5b505afa158015611b9e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111739190614beb565b6009546040517fffb2c47900000000000000000000000000000000000000000000000000000000815260048101839052600091829182916001600160a01b03169063ffb2c47990602401606060405180830381600087803b158015611c2657600080fd5b505af1158015611c3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5e9190614c03565b604080518481526020810184905290810182905260608101889052929550909350915032906000907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a350505050565b6005546001600160a01b03610100909104163314611d075760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b600a8160ff161115611d815760405162461bcd60e51b815260206004820152603760248201527f466c6f6b694c494e4b3a204469766964656e642072657761726420746178206d60448201527f757374206265206265747765656e203020616e642031300000000000000000006064820152608401610f51565b60ff16600f55565b6005546001600160a01b03610100909104163314611dd75760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580547fffffffffffffffffffffff0000000000000000000000000000000000000000ff169055565b6005546001600160a01b03610100909104163314611e8c5760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b62030d408110158015611ea257506207a1208111155b611f145760405162461bcd60e51b815260206004820152603f60248201527f466c6f6b694c494e4b3a20676173466f7250726f63657373696e67206d75737460448201527f206265206265747765656e203230302c30303020616e64203530302c303030006064820152608401610f51565b601654811415611f8c5760405162461bcd60e51b815260206004820152603760248201527f466c6f6b694c494e4b3a2043616e6e6f742075706461746520676173466f725060448201527f726f63657373696e6720746f2073616d652076616c75650000000000000000006064820152608401610f51565b60165460405182907f40d7e40e79af4e8e5a9b3c57030d8ea93f13d669c06d448c4d631d4ae7d23db790600090a3601655565b6005546001600160a01b0361010090910416331461200d5760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b6009546001600160a01b03828116911614156120915760405162461bcd60e51b815260206004820152603860248201527f466c6f6b694c494e4b3a20546865206469766964656e6420747261636b65722060448201527f616c7265616479206861732074686174206164647265737300000000000000006064820152608401610f51565b6000819050306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156120d957600080fd5b505afa1580156120ed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061211191906149c5565b6001600160a01b0316146121b35760405162461bcd60e51b815260206004820152605160248201527f466c6f6b694c494e4b3a20546865206e6577206469766964656e64207472616360448201527f6b6572206d757374206265206f776e65642062792074686520464c4f4b49425560648201527f534420746f6b656e20636f6e7472616374000000000000000000000000000000608482015260a401610f51565b60405163031e79db60e41b81526001600160a01b03821660048201819052906331e79db090602401600060405180830381600087803b1580156121f557600080fd5b505af1158015612209573d6000803e3d6000fd5b505060405163031e79db60e41b81523060048201526001600160a01b03841692506331e79db09150602401600060405180830381600087803b15801561224e57600080fd5b505af1158015612262573d6000803e3d6000fd5b505060065460405163031e79db60e41b81526001600160a01b03918216600482015290841692506331e79db09150602401600060405180830381600087803b1580156122ad57600080fd5b505af11580156122c1573d6000803e3d6000fd5b50506009546040516001600160a01b03918216935090851691507f90c7d74461c613da5efa97d90740869367d74ab3aa5837aa4ae9a975f954b7a890600090a36009805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039290921691909117905550565b6005546001600160a01b0361010090910416331461237f5760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b61239181670de0b6b3a7640000614e02565b600e5550565b6005546001600160a01b036101009091041633146123e55760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b60178054821515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff9091161790556040517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc159906112ab90831515815260200190565b60606004805461105190614e38565b6005546001600160a01b036101009091041633146124aa5760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614156125785760405162461bcd60e51b815260206004820152605060248201527f466c6f6b694c494e4b3a205468652050616e63616b655377617020706169722060448201527f63616e6e6f742062652072656d6f7665642066726f6d206175746f6d6174656460648201527f4d61726b65744d616b6572506169727300000000000000000000000000000000608482015260a401610f51565b6117de8282613b0b565b600954604080517f6f2789ec00000000000000000000000000000000000000000000000000000000815290516000926001600160a01b031691636f2789ec916004808301926020929190829003018186803b1580156113e457600080fd5b600061116f33846111d385604051806060016040528060258152602001614f36602591393360009081526001602090815260408083206001600160a01b038d1684529091529020549190613ad4565b6009546040517fa8b9d2400000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152600092169063a8b9d24090602401611b72565b600061116f33848461323a565b6009546040517ffbcbc0f10000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152600092839283928392839283928392839291169063fbcbc0f1906024015b6101006040518083038186803b1580156126f857600080fd5b505afa15801561270c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127309190614a86565b97509750975097509750975097509750919395975091939597565b6005546001600160a01b036101009091041633146127995760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b6127ab81670de0b6b3a7640000614e02565b600b5550565b6005546001600160a01b036101009091041633146127ff5760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b600754600160a01b900460ff16156128a55760405162461bcd60e51b815260206004820152604e60248201527f466c6f6b694c494e4b3a2041207377617070696e672070726f6365737320697360448201527f2063757272656e746c792072756e6e696e672c20776169742074696c6c20746860648201527f617420697320636f6d706c657465000000000000000000000000000000000000608482015260a401610f51565b476117de6128be836128b8846064613c8f565b90613cea565b613d85565b6005546001600160a01b036101009091041633146129115760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b6001600160a01b03821660009081526018602052604090205460ff16151581151514156129a65760405162461bcd60e51b815260206004820152603560248201527f466c6f6b694c494e4b3a204163636f756e7420697320616c726561647920746860448201527f652076616c7565206f6620276578636c756465642700000000000000000000006064820152608401610f51565b6001600160a01b038216600081815260186020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6005546001600160a01b03610100909104163314612a535760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b60005b82811015612ad2578160186000868685818110612a8357634e487b7160e01b600052603260045260246000fd5b9050602002016020810190612a9891906149a9565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580612aca81614e73565b915050612a56565b507f7fdaf542373fa84f4ee8d662c642f44e4c2276a217d7d29e548b6eb29a233b35838383604051612b0693929190614c94565b60405180910390a1505050565b6005546001600160a01b03610100909104163314612b615760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b60646014541115612c005760405162461bcd60e51b815260206004820152604160248201527f466c6f6b694c494e4b3a2054726561737572792064697669736f72206d75737460448201527f206265206265747765656e2030202830252920616e642031303020283130302560648201527f2900000000000000000000000000000000000000000000000000000000000000608482015260a401610f51565b601455565b6005546001600160a01b03610100909104163314612c535760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b60078054821515600160a81b027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff9091161790556040517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc159906112ab90831515815260200190565b600954604080517fe7841ec000000000000000000000000000000000000000000000000000000000815290516000926001600160a01b03169163e7841ec0916004808301926020929190829003018186803b1580156113e457600080fd5b6005546001600160a01b03610100909104163314612d675760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b6009546040517fe98030c7000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b039091169063e98030c790602401600060405180830381600087803b158015612dc657600080fd5b505af1158015612dda573d6000803e3d6000fd5b5050505050565b6009546040517f5183d6fd0000000000000000000000000000000000000000000000000000000081526004810183905260009182918291829182918291829182916001600160a01b0390911690635183d6fd906024016126df565b6005546001600160a01b03610100909104163314612e8a5760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b6001600160a01b038116612f065760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610f51565b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b6005546001600160a01b03610100909104163314612fd25760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b60648110158015612fe557506101f48111155b61307d5760405162461bcd60e51b815260206004820152604b60248201527f466c6f6b694c494e4b3a2053656c6c207472616e73616374696f6e206d756c7460448201527f69706c6572206d757374206265206265747765656e203130302028317829206160648201527f6e64203530302028357829000000000000000000000000000000000000000000608482015260a401610f51565b601355565b60008061308f8385614dca565b9050838110156115785760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610f51565b6001600160a01b03831661315c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610f51565b6001600160a01b0382166131d85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610f51565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166132b65760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610f51565b6001600160a01b0382166133325760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610f51565b6001600160a01b03831660009081526008602052604090205460ff1615801561337457506001600160a01b03821660009081526008602052604090205460ff16155b6133c05760405162461bcd60e51b815260206004820152601360248201527f426c61636b6c69737465642061646472657373000000000000000000000000006044820152606401610f51565b600754600160a81b900460ff1680156133f157506001600160a01b0383166000908152601a602052604090205460ff165b1561350d57600b5481111561346e5760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657220616d6f756e74206578636565647320746865206d61785460448201527f78416d6f756e742e0000000000000000000000000000000000000000000000006064820152608401610f51565b6001600160a01b038216600090815260208190526040902054600e546134948383614dca565b11156135075760405162461bcd60e51b8152602060048201526024808201527f45786365656473206d6178696d756d2077616c6c657420746f6b656e20616d6f60448201527f756e742e000000000000000000000000000000000000000000000000000000006064820152608401610f51565b506137ee565b600754600160a81b900460ff16801561353e57506001600160a01b0382166000908152601a602052604090205460ff165b156137ee57600c548111156135bb5760405162461bcd60e51b815260206004820152603a60248201527f53656c6c207472616e7366657220616d6f756e7420657863656564732074686560448201527f206d617853656c6c5472616e73616374696f6e416d6f756e742e0000000000006064820152608401610f51565b30600090815260208190526040902054600d546007549082101590600160a01b900460ff161580156135ea5750805b156137eb57600780547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b17905560125460115460009161363b91613635908690613cea565b90613c8f565b905061364681613f63565b600061366360125461363560105487613cea90919063ffffffff16565b905061366e81613feb565b600a54601454613696916001600160a01b031690613691906128b8476064613c8f565b614189565b6007544790760100000000000000000000000000000000000000000000900460ff1680156136cb5750670de0b6b3a764000081115b156136e9576136e96128be6136de611457565b6128b8846064613c8f565b600660009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561373757600080fd5b505afa15801561374b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061376f91906149c5565b6007546001600160a01b03908116911614156137a4573060009081526020819052604090205461379e816141c4565b506137bf565b306000908152602081905260409020546137bd816142ea565b505b5050600780547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff169055505b50505b600754600090600160a81b900460ff1680156138145750600754600160a01b900460ff16155b9050801561388357601254600090613831906128b8856064613c8f565b6001600160a01b0385166000908152601a602052604090205490915060ff161561386a57601354613867906128b8836064613c8f565b90505b61387483826144e6565b9250613881853083614542565b505b61388e848484614542565b6009546001600160a01b031663e30443bc856138bf816001600160a01b031660009081526020819052604090205490565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561391d57600080fd5b505af192505050801561392e575060015b506009546001600160a01b031663e30443bc84613960816001600160a01b031660009081526020819052604090205490565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156139be57600080fd5b505af19250505080156139cf575060015b50600754600160a01b900460ff16613ace576016546009546040517fffb2c479000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b039091169063ffb2c47990602401606060405180830381600087803b158015613a4357600080fd5b505af1925050508015613a73575060408051601f3d908101601f19168201909252613a7091810190614c03565b60015b613a7c57612dda565b60408051848152602081018490529081018290526060810185905232906001907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a3505050505b50505050565b60008184841115613af85760405162461bcd60e51b8152600401610f519190614d22565b50613b038385614e21565b949350505050565b6001600160a01b0382166000908152601a602052604090205460ff1615158115151415613bc65760405162461bcd60e51b815260206004820152604360248201527f466c6f6b694c494e4b3a204175746f6d61746564206d61726b6574206d616b6560448201527f72207061697220697320616c72656164792073657420746f207468617420766160648201527f6c75650000000000000000000000000000000000000000000000000000000000608482015260a401610f51565b6001600160a01b0382166000908152601a60205260409020805460ff19168215801591909117909155613c535760095460405163031e79db60e41b81526001600160a01b038481166004830152909116906331e79db090602401600060405180830381600087803b158015613c3a57600080fd5b505af1158015613c4e573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6000808211613ce05760405162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f0000000000006044820152606401610f51565b6115788284614de2565b600082613cf957506000611173565b6000613d058385614e02565b905082613d128583614de2565b146115785760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60448201527f77000000000000000000000000000000000000000000000000000000000000006064820152608401610f51565b6040805160028082526060820183526000926020830190803683375050600654604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c464892506004808301926020929190829003018186803b158015613dea57600080fd5b505afa158015613dfe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e2291906149c5565b81600081518110613e4357634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250503081600181518110613e8557634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526006541663b6f9de95836000847f0000000000000000000000000000000000000000000000000000000000000000613ed54261012c613082565b6040518663ffffffff1660e01b8152600401613ef49493929190614ced565b6000604051808303818588803b158015613f0d57600080fd5b505af1158015613f21573d6000803e3d6000fd5b50505050507f6fd378a9d8b7345c2e5b18229aaf1e39d32b177b501d0a0d26a0a858a23a96248282604051613f57929190614d75565b60405180910390a15050565b6000613f70826002613c8f565b90506000613f7e83836144e6565b905047613f8a83613feb565b6000613f9647836144e6565b9050613fa283826146f7565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb561906060015b60405180910390a15050505050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061402e57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561408257600080fd5b505afa158015614096573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140ba91906149c5565b816001815181106140db57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201015260065461410191309116846130e1565b6006546040517f791ac9470000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063791ac94790614153908590600090869030904290600401614d8e565b600060405180830381600087803b15801561416d57600080fd5b505af1158015614181573d6000803e3d6000fd5b505050505050565b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156141bf573d6000803e3d6000fd5b505050565b476141ce82613feb565b4760006141db82846144e6565b6009546040519192506000916001600160a01b039091169083908381818185875af1925050503d806000811461422d576040519150601f19603f3d011682016040523d82523d6000602084013e614232565b606091505b505090508015612dda576009546040517f3243c791000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690633243c79190602401600060405180830381600087803b15801561429b57600080fd5b505af11580156142af573d6000803e3d6000fd5b505060408051888152602081018690527f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc39350019050613fdc565b6142f481306147c9565b6007546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561435157600080fd5b505afa158015614365573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143899190614beb565b6007546009546040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b0391821660048201526024810184905292935060009291169063a9059cbb90604401602060405180830381600087803b1580156143f857600080fd5b505af115801561440c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144309190614bb7565b905080156141bf576009546040517f3243c791000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690633243c79190602401600060405180830381600087803b15801561449757600080fd5b505af11580156144ab573d6000803e3d6000fd5b505060408051868152602081018690527f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc39350019050612b06565b6000828211156145385760405162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f7700006044820152606401610f51565b6115788284614e21565b6001600160a01b0383166145be5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610f51565b6001600160a01b03821661463a5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610f51565b61467781604051806060016040528060268152602001614ec8602691396001600160a01b0386166000908152602081905260409020549190613ad4565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546146a69082613082565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910161322d565b60065461470f9030906001600160a01b0316846130e1565b6006546040517ff305d719000000000000000000000000000000000000000000000000000000008152306004820152602481018490526000604482018190526064820181905260848201524260a48201526001600160a01b039091169063f305d71990839060c4016060604051808303818588803b15801561479057600080fd5b505af11580156147a4573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190612dda9190614c03565b6040805160038082526080820190925260009160208201606080368337019050509050308160008151811061480e57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561486257600080fd5b505afa158015614876573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061489a91906149c5565b816001815181106148bb57634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526007548251911690829060029081106148fa57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201015260065461492091309116856130e1565b6006546040517f5c11d7950000000000000000000000000000000000000000000000000000000081526001600160a01b0390911690635c11d79590614972908690600090869088904290600401614d8e565b600060405180830381600087803b15801561498c57600080fd5b505af11580156149a0573d6000803e3d6000fd5b50505050505050565b6000602082840312156149ba578081fd5b813561157881614ea4565b6000602082840312156149d6578081fd5b815161157881614ea4565b600080604083850312156149f3578081fd5b82356149fe81614ea4565b91506020830135614a0e81614ea4565b809150509250929050565b600080600060608486031215614a2d578081fd5b8335614a3881614ea4565b92506020840135614a4881614ea4565b929592945050506040919091013590565b60008060408385031215614a6b578182fd5b8235614a7681614ea4565b91506020830135614a0e81614eb9565b600080600080600080600080610100898b031215614aa2578384fd5b8851614aad81614ea4565b809850506020890151965060408901519550606089015194506080890151935060a0890151925060c0890151915060e089015190509295985092959890939650565b60008060408385031215614b01578182fd5b8235614b0c81614ea4565b946020939093013593505050565b600080600060408486031215614b2e578283fd5b833567ffffffffffffffff80821115614b45578485fd5b818601915086601f830112614b58578485fd5b813581811115614b66578586fd5b8760208260051b8501011115614b7a578586fd5b60209283019550935050840135614b9081614eb9565b809150509250925092565b600060208284031215614bac578081fd5b813561157881614eb9565b600060208284031215614bc8578081fd5b815161157881614eb9565b600060208284031215614be4578081fd5b5035919050565b600060208284031215614bfc578081fd5b5051919050565b600080600060608486031215614c17578283fd5b8351925060208401519150604084015190509250925092565b600060208284031215614c41578081fd5b813560ff81168114611578578182fd5b6000815180845260208085019450808401835b83811015614c895781516001600160a01b031687529582019590820190600101614c64565b509495945050505050565b6040808252810183905260008460608301825b86811015614cd7578235614cba81614ea4565b6001600160a01b0316825260209283019290910190600101614ca7565b5080925050508215156020830152949350505050565b848152608060208201526000614d066080830186614c51565b6001600160a01b03949094166040830152506060015292915050565b6000602080835283518082850152825b81811015614d4e57858101830151858201604001528201614d32565b81811115614d5f5783604083870101525b50601f01601f1916929092016040019392505050565b828152604060208201526000613b036040830184614c51565b85815284602082015260a060408201526000614dad60a0830186614c51565b6001600160a01b0394909416606083015250608001529392505050565b60008219821115614ddd57614ddd614e8e565b500190565b600082614dfd57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615614e1c57614e1c614e8e565b500290565b600082821015614e3357614e33614e8e565b500390565b600181811c90821680614e4c57607f821691505b60208210811415614e6d57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614e8757614e87614e8e565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461169557600080fd5b801515811461169557600080fdfe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220ba2a1756657c4d1a84a083cbbf89f6a123649244c832ea5641fc528bd31d22f764736f6c6343000804003360a0604052600880546001600160a01b03191673514910771af9ca656af840dff83e8264ecf986ca1790553480156200003757600080fd5b50604080518082018252601a8082527f466c6f6b694c494e4b5f4469766964656e645f547261636b657200000000000060208084018281528551808701909652928552840152815191929183918391620000949160039162000130565b508051620000aa90600490602084019062000130565b50506005805460ff191660121790555060009150620000c890503390565b600c80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350610e1060145569021e19e0c9bab240000060805262000213565b8280546200013e90620001d6565b90600052602060002090601f016020900481019282620001625760008555620001ad565b82601f106200017d57805160ff1916838001178555620001ad565b82800160010185558215620001ad579182015b82811115620001ad57825182559160200191906001019062000190565b50620001bb929150620001bf565b5090565b5b80821115620001bb5760008155600101620001c0565b600181811c90821680620001eb57607f821691505b602082108114156200020d57634e487b7160e01b600052602260045260246000fd5b50919050565b6080516125e062000236600039600081816106f1015261119201526125e06000f3fe6080604052600436106102895760003560e01c8063715018a611610153578063aafd847a116100cb578063e7841ec01161007f578063f2fde38b11610064578063f2fde38b146107ae578063fbcbc0f1146107ce578063ffb2c479146107ee57600080fd5b8063e7841ec014610779578063e98030c71461078e57600080fd5b8063be10b614116100b0578063be10b614146106df578063dd62ed3e14610713578063e30443bc1461075957600080fd5b8063aafd847a14610689578063bc4c4b37146106bf57600080fd5b806391b89fba11610122578063a457c2d711610107578063a457c2d714610629578063a8b9d24014610649578063a9059cbb1461066957600080fd5b806391b89fba146105f457806395d89b411461061457600080fd5b8063715018a6146105615780637e3e7fd21461057657806385a6b3ae146105c05780638da5cb5b146105d657600080fd5b80633009a609116102015780634e7b827f116101b55780636a4740021161019a5780636a474002146105005780636f2789ec1461051557806370a082311461052b57600080fd5b80634e7b827f1461046b5780635183d6fd1461049b57600080fd5b806331e79db0116101e657806331e79db01461040b5780633243c7911461042b578063395093511461044b57600080fd5b80633009a609146103d3578063313ce567146103e957600080fd5b80631582358e11610258578063226cfa3d1161023d578063226cfa3d1461036657806323b872dd1461039357806327ce0147146103b357600080fd5b80631582358e1461031957806318160ddd1461035157600080fd5b806303c833021461029557806306fdde031461029f578063095ea7b3146102ca57806309bbedde146102fa57600080fd5b3661029057005b600080fd5b61029d610829565b005b3480156102ab57600080fd5b506102b46108c9565b6040516102c191906122e5565b60405180910390f35b3480156102d657600080fd5b506102ea6102e5366004612201565b61095b565b60405190151581526020016102c1565b34801561030657600080fd5b50600d545b6040519081526020016102c1565b34801561032557600080fd5b50600854610339906001600160a01b031681565b6040516001600160a01b0390911681526020016102c1565b34801561035d57600080fd5b5060025461030b565b34801561037257600080fd5b5061030b610381366004612191565b60136020526000908152604090205481565b34801561039f57600080fd5b506102ea6103ae366004612259565b610972565b3480156103bf57600080fd5b5061030b6103ce366004612191565b6109db565b3480156103df57600080fd5b5061030b60115481565b3480156103f557600080fd5b5060055460405160ff90911681526020016102c1565b34801561041757600080fd5b5061029d610426366004612191565b610a44565b34801561043757600080fd5b5061029d6104463660046122cd565b610bd7565b34801561045757600080fd5b506102ea610466366004612201565b610c65565b34801561047757600080fd5b506102ea610486366004612191565b60126020526000908152604090205460ff1681565b3480156104a757600080fd5b506104bb6104b63660046122cd565b610c9b565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e0820152610100016102c1565b34801561050c57600080fd5b5061029d610e26565b34801561052157600080fd5b5061030b60145481565b34801561053757600080fd5b5061030b610546366004612191565b6001600160a01b031660009081526020819052604090205490565b34801561056d57600080fd5b5061029d610ee0565b34801561058257600080fd5b5061029d610591366004612191565b6008805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b3480156105cc57600080fd5b5061030b600b5481565b3480156105e257600080fd5b50600c546001600160a01b0316610339565b34801561060057600080fd5b5061030b61060f366004612191565b610f91565b34801561062057600080fd5b506102b4610f9c565b34801561063557600080fd5b506102ea610644366004612201565b610fab565b34801561065557600080fd5b5061030b610664366004612191565b610ffa565b34801561067557600080fd5b506102ea610684366004612201565b611026565b34801561069557600080fd5b5061030b6106a4366004612191565b6001600160a01b03166000908152600a602052604090205490565b3480156106cb57600080fd5b506102ea6106da3660046121c9565b611033565b3480156106eb57600080fd5b5061030b7f000000000000000000000000000000000000000000000000000000000000000081565b34801561071f57600080fd5b5061030b61072e36600461222c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561076557600080fd5b5061029d610774366004612201565b611111565b34801561078557600080fd5b5060115461030b565b34801561079a57600080fd5b5061029d6107a93660046122cd565b6112ff565b3480156107ba57600080fd5b5061029d6107c9366004612191565b6114d7565b3480156107da57600080fd5b506104bb6107e9366004612191565b611616565b3480156107fa57600080fd5b5061080e6108093660046122cd565b6117a7565b604080519384526020840192909252908201526060016102c1565b600061083460025490565b1161083e57600080fd5b34156108c75761087e61085060025490565b61086b347001000000000000000000000000000000006118d0565b61087591906123e2565b60065490611972565b60065560405134815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a2600b546108c39034611972565b600b555b565b6060600380546108d8906124ac565b80601f0160208091040260200160405190810160405280929190818152602001828054610904906124ac565b80156109515780601f1061092657610100808354040283529160200191610951565b820191906000526020600020905b81548152906001019060200180831161093457829003601f168201915b5050505050905090565b60006109683384846119d1565b5060015b92915050565b600061097f848484611b29565b6109d184336109cc8560405180606001604052806028815260200161255e602891396001600160a01b038a1660009081526001602090815260408083203384529091529020549190611b97565b6119d1565b5060019392505050565b6001600160a01b0381166000908152600960209081526040808320549183905282205460065470010000000000000000000000000000000092610a3a92610a3592610a2f91610a2a91906118d0565b611bce565b90611bde565b611c1c565b61096c91906123e2565b600c546001600160a01b03163314610aa35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b03811660009081526012602052604090205460ff1615610ac957600080fd5b6001600160a01b038116600090815260126020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055610b15908290611c2f565b6040517f4c60db9c000000000000000000000000000000000000000000000000000000008152600d60048201526001600160a01b038216602482015273c44c98905b8f658fbb418755f4e5e00444d1166890634c60db9c9060440160006040518083038186803b158015610b8857600080fd5b505af4158015610b9c573d6000803e3d6000fd5b50506040516001600160a01b03841692507fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b259150600090a250565b6000610be260025490565b11610bec57600080fd5b8015610c6257610c19610bfe60025490565b61086b837001000000000000000000000000000000006118d0565b60065560405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a2600b54610c5e9082611972565b600b555b50565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916109689185906109cc9086611972565b600080600080600080600080600d73c44c98905b8f658fbb418755f4e5e00444d1166863deb3d89690916040518263ffffffff1660e01b8152600401610ce391815260200190565b60206040518083038186803b158015610cfb57600080fd5b505af4158015610d0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3391906122b5565b8910610d58575060009650600019955085945086935083925082915081905080610e1b565b6040517fd1aa9e7e000000000000000000000000000000000000000000000000000000008152600d6004820152602481018a905260009073c44c98905b8f658fbb418755f4e5e00444d116689063d1aa9e7e9060440160206040518083038186803b158015610dc657600080fd5b505af4158015610dda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfe91906121ad565b9050610e0981611616565b98509850985098509850985098509850505b919395975091939597565b60405162461bcd60e51b815260206004820152606f60248201527f466c6f6b694c494e4b5f4469766964656e645f547261636b65723a207769746860448201527f647261774469766964656e642064697361626c65642e2055736520746865202760648201527f636c61696d272066756e6374696f6e206f6e20746865206d61696e20466c6f6b60848201527f694c494e4b20636f6e74726163742e000000000000000000000000000000000060a482015260c401610a9a565b600c546001600160a01b03163314610f3a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9a565b600c546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600c805473ffffffffffffffffffffffffffffffffffffffff19169055565b600061096c82610ffa565b6060600480546108d8906124ac565b600061096833846109cc85604051806060016040528060258152602001612586602591393360009081526001602090815260408083206001600160a01b038d1684529091529020549190611b97565b6001600160a01b0381166000908152600a602052604081205461096c90611020846109db565b90611c8e565b6000610968338484611b29565b600c546000906001600160a01b031633146110905760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9a565b600061109b84611cea565b90508015611107576001600160a01b038416600081815260136020526040908190204290555184151591907fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf092906110f59085815260200190565b60405180910390a3600191505061096c565b5060009392505050565b600c546001600160a01b0316331461116b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9a565b6001600160a01b03821660009081526012602052604090205460ff1615611190575050565b7f00000000000000000000000000000000000000000000000000000000000000008110611258576111c18282611c2f565b6040517fbc2b405c000000000000000000000000000000000000000000000000000000008152600d60048201526001600160a01b03831660248201526044810182905273c44c98905b8f658fbb418755f4e5e00444d116689063bc2b405c9060640160006040518083038186803b15801561123b57600080fd5b505af415801561124f573d6000803e3d6000fd5b505050506112ef565b611263826000611c2f565b6040517f4c60db9c000000000000000000000000000000000000000000000000000000008152600d60048201526001600160a01b038316602482015273c44c98905b8f658fbb418755f4e5e00444d1166890634c60db9c9060440160006040518083038186803b1580156112d657600080fd5b505af41580156112ea573d6000803e3d6000fd5b505050505b6112fa826001611033565b505050565b600c546001600160a01b031633146113595760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9a565b610e10811015801561136e5750620151808111155b6114065760405162461bcd60e51b815260206004820152604f60248201527f466c6f6b694c494e4b5f4469766964656e645f547261636b65723a20636c616960448201527f6d57616974206d757374206265207570646174656420746f206265747765656e60648201527f203120616e6420323420686f7572730000000000000000000000000000000000608482015260a401610a9a565b6014548114156114a45760405162461bcd60e51b815260206004820152604160248201527f466c6f6b694c494e4b5f4469766964656e645f547261636b65723a2043616e6e60448201527f6f742075706461746520636c61696d5761697420746f2073616d652076616c7560648201527f6500000000000000000000000000000000000000000000000000000000000000608482015260a401610a9a565b60145460405182907f474ea64804364a1e29a4487ddb63c3342a2dd826ccd8acf48825e680a0e6f20f90600090a3601455565b600c546001600160a01b031633146115315760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a9a565b6001600160a01b0381166115ad5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a9a565b600c546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600c805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6040517f17e142d1000000000000000000000000000000000000000000000000000000008152600d60048201526001600160a01b0382166024820152819060009081908190819081908190819073c44c98905b8f658fbb418755f4e5e00444d11668906317e142d19060440160206040518083038186803b15801561169a57600080fd5b505af41580156116ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116d291906122b5565b965060001995506000871261173457601154871115611700576011546116f9908890611e77565b9550611734565b601154600d5460009110611715576000611724565b601154600d5461172491611c8e565b90506117308882611bde565b9650505b61173d88610ffa565b9450611748886109db565b6001600160a01b038916600090815260136020526040902054909450925082611772576000611780565b601454611780908490611972565b915042821161179057600061179a565b61179a8242611c8e565b9050919395975091939597565b600d5460009081908190806117c7575050601154600092508291506118c9565b6011546000805a90506000805b89841080156117e257508582105b156118b857846117f1816124e7565b600d549096508610905061180457600094505b6000600d600001868154811061182a57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316808352601390915260409091205490915061185b90611ec3565b1561187e5761186b816001611033565b1561187e578161187a816124e7565b9250505b82611888816124e7565b93505060005a9050808511156118af576118ac6118a58683611c8e565b8790611972565b95505b93506117d49050565b601185905590975095509193505050505b9193909250565b6000826118df5750600061096c565b60006118eb8385612402565b9050826118f885836123e2565b1461196b5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60448201527f77000000000000000000000000000000000000000000000000000000000000006064820152608401610a9a565b9392505050565b60008061197f83856123ca565b90508381101561196b5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610a9a565b6001600160a01b038316611a4c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a9a565b6001600160a01b038216611ac85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610a9a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60405162461bcd60e51b815260206004820152603060248201527f466c6f6b694c494e4b5f4469766964656e645f547261636b65723a204e6f207460448201527f72616e736665727320616c6c6f776564000000000000000000000000000000006064820152608401610a9a565b60008184841115611bbb5760405162461bcd60e51b8152600401610a9a91906122e5565b50611bc68385612495565b949350505050565b6000818181121561096c57600080fd5b600080611beb8385612356565b905060008312158015611bfe5750838112155b80611c135750600083128015611c1357508381125b61196b57600080fd5b600080821215611c2b57600080fd5b5090565b6001600160a01b03821660009081526020819052604090205480821115611c6e576000611c5c8383611c8e565b9050611c688482611eea565b50505050565b808210156112fa576000611c828284611c8e565b9050611c688482611f4e565b600082821115611ce05760405162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f7700006044820152606401610a9a565b61196b8284612495565b600080611cf683610ffa565b90508015611e6e576001600160a01b0383166000908152600a6020526040902054611d219082611972565b6001600160a01b0384166000818152600a6020526040908190209290925590517fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d90611d709084815260200190565b60405180910390a26008546040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b03858116600483015260248201849052600092169063a9059cbb90604401602060405180830381600087803b158015611de057600080fd5b505af1158015611df4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e189190612299565b905080611e67576001600160a01b0384166000908152600a6020526040902054611e429083611c8e565b6001600160a01b039094166000908152600a6020526040812094909455509192915050565b5092915050565b50600092915050565b6000808212158015611e92575082611e8f8382612421565b13155b80611eb05750600082128015611eb0575082611eae8382612421565b135b611eb957600080fd5b61196b8284612421565b600042821115611ed557506000919050565b601454611ee24284611c8e565b101592915050565b611ef48282611f92565b611f2e611f0f610a2a836006546118d090919063ffffffff16565b6001600160a01b03841660009081526009602052604090205490611e77565b6001600160a01b0390921660009081526009602052604090209190915550565b611f588282612071565b611f2e611f73610a2a836006546118d090919063ffffffff16565b6001600160a01b03841660009081526009602052604090205490611bde565b6001600160a01b038216611fe85760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610a9a565b600254611ff59082611972565b6002556001600160a01b03821660009081526020819052604090205461201b9082611972565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b6001600160a01b0382166120ed5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610a9a565b61212a8160405180606001604052806022815260200161253c602291396001600160a01b0385166000908152602081905260409020549190611b97565b6001600160a01b0383166000908152602081905260409020556002546121509082611c8e565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001612065565b6000602082840312156121a2578081fd5b813561196b81612518565b6000602082840312156121be578081fd5b815161196b81612518565b600080604083850312156121db578081fd5b82356121e681612518565b915060208301356121f68161252d565b809150509250929050565b60008060408385031215612213578182fd5b823561221e81612518565b946020939093013593505050565b6000806040838503121561223e578182fd5b823561224981612518565b915060208301356121f681612518565b60008060006060848603121561226d578081fd5b833561227881612518565b9250602084013561228881612518565b929592945050506040919091013590565b6000602082840312156122aa578081fd5b815161196b8161252d565b6000602082840312156122c6578081fd5b5051919050565b6000602082840312156122de578081fd5b5035919050565b6000602080835283518082850152825b81811015612311578581018301518582016040015282016122f5565b818111156123225783604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b6000808212827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0384138115161561239057612390612502565b827f80000000000000000000000000000000000000000000000000000000000000000384128116156123c4576123c4612502565b50500190565b600082198211156123dd576123dd612502565b500190565b6000826123fd57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561241c5761241c612502565b500290565b6000808312837f80000000000000000000000000000000000000000000000000000000000000000183128115161561245b5761245b612502565b837f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01831381161561248f5761248f612502565b50500390565b6000828210156124a7576124a7612502565b500390565b600181811c908216806124c057607f821691505b602082108114156124e157634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156124fb576124fb612502565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114610c6257600080fd5b8015158114610c6257600080fdfe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220bb2e7efcaabb5fd838cc19861dfabade3f0bb050a7713f0b3a61a7f058d1eeed64736f6c63430008040033
Deployed Bytecode
0x60806040526004361061050b5760003560e01c806370a0823111610294578063b62496f51161015e578063dd62ed3e116100d6578063e98030c71161008a578063f2fde38b1161006f578063f2fde38b14610ea7578063fa06c1d214610ec7578063fb7f634a14610ee757600080fd5b8063e98030c714610e67578063f27fd25414610e8757600080fd5b8063e2f45605116100bb578063e2f4560514610e26578063e6c75f7114610e3c578063e7841ec014610e5257600080fd5b8063dd62ed3e14610dc0578063e27ad5eb14610e0657600080fd5b8063c6ca88071161012d578063ce547d3b11610112578063ce547d3b14610d7e578063ceb8886814610d94578063d872a7b514610daa57600080fd5b8063c6ca880714610d48578063cc32d17614610d6857600080fd5b8063b62496f514610ca3578063c024666814610cd3578063c492f04614610cf3578063c5a47b1014610d1357600080fd5b80639a7a23d61161020c578063a8b9d240116101c0578063ad56c13c116101a5578063ad56c13c14610bfe578063b3b5e04314610c63578063b5bc894d14610c8357600080fd5b8063a8b9d24014610bbe578063a9059cbb14610bde57600080fd5b8063a26579ad116101f1578063a26579ad14610b73578063a457c2d714610b88578063a6b6388814610ba857600080fd5b80639a7a23d614610b3d5780639c1b8af514610b5d57600080fd5b80638da5cb5b1161026357806393c8090b1161024857806393c8090b14610af257806395d89b4114610b1257806398118cb414610b2757600080fd5b80638da5cb5b14610aaf57806391d55f4114610ad257600080fd5b806370a0823114610a24578063715018a614610a5a578063871c128d14610a6f57806388bdd9be14610a8f57600080fd5b806330bb4cff116103d55780635134f6ab1161034d57806364b0f653116103015780636843cd84116102e65780636843cd84146109c4578063700bb191146109e4578063702ff2b914610a0457600080fd5b806364b0f6531461098f57806365b8dbc0146109a457600080fd5b806358ab73e11161033257806358ab73e11461091b5780635c38ffe21461093b5780636053a0e31461095b57600080fd5b80635134f6ab146108d65780635403e0d7146108eb57600080fd5b8063455a4396116103a45780634e71d92d116103895780634e71d92d146108685780634e83ff6f1461087d5780634fbee1931461089d57600080fd5b8063455a43961461081457806349bd5a5e1461083457600080fd5b806330bb4cff146107a8578063313ce567146107bd57806339509351146107df5780633b3dca76146107ff57600080fd5b806318160ddd1161048357806323b872dd1161043757806329370cc61161041c57806329370cc6146107485780632c1f5216146107685780632deef2841461078857600080fd5b806323b872dd146106f457806327c8f8351461071457600080fd5b80631cd348c0116104685780631cd348c01461068e5780631cdd3be3146106ae57806322bd3f7f146106de57600080fd5b806318160ddd146106585780631af1d7b31461066d57600080fd5b8063095ea7b3116104da578063122fe685116104bf578063122fe685146105ea57806313114a9d146106225780631694505e1461063857600080fd5b8063095ea7b31461059957806309c58fcd146105c957600080fd5b806302259e9e1461051757806306e7b14d1461054057806306fdde031461056257806307efbfdc1461058457600080fd5b3661051257005b600080fd5b34801561052357600080fd5b5061052d600c5481565b6040519081526020015b60405180910390f35b34801561054c57600080fd5b5061056061055b3660046149a9565b610f07565b005b34801561056e57600080fd5b50610577611042565b6040516105379190614d22565b34801561059057600080fd5b506105606110d4565b3480156105a557600080fd5b506105b96105b4366004614aef565b611162565b6040519015158152602001610537565b3480156105d557600080fd5b506007546105b990600160a81b900460ff1681565b3480156105f657600080fd5b5060175461060a906001600160a01b031681565b6040516001600160a01b039091168152602001610537565b34801561062e57600080fd5b5061052d60125481565b34801561064457600080fd5b5060065461060a906001600160a01b031681565b34801561066457600080fd5b5060025461052d565b34801561067957600080fd5b506017546105b990600160a01b900460ff1681565b34801561069a57600080fd5b50600a5461060a906001600160a01b031681565b3480156106ba57600080fd5b506105b96106c93660046149a9565b60086020526000908152604090205460ff1681565b3480156106ea57600080fd5b5061052d60135481565b34801561070057600080fd5b506105b961070f366004614a19565b611179565b34801561072057600080fd5b5061060a7f000000000000000000000000000000000000000000000000000000000000dead81565b34801561075457600080fd5b50610560610763366004614b9b565b6111e2565b34801561077457600080fd5b5060095461060a906001600160a01b031681565b34801561079457600080fd5b506105606107a3366004614c30565b6112b6565b3480156107b457600080fd5b5061052d611386565b3480156107c957600080fd5b5060055460405160ff9091168152602001610537565b3480156107eb57600080fd5b506105b96107fa366004614aef565b611421565b34801561080b57600080fd5b5061052d611457565b34801561082057600080fd5b5061056061082f366004614a59565b61157f565b34801561084057600080fd5b5061060a7f000000000000000000000000242ff6397fc0dddc77711a0f79c5000d97535f1881565b34801561087457600080fd5b506105606115f8565b34801561088957600080fd5b506105606108983660046149e1565b611698565b3480156108a957600080fd5b506105b96108b83660046149a9565b6001600160a01b031660009081526018602052604090205460ff1690565b3480156108e257600080fd5b506105606117e2565b3480156108f757600080fd5b506105b96109063660046149a9565b60196020526000908152604090205460ff1681565b34801561092757600080fd5b50610560610936366004614b9b565b611860565b34801561094757600080fd5b50610560610956366004614bd3565b61192a565b34801561096757600080fd5b506007546105b990760100000000000000000000000000000000000000000000900460ff1681565b34801561099b57600080fd5b5061052d611990565b3480156109b057600080fd5b506105606109bf3660046149a9565b6119ee565b3480156109d057600080fd5b5061052d6109df3660046149a9565b611b2a565b3480156109f057600080fd5b506105606109ff366004614bd3565b611bc2565b348015610a1057600080fd5b50610560610a1f366004614c30565b611cb9565b348015610a3057600080fd5b5061052d610a3f3660046149a9565b6001600160a01b031660009081526020819052604090205490565b348015610a6657600080fd5b50610560611d89565b348015610a7b57600080fd5b50610560610a8a366004614bd3565b611e3e565b348015610a9b57600080fd5b50610560610aaa3660046149a9565b611fbf565b348015610abb57600080fd5b5060055461010090046001600160a01b031661060a565b348015610ade57600080fd5b50610560610aed366004614bd3565b612331565b348015610afe57600080fd5b50610560610b0d366004614b9b565b612397565b348015610b1e57600080fd5b5061057761244d565b348015610b3357600080fd5b5061052d60115481565b348015610b4957600080fd5b50610560610b58366004614a59565b61245c565b348015610b6957600080fd5b5061052d60165481565b348015610b7f57600080fd5b5061052d612582565b348015610b9457600080fd5b506105b9610ba3366004614aef565b6125e0565b348015610bb457600080fd5b5061052d600b5481565b348015610bca57600080fd5b5061052d610bd93660046149a9565b61262f565b348015610bea57600080fd5b506105b9610bf9366004614aef565b61267b565b348015610c0a57600080fd5b50610c1e610c193660046149a9565b612688565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e082015261010001610537565b348015610c6f57600080fd5b50610560610c7e366004614bd3565b61274b565b348015610c8f57600080fd5b50610560610c9e366004614bd3565b6127b1565b348015610caf57600080fd5b506105b9610cbe3660046149a9565b601a6020526000908152604090205460ff1681565b348015610cdf57600080fd5b50610560610cee366004614a59565b6128c3565b348015610cff57600080fd5b50610560610d0e366004614b1a565b612a05565b348015610d1f57600080fd5b506007546105b99077010000000000000000000000000000000000000000000000900460ff1681565b348015610d5457600080fd5b50610560610d63366004614bd3565b612b13565b348015610d7457600080fd5b5061052d60105481565b348015610d8a57600080fd5b5061052d600f5481565b348015610da057600080fd5b5061052d60155481565b348015610db657600080fd5b5061052d60145481565b348015610dcc57600080fd5b5061052d610ddb3660046149e1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610e1257600080fd5b50610560610e21366004614b9b565b612c05565b348015610e3257600080fd5b5061052d600d5481565b348015610e4857600080fd5b5061052d600e5481565b348015610e5e57600080fd5b5061052d612cbb565b348015610e7357600080fd5b50610560610e82366004614bd3565b612d19565b348015610e9357600080fd5b50610c1e610ea2366004614bd3565b612de1565b348015610eb357600080fd5b50610560610ec23660046149a9565b612e3c565b348015610ed357600080fd5b5060075461060a906001600160a01b031681565b348015610ef357600080fd5b50610560610f02366004614bd3565b612f84565b6005546001600160a01b03610100909104163314610f5a5760405162461bcd60e51b81526020600482018190526024820152600080516020614f1683398151915260448201526064015b60405180910390fd5b600a546001600160a01b0382811691161415610fde5760405162461bcd60e51b815260206004820152603760248201527f466c6f6b694c494e4b3a20546865206c69717569646974792077616c6c65742060448201527f697320616c7265616479207468697320616464726573730000000000000000006064820152608401610f51565b610fe98160016128c3565b600a805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03831690811790915560405181907f79cc7a4346ee3e4ae1badce5b330777b11e18a64a4f1ee310a51437544c94c5290600090a350565b60606003805461105190614e38565b80601f016020809104026020016040519081016040528092919081815260200182805461107d90614e38565b80156110ca5780601f1061109f576101008083540402835291602001916110ca565b820191906000526020600020905b8154815290600101906020018083116110ad57829003601f168201915b5050505050905090565b6005546001600160a01b036101009091041633146111225760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b6006600f55600260108190556011556b033b2e3c9fd0803ce8000000600b819055600e556111506001612c05565b6b033b2e3c9fd0803ce8000000600c55565b600061116f3384846130e1565b5060015b92915050565b600061118684848461323a565b6111d884336111d385604051806060016040528060288152602001614eee602891396001600160a01b038a1660009081526001602090815260408083203384529091529020549190613ad4565b6130e1565b5060019392505050565b6005546001600160a01b036101009091041633146112305760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b60078054821515760100000000000000000000000000000000000000000000027fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff9091161790556040517f3794234fa370c9f3b948dda3e3040530785b2ef1eb27dda3ffde478f4e2643c0906112ab90831515815260200190565b60405180910390a150565b6005546001600160a01b036101009091041633146113045760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b600a8160ff16111561137e5760405162461bcd60e51b815260206004820152603760248201527f466c6f6b694c494e4b3a204469766964656e642072657761726420746178206d60448201527f757374206265206265747765656e203020616e642031300000000000000000006064820152608401610f51565b60ff16601055565b600954604080517f85a6b3ae00000000000000000000000000000000000000000000000000000000815290516000926001600160a01b0316916385a6b3ae916004808301926020929190829003018186803b1580156113e457600080fd5b505afa1580156113f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061141c9190614beb565b905090565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161116f9185906111d39086613082565b6040516bffffffffffffffffffffffff193360601b1660208201526000908190439042906034016040516020818303038152906040528051906020012060001c6114a19190614de2565b6040516bffffffffffffffffffffffff194160601b166020820152459042906034016040516020818303038152906040528051906020012060001c6114e69190614de2565b6114f04442614dca565b6114fa9190614dca565b6115049190614dca565b61150e9190614dca565b6115189190614dca565b60405160200161152a91815260200190565b60408051601f19818403018152919052805160209091012090506000611551606483614de2565b61155c906064614e02565b6115669083614e21565b90508061117357611578600182614dca565b9392505050565b6005546001600160a01b036101009091041633146115cd5760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b6009546040517fbc4c4b37000000000000000000000000000000000000000000000000000000008152336004820152600060248201526001600160a01b039091169063bc4c4b3790604401602060405180830381600087803b15801561165d57600080fd5b505af1158015611671573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116959190614bb7565b50565b6005546001600160a01b036101009091041633146116e65760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b6017805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384811691821790925560095460405163031e79db60e41b81526004810192909252909116906331e79db090602401600060405180830381600087803b15801561175157600080fd5b505af1158015611765573d6000803e3d6000fd5b505050506117748260016128c3565b60095460405163031e79db60e41b81526001600160a01b038381166004830152909116906331e79db090602401600060405180830381600087803b1580156117bb57600080fd5b505af11580156117cf573d6000803e3d6000fd5b505050506117de8160016128c3565b5050565b6005546001600160a01b036101009091041633146118305760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b61183a6000612c05565b6000600f8190556010556b033b2e3c9fd0803ce8000000600b819055600e819055600c55565b6005546001600160a01b036101009091041633146118ae5760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b6007805482151577010000000000000000000000000000000000000000000000027fffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffff9091161790556040517f945267e51880cd67d32e6ca64bb296294740d8d86dfa4284261903b722e5ee37906112ab90831515815260200190565b6005546001600160a01b036101009091041633146119785760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b61198a81670de0b6b3a7640000614e02565b600c5550565b600954604080517f09bbedde00000000000000000000000000000000000000000000000000000000815290516000926001600160a01b0316916309bbedde916004808301926020929190829003018186803b1580156113e457600080fd5b6005546001600160a01b03610100909104163314611a3c5760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b6006546001600160a01b0382811691161415611ac05760405162461bcd60e51b815260206004820152602e60248201527f466c6f6b694c494e4b3a2054686520726f7574657220616c726561647920686160448201527f73207468617420616464726573730000000000000000000000000000000000006064820152608401610f51565b6006546040516001600160a01b03918216918316907f8fc842bbd331dfa973645f4ed48b11683d501ebf1352708d77a5da2ab49a576e90600090a36006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6009546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b03838116600483015260009216906370a08231906024015b60206040518083038186803b158015611b8a57600080fd5b505afa158015611b9e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111739190614beb565b6009546040517fffb2c47900000000000000000000000000000000000000000000000000000000815260048101839052600091829182916001600160a01b03169063ffb2c47990602401606060405180830381600087803b158015611c2657600080fd5b505af1158015611c3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5e9190614c03565b604080518481526020810184905290810182905260608101889052929550909350915032906000907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a350505050565b6005546001600160a01b03610100909104163314611d075760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b600a8160ff161115611d815760405162461bcd60e51b815260206004820152603760248201527f466c6f6b694c494e4b3a204469766964656e642072657761726420746178206d60448201527f757374206265206265747765656e203020616e642031300000000000000000006064820152608401610f51565b60ff16600f55565b6005546001600160a01b03610100909104163314611dd75760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580547fffffffffffffffffffffff0000000000000000000000000000000000000000ff169055565b6005546001600160a01b03610100909104163314611e8c5760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b62030d408110158015611ea257506207a1208111155b611f145760405162461bcd60e51b815260206004820152603f60248201527f466c6f6b694c494e4b3a20676173466f7250726f63657373696e67206d75737460448201527f206265206265747765656e203230302c30303020616e64203530302c303030006064820152608401610f51565b601654811415611f8c5760405162461bcd60e51b815260206004820152603760248201527f466c6f6b694c494e4b3a2043616e6e6f742075706461746520676173466f725060448201527f726f63657373696e6720746f2073616d652076616c75650000000000000000006064820152608401610f51565b60165460405182907f40d7e40e79af4e8e5a9b3c57030d8ea93f13d669c06d448c4d631d4ae7d23db790600090a3601655565b6005546001600160a01b0361010090910416331461200d5760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b6009546001600160a01b03828116911614156120915760405162461bcd60e51b815260206004820152603860248201527f466c6f6b694c494e4b3a20546865206469766964656e6420747261636b65722060448201527f616c7265616479206861732074686174206164647265737300000000000000006064820152608401610f51565b6000819050306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156120d957600080fd5b505afa1580156120ed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061211191906149c5565b6001600160a01b0316146121b35760405162461bcd60e51b815260206004820152605160248201527f466c6f6b694c494e4b3a20546865206e6577206469766964656e64207472616360448201527f6b6572206d757374206265206f776e65642062792074686520464c4f4b49425560648201527f534420746f6b656e20636f6e7472616374000000000000000000000000000000608482015260a401610f51565b60405163031e79db60e41b81526001600160a01b03821660048201819052906331e79db090602401600060405180830381600087803b1580156121f557600080fd5b505af1158015612209573d6000803e3d6000fd5b505060405163031e79db60e41b81523060048201526001600160a01b03841692506331e79db09150602401600060405180830381600087803b15801561224e57600080fd5b505af1158015612262573d6000803e3d6000fd5b505060065460405163031e79db60e41b81526001600160a01b03918216600482015290841692506331e79db09150602401600060405180830381600087803b1580156122ad57600080fd5b505af11580156122c1573d6000803e3d6000fd5b50506009546040516001600160a01b03918216935090851691507f90c7d74461c613da5efa97d90740869367d74ab3aa5837aa4ae9a975f954b7a890600090a36009805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039290921691909117905550565b6005546001600160a01b0361010090910416331461237f5760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b61239181670de0b6b3a7640000614e02565b600e5550565b6005546001600160a01b036101009091041633146123e55760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b60178054821515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff9091161790556040517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc159906112ab90831515815260200190565b60606004805461105190614e38565b6005546001600160a01b036101009091041633146124aa5760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b7f000000000000000000000000242ff6397fc0dddc77711a0f79c5000d97535f186001600160a01b0316826001600160a01b031614156125785760405162461bcd60e51b815260206004820152605060248201527f466c6f6b694c494e4b3a205468652050616e63616b655377617020706169722060448201527f63616e6e6f742062652072656d6f7665642066726f6d206175746f6d6174656460648201527f4d61726b65744d616b6572506169727300000000000000000000000000000000608482015260a401610f51565b6117de8282613b0b565b600954604080517f6f2789ec00000000000000000000000000000000000000000000000000000000815290516000926001600160a01b031691636f2789ec916004808301926020929190829003018186803b1580156113e457600080fd5b600061116f33846111d385604051806060016040528060258152602001614f36602591393360009081526001602090815260408083206001600160a01b038d1684529091529020549190613ad4565b6009546040517fa8b9d2400000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152600092169063a8b9d24090602401611b72565b600061116f33848461323a565b6009546040517ffbcbc0f10000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152600092839283928392839283928392839291169063fbcbc0f1906024015b6101006040518083038186803b1580156126f857600080fd5b505afa15801561270c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127309190614a86565b97509750975097509750975097509750919395975091939597565b6005546001600160a01b036101009091041633146127995760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b6127ab81670de0b6b3a7640000614e02565b600b5550565b6005546001600160a01b036101009091041633146127ff5760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b600754600160a01b900460ff16156128a55760405162461bcd60e51b815260206004820152604e60248201527f466c6f6b694c494e4b3a2041207377617070696e672070726f6365737320697360448201527f2063757272656e746c792072756e6e696e672c20776169742074696c6c20746860648201527f617420697320636f6d706c657465000000000000000000000000000000000000608482015260a401610f51565b476117de6128be836128b8846064613c8f565b90613cea565b613d85565b6005546001600160a01b036101009091041633146129115760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b6001600160a01b03821660009081526018602052604090205460ff16151581151514156129a65760405162461bcd60e51b815260206004820152603560248201527f466c6f6b694c494e4b3a204163636f756e7420697320616c726561647920746860448201527f652076616c7565206f6620276578636c756465642700000000000000000000006064820152608401610f51565b6001600160a01b038216600081815260186020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6005546001600160a01b03610100909104163314612a535760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b60005b82811015612ad2578160186000868685818110612a8357634e487b7160e01b600052603260045260246000fd5b9050602002016020810190612a9891906149a9565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580612aca81614e73565b915050612a56565b507f7fdaf542373fa84f4ee8d662c642f44e4c2276a217d7d29e548b6eb29a233b35838383604051612b0693929190614c94565b60405180910390a1505050565b6005546001600160a01b03610100909104163314612b615760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b60646014541115612c005760405162461bcd60e51b815260206004820152604160248201527f466c6f6b694c494e4b3a2054726561737572792064697669736f72206d75737460448201527f206265206265747765656e2030202830252920616e642031303020283130302560648201527f2900000000000000000000000000000000000000000000000000000000000000608482015260a401610f51565b601455565b6005546001600160a01b03610100909104163314612c535760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b60078054821515600160a81b027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff9091161790556040517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc159906112ab90831515815260200190565b600954604080517fe7841ec000000000000000000000000000000000000000000000000000000000815290516000926001600160a01b03169163e7841ec0916004808301926020929190829003018186803b1580156113e457600080fd5b6005546001600160a01b03610100909104163314612d675760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b6009546040517fe98030c7000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b039091169063e98030c790602401600060405180830381600087803b158015612dc657600080fd5b505af1158015612dda573d6000803e3d6000fd5b5050505050565b6009546040517f5183d6fd0000000000000000000000000000000000000000000000000000000081526004810183905260009182918291829182918291829182916001600160a01b0390911690635183d6fd906024016126df565b6005546001600160a01b03610100909104163314612e8a5760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b6001600160a01b038116612f065760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610f51565b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b6005546001600160a01b03610100909104163314612fd25760405162461bcd60e51b81526020600482018190526024820152600080516020614f168339815191526044820152606401610f51565b60648110158015612fe557506101f48111155b61307d5760405162461bcd60e51b815260206004820152604b60248201527f466c6f6b694c494e4b3a2053656c6c207472616e73616374696f6e206d756c7460448201527f69706c6572206d757374206265206265747765656e203130302028317829206160648201527f6e64203530302028357829000000000000000000000000000000000000000000608482015260a401610f51565b601355565b60008061308f8385614dca565b9050838110156115785760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610f51565b6001600160a01b03831661315c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610f51565b6001600160a01b0382166131d85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610f51565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166132b65760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610f51565b6001600160a01b0382166133325760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610f51565b6001600160a01b03831660009081526008602052604090205460ff1615801561337457506001600160a01b03821660009081526008602052604090205460ff16155b6133c05760405162461bcd60e51b815260206004820152601360248201527f426c61636b6c69737465642061646472657373000000000000000000000000006044820152606401610f51565b600754600160a81b900460ff1680156133f157506001600160a01b0383166000908152601a602052604090205460ff165b1561350d57600b5481111561346e5760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657220616d6f756e74206578636565647320746865206d61785460448201527f78416d6f756e742e0000000000000000000000000000000000000000000000006064820152608401610f51565b6001600160a01b038216600090815260208190526040902054600e546134948383614dca565b11156135075760405162461bcd60e51b8152602060048201526024808201527f45786365656473206d6178696d756d2077616c6c657420746f6b656e20616d6f60448201527f756e742e000000000000000000000000000000000000000000000000000000006064820152608401610f51565b506137ee565b600754600160a81b900460ff16801561353e57506001600160a01b0382166000908152601a602052604090205460ff165b156137ee57600c548111156135bb5760405162461bcd60e51b815260206004820152603a60248201527f53656c6c207472616e7366657220616d6f756e7420657863656564732074686560448201527f206d617853656c6c5472616e73616374696f6e416d6f756e742e0000000000006064820152608401610f51565b30600090815260208190526040902054600d546007549082101590600160a01b900460ff161580156135ea5750805b156137eb57600780547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b17905560125460115460009161363b91613635908690613cea565b90613c8f565b905061364681613f63565b600061366360125461363560105487613cea90919063ffffffff16565b905061366e81613feb565b600a54601454613696916001600160a01b031690613691906128b8476064613c8f565b614189565b6007544790760100000000000000000000000000000000000000000000900460ff1680156136cb5750670de0b6b3a764000081115b156136e9576136e96128be6136de611457565b6128b8846064613c8f565b600660009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561373757600080fd5b505afa15801561374b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061376f91906149c5565b6007546001600160a01b03908116911614156137a4573060009081526020819052604090205461379e816141c4565b506137bf565b306000908152602081905260409020546137bd816142ea565b505b5050600780547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff169055505b50505b600754600090600160a81b900460ff1680156138145750600754600160a01b900460ff16155b9050801561388357601254600090613831906128b8856064613c8f565b6001600160a01b0385166000908152601a602052604090205490915060ff161561386a57601354613867906128b8836064613c8f565b90505b61387483826144e6565b9250613881853083614542565b505b61388e848484614542565b6009546001600160a01b031663e30443bc856138bf816001600160a01b031660009081526020819052604090205490565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561391d57600080fd5b505af192505050801561392e575060015b506009546001600160a01b031663e30443bc84613960816001600160a01b031660009081526020819052604090205490565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156139be57600080fd5b505af19250505080156139cf575060015b50600754600160a01b900460ff16613ace576016546009546040517fffb2c479000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b039091169063ffb2c47990602401606060405180830381600087803b158015613a4357600080fd5b505af1925050508015613a73575060408051601f3d908101601f19168201909252613a7091810190614c03565b60015b613a7c57612dda565b60408051848152602081018490529081018290526060810185905232906001907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a3505050505b50505050565b60008184841115613af85760405162461bcd60e51b8152600401610f519190614d22565b50613b038385614e21565b949350505050565b6001600160a01b0382166000908152601a602052604090205460ff1615158115151415613bc65760405162461bcd60e51b815260206004820152604360248201527f466c6f6b694c494e4b3a204175746f6d61746564206d61726b6574206d616b6560448201527f72207061697220697320616c72656164792073657420746f207468617420766160648201527f6c75650000000000000000000000000000000000000000000000000000000000608482015260a401610f51565b6001600160a01b0382166000908152601a60205260409020805460ff19168215801591909117909155613c535760095460405163031e79db60e41b81526001600160a01b038481166004830152909116906331e79db090602401600060405180830381600087803b158015613c3a57600080fd5b505af1158015613c4e573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6000808211613ce05760405162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f0000000000006044820152606401610f51565b6115788284614de2565b600082613cf957506000611173565b6000613d058385614e02565b905082613d128583614de2565b146115785760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60448201527f77000000000000000000000000000000000000000000000000000000000000006064820152608401610f51565b6040805160028082526060820183526000926020830190803683375050600654604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c464892506004808301926020929190829003018186803b158015613dea57600080fd5b505afa158015613dfe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e2291906149c5565b81600081518110613e4357634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250503081600181518110613e8557634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526006541663b6f9de95836000847f000000000000000000000000000000000000000000000000000000000000dead613ed54261012c613082565b6040518663ffffffff1660e01b8152600401613ef49493929190614ced565b6000604051808303818588803b158015613f0d57600080fd5b505af1158015613f21573d6000803e3d6000fd5b50505050507f6fd378a9d8b7345c2e5b18229aaf1e39d32b177b501d0a0d26a0a858a23a96248282604051613f57929190614d75565b60405180910390a15050565b6000613f70826002613c8f565b90506000613f7e83836144e6565b905047613f8a83613feb565b6000613f9647836144e6565b9050613fa283826146f7565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb561906060015b60405180910390a15050505050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061402e57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561408257600080fd5b505afa158015614096573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140ba91906149c5565b816001815181106140db57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201015260065461410191309116846130e1565b6006546040517f791ac9470000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063791ac94790614153908590600090869030904290600401614d8e565b600060405180830381600087803b15801561416d57600080fd5b505af1158015614181573d6000803e3d6000fd5b505050505050565b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156141bf573d6000803e3d6000fd5b505050565b476141ce82613feb565b4760006141db82846144e6565b6009546040519192506000916001600160a01b039091169083908381818185875af1925050503d806000811461422d576040519150601f19603f3d011682016040523d82523d6000602084013e614232565b606091505b505090508015612dda576009546040517f3243c791000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690633243c79190602401600060405180830381600087803b15801561429b57600080fd5b505af11580156142af573d6000803e3d6000fd5b505060408051888152602081018690527f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc39350019050613fdc565b6142f481306147c9565b6007546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561435157600080fd5b505afa158015614365573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143899190614beb565b6007546009546040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b0391821660048201526024810184905292935060009291169063a9059cbb90604401602060405180830381600087803b1580156143f857600080fd5b505af115801561440c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144309190614bb7565b905080156141bf576009546040517f3243c791000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690633243c79190602401600060405180830381600087803b15801561449757600080fd5b505af11580156144ab573d6000803e3d6000fd5b505060408051868152602081018690527f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc39350019050612b06565b6000828211156145385760405162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f7700006044820152606401610f51565b6115788284614e21565b6001600160a01b0383166145be5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610f51565b6001600160a01b03821661463a5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610f51565b61467781604051806060016040528060268152602001614ec8602691396001600160a01b0386166000908152602081905260409020549190613ad4565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546146a69082613082565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910161322d565b60065461470f9030906001600160a01b0316846130e1565b6006546040517ff305d719000000000000000000000000000000000000000000000000000000008152306004820152602481018490526000604482018190526064820181905260848201524260a48201526001600160a01b039091169063f305d71990839060c4016060604051808303818588803b15801561479057600080fd5b505af11580156147a4573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190612dda9190614c03565b6040805160038082526080820190925260009160208201606080368337019050509050308160008151811061480e57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561486257600080fd5b505afa158015614876573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061489a91906149c5565b816001815181106148bb57634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526007548251911690829060029081106148fa57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201015260065461492091309116856130e1565b6006546040517f5c11d7950000000000000000000000000000000000000000000000000000000081526001600160a01b0390911690635c11d79590614972908690600090869088904290600401614d8e565b600060405180830381600087803b15801561498c57600080fd5b505af11580156149a0573d6000803e3d6000fd5b50505050505050565b6000602082840312156149ba578081fd5b813561157881614ea4565b6000602082840312156149d6578081fd5b815161157881614ea4565b600080604083850312156149f3578081fd5b82356149fe81614ea4565b91506020830135614a0e81614ea4565b809150509250929050565b600080600060608486031215614a2d578081fd5b8335614a3881614ea4565b92506020840135614a4881614ea4565b929592945050506040919091013590565b60008060408385031215614a6b578182fd5b8235614a7681614ea4565b91506020830135614a0e81614eb9565b600080600080600080600080610100898b031215614aa2578384fd5b8851614aad81614ea4565b809850506020890151965060408901519550606089015194506080890151935060a0890151925060c0890151915060e089015190509295985092959890939650565b60008060408385031215614b01578182fd5b8235614b0c81614ea4565b946020939093013593505050565b600080600060408486031215614b2e578283fd5b833567ffffffffffffffff80821115614b45578485fd5b818601915086601f830112614b58578485fd5b813581811115614b66578586fd5b8760208260051b8501011115614b7a578586fd5b60209283019550935050840135614b9081614eb9565b809150509250925092565b600060208284031215614bac578081fd5b813561157881614eb9565b600060208284031215614bc8578081fd5b815161157881614eb9565b600060208284031215614be4578081fd5b5035919050565b600060208284031215614bfc578081fd5b5051919050565b600080600060608486031215614c17578283fd5b8351925060208401519150604084015190509250925092565b600060208284031215614c41578081fd5b813560ff81168114611578578182fd5b6000815180845260208085019450808401835b83811015614c895781516001600160a01b031687529582019590820190600101614c64565b509495945050505050565b6040808252810183905260008460608301825b86811015614cd7578235614cba81614ea4565b6001600160a01b0316825260209283019290910190600101614ca7565b5080925050508215156020830152949350505050565b848152608060208201526000614d066080830186614c51565b6001600160a01b03949094166040830152506060015292915050565b6000602080835283518082850152825b81811015614d4e57858101830151858201604001528201614d32565b81811115614d5f5783604083870101525b50601f01601f1916929092016040019392505050565b828152604060208201526000613b036040830184614c51565b85815284602082015260a060408201526000614dad60a0830186614c51565b6001600160a01b0394909416606083015250608001529392505050565b60008219821115614ddd57614ddd614e8e565b500190565b600082614dfd57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615614e1c57614e1c614e8e565b500290565b600082821015614e3357614e33614e8e565b500390565b600181811c90821680614e4c57607f821691505b60208210811415614e6d57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614e8757614e87614e8e565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461169557600080fd5b801515811461169557600080fdfe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220ba2a1756657c4d1a84a083cbbf89f6a123649244c832ea5641fc528bd31d22f764736f6c63430008040033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.