ERC-20
Overview
Max Total Supply
214,267,417,116.953017816790593885 KitsuneInu_Dividend_Tracker
Holders
359
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
17,170,559.351123486701671239 KitsuneInu_Dividend_TrackerValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract contains unverified libraries: IterableMapping
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
KitsuneInuDividendTracker
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-08-14 */ /** *Submitted for verification at Etherscan.io on 2021-08-08 */ // 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 = 0x3301Ee63Fb29F863f2333Bd4466acb46CD8323E6; // 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; uint256 public gasForTransfer; constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol) { gasForTransfer = 3000; } 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 KitsuneInu is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public uniswapV2Router; address public immutable uniswapV2Pair; bool private liquidating; KitsuneInuDividendTracker public dividendTracker; address public liquidityWallet; uint256 public constant MAX_SELL_TRANSACTION_AMOUNT = 2500000000 * (10**18); uint256 public constant ETH_REWARDS_FEE = 11; uint256 public constant LIQUIDITY_FEE = 3; uint256 public constant TOTAL_FEES = ETH_REWARDS_FEE + LIQUIDITY_FEE; bool _swapEnabled = false; bool openForPresale = false; mapping (address => bool) private _isBlackListedBot; address[] private _blackListedBots; address private _dividendToken = 0x3301Ee63Fb29F863f2333Bd4466acb46CD8323E6; address public marketingAddress = 0x61B3e99AfA0925EaF18bDeb8810b01b4ed1C895B; bool _maxBuyEnabled = true; // use by default 150,000 gas to process auto-claiming dividends uint256 public gasForProcessing = 150000; // liquidate tokens for ETH when the contract reaches 25000k tokens by default uint256 public liquidateTokensAtAmount = 25000000 * (10**18); // whether the token can already be traded bool public tradingEnabled; function activate() public onlyOwner { require(!tradingEnabled, "KitsuneInu: Trading is already enabled"); _swapEnabled = true; tradingEnabled = true; } // exclude from fees and max transaction amount mapping (address => bool) private _isExcludedFromFees; // addresses that can make transfers before presale is over mapping (address => bool) public canTransferBeforeTradingIsEnabled; // 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 UpdatedDividendTracker(address indexed newAddress, address indexed oldAddress); event UpdatedUniswapV2Router(address indexed newAddress, address indexed oldAddress); event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value); event LiquidityWalletUpdated(address indexed newLiquidityWallet, address indexed oldLiquidityWallet); event GasForProcessingUpdated(uint256 indexed newValue, uint256 indexed oldValue); event LiquidationThresholdUpdated(uint256 indexed newValue, uint256 indexed oldValue); event Liquified( uint256 tokensSwapped, uint256 ethReceived, uint256 tokensIntoLiqudity ); event SwapAndSendToDev( uint256 tokensSwapped, uint256 ethReceived ); event SentDividends( uint256 tokensSwapped, uint256 amount ); event ProcessedDividendTracker( uint256 iterations, uint256 claims, uint256 lastProcessedIndex, bool indexed automatic, uint256 gas, address indexed processor ); constructor() ERC20("Kitsune Inu", "KITSU") { dividendTracker = new KitsuneInuDividendTracker(); liquidityWallet = owner(); IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); // 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(owner()); dividendTracker.excludeFromDividends(address(_uniswapV2Router)); dividendTracker.excludeFromDividends(address(0x000000000000000000000000000000000000dEaD)); // exclude from paying fees or having max transaction amount excludeFromFees(liquidityWallet); excludeFromFees(address(this)); // enable owner wallet to send tokens before presales are over. canTransferBeforeTradingIsEnabled[owner()] = true; /* _mint is an internal function in ERC20.sol that is only called here, and CANNOT be called ever again */ _mint(owner(), 250000000000 * (10**18)); } receive() external payable { } function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner { require(pair != uniswapV2Pair, "KitsuneInu: The Uniswap pair cannot be removed from automatedMarketMakerPairs"); _setAutomatedMarketMakerPair(pair, value); } function _setAutomatedMarketMakerPair(address pair, bool value) private { require(automatedMarketMakerPairs[pair] != value, "KitsuneInu: Automated market maker pair is already set to that value"); automatedMarketMakerPairs[pair] = value; if(value) { dividendTracker.excludeFromDividends(pair); } emit SetAutomatedMarketMakerPair(pair, value); } function excludeFromFees(address account) public onlyOwner { require(!_isExcludedFromFees[account], "KitsuneInu: Account is already excluded from fees"); _isExcludedFromFees[account] = true; } function updateGasForTransfer(uint256 gasForTransfer) external onlyOwner { dividendTracker.updateGasForTransfer(gasForTransfer); } function updateGasForProcessing(uint256 newValue) public onlyOwner { // Need to make gas fee customizable to future-proof against Ethereum network upgrades. require(newValue != gasForProcessing, "KitsuneInu: Cannot update gasForProcessing to same value"); emit GasForProcessingUpdated(newValue, gasForProcessing); gasForProcessing = newValue; } function updateClaimWait(uint256 claimWait) external onlyOwner { dividendTracker.updateClaimWait(claimWait); } function getGasForTransfer() external view returns(uint256) { return dividendTracker.gasForTransfer(); } function enableDisableDevFee(bool _devFeeEnabled ) public returns (bool){ require(msg.sender == liquidityWallet, "Only Dev Address can disable dev fee"); _swapEnabled = _devFeeEnabled; return(_swapEnabled); } function setOpenForPresale(bool open )external onlyOwner { openForPresale = open; } function setMaxBuyEnabled(bool enabled ) external onlyOwner { _maxBuyEnabled = enabled; } 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 addBotToBlackList(address account) external onlyOwner() { require(account != 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D, 'We can not blacklist Uniswap router.'); require(!_isBlackListedBot[account], "Account is already blacklisted"); _isBlackListedBot[account] = true; _blackListedBots.push(account); } function removeBotFromBlackList(address account) external onlyOwner() { require(_isBlackListedBot[account], "Account is not blacklisted"); for (uint256 i = 0; i < _blackListedBots.length; i++) { if (_blackListedBots[i] == account) { _blackListedBots[i] = _blackListedBots[_blackListedBots.length - 1]; _isBlackListedBot[account] = false; _blackListedBots.pop(); break; } } } 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 getNumberOfDividendTokenHolders() external view returns(uint256) { return dividendTracker.getNumberOfTokenHolders(); } 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(!_isBlackListedBot[to], "You have no power here!"); require(!_isBlackListedBot[msg.sender], "You have no power here!"); require(!_isBlackListedBot[from], "You have no power here!"); //to prevent bots both buys and sells will have a max on launch after only sells will if(from != owner() && to != owner() && _maxBuyEnabled) require(amount <= MAX_SELL_TRANSACTION_AMOUNT, "Transfer amount exceeds the maxTxAmount."); bool tradingIsEnabled = tradingEnabled; // only whitelisted addresses can make transfers before the public presale is over. if (!tradingIsEnabled) { //turn transfer on to allow for whitelist form/mutlisend presale if(!openForPresale){ require(canTransferBeforeTradingIsEnabled[from], "KitsuneInu: This account cannot send tokens until trading is enabled"); } } if ((from == uniswapV2Pair || to == uniswapV2Pair) && tradingIsEnabled) { //require(!antiBot.scanAddress(from, uniswapV2Pair, tx.origin), "Beep Beep Boop, You're a piece of poop"); // require(!antiBot.scanAddress(to, uniswair, tx.origin), "Beep Beep Boop, You're a piece of poop"); } if (amount == 0) { super._transfer(from, to, 0); return; } if (!liquidating && tradingIsEnabled && automatedMarketMakerPairs[to] && // sells only by detecting transfer to automated market maker pair from != address(uniswapV2Router) && //router -> pair is removing liquidity which shouldn't have max !_isExcludedFromFees[to] //no max for those excluded from fees ) { require(amount <= MAX_SELL_TRANSACTION_AMOUNT, "Sell transfer amount exceeds the MAX_SELL_TRANSACTION_AMOUNT."); } uint256 contractTokenBalance = balanceOf(address(this)); bool canSwap = contractTokenBalance >= liquidateTokensAtAmount; if (tradingIsEnabled && canSwap && _swapEnabled && !liquidating && !automatedMarketMakerPairs[from] && from != liquidityWallet && to != liquidityWallet ) { liquidating = true; uint256 swapTokens = contractTokenBalance.mul(LIQUIDITY_FEE).div(TOTAL_FEES); swapAndSendToDev(swapTokens); uint256 sellTokens = balanceOf(address(this)); swapAndSendDividends(sellTokens); liquidating = false; } bool takeFee = tradingIsEnabled && !liquidating; // if any account belongs to _isExcludedFromFee account then remove the fee if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) { takeFee = false; } if (takeFee) { uint256 fees = amount.mul(TOTAL_FEES).div(100); 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 (!liquidating) { 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 swapAndSendToDev(uint256 tokens) private { uint256 tokenBalance = tokens; // capture the contract's current ETH balance. // this is so that we can capture exactly the amount of ETH that the // swap creates, and not make the liquidity event include any ETH that // has been manually sent to the contract uint256 initialBalance = address(this).balance; // swap tokens for ETH swapTokensForEth(tokenBalance); // <- 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); address payable _devAndMarketingAddress = payable(marketingAddress); _devAndMarketingAddress.transfer(newBalance); emit SwapAndSendToDev(tokens, newBalance); } 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 SentDividends(tokens, dividends); } } function swapTokensForEth(uint256 tokenAmount) private { // generate the uniswap pair path of token -> weth address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); _approve(address(this), address(uniswapV2Router), tokenAmount); // make the swap uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // accept any amount of ETH path, address(this), block.timestamp ); } } contract KitsuneInuDividendTracker 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 GasForTransferUpdated(uint256 indexed newValue, uint256 indexed oldValue); event ClaimWaitUpdated(uint256 indexed newValue, uint256 indexed oldValue); event Claim(address indexed account, uint256 amount, bool indexed automatic); constructor() DividendPayingToken("KitsuneInu_Dividend_Tracker", "KitsuneInu_Dividend_Tracker") { claimWait = 3600; minimumTokenBalanceForDividends = 2500000 * (10**18); //must hold 2500000+ tokens } function _transfer(address, address, uint256) pure internal override { require(false, "KitsuneInu_Dividend_Tracker: No transfers allowed"); } function withdrawDividend() pure public override { require(false, "KitsuneInu_Dividend_Tracker: withdrawDividend disabled. Use the 'claim' function on the main KitsuneInu contract."); } function excludeFromDividends(address account) external onlyOwner { require(!excludedFromDividends[account]); excludedFromDividends[account] = true; _setBalance(account, 0); tokenHoldersMap.remove(account); emit ExcludeFromDividends(account); } function updateGasForTransfer(uint256 newGasForTransfer) external onlyOwner { require(newGasForTransfer != gasForTransfer, "KitsuneInu_Dividend_Tracker: Cannot update gasForTransfer to same value"); emit GasForTransferUpdated(newGasForTransfer, gasForTransfer); gasForTransfer = newGasForTransfer; } function updateClaimWait(uint256 newClaimWait) external onlyOwner { require(newClaimWait >= 1800 && newClaimWait <= 86400, "KitsuneInu_Dividend_Tracker: claimWait must be updated to between 1 and 24 hours"); require(newClaimWait != claimWait, "KitsuneInu_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; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"bool","name":"automatic","type":"bool"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"oldValue","type":"uint256"}],"name":"ClaimWaitUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"DividendWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"DividendsDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"ExcludeFromDividends","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"oldValue","type":"uint256"}],"name":"GasForTransferUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"accumulativeDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimWait","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributeDividends","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"distributeDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"dividendOf","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":"account","type":"address"}],"name":"excludeFromDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"excludedFromDividends","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gasForTransfer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getAccount","outputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"int256","name":"index","type":"int256"},{"internalType":"int256","name":"iterationsUntilProcessed","type":"int256"},{"internalType":"uint256","name":"withdrawableDividends","type":"uint256"},{"internalType":"uint256","name":"totalDividends","type":"uint256"},{"internalType":"uint256","name":"lastClaimTime","type":"uint256"},{"internalType":"uint256","name":"nextClaimTime","type":"uint256"},{"internalType":"uint256","name":"secondsUntilAutoClaimAvailable","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getAccountAtIndex","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":"getLastProcessedIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumberOfTokenHolders","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":"","type":"address"}],"name":"lastClaimTimes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastProcessedIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumTokenBalanceForDividends","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":[{"internalType":"uint256","name":"gas","type":"uint256"}],"name":"process","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"bool","name":"automatic","type":"bool"}],"name":"processAccount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"setBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newToken","type":"address"}],"name":"setDividendTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDividendsDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newClaimWait","type":"uint256"}],"name":"updateClaimWait","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newGasForTransfer","type":"uint256"}],"name":"updateGasForTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawDividend","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"withdrawableDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"withdrawnDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a0604052600880546001600160a01b031916733301ee63fb29f863f2333bd4466acb46cd8323e61790553480156200003757600080fd5b50604080518082018252601b8082527f4b697473756e65496e755f4469766964656e645f547261636b6572000000000060208084018281528551808701909652928552840152815191929183918391620000949160039162000135565b508051620000aa90600490602084019062000135565b50506005805460ff191660121790555050610bb8600c55506000620000cc3390565b600d80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350610e106015556a021165458500521280000060805262000218565b8280546200014390620001db565b90600052602060002090601f016020900481019282620001675760008555620001b2565b82601f106200018257805160ff1916838001178555620001b2565b82800160010185558215620001b2579182015b82811115620001b257825182559160200191906001019062000195565b50620001c0929150620001c4565b5090565b5b80821115620001c05760008155600101620001c5565b600181811c90821680620001f057607f821691505b602082108114156200021257634e487b7160e01b600052602260045260246000fd5b50919050565b60805161237f6200023b600039600081816106ba015261110a015261237f6000f3fe60806040526004361061023f5760003560e01c80637e3e7fd21161012e578063bc4c4b37116100ab578063e98030c71161006f578063e98030c714610757578063f2fde38b14610777578063f39b502014610797578063fbcbc0f1146107ad578063ffb2c479146107cd57600080fd5b8063bc4c4b3714610688578063be10b614146106a8578063dd62ed3e146106dc578063e30443bc14610722578063e7841ec01461074257600080fd5b80639d55d16f116100f25780639d55d16f146105d2578063a457c2d7146105f2578063a8b9d24014610612578063a9059cbb14610632578063aafd847a1461065257600080fd5b80637e3e7fd21461052c57806385a6b3ae146105695780638da5cb5b1461057f57806391b89fba1461059d57806395d89b41146105bd57600080fd5b8063313ce567116101bc5780635183d6fd116101805780635183d6fd146104515780636a474002146104b65780636f2789ec146104cb57806370a08231146104e1578063715018a61461051757600080fd5b8063313ce5671461039f57806331e79db0146103c15780633243c791146103e157806339509351146104015780634e7b827f1461042157600080fd5b806318160ddd1161020357806318160ddd14610307578063226cfa3d1461031c57806323b872dd1461034957806327ce0147146103695780633009a6091461038957600080fd5b806303c833021461024b57806306fdde0314610255578063095ea7b31461028057806309bbedde146102b05780631582358e146102cf57600080fd5b3661024657005b600080fd5b610253610808565b005b34801561026157600080fd5b5061026a61089b565b60405161027791906120d5565b60405180910390f35b34801561028c57600080fd5b506102a061029b366004611ff1565b61092d565b6040519015158152602001610277565b3480156102bc57600080fd5b50600e545b604051908152602001610277565b3480156102db57600080fd5b506008546102ef906001600160a01b031681565b6040516001600160a01b039091168152602001610277565b34801561031357600080fd5b506002546102c1565b34801561032857600080fd5b506102c1610337366004611f81565b60146020526000908152604090205481565b34801561035557600080fd5b506102a0610364366004612049565b610944565b34801561037557600080fd5b506102c1610384366004611f81565b6109ad565b34801561039557600080fd5b506102c160125481565b3480156103ab57600080fd5b5060055460405160ff9091168152602001610277565b3480156103cd57600080fd5b506102536103dc366004611f81565b610a09565b3480156103ed57600080fd5b506102536103fc3660046120bd565b610b39565b34801561040d57600080fd5b506102a061041c366004611ff1565b610bba565b34801561042d57600080fd5b506102a061043c366004611f81565b60136020526000908152604090205460ff1681565b34801561045d57600080fd5b5061047161046c3660046120bd565b610bf0565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e082015261010001610277565b3480156104c257600080fd5b50610253610d62565b3480156104d757600080fd5b506102c160155481565b3480156104ed57600080fd5b506102c16104fc366004611f81565b6001600160a01b031660009081526020819052604090205490565b34801561052357600080fd5b50610253610e10565b34801561053857600080fd5b50610253610547366004611f81565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b34801561057557600080fd5b506102c1600b5481565b34801561058b57600080fd5b50600d546001600160a01b03166102ef565b3480156105a957600080fd5b506102c16105b8366004611f81565b610e84565b3480156105c957600080fd5b5061026a610e8f565b3480156105de57600080fd5b506102536105ed3660046120bd565b610e9e565b3480156105fe57600080fd5b506102a061060d366004611ff1565b610f83565b34801561061e57600080fd5b506102c161062d366004611f81565b610fd2565b34801561063e57600080fd5b506102a061064d366004611ff1565b610ffe565b34801561065e57600080fd5b506102c161066d366004611f81565b6001600160a01b03166000908152600a602052604090205490565b34801561069457600080fd5b506102a06106a3366004611fb9565b61100b565b3480156106b457600080fd5b506102c17f000000000000000000000000000000000000000000000000000000000000000081565b3480156106e857600080fd5b506102c16106f736600461201c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561072e57600080fd5b5061025361073d366004611ff1565b6110b9565b34801561074e57600080fd5b506012546102c1565b34801561076357600080fd5b506102536107723660046120bd565b611245565b34801561078357600080fd5b50610253610792366004611f81565b6113c5565b3480156107a357600080fd5b506102c1600c5481565b3480156107b957600080fd5b506104716107c8366004611f81565b6114b0565b3480156107d957600080fd5b506107ed6107e83660046120bd565b611628565b60408051938452602084019290925290820152606001610277565b600061081360025490565b1161081d57600080fd5b34156108995761085061082f60025490565b61083d34600160801b611751565b61084791906121b6565b600654906117d7565b60065560405134815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a2600b5461089590346117d7565b600b555b565b6060600380546108aa9061224b565b80601f01602080910402602001604051908101604052809291908181526020018280546108d69061224b565b80156109235780601f106108f857610100808354040283529160200191610923565b820191906000526020600020905b81548152906001019060200180831161090657829003601f168201915b5050505050905090565b600061093a338484611836565b5060015b92915050565b600061095184848461195a565b6109a3843361099e856040518060600160405280602881526020016122fd602891396001600160a01b038a16600090815260016020908152604080832033845290915290205491906119bc565b611836565b5060019392505050565b6001600160a01b03811660009081526009602090815260408083205491839052822054600654600160801b926109ff926109fa926109f4916109ef9190611751565b6119f3565b90611a03565b611a41565b61093e91906121b6565b600d546001600160a01b03163314610a3c5760405162461bcd60e51b8152600401610a3390612128565b60405180910390fd5b6001600160a01b03811660009081526013602052604090205460ff1615610a6257600080fd5b6001600160a01b0381166000908152601360205260408120805460ff19166001179055610a90908290611a54565b60405163131836e760e21b8152600e60048201526001600160a01b038216602482015273995d8a79cdd8e7572b1d03d9e0f8d2d1e424ba0f90634c60db9c9060440160006040518083038186803b158015610aea57600080fd5b505af4158015610afe573d6000803e3d6000fd5b50506040516001600160a01b03841692507fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b259150600090a250565b6000610b4460025490565b11610b4e57600080fd5b8015610bb757610b6e610b6060025490565b61083d83600160801b611751565b60065560405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a2600b54610bb390826117d7565b600b555b50565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161093a91859061099e90866117d7565b600080600080600080600080600e73995d8a79cdd8e7572b1d03d9e0f8d2d1e424ba0f63deb3d89690916040518263ffffffff1660e01b8152600401610c3891815260200190565b60206040518083038186803b158015610c5057600080fd5b505af4158015610c64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8891906120a5565b8910610cad575060009650600019955085945086935083925082915081905080610d57565b6040516368d54f3f60e11b8152600e6004820152602481018a905260009073995d8a79cdd8e7572b1d03d9e0f8d2d1e424ba0f9063d1aa9e7e9060440160206040518083038186803b158015610d0257600080fd5b505af4158015610d16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3a9190611f9d565b9050610d45816114b0565b98509850985098509850985098509850505b919395975091939597565b60405162461bcd60e51b815260206004820152607160248201527f4b697473756e65496e755f4469766964656e645f547261636b65723a2077697460448201527f68647261774469766964656e642064697361626c65642e20557365207468652060648201527f27636c61696d272066756e6374696f6e206f6e20746865206d61696e204b697460848201527039bab732a4b73a9031b7b73a3930b1ba1760791b60a482015260c401610a33565b600d546001600160a01b03163314610e3a5760405162461bcd60e51b8152600401610a3390612128565b600d546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600d80546001600160a01b0319169055565b600061093e82610fd2565b6060600480546108aa9061224b565b600d546001600160a01b03163314610ec85760405162461bcd60e51b8152600401610a3390612128565b600c54811415610f505760405162461bcd60e51b815260206004820152604760248201527f4b697473756e65496e755f4469766964656e645f547261636b65723a2043616e60448201527f6e6f742075706461746520676173466f725472616e7366657220746f2073616d606482015266652076616c756560c81b608482015260a401610a33565b600c5460405182907f5e2963a3d7c88b344b101641f89a2f7da9734fc777ed11ad0097b2775a9e9d1790600090a3600c55565b600061093a338461099e85604051806060016040528060258152602001612325602591393360009081526001602090815260408083206001600160a01b038d16845290915290205491906119bc565b6001600160a01b0381166000908152600a602052604081205461093e90610ff8846109ad565b90611ab3565b600061093a33848461195a565b600d546000906001600160a01b031633146110385760405162461bcd60e51b8152600401610a3390612128565b600061104384611b0f565b905080156110af576001600160a01b038416600081815260146020526040908190204290555184151591907fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf0929061109d9085815260200190565b60405180910390a3600191505061093e565b5060009392505050565b600d546001600160a01b031633146110e35760405162461bcd60e51b8152600401610a3390612128565b6001600160a01b03821660009081526013602052604090205460ff1615611108575050565b7f000000000000000000000000000000000000000000000000000000000000000081106111b7576111398282611a54565b604051632f0ad01760e21b8152600e60048201526001600160a01b03831660248201526044810182905273995d8a79cdd8e7572b1d03d9e0f8d2d1e424ba0f9063bc2b405c9060640160006040518083038186803b15801561119a57600080fd5b505af41580156111ae573d6000803e3d6000fd5b50505050611235565b6111c2826000611a54565b60405163131836e760e21b8152600e60048201526001600160a01b038316602482015273995d8a79cdd8e7572b1d03d9e0f8d2d1e424ba0f90634c60db9c9060440160006040518083038186803b15801561121c57600080fd5b505af4158015611230573d6000803e3d6000fd5b505050505b61124082600161100b565b505050565b600d546001600160a01b0316331461126f5760405162461bcd60e51b8152600401610a3390612128565b61070881101580156112845750620151808111155b61130f5760405162461bcd60e51b815260206004820152605060248201527f4b697473756e65496e755f4469766964656e645f547261636b65723a20636c6160448201527f696d57616974206d757374206265207570646174656420746f2062657477656560648201526f6e203120616e6420323420686f75727360801b608482015260a401610a33565b6015548114156113925760405162461bcd60e51b815260206004820152604260248201527f4b697473756e65496e755f4469766964656e645f547261636b65723a2043616e60448201527f6e6f742075706461746520636c61696d5761697420746f2073616d652076616c606482015261756560f01b608482015260a401610a33565b60155460405182907f474ea64804364a1e29a4487ddb63c3342a2dd826ccd8acf48825e680a0e6f20f90600090a3601555565b600d546001600160a01b031633146113ef5760405162461bcd60e51b8152600401610a3390612128565b6001600160a01b0381166114545760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a33565b600d546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6040516317e142d160e01b8152600e60048201526001600160a01b0382166024820152819060009081908190819081908190819073995d8a79cdd8e7572b1d03d9e0f8d2d1e424ba0f906317e142d19060440160206040518083038186803b15801561151b57600080fd5b505af415801561152f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061155391906120a5565b96506000199550600087126115b5576012548711156115815760125461157a908890611c83565b95506115b5565b601254600e54600091106115965760006115a5565b601254600e546115a591611ab3565b90506115b18882611a03565b9650505b6115be88610fd2565b94506115c9886109ad565b6001600160a01b0389166000908152601460205260409020549094509250826115f3576000611601565b6015546116019084906117d7565b915042821161161157600061161b565b61161b8242611ab3565b9050919395975091939597565b600e5460009081908190806116485750506012546000925082915061174a565b6012546000805a90506000805b898410801561166357508582105b15611739578461167281612286565b600e549096508610905061168557600094505b6000600e60000186815481106116ab57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031680835260149091526040909120549091506116dc90611ccf565b156116ff576116ec81600161100b565b156116ff57816116fb81612286565b9250505b8261170981612286565b93505060005a9050808511156117305761172d6117268683611ab3565b87906117d7565b95505b93506116559050565b601285905590975095509193505050505b9193909250565b6000826117605750600061093e565b600061176c83856121d6565b90508261177985836121b6565b146117d05760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610a33565b9392505050565b6000806117e4838561219e565b9050838110156117d05760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610a33565b6001600160a01b0383166118985760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a33565b6001600160a01b0382166118f95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a33565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60405162461bcd60e51b815260206004820152603160248201527f4b697473756e65496e755f4469766964656e645f547261636b65723a204e6f206044820152701d1c985b9cd9995c9cc8185b1b1bddd959607a1b6064820152608401610a33565b600081848411156119e05760405162461bcd60e51b8152600401610a3391906120d5565b506119eb8385612234565b949350505050565b6000818181121561093e57600080fd5b600080611a10838561215d565b905060008312158015611a235750838112155b80611a385750600083128015611a3857508381125b6117d057600080fd5b600080821215611a5057600080fd5b5090565b6001600160a01b03821660009081526020819052604090205480821115611a93576000611a818383611ab3565b9050611a8d8482611cf6565b50505050565b80821015611240576000611aa78284611ab3565b9050611a8d8482611d5a565b600082821115611b055760405162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f7700006044820152606401610a33565b6117d08284612234565b600080611b1b83610fd2565b90508015611c7a576001600160a01b0383166000908152600a6020526040902054611b4690826117d7565b6001600160a01b0384166000818152600a6020526040908190209290925590517fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d90611b959084815260200190565b60405180910390a260085460405163a9059cbb60e01b81526001600160a01b03858116600483015260248201849052600092169063a9059cbb90604401602060405180830381600087803b158015611bec57600080fd5b505af1158015611c00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c249190612089565b905080611c73576001600160a01b0384166000908152600a6020526040902054611c4e9083611ab3565b6001600160a01b039094166000908152600a6020526040812094909455509192915050565b5092915050565b50600092915050565b6000808212158015611c9e575082611c9b83826121f5565b13155b80611cbc5750600082128015611cbc575082611cba83826121f5565b135b611cc557600080fd5b6117d082846121f5565b600042821115611ce157506000919050565b601554611cee4284611ab3565b101592915050565b611d008282611d9e565b611d3a611d1b6109ef8360065461175190919063ffffffff16565b6001600160a01b03841660009081526009602052604090205490611c83565b6001600160a01b0390921660009081526009602052604090209190915550565b611d648282611e7d565b611d3a611d7f6109ef8360065461175190919063ffffffff16565b6001600160a01b03841660009081526009602052604090205490611a03565b6001600160a01b038216611df45760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610a33565b600254611e0190826117d7565b6002556001600160a01b038216600090815260208190526040902054611e2790826117d7565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b6001600160a01b038216611edd5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610a33565b611f1a816040518060600160405280602281526020016122db602291396001600160a01b03851660009081526020819052604090205491906119bc565b6001600160a01b038316600090815260208190526040902055600254611f409082611ab3565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611e71565b600060208284031215611f92578081fd5b81356117d0816122b7565b600060208284031215611fae578081fd5b81516117d0816122b7565b60008060408385031215611fcb578081fd5b8235611fd6816122b7565b91506020830135611fe6816122cc565b809150509250929050565b60008060408385031215612003578182fd5b823561200e816122b7565b946020939093013593505050565b6000806040838503121561202e578182fd5b8235612039816122b7565b91506020830135611fe6816122b7565b60008060006060848603121561205d578081fd5b8335612068816122b7565b92506020840135612078816122b7565b929592945050506040919091013590565b60006020828403121561209a578081fd5b81516117d0816122cc565b6000602082840312156120b6578081fd5b5051919050565b6000602082840312156120ce578081fd5b5035919050565b6000602080835283518082850152825b81811015612101578581018301518582016040015282016120e5565b818111156121125783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600080821280156001600160ff1b038490038513161561217f5761217f6122a1565b600160ff1b8390038412811615612198576121986122a1565b50500190565b600082198211156121b1576121b16122a1565b500190565b6000826121d157634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156121f0576121f06122a1565b500290565b60008083128015600160ff1b850184121615612213576122136122a1565b6001600160ff1b038401831381161561222e5761222e6122a1565b50500390565b600082821015612246576122466122a1565b500390565b600181811c9082168061225f57607f821691505b6020821081141561228057634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561229a5761229a6122a1565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114610bb757600080fd5b8015158114610bb757600080fdfe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212209b7252d92738756596cb61fa8c2f50eb2d42c4f7d012ff5513f2c4da37d9787364736f6c63430008040033
Deployed Bytecode
0x60806040526004361061023f5760003560e01c80637e3e7fd21161012e578063bc4c4b37116100ab578063e98030c71161006f578063e98030c714610757578063f2fde38b14610777578063f39b502014610797578063fbcbc0f1146107ad578063ffb2c479146107cd57600080fd5b8063bc4c4b3714610688578063be10b614146106a8578063dd62ed3e146106dc578063e30443bc14610722578063e7841ec01461074257600080fd5b80639d55d16f116100f25780639d55d16f146105d2578063a457c2d7146105f2578063a8b9d24014610612578063a9059cbb14610632578063aafd847a1461065257600080fd5b80637e3e7fd21461052c57806385a6b3ae146105695780638da5cb5b1461057f57806391b89fba1461059d57806395d89b41146105bd57600080fd5b8063313ce567116101bc5780635183d6fd116101805780635183d6fd146104515780636a474002146104b65780636f2789ec146104cb57806370a08231146104e1578063715018a61461051757600080fd5b8063313ce5671461039f57806331e79db0146103c15780633243c791146103e157806339509351146104015780634e7b827f1461042157600080fd5b806318160ddd1161020357806318160ddd14610307578063226cfa3d1461031c57806323b872dd1461034957806327ce0147146103695780633009a6091461038957600080fd5b806303c833021461024b57806306fdde0314610255578063095ea7b31461028057806309bbedde146102b05780631582358e146102cf57600080fd5b3661024657005b600080fd5b610253610808565b005b34801561026157600080fd5b5061026a61089b565b60405161027791906120d5565b60405180910390f35b34801561028c57600080fd5b506102a061029b366004611ff1565b61092d565b6040519015158152602001610277565b3480156102bc57600080fd5b50600e545b604051908152602001610277565b3480156102db57600080fd5b506008546102ef906001600160a01b031681565b6040516001600160a01b039091168152602001610277565b34801561031357600080fd5b506002546102c1565b34801561032857600080fd5b506102c1610337366004611f81565b60146020526000908152604090205481565b34801561035557600080fd5b506102a0610364366004612049565b610944565b34801561037557600080fd5b506102c1610384366004611f81565b6109ad565b34801561039557600080fd5b506102c160125481565b3480156103ab57600080fd5b5060055460405160ff9091168152602001610277565b3480156103cd57600080fd5b506102536103dc366004611f81565b610a09565b3480156103ed57600080fd5b506102536103fc3660046120bd565b610b39565b34801561040d57600080fd5b506102a061041c366004611ff1565b610bba565b34801561042d57600080fd5b506102a061043c366004611f81565b60136020526000908152604090205460ff1681565b34801561045d57600080fd5b5061047161046c3660046120bd565b610bf0565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e082015261010001610277565b3480156104c257600080fd5b50610253610d62565b3480156104d757600080fd5b506102c160155481565b3480156104ed57600080fd5b506102c16104fc366004611f81565b6001600160a01b031660009081526020819052604090205490565b34801561052357600080fd5b50610253610e10565b34801561053857600080fd5b50610253610547366004611f81565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b34801561057557600080fd5b506102c1600b5481565b34801561058b57600080fd5b50600d546001600160a01b03166102ef565b3480156105a957600080fd5b506102c16105b8366004611f81565b610e84565b3480156105c957600080fd5b5061026a610e8f565b3480156105de57600080fd5b506102536105ed3660046120bd565b610e9e565b3480156105fe57600080fd5b506102a061060d366004611ff1565b610f83565b34801561061e57600080fd5b506102c161062d366004611f81565b610fd2565b34801561063e57600080fd5b506102a061064d366004611ff1565b610ffe565b34801561065e57600080fd5b506102c161066d366004611f81565b6001600160a01b03166000908152600a602052604090205490565b34801561069457600080fd5b506102a06106a3366004611fb9565b61100b565b3480156106b457600080fd5b506102c17f000000000000000000000000000000000000000000021165458500521280000081565b3480156106e857600080fd5b506102c16106f736600461201c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561072e57600080fd5b5061025361073d366004611ff1565b6110b9565b34801561074e57600080fd5b506012546102c1565b34801561076357600080fd5b506102536107723660046120bd565b611245565b34801561078357600080fd5b50610253610792366004611f81565b6113c5565b3480156107a357600080fd5b506102c1600c5481565b3480156107b957600080fd5b506104716107c8366004611f81565b6114b0565b3480156107d957600080fd5b506107ed6107e83660046120bd565b611628565b60408051938452602084019290925290820152606001610277565b600061081360025490565b1161081d57600080fd5b34156108995761085061082f60025490565b61083d34600160801b611751565b61084791906121b6565b600654906117d7565b60065560405134815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a2600b5461089590346117d7565b600b555b565b6060600380546108aa9061224b565b80601f01602080910402602001604051908101604052809291908181526020018280546108d69061224b565b80156109235780601f106108f857610100808354040283529160200191610923565b820191906000526020600020905b81548152906001019060200180831161090657829003601f168201915b5050505050905090565b600061093a338484611836565b5060015b92915050565b600061095184848461195a565b6109a3843361099e856040518060600160405280602881526020016122fd602891396001600160a01b038a16600090815260016020908152604080832033845290915290205491906119bc565b611836565b5060019392505050565b6001600160a01b03811660009081526009602090815260408083205491839052822054600654600160801b926109ff926109fa926109f4916109ef9190611751565b6119f3565b90611a03565b611a41565b61093e91906121b6565b600d546001600160a01b03163314610a3c5760405162461bcd60e51b8152600401610a3390612128565b60405180910390fd5b6001600160a01b03811660009081526013602052604090205460ff1615610a6257600080fd5b6001600160a01b0381166000908152601360205260408120805460ff19166001179055610a90908290611a54565b60405163131836e760e21b8152600e60048201526001600160a01b038216602482015273995d8a79cdd8e7572b1d03d9e0f8d2d1e424ba0f90634c60db9c9060440160006040518083038186803b158015610aea57600080fd5b505af4158015610afe573d6000803e3d6000fd5b50506040516001600160a01b03841692507fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b259150600090a250565b6000610b4460025490565b11610b4e57600080fd5b8015610bb757610b6e610b6060025490565b61083d83600160801b611751565b60065560405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a2600b54610bb390826117d7565b600b555b50565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161093a91859061099e90866117d7565b600080600080600080600080600e73995d8a79cdd8e7572b1d03d9e0f8d2d1e424ba0f63deb3d89690916040518263ffffffff1660e01b8152600401610c3891815260200190565b60206040518083038186803b158015610c5057600080fd5b505af4158015610c64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8891906120a5565b8910610cad575060009650600019955085945086935083925082915081905080610d57565b6040516368d54f3f60e11b8152600e6004820152602481018a905260009073995d8a79cdd8e7572b1d03d9e0f8d2d1e424ba0f9063d1aa9e7e9060440160206040518083038186803b158015610d0257600080fd5b505af4158015610d16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3a9190611f9d565b9050610d45816114b0565b98509850985098509850985098509850505b919395975091939597565b60405162461bcd60e51b815260206004820152607160248201527f4b697473756e65496e755f4469766964656e645f547261636b65723a2077697460448201527f68647261774469766964656e642064697361626c65642e20557365207468652060648201527f27636c61696d272066756e6374696f6e206f6e20746865206d61696e204b697460848201527039bab732a4b73a9031b7b73a3930b1ba1760791b60a482015260c401610a33565b600d546001600160a01b03163314610e3a5760405162461bcd60e51b8152600401610a3390612128565b600d546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600d80546001600160a01b0319169055565b600061093e82610fd2565b6060600480546108aa9061224b565b600d546001600160a01b03163314610ec85760405162461bcd60e51b8152600401610a3390612128565b600c54811415610f505760405162461bcd60e51b815260206004820152604760248201527f4b697473756e65496e755f4469766964656e645f547261636b65723a2043616e60448201527f6e6f742075706461746520676173466f725472616e7366657220746f2073616d606482015266652076616c756560c81b608482015260a401610a33565b600c5460405182907f5e2963a3d7c88b344b101641f89a2f7da9734fc777ed11ad0097b2775a9e9d1790600090a3600c55565b600061093a338461099e85604051806060016040528060258152602001612325602591393360009081526001602090815260408083206001600160a01b038d16845290915290205491906119bc565b6001600160a01b0381166000908152600a602052604081205461093e90610ff8846109ad565b90611ab3565b600061093a33848461195a565b600d546000906001600160a01b031633146110385760405162461bcd60e51b8152600401610a3390612128565b600061104384611b0f565b905080156110af576001600160a01b038416600081815260146020526040908190204290555184151591907fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf0929061109d9085815260200190565b60405180910390a3600191505061093e565b5060009392505050565b600d546001600160a01b031633146110e35760405162461bcd60e51b8152600401610a3390612128565b6001600160a01b03821660009081526013602052604090205460ff1615611108575050565b7f000000000000000000000000000000000000000000021165458500521280000081106111b7576111398282611a54565b604051632f0ad01760e21b8152600e60048201526001600160a01b03831660248201526044810182905273995d8a79cdd8e7572b1d03d9e0f8d2d1e424ba0f9063bc2b405c9060640160006040518083038186803b15801561119a57600080fd5b505af41580156111ae573d6000803e3d6000fd5b50505050611235565b6111c2826000611a54565b60405163131836e760e21b8152600e60048201526001600160a01b038316602482015273995d8a79cdd8e7572b1d03d9e0f8d2d1e424ba0f90634c60db9c9060440160006040518083038186803b15801561121c57600080fd5b505af4158015611230573d6000803e3d6000fd5b505050505b61124082600161100b565b505050565b600d546001600160a01b0316331461126f5760405162461bcd60e51b8152600401610a3390612128565b61070881101580156112845750620151808111155b61130f5760405162461bcd60e51b815260206004820152605060248201527f4b697473756e65496e755f4469766964656e645f547261636b65723a20636c6160448201527f696d57616974206d757374206265207570646174656420746f2062657477656560648201526f6e203120616e6420323420686f75727360801b608482015260a401610a33565b6015548114156113925760405162461bcd60e51b815260206004820152604260248201527f4b697473756e65496e755f4469766964656e645f547261636b65723a2043616e60448201527f6e6f742075706461746520636c61696d5761697420746f2073616d652076616c606482015261756560f01b608482015260a401610a33565b60155460405182907f474ea64804364a1e29a4487ddb63c3342a2dd826ccd8acf48825e680a0e6f20f90600090a3601555565b600d546001600160a01b031633146113ef5760405162461bcd60e51b8152600401610a3390612128565b6001600160a01b0381166114545760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a33565b600d546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6040516317e142d160e01b8152600e60048201526001600160a01b0382166024820152819060009081908190819081908190819073995d8a79cdd8e7572b1d03d9e0f8d2d1e424ba0f906317e142d19060440160206040518083038186803b15801561151b57600080fd5b505af415801561152f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061155391906120a5565b96506000199550600087126115b5576012548711156115815760125461157a908890611c83565b95506115b5565b601254600e54600091106115965760006115a5565b601254600e546115a591611ab3565b90506115b18882611a03565b9650505b6115be88610fd2565b94506115c9886109ad565b6001600160a01b0389166000908152601460205260409020549094509250826115f3576000611601565b6015546116019084906117d7565b915042821161161157600061161b565b61161b8242611ab3565b9050919395975091939597565b600e5460009081908190806116485750506012546000925082915061174a565b6012546000805a90506000805b898410801561166357508582105b15611739578461167281612286565b600e549096508610905061168557600094505b6000600e60000186815481106116ab57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031680835260149091526040909120549091506116dc90611ccf565b156116ff576116ec81600161100b565b156116ff57816116fb81612286565b9250505b8261170981612286565b93505060005a9050808511156117305761172d6117268683611ab3565b87906117d7565b95505b93506116559050565b601285905590975095509193505050505b9193909250565b6000826117605750600061093e565b600061176c83856121d6565b90508261177985836121b6565b146117d05760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610a33565b9392505050565b6000806117e4838561219e565b9050838110156117d05760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610a33565b6001600160a01b0383166118985760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a33565b6001600160a01b0382166118f95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a33565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60405162461bcd60e51b815260206004820152603160248201527f4b697473756e65496e755f4469766964656e645f547261636b65723a204e6f206044820152701d1c985b9cd9995c9cc8185b1b1bddd959607a1b6064820152608401610a33565b600081848411156119e05760405162461bcd60e51b8152600401610a3391906120d5565b506119eb8385612234565b949350505050565b6000818181121561093e57600080fd5b600080611a10838561215d565b905060008312158015611a235750838112155b80611a385750600083128015611a3857508381125b6117d057600080fd5b600080821215611a5057600080fd5b5090565b6001600160a01b03821660009081526020819052604090205480821115611a93576000611a818383611ab3565b9050611a8d8482611cf6565b50505050565b80821015611240576000611aa78284611ab3565b9050611a8d8482611d5a565b600082821115611b055760405162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f7700006044820152606401610a33565b6117d08284612234565b600080611b1b83610fd2565b90508015611c7a576001600160a01b0383166000908152600a6020526040902054611b4690826117d7565b6001600160a01b0384166000818152600a6020526040908190209290925590517fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d90611b959084815260200190565b60405180910390a260085460405163a9059cbb60e01b81526001600160a01b03858116600483015260248201849052600092169063a9059cbb90604401602060405180830381600087803b158015611bec57600080fd5b505af1158015611c00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c249190612089565b905080611c73576001600160a01b0384166000908152600a6020526040902054611c4e9083611ab3565b6001600160a01b039094166000908152600a6020526040812094909455509192915050565b5092915050565b50600092915050565b6000808212158015611c9e575082611c9b83826121f5565b13155b80611cbc5750600082128015611cbc575082611cba83826121f5565b135b611cc557600080fd5b6117d082846121f5565b600042821115611ce157506000919050565b601554611cee4284611ab3565b101592915050565b611d008282611d9e565b611d3a611d1b6109ef8360065461175190919063ffffffff16565b6001600160a01b03841660009081526009602052604090205490611c83565b6001600160a01b0390921660009081526009602052604090209190915550565b611d648282611e7d565b611d3a611d7f6109ef8360065461175190919063ffffffff16565b6001600160a01b03841660009081526009602052604090205490611a03565b6001600160a01b038216611df45760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610a33565b600254611e0190826117d7565b6002556001600160a01b038216600090815260208190526040902054611e2790826117d7565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b6001600160a01b038216611edd5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610a33565b611f1a816040518060600160405280602281526020016122db602291396001600160a01b03851660009081526020819052604090205491906119bc565b6001600160a01b038316600090815260208190526040902055600254611f409082611ab3565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611e71565b600060208284031215611f92578081fd5b81356117d0816122b7565b600060208284031215611fae578081fd5b81516117d0816122b7565b60008060408385031215611fcb578081fd5b8235611fd6816122b7565b91506020830135611fe6816122cc565b809150509250929050565b60008060408385031215612003578182fd5b823561200e816122b7565b946020939093013593505050565b6000806040838503121561202e578182fd5b8235612039816122b7565b91506020830135611fe6816122b7565b60008060006060848603121561205d578081fd5b8335612068816122b7565b92506020840135612078816122b7565b929592945050506040919091013590565b60006020828403121561209a578081fd5b81516117d0816122cc565b6000602082840312156120b6578081fd5b5051919050565b6000602082840312156120ce578081fd5b5035919050565b6000602080835283518082850152825b81811015612101578581018301518582016040015282016120e5565b818111156121125783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600080821280156001600160ff1b038490038513161561217f5761217f6122a1565b600160ff1b8390038412811615612198576121986122a1565b50500190565b600082198211156121b1576121b16122a1565b500190565b6000826121d157634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156121f0576121f06122a1565b500290565b60008083128015600160ff1b850184121615612213576122136122a1565b6001600160ff1b038401831381161561222e5761222e6122a1565b50500390565b600082821015612246576122466122a1565b500390565b600181811c9082168061225f57607f821691505b6020821081141561228057634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561229a5761229a6122a1565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114610bb757600080fd5b8015158114610bb757600080fdfe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212209b7252d92738756596cb61fa8c2f50eb2d42c4f7d012ff5513f2c4da37d9787364736f6c63430008040033
Deployed Bytecode Sourcemap
64288:7127:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23161:393;;;:::i;:::-;;8060:91;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;10206:169;;;;;;;;;;-1:-1:-1;10206:169:0;;;;;:::i;:::-;;:::i;:::-;;;4707:14:1;;4700:22;4682:41;;4670:2;4655:18;10206:169:0;4637:92:1;66896:119:0;;;;;;;;;;-1:-1:-1;66980:15:0;:27;66896:119;;;11398:25:1;;;11386:2;11371:18;66896:119:0;11353:76:1;20960:73:0;;;;;;;;;;-1:-1:-1;20960:73:0;;;;-1:-1:-1;;;;;20960:73:0;;;;;;-1:-1:-1;;;;;3505:32:1;;;;3487:51;;3475:2;3460:18;20960:73:0;3442:102:1;9159:108:0;;;;;;;;;;-1:-1:-1;9247:12:0;;9159:108;;64639:50;;;;;;;;;;-1:-1:-1;64639:50:0;;;;;:::i;:::-;;;;;;;;;;;;;;10857:321;;;;;;;;;;-1:-1:-1;10857:321:0;;;;;:::i;:::-;;:::i;26620:247::-;;;;;;;;;;-1:-1:-1;26620:247:0;;;;;:::i;:::-;;:::i;64534:33::-;;;;;;;;;;;;;;;;9003:91;;;;;;;;;;-1:-1:-1;9077:9:0;;9003:91;;9077:9;;;;13379:36:1;;13367:2;13352:18;9003:91:0;13334:87:1;65703:283:0;;;;;;;;;;-1:-1:-1;65703:283:0;;;;;:::i;:::-;;:::i;23564:378::-;;;;;;;;;;-1:-1:-1;23564:378:0;;;;;:::i;:::-;;:::i;11587:218::-;;;;;;;;;;-1:-1:-1;11587:218:0;;;;;:::i;:::-;;:::i;64576:54::-;;;;;;;;;;-1:-1:-1;64576:54:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;68703:505;;;;;;;;;;-1:-1:-1;68703:505:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;4193:32:1;;;;4175:51;;4257:2;4242:18;;4235:34;;;;4285:18;;;4278:34;;;;4343:2;4328:18;;4321:34;;;;4386:3;4371:19;;4364:35;-1:-1:-1;4415:19:1;;4408:35;4474:3;4459:19;;4452:35;4518:3;4503:19;;4496:35;4162:3;4147:19;68703:505:0;4129:408:1;65496:199:0;;;;;;;;;;;;;:::i;64698:24::-;;;;;;;;;;;;;;;;9330:127;;;;;;;;;;-1:-1:-1;9330:127:0;;;;;:::i;:::-;-1:-1:-1;;;;;9431:18:0;9404:7;9431:18;;;;;;;;;;;;9330:127;2809:148;;;;;;;;;;;;;:::i;24228:97::-;;;;;;;;;;-1:-1:-1;24228:97:0;;;;;:::i;:::-;24295:13;:24;;-1:-1:-1;;;;;;24295:24:0;-1:-1:-1;;;;;24295:24:0;;;;;;;;;;24228:97;22072:40;;;;;;;;;;;;;;;;2158:87;;;;;;;;;;-1:-1:-1;2231:6:0;;-1:-1:-1;;;;;2231:6:0;2158:87;;25334:124;;;;;;;;;;-1:-1:-1;25334:124:0;;;;;:::i;:::-;;:::i;8270:95::-;;;;;;;;;;;;;:::i;66006:331::-;;;;;;;;;;-1:-1:-1;66006:331:0;;;;;:::i;:::-;;:::i;12308:269::-;;;;;;;;;;-1:-1:-1;12308:269:0;;;;;:::i;:::-;;:::i;25669:168::-;;;;;;;;;;-1:-1:-1;25669:168:0;;;;;:::i;:::-;;:::i;9670:175::-;;;;;;;;;;-1:-1:-1;9670:175:0;;;;;:::i;:::-;;:::i;26050:129::-;;;;;;;;;;-1:-1:-1;26050:129:0;;;;;:::i;:::-;-1:-1:-1;;;;;26147:26:0;26124:7;26147:26;;;:18;:26;;;;;;;26050:129;71069:343;;;;;;;;;;-1:-1:-1;71069:343:0;;;;;:::i;:::-;;:::i;64729:56::-;;;;;;;;;;;;;;;9908:151;;;;;;;;;;-1:-1:-1;9908:151:0;;;;;:::i;:::-;-1:-1:-1;;;;;10024:18:0;;;9997:7;10024:18;;;-1:-1:-1;10024:18:0;;;;;;;;:27;;;;;;;;;;;;;9908:151;69443:460;;;;;;;;;;-1:-1:-1;69443:460:0;;;;;:::i;:::-;;:::i;66783:105::-;;;;;;;;;;-1:-1:-1;66862:18:0;;66783:105;;66345:430;;;;;;;;;;-1:-1:-1;66345:430:0;;;;;:::i;:::-;;:::i;3112:244::-;;;;;;;;;;-1:-1:-1;3112:244:0;;;;;:::i;:::-;;:::i;22117:29::-;;;;;;;;;;;;;;;;67025:1670;;;;;;;;;;-1:-1:-1;67025:1670:0;;;;;:::i;:::-;;:::i;69911:1150::-;;;;;;;;;;-1:-1:-1;69911:1150:0;;;;;:::i;:::-;;:::i;:::-;;;;13115:25:1;;;13171:2;13156:18;;13149:34;;;;13199:18;;;13192:34;13103:2;13088:18;69911:1150:0;13070:162:1;23161:393:0;23247:1;23231:13;9247:12;;;9159:108;23231:13;:17;23223:26;;;;;;23262:9;:13;23258:291;;23314:91;23383:13;9247:12;;;9159:108;23383:13;23354:26;23355:9;-1:-1:-1;;;23354:15:0;:26::i;:::-;:42;;;;:::i;:::-;23314:25;;;:29;:91::i;:::-;23286:25;:119;23419:43;;23452:9;11398:25:1;;23440:10:0;;23419:43;;11386:2:1;11371:18;23419:43:0;;;;;;;23501:25;;:40;;23531:9;23501:29;:40::i;:::-;23473:25;:68;23258:291;23161:393::o;8060:91::-;8105:13;8138:5;8131:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8060:91;:::o;10206:169::-;10289:4;10306:39;883:10;10329:7;10338:6;10306:8;:39::i;:::-;-1:-1:-1;10363:4:0;10206:169;;;;;:::o;10857:321::-;10963:4;10980:36;10990:6;10998:9;11009:6;10980:9;:36::i;:::-;11027:121;11036:6;883:10;11058:89;11096:6;11058:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;11058:19:0;;;;;;-1:-1:-1;11058:19:0;;;;;;;;883:10;11058:33;;;;;;;;;;:37;:89::i;:::-;11027:8;:121::i;:::-;-1:-1:-1;11166:4:0;10857:321;;;;;:::o;26620:247::-;-1:-1:-1;;;;;26796:36:0;;26697:7;26796:36;;;:28;:36;;;;;;;;;9431:18;;;;;;;26720:25;;-1:-1:-1;;;;26720:129:0;;:113;;:63;;:48;;:25;:29;:48::i;:::-;:61;:63::i;:::-;:75;;:113::i;:::-;:127;:129::i;:::-;:141;;;;:::i;65703:283::-;2231:6;;-1:-1:-1;;;;;2231:6:0;883:10;2378:23;2370:68;;;;-1:-1:-1;;;2370:68:0;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;;;;;65786:30:0;::::1;;::::0;;;:21:::1;:30;::::0;;;;;::::1;;65785:31;65777:40;;;::::0;::::1;;-1:-1:-1::0;;;;;65825:30:0;::::1;;::::0;;;:21:::1;:30;::::0;;;;:37;;-1:-1:-1;;65825:37:0::1;-1:-1:-1::0;65825:37:0::1;::::0;;65872:23:::1;::::0;65825:30;;65872:11:::1;:23::i;:::-;65903:31;::::0;-1:-1:-1;;;65903:31:0;;:15:::1;:31;::::0;::::1;11638:25:1::0;-1:-1:-1;;;;;11699:32:1;;11679:18;;;11672:60;65903:22:0::1;::::0;::::1;::::0;11611:18:1;;65903:31:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;65949:29:0::1;::::0;-1:-1:-1;;;;;65949:29:0;::::1;::::0;-1:-1:-1;65949:29:0::1;::::0;-1:-1:-1;65949:29:0;;::::1;65703:283:::0;:::o;23564:378::-;23647:1;23631:13;9247:12;;;9159:108;23631:13;:17;23623:26;;;;;;23662:10;;23658:279;;23711:88;23777:13;9247:12;;;9159:108;23777:13;23751:23;23752:6;-1:-1:-1;;;23751:12:0;:23::i;23711:88::-;23683:25;:116;23813:40;;11398:25:1;;;23834:10:0;;23813:40;;11386:2:1;11371:18;23813:40:0;;;;;;;23892:25;;:37;;23922:6;23892:29;:37::i;:::-;23864:25;:65;23658:279;23564:378;:::o;11587:218::-;883:10;11675:4;11724:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;11724:34:0;;;;;;;;;;11675:4;;11692:83;;11724:34;;:50;;11763:10;11724:38;:50::i;68703:505::-;68789:7;68811:6;68832;68853:7;68875;68897;68919;68941;68970:15;:20;;;;:22;;;;;;;;;;;;;11398:25:1;;11386:2;11371:18;;11353:76;68970:22:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;68961:5;:31;68958:137;;-1:-1:-1;69017:42:0;;-1:-1:-1;;;;;;;;69017:42:0;;-1:-1:-1;69017:42:0;;-1:-1:-1;69017:42:0;;-1:-1:-1;69017:42:0;;-1:-1:-1;69017:42:0;69009:74;;68958:137;69125:36;;-1:-1:-1;;;69125:36:0;;:15;:36;;;12652:25:1;12693:18;;;12686:34;;;69107:15:0;;69125:29;;;;12625:18:1;;69125:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;69107:54;;69181:19;69192:7;69181:10;:19::i;:::-;69174:26;;;;;;;;;;;;;;;;;68703:505;;;;;;;;;;:::o;65496:199::-;65556:131;;-1:-1:-1;;;65556:131:0;;7069:2:1;65556:131:0;;;7051:21:1;7108:3;7088:18;;;7081:31;7148:34;7128:18;;;7121:62;7219:34;7199:18;;;7192:62;7291:34;7270:19;;;7263:63;-1:-1:-1;;;7342:19:1;;;7335:48;7400:19;;65556:131:0;7041:384:1;2809:148:0;2231:6;;-1:-1:-1;;;;;2231:6:0;883:10;2378:23;2370:68;;;;-1:-1:-1;;;2370:68:0;;;;;;;:::i;:::-;2900:6:::1;::::0;2879:40:::1;::::0;2916:1:::1;::::0;-1:-1:-1;;;;;2900:6:0::1;::::0;2879:40:::1;::::0;2916:1;;2879:40:::1;2930:6;:19:::0;;-1:-1:-1;;;;;;2930:19:0::1;::::0;;2809:148::o;25334:124::-;25399:7;25422:30;25445:6;25422:22;:30::i;8270:95::-;8317:13;8350:7;8343:14;;;;;:::i;66006:331::-;2231:6;;-1:-1:-1;;;;;2231:6:0;883:10;2378:23;2370:68;;;;-1:-1:-1;;;2370:68:0;;;;;;;:::i;:::-;66122:14:::1;;66101:17;:35;;66093:119;;;::::0;-1:-1:-1;;;66093:119:0;;10095:2:1;66093:119:0::1;::::0;::::1;10077:21:1::0;10134:2;10114:18;;;10107:30;10173:34;10153:18;;;10146:62;10244:34;10224:18;;;10217:62;-1:-1:-1;;;10295:19:1;;;10288:38;10343:19;;66093:119:0::1;10067:301:1::0;66093:119:0::1;66269:14;::::0;66228:56:::1;::::0;66250:17;;66228:56:::1;::::0;;;::::1;66295:14;:34:::0;66006:331::o;12308:269::-;12401:4;12418:129;883:10;12441:7;12450:96;12489:15;12450:96;;;;;;;;;;;;;;;;;883:10;12450:25;;;;:11;:25;;;;;;;;-1:-1:-1;;;;;12450:34:0;;;;;;;;;;;;:38;:96::i;25669:168::-;-1:-1:-1;;;;;25804:26:0;;25746:7;25804:26;;;:18;:26;;;;;;25769:62;;:30;25804:26;25769:22;:30::i;:::-;:34;;:62::i;9670:175::-;9756:4;9773:42;883:10;9797:9;9808:6;9773:9;:42::i;71069:343::-;2231:6;;71160:4;;-1:-1:-1;;;;;2231:6:0;883:10;2378:23;2370:68;;;;-1:-1:-1;;;2370:68:0;;;;;;;:::i;:::-;71177:14:::1;71194:32;71218:7;71194:23;:32::i;:::-;71177:49:::0;-1:-1:-1;71239:10:0;;71236:147:::1;;-1:-1:-1::0;;;;;71260:23:0;::::1;;::::0;;;:14:::1;:23;::::0;;;;;;;;71286:15:::1;71260:41:::0;;71321:33;;11398:25:1;;;71321:33:0;::::1;;::::0;71260:23;71321:33:::1;::::0;11371:18:1;71321:33:0::1;;;;;;;71370:4;71363:11;;;;;71236:147;-1:-1:-1::0;71399:5:0::1;::::0;71069:343;-1:-1:-1;;;71069:343:0:o;69443:460::-;2231:6;;-1:-1:-1;;;;;2231:6:0;883:10;2378:23;2370:68;;;;-1:-1:-1;;;2370:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;69538:30:0;::::1;;::::0;;;:21:::1;:30;::::0;;;;;::::1;;69535:59;;;69443:460:::0;;:::o;69535:59::-:1;69620:31;69606:10;:45;69603:254;;69668:32;69680:7;69689:10;69668:11;:32::i;:::-;69709:40;::::0;-1:-1:-1;;;69709:40:0;;:15:::1;:40;::::0;::::1;12300:25:1::0;-1:-1:-1;;;;;12361:32:1;;12341:18;;;12334:60;12410:18;;;12403:34;;;69709:19:0::1;::::0;::::1;::::0;12273:18:1;;69709:40:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;69603:254;;;69785:23;69797:7;69806:1;69785:11;:23::i;:::-;69817:31;::::0;-1:-1:-1;;;69817:31:0;;:15:::1;:31;::::0;::::1;11638:25:1::0;-1:-1:-1;;;;;11699:32:1;;11679:18;;;11672:60;69817:22:0::1;::::0;::::1;::::0;11611:18:1;;69817:31:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;69603:254;69866:29;69881:7;69890:4;69866:14;:29::i;:::-;;69443:460:::0;;:::o;66345:430::-;2231:6;;-1:-1:-1;;;;;2231:6:0;883:10;2378:23;2370:68;;;;-1:-1:-1;;;2370:68:0;;;;;;;:::i;:::-;66446:4:::1;66430:12;:20;;:45;;;;;66470:5;66454:12;:21;;66430:45;66422:138;;;::::0;-1:-1:-1;;;66422:138:0;;10575:2:1;66422:138:0::1;::::0;::::1;10557:21:1::0;10614:2;10594:18;;;10587:30;10653:34;10633:18;;;10626:62;10724:34;10704:18;;;10697:62;-1:-1:-1;;;10775:19:1;;;10768:47;10832:19;;66422:138:0::1;10547:310:1::0;66422:138:0::1;66595:9;;66579:12;:25;;66571:104;;;::::0;-1:-1:-1;;;66571:104:0;;7632:2:1;66571:104:0::1;::::0;::::1;7614:21:1::0;7671:2;7651:18;;;7644:30;7710:34;7690:18;;;7683:62;7781:34;7761:18;;;7754:62;-1:-1:-1;;;7832:19:1;;;7825:33;7875:19;;66571:104:0::1;7604:296:1::0;66571:104:0::1;66722:9;::::0;66691:41:::1;::::0;66708:12;;66691:41:::1;::::0;;;::::1;66743:9;:24:::0;66345:430::o;3112:244::-;2231:6;;-1:-1:-1;;;;;2231:6:0;883:10;2378:23;2370:68;;;;-1:-1:-1;;;2370:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;3201:22:0;::::1;3193:73;;;::::0;-1:-1:-1;;;3193:73:0;;5544:2:1;3193:73:0::1;::::0;::::1;5526:21:1::0;5583:2;5563:18;;;5556:30;5622:34;5602:18;;;5595:62;-1:-1:-1;;;5673:18:1;;;5666:36;5719:19;;3193:73:0::1;5516:228:1::0;3193:73:0::1;3303:6;::::0;3282:38:::1;::::0;-1:-1:-1;;;;;3282:38:0;;::::1;::::0;3303:6:::1;::::0;3282:38:::1;::::0;3303:6:::1;::::0;3282:38:::1;3331:6;:17:::0;;-1:-1:-1;;;;;;3331:17:0::1;-1:-1:-1::0;;;;;3331:17:0;;;::::1;::::0;;;::::1;::::0;;3112:244::o;67025:1670::-;67453:38;;-1:-1:-1;;;67453:38:0;;:15;:38;;;11638:25:1;-1:-1:-1;;;;;11699:32:1;;11679:18;;;11672:60;67424:8:0;;67107:15;;;;;;;;;;;;;;67453:29;;;;11611:18:1;;67453:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;67445:46;-1:-1:-1;;;;;;67549:10:0;;67546:582;;67596:18;;67587:5;67579:35;67576:541;;;67679:18;;67662:37;;:5;;:9;:37::i;:::-;67635:64;;67576:541;;;67818:18;;67788:15;:27;67753:32;;-1:-1:-1;67788:220:0;;68007:1;67788:220;;;67928:18;;67896:15;:27;:51;;:31;:51::i;:::-;67753:255;-1:-1:-1;68058:43:0;:5;67753:255;68058:9;:43::i;:::-;68031:70;;67576:541;;68166:31;68189:7;68166:22;:31::i;:::-;68142:55;;68225:31;68248:7;68225:22;:31::i;:::-;-1:-1:-1;;;;;68285:23:0;;;;;;:14;:23;;;;;;68208:48;;-1:-1:-1;68285:23:0;-1:-1:-1;68285:23:0;68337:126;;68462:1;68337:126;;;68412:9;;68394:28;;:13;;:17;:28::i;:::-;68321:142;;68525:15;68509:13;:31;:178;;68686:1;68509:178;;;68596:34;:13;68614:15;68596:17;:34::i;:::-;68476:211;;67025:1670;;;;;;;;;:::o;69911:1150::-;70023:15;:27;69957:7;;;;;;70063:25;70060:81;;-1:-1:-1;;70113:18:0;;70107:1;;-1:-1:-1;70107:1:0;;-1:-1:-1;70099:33:0;;70060:81;70180:18;;70150:27;;70255:9;70237:27;;70274:18;70304:14;70332:615;70348:3;70338:7;:13;:50;;;;;70368:20;70355:10;:33;70338:50;70332:615;;;70399:21;;;;:::i;:::-;70457:15;:27;70399:21;;-1:-1:-1;70434:50:0;;;-1:-1:-1;70431:98:0;;70518:1;70496:23;;70431:98;70539:15;70557;:20;;70578:19;70557:41;;;;;;-1:-1:-1;;;70557:41:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;70557:41:0;70625:23;;;:14;:23;;;;;;;;70557:41;;-1:-1:-1;70612:37:0;;:12;:37::i;:::-;70609:134;;;70664:38;70687:7;70697:4;70664:14;:38::i;:::-;70661:73;;;70715:8;;;;:::i;:::-;;;;70661:73;70753:12;;;;:::i;:::-;;;;70776:18;70797:9;70776:30;;70830:10;70820:7;:20;70817:91;;;70862:36;70874:23;:7;70886:10;70874:11;:23::i;:::-;70862:7;;:11;:36::i;:::-;70852:46;;70817:91;70928:10;-1:-1:-1;70332:615:0;;-1:-1:-1;70332:615:0;;70956:18;:40;;;71014:10;;-1:-1:-1;71026:6:0;-1:-1:-1;70977:19:0;;-1:-1:-1;;;;69911:1150:0;;;;;;:::o;42428:220::-;42486:7;42510:6;42506:20;;-1:-1:-1;42525:1:0;42518:8;;42506:20;42537:9;42549:5;42553:1;42549;:5;:::i;:::-;42537:17;-1:-1:-1;42582:1:0;42573:5;42577:1;42537:17;42573:5;:::i;:::-;:10;42565:56;;;;-1:-1:-1;;;42565:56:0;;8107:2:1;42565:56:0;;;8089:21:1;8146:2;8126:18;;;8119:30;8185:34;8165:18;;;8158:62;-1:-1:-1;;;8236:18:1;;;8229:31;8277:19;;42565:56:0;8079:223:1;42565:56:0;42639:1;42428:220;-1:-1:-1;;;42428:220:0:o;41549:179::-;41607:7;;41639:5;41643:1;41639;:5;:::i;:::-;41627:17;;41668:1;41663;:6;;41655:46;;;;-1:-1:-1;;;41655:46:0;;6354:2:1;41655:46:0;;;6336:21:1;6393:2;6373:18;;;6366:30;6432:29;6412:18;;;6405:57;6479:18;;41655:46:0;6326:177:1;15455:346:0;-1:-1:-1;;;;;15557:19:0;;15549:68;;;;-1:-1:-1;;;15549:68:0;;9690:2:1;15549:68:0;;;9672:21:1;9729:2;9709:18;;;9702:30;9768:34;9748:18;;;9741:62;-1:-1:-1;;;9819:18:1;;;9812:34;9863:19;;15549:68:0;9662:226:1;15549:68:0;-1:-1:-1;;;;;15636:21:0;;15628:68;;;;-1:-1:-1;;;15628:68:0;;5951:2:1;15628:68:0;;;5933:21:1;5990:2;5970:18;;;5963:30;6029:34;6009:18;;;6002:62;-1:-1:-1;;;6080:18:1;;;6073:32;6122:19;;15628:68:0;5923:224:1;15628:68:0;-1:-1:-1;;;;;15709:18:0;;;;;;;-1:-1:-1;15709:18:0;;;;;;;;:27;;;;;;;;;;;;;:36;;;15761:32;;11398:25:1;;;15761:32:0;;;;;;;;;;;;15455:346;;;:::o;65333:155::-;65413:67;;-1:-1:-1;;;65413:67:0;;9272:2:1;65413:67:0;;;9254:21:1;9311:2;9291:18;;;9284:30;9350:34;9330:18;;;9323:62;-1:-1:-1;;;9401:18:1;;;9394:47;9458:19;;65413:67:0;9244:239:1;44376:166:0;44462:7;44498:12;44490:6;;;;44482:29;;;;-1:-1:-1;;;44482:29:0;;;;;;;;:::i;:::-;-1:-1:-1;44529:5:0;44533:1;44529;:5;:::i;:::-;44522:12;44376:166;-1:-1:-1;;;;44376:166:0:o;47741:134::-;47797:6;47830:1;47847:6;;;;47839:15;;;;;47324:162;47380:6;;47406:5;47410:1;47406;:5;:::i;:::-;47395:16;;47432:1;47427;:6;;:16;;;;;47442:1;47437;:6;;47427:16;47426:38;;;;47453:1;47449;:5;:14;;;;;47462:1;47458;:5;47449:14;47418:47;;;;;47492:117;47548:7;47577:1;47572;:6;;47564:15;;;;;;-1:-1:-1;47601:1:0;47492:117::o;28625:407::-;-1:-1:-1;;;;;9431:18:0;;28699:22;9431:18;;;;;;;;;;;28754:27;;;28751:276;;;28792:18;28813:30;:10;28828:14;28813;:30::i;:::-;28792:51;;28852:26;28858:7;28867:10;28852:5;:26::i;:::-;28751:276;69866:29:::1;69443:460:::0;;:::o;28751:276::-;28908:14;28895:10;:27;28892:135;;;28933:18;28954:30;:14;28973:10;28954:18;:30::i;:::-;28933:51;;28993:26;28999:7;29008:10;28993:5;:26::i;42011:158::-;42069:7;42102:1;42097;:6;;42089:49;;;;-1:-1:-1;;;42089:49:0;;6710:2:1;42089:49:0;;;6692:21:1;6749:2;6729:18;;;6722:30;6788:32;6768:18;;;6761:60;6838:18;;42089:49:0;6682:180:1;42089:49:0;42156:5;42160:1;42156;:5;:::i;24494:627::-;24567:7;24583:29;24615:28;24638:4;24615:22;:28::i;:::-;24583:60;-1:-1:-1;24654:25:0;;24650:449;;-1:-1:-1;;;;;24717:24:0;;;;;;:18;:24;;;;;;:51;;24746:21;24717:28;:51::i;:::-;-1:-1:-1;;;;;24690:24:0;;;;;;:18;:24;;;;;;;;;:78;;;;24782:46;11398:25:1;;;24690:24:0;;24782:46;;11371:18:1;24782:46:0;;;;;;;24859:13;;24852:59;;-1:-1:-1;;;24852:59:0;;-1:-1:-1;;;;;3749:32:1;;;24852:59:0;;;3731:51:1;3798:18;;;3791:34;;;24837:12:0;;24859:13;;24852:30;;3704:18:1;;24852:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;24837:74;;24926:7;24922:131;;-1:-1:-1;;;;;24973:24:0;;;;;;:18;:24;;;;;;:51;;25002:21;24973:28;:51::i;:::-;-1:-1:-1;;;;;24946:24:0;;;;;;;;:18;:24;;;;;:78;;;;-1:-1:-1;24946:24:0;;;-1:-1:-1;;24494:627:0:o;24922:131::-;-1:-1:-1;25070:21:0;24494:627;-1:-1:-1;;24494:627:0:o;24650:449::-;-1:-1:-1;25114:1:0;;24494:627;-1:-1:-1;;24494:627:0:o;47165:153::-;47221:6;47250:1;47245;:6;;:20;;;;-1:-1:-1;47264:1:0;47255:5;47259:1;47264;47255:5;:::i;:::-;:10;;47245:20;47244:46;;;;47275:1;47271;:5;:18;;;;-1:-1:-1;47288:1:0;47280:5;47284:1;47288;47280:5;:::i;:::-;:9;47271:18;47236:55;;;;;;47307:5;47311:1;47307;:5;:::i;69216:219::-;69283:4;69316:15;69300:13;:31;69297:67;;;-1:-1:-1;69350:5:0;;69216:219;-1:-1:-1;69216:219:0:o;69297:67::-;69418:9;;69380:34;:15;69400:13;69380:19;:34::i;:::-;:47;;;69216:219;-1:-1:-1;;69216:219:0:o;27824:260::-;27896:27;27908:7;27917:5;27896:11;:27::i;:::-;27972:106;28023:53;28024:36;28054:5;28024:25;;:29;;:36;;;;:::i;28023:53::-;-1:-1:-1;;;;;27972:37:0;;;;;;:28;:37;;;;;;;:49;:106::i;:::-;-1:-1:-1;;;;;27932:37:0;;;;;;;;:28;:37;;;;;:146;;;;-1:-1:-1;27824:260:0:o;28359:::-;28431:27;28443:7;28452:5;28431:11;:27::i;:::-;28507:106;28558:53;28559:36;28589:5;28559:25;;:29;;:36;;;;:::i;28558:53::-;-1:-1:-1;;;;;28507:37:0;;;;;;:28;:37;;;;;;;:49;:106::i;13888:378::-;-1:-1:-1;;;;;13972:21:0;;13964:65;;;;-1:-1:-1;;;13964:65:0;;11064:2:1;13964:65:0;;;11046:21:1;11103:2;11083:18;;;11076:30;11142:33;11122:18;;;11115:61;11193:18;;13964:65:0;11036:181:1;13964:65:0;14119:12;;:24;;14136:6;14119:16;:24::i;:::-;14104:12;:39;-1:-1:-1;;;;;14175:18:0;;:9;:18;;;;;;;;;;;:30;;14198:6;14175:22;:30::i;:::-;-1:-1:-1;;;;;14154:18:0;;:9;:18;;;;;;;;;;;:51;;;;14221:37;;11398:25:1;;;14154:18:0;;:9;;14221:37;;11371:18:1;14221:37:0;;;;;;;;13888:378;;:::o;14599:418::-;-1:-1:-1;;;;;14683:21:0;;14675:67;;;;-1:-1:-1;;;14675:67:0;;8870:2:1;14675:67:0;;;8852:21:1;8909:2;8889:18;;;8882:30;8948:34;8928:18;;;8921:62;-1:-1:-1;;;8999:18:1;;;8992:31;9040:19;;14675:67:0;8842:223:1;14675:67:0;14838:68;14861:6;14838:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;14838:18:0;;:9;:18;;;;;;;;;;;;;:22;:68::i;:::-;-1:-1:-1;;;;;14817:18:0;;:9;:18;;;;;;;;;;:89;14932:12;;:24;;14949:6;14932:16;:24::i;:::-;14917:12;:39;14972:37;;11398:25:1;;;14998:1:0;;-1:-1:-1;;;;;14972:37:0;;;;;11386:2:1;11371:18;14972:37:0;11353:76:1;14:257;73:6;126:2;114:9;105:7;101:23;97:32;94:2;;;147:6;139;132:22;94:2;191:9;178:23;210:31;235:5;210:31;:::i;276:261::-;346:6;399:2;387:9;378:7;374:23;370:32;367:2;;;420:6;412;405:22;367:2;457:9;451:16;476:31;501:5;476:31;:::i;542:400::-;615:6;623;676:2;664:9;655:7;651:23;647:32;644:2;;;697:6;689;682:22;644:2;741:9;728:23;760:31;785:5;760:31;:::i;:::-;810:5;-1:-1:-1;867:2:1;852:18;;839:32;880:30;839:32;880:30;:::i;:::-;929:7;919:17;;;634:308;;;;;:::o;947:333::-;1023:6;1031;1084:2;1072:9;1063:7;1059:23;1055:32;1052:2;;;1105:6;1097;1090:22;1052:2;1149:9;1136:23;1168:31;1193:5;1168:31;:::i;:::-;1218:5;1270:2;1255:18;;;;1242:32;;-1:-1:-1;;;1042:238:1:o;1285:398::-;1353:6;1361;1414:2;1402:9;1393:7;1389:23;1385:32;1382:2;;;1435:6;1427;1420:22;1382:2;1479:9;1466:23;1498:31;1523:5;1498:31;:::i;:::-;1548:5;-1:-1:-1;1605:2:1;1590:18;;1577:32;1618:33;1577:32;1618:33;:::i;1688:466::-;1765:6;1773;1781;1834:2;1822:9;1813:7;1809:23;1805:32;1802:2;;;1855:6;1847;1840:22;1802:2;1899:9;1886:23;1918:31;1943:5;1918:31;:::i;:::-;1968:5;-1:-1:-1;2025:2:1;2010:18;;1997:32;2038:33;1997:32;2038:33;:::i;:::-;1792:362;;2090:7;;-1:-1:-1;;;2144:2:1;2129:18;;;;2116:32;;1792:362::o;2489:255::-;2556:6;2609:2;2597:9;2588:7;2584:23;2580:32;2577:2;;;2630:6;2622;2615:22;2577:2;2667:9;2661:16;2686:28;2708:5;2686:28;:::i;2749:193::-;2818:6;2871:2;2859:9;2850:7;2846:23;2842:32;2839:2;;;2892:6;2884;2877:22;2839:2;-1:-1:-1;2920:16:1;;2829:113;-1:-1:-1;2829:113:1:o;2947:190::-;3006:6;3059:2;3047:9;3038:7;3034:23;3030:32;3027:2;;;3080:6;3072;3065:22;3027:2;-1:-1:-1;3108:23:1;;3017:120;-1:-1:-1;3017:120:1:o;4734:603::-;4846:4;4875:2;4904;4893:9;4886:21;4936:6;4930:13;4979:6;4974:2;4963:9;4959:18;4952:34;5004:4;5017:140;5031:6;5028:1;5025:13;5017:140;;;5126:14;;;5122:23;;5116:30;5092:17;;;5111:2;5088:26;5081:66;5046:10;;5017:140;;;5175:6;5172:1;5169:13;5166:2;;;5245:4;5240:2;5231:6;5220:9;5216:22;5212:31;5205:45;5166:2;-1:-1:-1;5321:2:1;5300:15;-1:-1:-1;;5296:29:1;5281:45;;;;5328:2;5277:54;;4855:482;-1:-1:-1;;;4855:482:1:o;8307:356::-;8509:2;8491:21;;;8528:18;;;8521:30;8587:34;8582:2;8567:18;;8560:62;8654:2;8639:18;;8481:182::o;13426:267::-;13465:3;13493:11;;;-1:-1:-1;;;;;13539:27:1;;;13532:35;;13520:10;;13516:52;13513:2;;;13571:18;;:::i;:::-;-1:-1:-1;;;13618:19:1;;;13611:27;;13603:36;;13600:2;;;13642:18;;:::i;:::-;-1:-1:-1;;13678:9:1;;13473:220::o;13698:128::-;13738:3;13769:1;13765:6;13762:1;13759:13;13756:2;;;13775:18;;:::i;:::-;-1:-1:-1;13811:9:1;;13746:80::o;13831:217::-;13871:1;13897;13887:2;;-1:-1:-1;;;13922:31:1;;13976:4;13973:1;13966:15;14004:4;13922:31;13994:15;13887:2;-1:-1:-1;14033:9:1;;13877:171::o;14053:168::-;14093:7;14159:1;14155;14151:6;14147:14;14144:1;14141:21;14136:1;14129:9;14122:17;14118:45;14115:2;;;14166:18;;:::i;:::-;-1:-1:-1;14206:9:1;;14105:116::o;14226:270::-;14265:4;14294:12;;;-1:-1:-1;;;14341:19:1;;14334:27;;14322:10;;14318:44;14315:2;;;14365:18;;:::i;:::-;-1:-1:-1;;;;;14412:27:1;;14405:35;;14397:44;;14394:2;;;14444:18;;:::i;:::-;-1:-1:-1;;14481:9:1;;14274:222::o;14501:125::-;14541:4;14569:1;14566;14563:8;14560:2;;;14574:18;;:::i;:::-;-1:-1:-1;14611:9:1;;14550:76::o;14631:380::-;14710:1;14706:12;;;;14753;;;14774:2;;14828:4;14820:6;14816:17;14806:27;;14774:2;14881;14873:6;14870:14;14850:18;14847:38;14844:2;;;14927:10;14922:3;14918:20;14915:1;14908:31;14962:4;14959:1;14952:15;14990:4;14987:1;14980:15;14844:2;;14686:325;;;:::o;15016:135::-;15055:3;-1:-1:-1;;15076:17:1;;15073:2;;;15096:18;;:::i;:::-;-1:-1:-1;15143:1:1;15132:13;;15063:88::o;15156:127::-;15217:10;15212:3;15208:20;15205:1;15198:31;15248:4;15245:1;15238:15;15272:4;15269:1;15262:15;15288:131;-1:-1:-1;;;;;15363:31:1;;15353:42;;15343:2;;15409:1;15406;15399:12;15424:118;15510:5;15503:13;15496:21;15489:5;15486:32;15476:2;;15532:1;15529;15522:12
Swarm Source
ipfs://9b7252d92738756596cb61fa8c2f50eb2d42c4f7d012ff5513f2c4da37d97873
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.