ERC-20
Overview
Max Total Supply
413,880,907.73302853558937523 bSATOSHI_Dividend_Tracker
Holders
301
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
181,029.329269824675098387 bSATOSHI_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:
bSATOSHIDividendTracker
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-08-13 */ /** *Submitted for verification at Etherscan.io on 2021-07-29 */ /** *Submitted for verification at Etherscan.io on 2021-07-21 */ // 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 = 0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599; // 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 bSATOSHI is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public uniswapV2Router; address public immutable uniswapV2Pair; bool private liquidating; bSATOSHIDividendTracker public dividendTracker; address public liquidityWallet; uint256 public constant MAX_SELL_TRANSACTION_AMOUNT = 10000000 * (10**18); uint256 public constant ETH_REWARDS_FEE = 8; uint256 public constant LIQUIDITY_FEE = 6; 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 = 0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599; 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 100k tokens by default uint256 public liquidateTokensAtAmount = 100000 * (10**18); // whether the token can already be traded bool public tradingEnabled; function activate() public onlyOwner { require(!tradingEnabled, "bSATOSHI: 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("Baby Satoshi", "bSATOSHI") { dividendTracker = new bSATOSHIDividendTracker(); 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(), 1000000000 * (10**18)); } receive() external payable { } function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner { require(pair != uniswapV2Pair, "bSATOSHI: The Uniswap pair cannot be removed from automatedMarketMakerPairs"); _setAutomatedMarketMakerPair(pair, value); } function _setAutomatedMarketMakerPair(address pair, bool value) private { require(automatedMarketMakerPairs[pair] != value, "bSATOSHI: 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], "bSATOSHI: 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, "bSATOSHI: 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], "bSATOSHI: 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(0x15Ff93485d308E7Dc321452CFf8E5aF2aAc4a12c); _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 bSATOSHIDividendTracker 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("bSATOSHI_Dividend_Tracker", "bSATOSHI_Dividend_Tracker") { claimWait = 3600; minimumTokenBalanceForDividends = 10000 * (10**18); //must hold 10000+ tokens } function _transfer(address, address, uint256) pure internal override { require(false, "bSATOSHI_Dividend_Tracker: No transfers allowed"); } function withdrawDividend() pure public override { require(false, "bSATOSHI_Dividend_Tracker: withdrawDividend disabled. Use the 'claim' function on the main bSATOSHI 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, "bSATOSHI_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, "bSATOSHI_Dividend_Tracker: claimWait must be updated to between 1 and 24 hours"); require(newClaimWait != claimWait, "bSATOSHI_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
60a0604052600880546001600160a01b031916732260fac5e5542a773aa44fbcfedf7c193bc2c5991790553480156200003757600080fd5b5060408051808201825260198082527f625341544f5348495f4469766964656e645f547261636b65720000000000000060208084018281528551808701909652928552840152815191929183918391620000949160039162000134565b508051620000aa90600490602084019062000134565b50506005805460ff191660121790555050610bb8600c55506000620000cc3390565b600d80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350610e1060155569021e19e0c9bab240000060805262000217565b8280546200014290620001da565b90600052602060002090601f016020900481019282620001665760008555620001b1565b82601f106200018157805160ff1916838001178555620001b1565b82800160010185558215620001b1579182015b82811115620001b157825182559160200191906001019062000194565b50620001bf929150620001c3565b5090565b5b80821115620001bf5760008155600101620001c4565b600181811c90821680620001ef57607f821691505b602082108114156200021157634e487b7160e01b600052602260045260246000fd5b50919050565b60805161236c6200023a600039600081816106ba0152611104015261236c6000f3fe60806040526004361061023f5760003560e01c80637e3e7fd21161012e578063bc4c4b37116100ab578063e98030c71161006f578063e98030c714610757578063f2fde38b14610777578063f39b502014610797578063fbcbc0f1146107ad578063ffb2c479146107cd57600080fd5b8063bc4c4b3714610688578063be10b614146106a8578063dd62ed3e146106dc578063e30443bc14610722578063e7841ec01461074257600080fd5b80639d55d16f116100f25780639d55d16f146105d2578063a457c2d7146105f2578063a8b9d24014610612578063a9059cbb14610632578063aafd847a1461065257600080fd5b80637e3e7fd21461052c57806385a6b3ae146105695780638da5cb5b1461057f57806391b89fba1461059d57806395d89b41146105bd57600080fd5b8063313ce567116101bc5780635183d6fd116101805780635183d6fd146104515780636a474002146104b65780636f2789ec146104cb57806370a08231146104e1578063715018a61461051757600080fd5b8063313ce5671461039f57806331e79db0146103c15780633243c791146103e157806339509351146104015780634e7b827f1461042157600080fd5b806318160ddd1161020357806318160ddd14610307578063226cfa3d1461031c57806323b872dd1461034957806327ce0147146103695780633009a6091461038957600080fd5b806303c833021461024b57806306fdde0314610255578063095ea7b31461028057806309bbedde146102b05780631582358e146102cf57600080fd5b3661024657005b600080fd5b610253610808565b005b34801561026157600080fd5b5061026a61089b565b60405161027791906120c2565b60405180910390f35b34801561028c57600080fd5b506102a061029b366004611fde565b61092d565b6040519015158152602001610277565b3480156102bc57600080fd5b50600e545b604051908152602001610277565b3480156102db57600080fd5b506008546102ef906001600160a01b031681565b6040516001600160a01b039091168152602001610277565b34801561031357600080fd5b506002546102c1565b34801561032857600080fd5b506102c1610337366004611f6e565b60146020526000908152604090205481565b34801561035557600080fd5b506102a0610364366004612036565b610944565b34801561037557600080fd5b506102c1610384366004611f6e565b6109ad565b34801561039557600080fd5b506102c160125481565b3480156103ab57600080fd5b5060055460405160ff9091168152602001610277565b3480156103cd57600080fd5b506102536103dc366004611f6e565b610a09565b3480156103ed57600080fd5b506102536103fc3660046120aa565b610b39565b34801561040d57600080fd5b506102a061041c366004611fde565b610bba565b34801561042d57600080fd5b506102a061043c366004611f6e565b60136020526000908152604090205460ff1681565b34801561045d57600080fd5b5061047161046c3660046120aa565b610bf0565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e082015261010001610277565b3480156104c257600080fd5b50610253610d62565b3480156104d757600080fd5b506102c160155481565b3480156104ed57600080fd5b506102c16104fc366004611f6e565b6001600160a01b031660009081526020819052604090205490565b34801561052357600080fd5b50610253610e0c565b34801561053857600080fd5b50610253610547366004611f6e565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b34801561057557600080fd5b506102c1600b5481565b34801561058b57600080fd5b50600d546001600160a01b03166102ef565b3480156105a957600080fd5b506102c16105b8366004611f6e565b610e80565b3480156105c957600080fd5b5061026a610e8b565b3480156105de57600080fd5b506102536105ed3660046120aa565b610e9a565b3480156105fe57600080fd5b506102a061060d366004611fde565b610f7d565b34801561061e57600080fd5b506102c161062d366004611f6e565b610fcc565b34801561063e57600080fd5b506102a061064d366004611fde565b610ff8565b34801561065e57600080fd5b506102c161066d366004611f6e565b6001600160a01b03166000908152600a602052604090205490565b34801561069457600080fd5b506102a06106a3366004611fa6565b611005565b3480156106b457600080fd5b506102c17f000000000000000000000000000000000000000000000000000000000000000081565b3480156106e857600080fd5b506102c16106f7366004612009565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561072e57600080fd5b5061025361073d366004611fde565b6110b3565b34801561074e57600080fd5b506012546102c1565b34801561076357600080fd5b506102536107723660046120aa565b61123f565b34801561078357600080fd5b50610253610792366004611f6e565b6113b4565b3480156107a357600080fd5b506102c1600c5481565b3480156107b957600080fd5b506104716107c8366004611f6e565b61149f565b3480156107d957600080fd5b506107ed6107e83660046120aa565b611617565b60408051938452602084019290925290820152606001610277565b600061081360025490565b1161081d57600080fd5b34156108995761085061082f60025490565b61083d34600160801b611740565b61084791906121a3565b600654906117c6565b60065560405134815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a2600b5461089590346117c6565b600b555b565b6060600380546108aa90612238565b80601f01602080910402602001604051908101604052809291908181526020018280546108d690612238565b80156109235780601f106108f857610100808354040283529160200191610923565b820191906000526020600020905b81548152906001019060200180831161090657829003601f168201915b5050505050905090565b600061093a338484611825565b5060015b92915050565b6000610951848484611949565b6109a3843361099e856040518060600160405280602881526020016122ea602891396001600160a01b038a16600090815260016020908152604080832033845290915290205491906119a9565b611825565b5060019392505050565b6001600160a01b03811660009081526009602090815260408083205491839052822054600654600160801b926109ff926109fa926109f4916109ef9190611740565b6119e0565b906119f0565b611a2e565b61093e91906121a3565b600d546001600160a01b03163314610a3c5760405162461bcd60e51b8152600401610a3390612115565b60405180910390fd5b6001600160a01b03811660009081526013602052604090205460ff1615610a6257600080fd5b6001600160a01b0381166000908152601360205260408120805460ff19166001179055610a90908290611a41565b60405163131836e760e21b8152600e60048201526001600160a01b038216602482015273e5101bf4faacd98b49a536257faed6a8c01ed12c90634c60db9c9060440160006040518083038186803b158015610aea57600080fd5b505af4158015610afe573d6000803e3d6000fd5b50506040516001600160a01b03841692507fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b259150600090a250565b6000610b4460025490565b11610b4e57600080fd5b8015610bb757610b6e610b6060025490565b61083d83600160801b611740565b60065560405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a2600b54610bb390826117c6565b600b555b50565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161093a91859061099e90866117c6565b600080600080600080600080600e73e5101bf4faacd98b49a536257faed6a8c01ed12c63deb3d89690916040518263ffffffff1660e01b8152600401610c3891815260200190565b60206040518083038186803b158015610c5057600080fd5b505af4158015610c64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c889190612092565b8910610cad575060009650600019955085945086935083925082915081905080610d57565b6040516368d54f3f60e11b8152600e6004820152602481018a905260009073e5101bf4faacd98b49a536257faed6a8c01ed12c9063d1aa9e7e9060440160206040518083038186803b158015610d0257600080fd5b505af4158015610d16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3a9190611f8a565b9050610d458161149f565b98509850985098509850985098509850505b919395975091939597565b60405162461bcd60e51b815260206004820152606d60248201527f625341544f5348495f4469766964656e645f547261636b65723a20776974686460448201527f7261774469766964656e642064697361626c65642e205573652074686520276360648201527f6c61696d272066756e6374696f6e206f6e20746865206d61696e20625341544f60848201526c29a4249031b7b73a3930b1ba1760991b60a482015260c401610a33565b600d546001600160a01b03163314610e365760405162461bcd60e51b8152600401610a3390612115565b600d546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600d80546001600160a01b0319169055565b600061093e82610fcc565b6060600480546108aa90612238565b600d546001600160a01b03163314610ec45760405162461bcd60e51b8152600401610a3390612115565b600c54811415610f4a5760405162461bcd60e51b815260206004820152604560248201527f625341544f5348495f4469766964656e645f547261636b65723a2043616e6e6f60448201527f742075706461746520676173466f725472616e7366657220746f2073616d652060648201526476616c756560d81b608482015260a401610a33565b600c5460405182907f5e2963a3d7c88b344b101641f89a2f7da9734fc777ed11ad0097b2775a9e9d1790600090a3600c55565b600061093a338461099e85604051806060016040528060258152602001612312602591393360009081526001602090815260408083206001600160a01b038d16845290915290205491906119a9565b6001600160a01b0381166000908152600a602052604081205461093e90610ff2846109ad565b90611aa0565b600061093a338484611949565b600d546000906001600160a01b031633146110325760405162461bcd60e51b8152600401610a3390612115565b600061103d84611afc565b905080156110a9576001600160a01b038416600081815260146020526040908190204290555184151591907fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf092906110979085815260200190565b60405180910390a3600191505061093e565b5060009392505050565b600d546001600160a01b031633146110dd5760405162461bcd60e51b8152600401610a3390612115565b6001600160a01b03821660009081526013602052604090205460ff1615611102575050565b7f000000000000000000000000000000000000000000000000000000000000000081106111b1576111338282611a41565b604051632f0ad01760e21b8152600e60048201526001600160a01b03831660248201526044810182905273e5101bf4faacd98b49a536257faed6a8c01ed12c9063bc2b405c9060640160006040518083038186803b15801561119457600080fd5b505af41580156111a8573d6000803e3d6000fd5b5050505061122f565b6111bc826000611a41565b60405163131836e760e21b8152600e60048201526001600160a01b038316602482015273e5101bf4faacd98b49a536257faed6a8c01ed12c90634c60db9c9060440160006040518083038186803b15801561121657600080fd5b505af415801561122a573d6000803e3d6000fd5b505050505b61123a826001611005565b505050565b600d546001600160a01b031633146112695760405162461bcd60e51b8152600401610a3390612115565b610708811015801561127e5750620151808111155b6113075760405162461bcd60e51b815260206004820152604e60248201527f625341544f5348495f4469766964656e645f547261636b65723a20636c61696d60448201527f57616974206d757374206265207570646174656420746f206265747765656e2060648201526d3120616e6420323420686f75727360901b608482015260a401610a33565b601554811415611381576040805162461bcd60e51b81526020600482015260248101919091527f625341544f5348495f4469766964656e645f547261636b65723a2043616e6e6f60448201527f742075706461746520636c61696d5761697420746f2073616d652076616c75656064820152608401610a33565b60155460405182907f474ea64804364a1e29a4487ddb63c3342a2dd826ccd8acf48825e680a0e6f20f90600090a3601555565b600d546001600160a01b031633146113de5760405162461bcd60e51b8152600401610a3390612115565b6001600160a01b0381166114435760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a33565b600d546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6040516317e142d160e01b8152600e60048201526001600160a01b0382166024820152819060009081908190819081908190819073e5101bf4faacd98b49a536257faed6a8c01ed12c906317e142d19060440160206040518083038186803b15801561150a57600080fd5b505af415801561151e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115429190612092565b96506000199550600087126115a45760125487111561157057601254611569908890611c70565b95506115a4565b601254600e5460009110611585576000611594565b601254600e5461159491611aa0565b90506115a088826119f0565b9650505b6115ad88610fcc565b94506115b8886109ad565b6001600160a01b0389166000908152601460205260409020549094509250826115e25760006115f0565b6015546115f09084906117c6565b915042821161160057600061160a565b61160a8242611aa0565b9050919395975091939597565b600e54600090819081908061163757505060125460009250829150611739565b6012546000805a90506000805b898410801561165257508582105b15611728578461166181612273565b600e549096508610905061167457600094505b6000600e600001868154811061169a57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031680835260149091526040909120549091506116cb90611cbc565b156116ee576116db816001611005565b156116ee57816116ea81612273565b9250505b826116f881612273565b93505060005a90508085111561171f5761171c6117158683611aa0565b87906117c6565b95505b93506116449050565b601285905590975095509193505050505b9193909250565b60008261174f5750600061093e565b600061175b83856121c3565b90508261176885836121a3565b146117bf5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610a33565b9392505050565b6000806117d3838561218b565b9050838110156117bf5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610a33565b6001600160a01b0383166118875760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a33565b6001600160a01b0382166118e85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a33565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60405162461bcd60e51b815260206004820152602f60248201527f625341544f5348495f4469766964656e645f547261636b65723a204e6f20747260448201526e185b9cd9995c9cc8185b1b1bddd959608a1b6064820152608401610a33565b600081848411156119cd5760405162461bcd60e51b8152600401610a3391906120c2565b506119d88385612221565b949350505050565b6000818181121561093e57600080fd5b6000806119fd838561214a565b905060008312158015611a105750838112155b80611a255750600083128015611a2557508381125b6117bf57600080fd5b600080821215611a3d57600080fd5b5090565b6001600160a01b03821660009081526020819052604090205480821115611a80576000611a6e8383611aa0565b9050611a7a8482611ce3565b50505050565b8082101561123a576000611a948284611aa0565b9050611a7a8482611d47565b600082821115611af25760405162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f7700006044820152606401610a33565b6117bf8284612221565b600080611b0883610fcc565b90508015611c67576001600160a01b0383166000908152600a6020526040902054611b3390826117c6565b6001600160a01b0384166000818152600a6020526040908190209290925590517fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d90611b829084815260200190565b60405180910390a260085460405163a9059cbb60e01b81526001600160a01b03858116600483015260248201849052600092169063a9059cbb90604401602060405180830381600087803b158015611bd957600080fd5b505af1158015611bed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c119190612076565b905080611c60576001600160a01b0384166000908152600a6020526040902054611c3b9083611aa0565b6001600160a01b039094166000908152600a6020526040812094909455509192915050565b5092915050565b50600092915050565b6000808212158015611c8b575082611c8883826121e2565b13155b80611ca95750600082128015611ca9575082611ca783826121e2565b135b611cb257600080fd5b6117bf82846121e2565b600042821115611cce57506000919050565b601554611cdb4284611aa0565b101592915050565b611ced8282611d8b565b611d27611d086109ef8360065461174090919063ffffffff16565b6001600160a01b03841660009081526009602052604090205490611c70565b6001600160a01b0390921660009081526009602052604090209190915550565b611d518282611e6a565b611d27611d6c6109ef8360065461174090919063ffffffff16565b6001600160a01b038416600090815260096020526040902054906119f0565b6001600160a01b038216611de15760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610a33565b600254611dee90826117c6565b6002556001600160a01b038216600090815260208190526040902054611e1490826117c6565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b6001600160a01b038216611eca5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610a33565b611f07816040518060600160405280602281526020016122c8602291396001600160a01b03851660009081526020819052604090205491906119a9565b6001600160a01b038316600090815260208190526040902055600254611f2d9082611aa0565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611e5e565b600060208284031215611f7f578081fd5b81356117bf816122a4565b600060208284031215611f9b578081fd5b81516117bf816122a4565b60008060408385031215611fb8578081fd5b8235611fc3816122a4565b91506020830135611fd3816122b9565b809150509250929050565b60008060408385031215611ff0578182fd5b8235611ffb816122a4565b946020939093013593505050565b6000806040838503121561201b578182fd5b8235612026816122a4565b91506020830135611fd3816122a4565b60008060006060848603121561204a578081fd5b8335612055816122a4565b92506020840135612065816122a4565b929592945050506040919091013590565b600060208284031215612087578081fd5b81516117bf816122b9565b6000602082840312156120a3578081fd5b5051919050565b6000602082840312156120bb578081fd5b5035919050565b6000602080835283518082850152825b818110156120ee578581018301518582016040015282016120d2565b818111156120ff5783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600080821280156001600160ff1b038490038513161561216c5761216c61228e565b600160ff1b83900384128116156121855761218561228e565b50500190565b6000821982111561219e5761219e61228e565b500190565b6000826121be57634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156121dd576121dd61228e565b500290565b60008083128015600160ff1b8501841216156122005761220061228e565b6001600160ff1b038401831381161561221b5761221b61228e565b50500390565b6000828210156122335761223361228e565b500390565b600181811c9082168061224c57607f821691505b6020821081141561226d57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156122875761228761228e565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114610bb757600080fd5b8015158114610bb757600080fdfe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220e82f1b6c8dc7ebbbcf682417b21cb8c9f0e960a570c1204f92ba224682cf528364736f6c63430008040033
Deployed Bytecode
0x60806040526004361061023f5760003560e01c80637e3e7fd21161012e578063bc4c4b37116100ab578063e98030c71161006f578063e98030c714610757578063f2fde38b14610777578063f39b502014610797578063fbcbc0f1146107ad578063ffb2c479146107cd57600080fd5b8063bc4c4b3714610688578063be10b614146106a8578063dd62ed3e146106dc578063e30443bc14610722578063e7841ec01461074257600080fd5b80639d55d16f116100f25780639d55d16f146105d2578063a457c2d7146105f2578063a8b9d24014610612578063a9059cbb14610632578063aafd847a1461065257600080fd5b80637e3e7fd21461052c57806385a6b3ae146105695780638da5cb5b1461057f57806391b89fba1461059d57806395d89b41146105bd57600080fd5b8063313ce567116101bc5780635183d6fd116101805780635183d6fd146104515780636a474002146104b65780636f2789ec146104cb57806370a08231146104e1578063715018a61461051757600080fd5b8063313ce5671461039f57806331e79db0146103c15780633243c791146103e157806339509351146104015780634e7b827f1461042157600080fd5b806318160ddd1161020357806318160ddd14610307578063226cfa3d1461031c57806323b872dd1461034957806327ce0147146103695780633009a6091461038957600080fd5b806303c833021461024b57806306fdde0314610255578063095ea7b31461028057806309bbedde146102b05780631582358e146102cf57600080fd5b3661024657005b600080fd5b610253610808565b005b34801561026157600080fd5b5061026a61089b565b60405161027791906120c2565b60405180910390f35b34801561028c57600080fd5b506102a061029b366004611fde565b61092d565b6040519015158152602001610277565b3480156102bc57600080fd5b50600e545b604051908152602001610277565b3480156102db57600080fd5b506008546102ef906001600160a01b031681565b6040516001600160a01b039091168152602001610277565b34801561031357600080fd5b506002546102c1565b34801561032857600080fd5b506102c1610337366004611f6e565b60146020526000908152604090205481565b34801561035557600080fd5b506102a0610364366004612036565b610944565b34801561037557600080fd5b506102c1610384366004611f6e565b6109ad565b34801561039557600080fd5b506102c160125481565b3480156103ab57600080fd5b5060055460405160ff9091168152602001610277565b3480156103cd57600080fd5b506102536103dc366004611f6e565b610a09565b3480156103ed57600080fd5b506102536103fc3660046120aa565b610b39565b34801561040d57600080fd5b506102a061041c366004611fde565b610bba565b34801561042d57600080fd5b506102a061043c366004611f6e565b60136020526000908152604090205460ff1681565b34801561045d57600080fd5b5061047161046c3660046120aa565b610bf0565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e082015261010001610277565b3480156104c257600080fd5b50610253610d62565b3480156104d757600080fd5b506102c160155481565b3480156104ed57600080fd5b506102c16104fc366004611f6e565b6001600160a01b031660009081526020819052604090205490565b34801561052357600080fd5b50610253610e0c565b34801561053857600080fd5b50610253610547366004611f6e565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b34801561057557600080fd5b506102c1600b5481565b34801561058b57600080fd5b50600d546001600160a01b03166102ef565b3480156105a957600080fd5b506102c16105b8366004611f6e565b610e80565b3480156105c957600080fd5b5061026a610e8b565b3480156105de57600080fd5b506102536105ed3660046120aa565b610e9a565b3480156105fe57600080fd5b506102a061060d366004611fde565b610f7d565b34801561061e57600080fd5b506102c161062d366004611f6e565b610fcc565b34801561063e57600080fd5b506102a061064d366004611fde565b610ff8565b34801561065e57600080fd5b506102c161066d366004611f6e565b6001600160a01b03166000908152600a602052604090205490565b34801561069457600080fd5b506102a06106a3366004611fa6565b611005565b3480156106b457600080fd5b506102c17f00000000000000000000000000000000000000000000021e19e0c9bab240000081565b3480156106e857600080fd5b506102c16106f7366004612009565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561072e57600080fd5b5061025361073d366004611fde565b6110b3565b34801561074e57600080fd5b506012546102c1565b34801561076357600080fd5b506102536107723660046120aa565b61123f565b34801561078357600080fd5b50610253610792366004611f6e565b6113b4565b3480156107a357600080fd5b506102c1600c5481565b3480156107b957600080fd5b506104716107c8366004611f6e565b61149f565b3480156107d957600080fd5b506107ed6107e83660046120aa565b611617565b60408051938452602084019290925290820152606001610277565b600061081360025490565b1161081d57600080fd5b34156108995761085061082f60025490565b61083d34600160801b611740565b61084791906121a3565b600654906117c6565b60065560405134815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a2600b5461089590346117c6565b600b555b565b6060600380546108aa90612238565b80601f01602080910402602001604051908101604052809291908181526020018280546108d690612238565b80156109235780601f106108f857610100808354040283529160200191610923565b820191906000526020600020905b81548152906001019060200180831161090657829003601f168201915b5050505050905090565b600061093a338484611825565b5060015b92915050565b6000610951848484611949565b6109a3843361099e856040518060600160405280602881526020016122ea602891396001600160a01b038a16600090815260016020908152604080832033845290915290205491906119a9565b611825565b5060019392505050565b6001600160a01b03811660009081526009602090815260408083205491839052822054600654600160801b926109ff926109fa926109f4916109ef9190611740565b6119e0565b906119f0565b611a2e565b61093e91906121a3565b600d546001600160a01b03163314610a3c5760405162461bcd60e51b8152600401610a3390612115565b60405180910390fd5b6001600160a01b03811660009081526013602052604090205460ff1615610a6257600080fd5b6001600160a01b0381166000908152601360205260408120805460ff19166001179055610a90908290611a41565b60405163131836e760e21b8152600e60048201526001600160a01b038216602482015273e5101bf4faacd98b49a536257faed6a8c01ed12c90634c60db9c9060440160006040518083038186803b158015610aea57600080fd5b505af4158015610afe573d6000803e3d6000fd5b50506040516001600160a01b03841692507fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b259150600090a250565b6000610b4460025490565b11610b4e57600080fd5b8015610bb757610b6e610b6060025490565b61083d83600160801b611740565b60065560405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a2600b54610bb390826117c6565b600b555b50565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161093a91859061099e90866117c6565b600080600080600080600080600e73e5101bf4faacd98b49a536257faed6a8c01ed12c63deb3d89690916040518263ffffffff1660e01b8152600401610c3891815260200190565b60206040518083038186803b158015610c5057600080fd5b505af4158015610c64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c889190612092565b8910610cad575060009650600019955085945086935083925082915081905080610d57565b6040516368d54f3f60e11b8152600e6004820152602481018a905260009073e5101bf4faacd98b49a536257faed6a8c01ed12c9063d1aa9e7e9060440160206040518083038186803b158015610d0257600080fd5b505af4158015610d16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3a9190611f8a565b9050610d458161149f565b98509850985098509850985098509850505b919395975091939597565b60405162461bcd60e51b815260206004820152606d60248201527f625341544f5348495f4469766964656e645f547261636b65723a20776974686460448201527f7261774469766964656e642064697361626c65642e205573652074686520276360648201527f6c61696d272066756e6374696f6e206f6e20746865206d61696e20625341544f60848201526c29a4249031b7b73a3930b1ba1760991b60a482015260c401610a33565b600d546001600160a01b03163314610e365760405162461bcd60e51b8152600401610a3390612115565b600d546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600d80546001600160a01b0319169055565b600061093e82610fcc565b6060600480546108aa90612238565b600d546001600160a01b03163314610ec45760405162461bcd60e51b8152600401610a3390612115565b600c54811415610f4a5760405162461bcd60e51b815260206004820152604560248201527f625341544f5348495f4469766964656e645f547261636b65723a2043616e6e6f60448201527f742075706461746520676173466f725472616e7366657220746f2073616d652060648201526476616c756560d81b608482015260a401610a33565b600c5460405182907f5e2963a3d7c88b344b101641f89a2f7da9734fc777ed11ad0097b2775a9e9d1790600090a3600c55565b600061093a338461099e85604051806060016040528060258152602001612312602591393360009081526001602090815260408083206001600160a01b038d16845290915290205491906119a9565b6001600160a01b0381166000908152600a602052604081205461093e90610ff2846109ad565b90611aa0565b600061093a338484611949565b600d546000906001600160a01b031633146110325760405162461bcd60e51b8152600401610a3390612115565b600061103d84611afc565b905080156110a9576001600160a01b038416600081815260146020526040908190204290555184151591907fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf092906110979085815260200190565b60405180910390a3600191505061093e565b5060009392505050565b600d546001600160a01b031633146110dd5760405162461bcd60e51b8152600401610a3390612115565b6001600160a01b03821660009081526013602052604090205460ff1615611102575050565b7f00000000000000000000000000000000000000000000021e19e0c9bab240000081106111b1576111338282611a41565b604051632f0ad01760e21b8152600e60048201526001600160a01b03831660248201526044810182905273e5101bf4faacd98b49a536257faed6a8c01ed12c9063bc2b405c9060640160006040518083038186803b15801561119457600080fd5b505af41580156111a8573d6000803e3d6000fd5b5050505061122f565b6111bc826000611a41565b60405163131836e760e21b8152600e60048201526001600160a01b038316602482015273e5101bf4faacd98b49a536257faed6a8c01ed12c90634c60db9c9060440160006040518083038186803b15801561121657600080fd5b505af415801561122a573d6000803e3d6000fd5b505050505b61123a826001611005565b505050565b600d546001600160a01b031633146112695760405162461bcd60e51b8152600401610a3390612115565b610708811015801561127e5750620151808111155b6113075760405162461bcd60e51b815260206004820152604e60248201527f625341544f5348495f4469766964656e645f547261636b65723a20636c61696d60448201527f57616974206d757374206265207570646174656420746f206265747765656e2060648201526d3120616e6420323420686f75727360901b608482015260a401610a33565b601554811415611381576040805162461bcd60e51b81526020600482015260248101919091527f625341544f5348495f4469766964656e645f547261636b65723a2043616e6e6f60448201527f742075706461746520636c61696d5761697420746f2073616d652076616c75656064820152608401610a33565b60155460405182907f474ea64804364a1e29a4487ddb63c3342a2dd826ccd8acf48825e680a0e6f20f90600090a3601555565b600d546001600160a01b031633146113de5760405162461bcd60e51b8152600401610a3390612115565b6001600160a01b0381166114435760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a33565b600d546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6040516317e142d160e01b8152600e60048201526001600160a01b0382166024820152819060009081908190819081908190819073e5101bf4faacd98b49a536257faed6a8c01ed12c906317e142d19060440160206040518083038186803b15801561150a57600080fd5b505af415801561151e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115429190612092565b96506000199550600087126115a45760125487111561157057601254611569908890611c70565b95506115a4565b601254600e5460009110611585576000611594565b601254600e5461159491611aa0565b90506115a088826119f0565b9650505b6115ad88610fcc565b94506115b8886109ad565b6001600160a01b0389166000908152601460205260409020549094509250826115e25760006115f0565b6015546115f09084906117c6565b915042821161160057600061160a565b61160a8242611aa0565b9050919395975091939597565b600e54600090819081908061163757505060125460009250829150611739565b6012546000805a90506000805b898410801561165257508582105b15611728578461166181612273565b600e549096508610905061167457600094505b6000600e600001868154811061169a57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031680835260149091526040909120549091506116cb90611cbc565b156116ee576116db816001611005565b156116ee57816116ea81612273565b9250505b826116f881612273565b93505060005a90508085111561171f5761171c6117158683611aa0565b87906117c6565b95505b93506116449050565b601285905590975095509193505050505b9193909250565b60008261174f5750600061093e565b600061175b83856121c3565b90508261176885836121a3565b146117bf5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610a33565b9392505050565b6000806117d3838561218b565b9050838110156117bf5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610a33565b6001600160a01b0383166118875760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a33565b6001600160a01b0382166118e85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a33565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60405162461bcd60e51b815260206004820152602f60248201527f625341544f5348495f4469766964656e645f547261636b65723a204e6f20747260448201526e185b9cd9995c9cc8185b1b1bddd959608a1b6064820152608401610a33565b600081848411156119cd5760405162461bcd60e51b8152600401610a3391906120c2565b506119d88385612221565b949350505050565b6000818181121561093e57600080fd5b6000806119fd838561214a565b905060008312158015611a105750838112155b80611a255750600083128015611a2557508381125b6117bf57600080fd5b600080821215611a3d57600080fd5b5090565b6001600160a01b03821660009081526020819052604090205480821115611a80576000611a6e8383611aa0565b9050611a7a8482611ce3565b50505050565b8082101561123a576000611a948284611aa0565b9050611a7a8482611d47565b600082821115611af25760405162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f7700006044820152606401610a33565b6117bf8284612221565b600080611b0883610fcc565b90508015611c67576001600160a01b0383166000908152600a6020526040902054611b3390826117c6565b6001600160a01b0384166000818152600a6020526040908190209290925590517fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d90611b829084815260200190565b60405180910390a260085460405163a9059cbb60e01b81526001600160a01b03858116600483015260248201849052600092169063a9059cbb90604401602060405180830381600087803b158015611bd957600080fd5b505af1158015611bed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c119190612076565b905080611c60576001600160a01b0384166000908152600a6020526040902054611c3b9083611aa0565b6001600160a01b039094166000908152600a6020526040812094909455509192915050565b5092915050565b50600092915050565b6000808212158015611c8b575082611c8883826121e2565b13155b80611ca95750600082128015611ca9575082611ca783826121e2565b135b611cb257600080fd5b6117bf82846121e2565b600042821115611cce57506000919050565b601554611cdb4284611aa0565b101592915050565b611ced8282611d8b565b611d27611d086109ef8360065461174090919063ffffffff16565b6001600160a01b03841660009081526009602052604090205490611c70565b6001600160a01b0390921660009081526009602052604090209190915550565b611d518282611e6a565b611d27611d6c6109ef8360065461174090919063ffffffff16565b6001600160a01b038416600090815260096020526040902054906119f0565b6001600160a01b038216611de15760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610a33565b600254611dee90826117c6565b6002556001600160a01b038216600090815260208190526040902054611e1490826117c6565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b6001600160a01b038216611eca5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610a33565b611f07816040518060600160405280602281526020016122c8602291396001600160a01b03851660009081526020819052604090205491906119a9565b6001600160a01b038316600090815260208190526040902055600254611f2d9082611aa0565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611e5e565b600060208284031215611f7f578081fd5b81356117bf816122a4565b600060208284031215611f9b578081fd5b81516117bf816122a4565b60008060408385031215611fb8578081fd5b8235611fc3816122a4565b91506020830135611fd3816122b9565b809150509250929050565b60008060408385031215611ff0578182fd5b8235611ffb816122a4565b946020939093013593505050565b6000806040838503121561201b578182fd5b8235612026816122a4565b91506020830135611fd3816122a4565b60008060006060848603121561204a578081fd5b8335612055816122a4565b92506020840135612065816122a4565b929592945050506040919091013590565b600060208284031215612087578081fd5b81516117bf816122b9565b6000602082840312156120a3578081fd5b5051919050565b6000602082840312156120bb578081fd5b5035919050565b6000602080835283518082850152825b818110156120ee578581018301518582016040015282016120d2565b818111156120ff5783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600080821280156001600160ff1b038490038513161561216c5761216c61228e565b600160ff1b83900384128116156121855761218561228e565b50500190565b6000821982111561219e5761219e61228e565b500190565b6000826121be57634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156121dd576121dd61228e565b500290565b60008083128015600160ff1b8501841216156122005761220061228e565b6001600160ff1b038401831381161561221b5761221b61228e565b50500390565b6000828210156122335761223361228e565b500390565b600181811c9082168061224c57607f821691505b6020821081141561226d57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156122875761228761228e565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114610bb757600080fd5b8015158114610bb757600080fdfe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220e82f1b6c8dc7ebbbcf682417b21cb8c9f0e960a570c1204f92ba224682cf528364736f6c63430008040033
Deployed Bytecode Sourcemap
64280:7105:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23232:393;;;:::i;:::-;;8131:91;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;10277:169;;;;;;;;;;-1:-1:-1;10277:169:0;;;;;:::i;:::-;;:::i;:::-;;;4707:14:1;;4700:22;4682:41;;4670:2;4655:18;10277:169:0;4637:92:1;66866:119:0;;;;;;;;;;-1:-1:-1;66950:15:0;:27;66866:119;;;11346:25:1;;;11334:2;11319:18;66866:119:0;11301:76:1;21031:73:0;;;;;;;;;;-1:-1:-1;21031:73:0;;;;-1:-1:-1;;;;;21031:73:0;;;;;;-1:-1:-1;;;;;3505:32:1;;;;3487:51;;3475:2;3460:18;21031:73:0;3442:102:1;9230:108:0;;;;;;;;;;-1:-1:-1;9318:12:0;;9230:108;;64629:50;;;;;;;;;;-1:-1:-1;64629:50:0;;;;;:::i;:::-;;;;;;;;;;;;;;10928:321;;;;;;;;;;-1:-1:-1;10928:321:0;;;;;:::i;:::-;;:::i;26691:247::-;;;;;;;;;;-1:-1:-1;26691:247:0;;;;;:::i;:::-;;:::i;64524:33::-;;;;;;;;;;;;;;;;9074:91;;;;;;;;;;-1:-1:-1;9148:9:0;;9074:91;;9148:9;;;;13327:36:1;;13315:2;13300:18;9074:91:0;13282:87:1;65679:283:0;;;;;;;;;;-1:-1:-1;65679:283:0;;;;;:::i;:::-;;:::i;23635:378::-;;;;;;;;;;-1:-1:-1;23635:378:0;;;;;:::i;:::-;;:::i;11658:218::-;;;;;;;;;;-1:-1:-1;11658:218:0;;;;;:::i;:::-;;:::i;64566:54::-;;;;;;;;;;-1:-1:-1;64566:54:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;68673:505;;;;;;;;;;-1:-1:-1;68673: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;68673:505:0;4129:408:1;65476:195:0;;;;;;;;;;;;;:::i;64688:24::-;;;;;;;;;;;;;;;;9401:127;;;;;;;;;;-1:-1:-1;9401:127:0;;;;;:::i;:::-;-1:-1:-1;;;;;9502:18:0;9475:7;9502:18;;;;;;;;;;;;9401:127;2880:148;;;;;;;;;;;;;:::i;24299:97::-;;;;;;;;;;-1:-1:-1;24299:97:0;;;;;:::i;:::-;24366:13;:24;;-1:-1:-1;;;;;;24366:24:0;-1:-1:-1;;;;;24366:24:0;;;;;;;;;;24299:97;22143:40;;;;;;;;;;;;;;;;2229:87;;;;;;;;;;-1:-1:-1;2302:6:0;;-1:-1:-1;;;;;2302:6:0;2229:87;;25405:124;;;;;;;;;;-1:-1:-1;25405:124:0;;;;;:::i;:::-;;:::i;8341:95::-;;;;;;;;;;;;;:::i;65982:329::-;;;;;;;;;;-1:-1:-1;65982:329:0;;;;;:::i;:::-;;:::i;12379:269::-;;;;;;;;;;-1:-1:-1;12379:269:0;;;;;:::i;:::-;;:::i;25740:168::-;;;;;;;;;;-1:-1:-1;25740:168:0;;;;;:::i;:::-;;:::i;9741:175::-;;;;;;;;;;-1:-1:-1;9741:175:0;;;;;:::i;:::-;;:::i;26121:129::-;;;;;;;;;;-1:-1:-1;26121:129:0;;;;;:::i;:::-;-1:-1:-1;;;;;26218:26:0;26195:7;26218:26;;;:18;:26;;;;;;;26121:129;71039:343;;;;;;;;;;-1:-1:-1;71039:343:0;;;;;:::i;:::-;;:::i;64719:56::-;;;;;;;;;;;;;;;9979:151;;;;;;;;;;-1:-1:-1;9979:151:0;;;;;:::i;:::-;-1:-1:-1;;;;;10095:18:0;;;10068:7;10095:18;;;-1:-1:-1;10095:18:0;;;;;;;;:27;;;;;;;;;;;;;9979:151;69413:460;;;;;;;;;;-1:-1:-1;69413:460:0;;;;;:::i;:::-;;:::i;66753:105::-;;;;;;;;;;-1:-1:-1;66832:18:0;;66753:105;;66319:426;;;;;;;;;;-1:-1:-1;66319:426:0;;;;;:::i;:::-;;:::i;3183:244::-;;;;;;;;;;-1:-1:-1;3183:244:0;;;;;:::i;:::-;;:::i;22188:29::-;;;;;;;;;;;;;;;;66995:1670;;;;;;;;;;-1:-1:-1;66995:1670:0;;;;;:::i;:::-;;:::i;69881:1150::-;;;;;;;;;;-1:-1:-1;69881:1150:0;;;;;:::i;:::-;;:::i;:::-;;;;13063:25:1;;;13119:2;13104:18;;13097:34;;;;13147:18;;;13140:34;13051:2;13036:18;69881:1150:0;13018:162:1;23232:393:0;23318:1;23302:13;9318:12;;;9230:108;23302:13;:17;23294:26;;;;;;23333:9;:13;23329:291;;23385:91;23454:13;9318:12;;;9230:108;23454:13;23425:26;23426:9;-1:-1:-1;;;23425:15:0;:26::i;:::-;:42;;;;:::i;:::-;23385:25;;;:29;:91::i;:::-;23357:25;:119;23490:43;;23523:9;11346:25:1;;23511:10:0;;23490:43;;11334:2:1;11319:18;23490:43:0;;;;;;;23572:25;;:40;;23602:9;23572:29;:40::i;:::-;23544:25;:68;23329:291;23232:393::o;8131:91::-;8176:13;8209:5;8202:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8131:91;:::o;10277:169::-;10360:4;10377:39;954:10;10400:7;10409:6;10377:8;:39::i;:::-;-1:-1:-1;10434:4:0;10277:169;;;;;:::o;10928:321::-;11034:4;11051:36;11061:6;11069:9;11080:6;11051:9;:36::i;:::-;11098:121;11107:6;954:10;11129:89;11167:6;11129:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;11129:19:0;;;;;;-1:-1:-1;11129:19:0;;;;;;;;954:10;11129:33;;;;;;;;;;:37;:89::i;:::-;11098:8;:121::i;:::-;-1:-1:-1;11237:4:0;10928:321;;;;;:::o;26691:247::-;-1:-1:-1;;;;;26867:36:0;;26768:7;26867:36;;;:28;:36;;;;;;;;;9502:18;;;;;;;26791:25;;-1:-1:-1;;;;26791:129:0;;:113;;:63;;:48;;:25;:29;:48::i;:::-;:61;:63::i;:::-;:75;;:113::i;:::-;:127;:129::i;:::-;:141;;;;:::i;65679:283::-;2302:6;;-1:-1:-1;;;;;2302:6:0;954:10;2449:23;2441:68;;;;-1:-1:-1;;;2441:68:0;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;;;;;65762:30:0;::::1;;::::0;;;:21:::1;:30;::::0;;;;;::::1;;65761:31;65753:40;;;::::0;::::1;;-1:-1:-1::0;;;;;65801:30:0;::::1;;::::0;;;:21:::1;:30;::::0;;;;:37;;-1:-1:-1;;65801:37:0::1;-1:-1:-1::0;65801:37:0::1;::::0;;65848:23:::1;::::0;65801:30;;65848:11:::1;:23::i;:::-;65879:31;::::0;-1:-1:-1;;;65879:31:0;;:15:::1;:31;::::0;::::1;11586:25:1::0;-1:-1:-1;;;;;11647:32:1;;11627:18;;;11620:60;65879:22:0::1;::::0;::::1;::::0;11559:18:1;;65879:31:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;65925:29:0::1;::::0;-1:-1:-1;;;;;65925:29:0;::::1;::::0;-1:-1:-1;65925:29:0::1;::::0;-1:-1:-1;65925:29:0;;::::1;65679:283:::0;:::o;23635:378::-;23718:1;23702:13;9318:12;;;9230:108;23702:13;:17;23694:26;;;;;;23733:10;;23729:279;;23782:88;23848:13;9318:12;;;9230:108;23848:13;23822:23;23823:6;-1:-1:-1;;;23822:12:0;:23::i;23782:88::-;23754:25;:116;23884:40;;11346:25:1;;;23905:10:0;;23884:40;;11334:2:1;11319:18;23884:40:0;;;;;;;23963:25;;:37;;23993:6;23963:29;:37::i;:::-;23935:25;:65;23729:279;23635:378;:::o;11658:218::-;954:10;11746:4;11795:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;11795:34:0;;;;;;;;;;11746:4;;11763:83;;11795:34;;:50;;11834:10;11795:38;:50::i;68673:505::-;68759:7;68781:6;68802;68823:7;68845;68867;68889;68911;68940:15;:20;;;;:22;;;;;;;;;;;;;11346:25:1;;11334:2;11319:18;;11301:76;68940:22:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;68931:5;:31;68928:137;;-1:-1:-1;68987:42:0;;-1:-1:-1;;;;;;;;68987:42:0;;-1:-1:-1;68987:42:0;;-1:-1:-1;68987:42:0;;-1:-1:-1;68987:42:0;;-1:-1:-1;68987:42:0;68979:74;;68928:137;69095:36;;-1:-1:-1;;;69095:36:0;;:15;:36;;;12600:25:1;12641:18;;;12634:34;;;69077:15:0;;69095:29;;;;12573:18:1;;69095:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;69077:54;;69151:19;69162:7;69151:10;:19::i;:::-;69144:26;;;;;;;;;;;;;;;;;68673:505;;;;;;;;;;:::o;65476:195::-;65536:127;;-1:-1:-1;;;65536:127:0;;9128:2:1;65536:127:0;;;9110:21:1;9167:3;9147:18;;;9140:31;9207:34;9187:18;;;9180:62;9278:34;9258:18;;;9251:62;9350:34;9329:19;;;9322:63;-1:-1:-1;;;9401:19:1;;;9394:44;9455:19;;65536:127:0;9100:380:1;2880:148:0;2302:6;;-1:-1:-1;;;;;2302:6:0;954:10;2449:23;2441:68;;;;-1:-1:-1;;;2441:68:0;;;;;;;:::i;:::-;2971:6:::1;::::0;2950:40:::1;::::0;2987:1:::1;::::0;-1:-1:-1;;;;;2971:6:0::1;::::0;2950:40:::1;::::0;2987:1;;2950:40:::1;3001:6;:19:::0;;-1:-1:-1;;;;;;3001:19:0::1;::::0;;2880:148::o;25405:124::-;25470:7;25493:30;25516:6;25493:22;:30::i;8341:95::-;8388:13;8421:7;8414:14;;;;;:::i;65982:329::-;2302:6;;-1:-1:-1;;;;;2302:6:0;954:10;2449:23;2441:68;;;;-1:-1:-1;;;2441:68:0;;;;;;;:::i;:::-;66098:14:::1;;66077:17;:35;;66069:117;;;::::0;-1:-1:-1;;;66069:117:0;;6710:2:1;66069:117:0::1;::::0;::::1;6692:21:1::0;6749:2;6729:18;;;6722:30;6788:34;6768:18;;;6761:62;6859:34;6839:18;;;6832:62;-1:-1:-1;;;6910:19:1;;;6903:36;6956:19;;66069:117:0::1;6682:299:1::0;66069:117:0::1;66243:14;::::0;66202:56:::1;::::0;66224:17;;66202:56:::1;::::0;;;::::1;66269:14;:34:::0;65982:329::o;12379:269::-;12472:4;12489:129;954:10;12512:7;12521:96;12560:15;12521:96;;;;;;;;;;;;;;;;;954:10;12521:25;;;;:11;:25;;;;;;;;-1:-1:-1;;;;;12521:34:0;;;;;;;;;;;;:38;:96::i;25740:168::-;-1:-1:-1;;;;;25875:26:0;;25817:7;25875:26;;;:18;:26;;;;;;25840:62;;:30;25875:26;25840:22;:30::i;:::-;:34;;:62::i;9741:175::-;9827:4;9844:42;954:10;9868:9;9879:6;9844:9;:42::i;71039:343::-;2302:6;;71130:4;;-1:-1:-1;;;;;2302:6:0;954:10;2449:23;2441:68;;;;-1:-1:-1;;;2441:68:0;;;;;;;:::i;:::-;71147:14:::1;71164:32;71188:7;71164:23;:32::i;:::-;71147:49:::0;-1:-1:-1;71209:10:0;;71206:147:::1;;-1:-1:-1::0;;;;;71230:23:0;::::1;;::::0;;;:14:::1;:23;::::0;;;;;;;;71256:15:::1;71230:41:::0;;71291:33;;11346:25:1;;;71291:33:0;::::1;;::::0;71230:23;71291:33:::1;::::0;11319:18:1;71291:33:0::1;;;;;;;71340:4;71333:11;;;;;71206:147;-1:-1:-1::0;71369:5:0::1;::::0;71039:343;-1:-1:-1;;;71039:343:0:o;69413:460::-;2302:6;;-1:-1:-1;;;;;2302:6:0;954:10;2449:23;2441:68;;;;-1:-1:-1;;;2441:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;69508:30:0;::::1;;::::0;;;:21:::1;:30;::::0;;;;;::::1;;69505:59;;;69413:460:::0;;:::o;69505:59::-:1;69590:31;69576:10;:45;69573:254;;69638:32;69650:7;69659:10;69638:11;:32::i;:::-;69679:40;::::0;-1:-1:-1;;;69679:40:0;;:15:::1;:40;::::0;::::1;12248:25:1::0;-1:-1:-1;;;;;12309:32:1;;12289:18;;;12282:60;12358:18;;;12351:34;;;69679:19:0::1;::::0;::::1;::::0;12221:18:1;;69679:40:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;69573:254;;;69755:23;69767:7;69776:1;69755:11;:23::i;:::-;69787:31;::::0;-1:-1:-1;;;69787:31:0;;:15:::1;:31;::::0;::::1;11586:25:1::0;-1:-1:-1;;;;;11647:32:1;;11627:18;;;11620:60;69787:22:0::1;::::0;::::1;::::0;11559:18:1;;69787:31:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;69573:254;69836:29;69851:7;69860:4;69836:14;:29::i;:::-;;69413:460:::0;;:::o;66319:426::-;2302:6;;-1:-1:-1;;;;;2302:6:0;954:10;2449:23;2441:68;;;;-1:-1:-1;;;2441:68:0;;;;;;;:::i;:::-;66420:4:::1;66404:12;:20;;:45;;;;;66444:5;66428:12;:21;;66404:45;66396:136;;;::::0;-1:-1:-1;;;66396:136:0;;10092:2:1;66396:136:0::1;::::0;::::1;10074:21:1::0;10131:2;10111:18;;;10104:30;10170:34;10150:18;;;10143:62;10241:34;10221:18;;;10214:62;-1:-1:-1;;;10292:19:1;;;10285:45;10347:19;;66396:136:0::1;10064:308:1::0;66396:136:0::1;66567:9;;66551:12;:25;;66543:102;;;::::0;;-1:-1:-1;;;66543:102:0;;10579:2:1;66543:102:0::1;::::0;::::1;10561:21:1::0;10598:18;;;10591:30;;;;10657:34;10637:18;;;10630:62;10728:34;10708:18;;;10701:62;10780:19;;66543:102:0::1;10551:254:1::0;66543:102:0::1;66692:9;::::0;66661:41:::1;::::0;66678:12;;66661:41:::1;::::0;;;::::1;66713:9;:24:::0;66319:426::o;3183:244::-;2302:6;;-1:-1:-1;;;;;2302:6:0;954:10;2449:23;2441:68;;;;-1:-1:-1;;;2441:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;3272:22:0;::::1;3264:73;;;::::0;-1:-1:-1;;;3264:73:0;;5544:2:1;3264: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;;3264:73:0::1;5516:228:1::0;3264:73:0::1;3374:6;::::0;3353:38:::1;::::0;-1:-1:-1;;;;;3353:38:0;;::::1;::::0;3374:6:::1;::::0;3353:38:::1;::::0;3374:6:::1;::::0;3353:38:::1;3402:6;:17:::0;;-1:-1:-1;;;;;;3402:17:0::1;-1:-1:-1::0;;;;;3402:17:0;;;::::1;::::0;;;::::1;::::0;;3183:244::o;66995:1670::-;67423:38;;-1:-1:-1;;;67423:38:0;;:15;:38;;;11586:25:1;-1:-1:-1;;;;;11647:32:1;;11627:18;;;11620:60;67394:8:0;;67077:15;;;;;;;;;;;;;;67423:29;;;;11559:18:1;;67423:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;67415:46;-1:-1:-1;;;;;;67519:10:0;;67516:582;;67566:18;;67557:5;67549:35;67546:541;;;67649:18;;67632:37;;:5;;:9;:37::i;:::-;67605:64;;67546:541;;;67788:18;;67758:15;:27;67723:32;;-1:-1:-1;67758:220:0;;67977:1;67758:220;;;67898:18;;67866:15;:27;:51;;:31;:51::i;:::-;67723:255;-1:-1:-1;68028:43:0;:5;67723:255;68028:9;:43::i;:::-;68001:70;;67546:541;;68136:31;68159:7;68136:22;:31::i;:::-;68112:55;;68195:31;68218:7;68195:22;:31::i;:::-;-1:-1:-1;;;;;68255:23:0;;;;;;:14;:23;;;;;;68178:48;;-1:-1:-1;68255:23:0;-1:-1:-1;68255:23:0;68307:126;;68432:1;68307:126;;;68382:9;;68364:28;;:13;;:17;:28::i;:::-;68291:142;;68495:15;68479:13;:31;:178;;68656:1;68479:178;;;68566:34;:13;68584:15;68566:17;:34::i;:::-;68446:211;;66995:1670;;;;;;;;;:::o;69881:1150::-;69993:15;:27;69927:7;;;;;;70033:25;70030:81;;-1:-1:-1;;70083:18:0;;70077:1;;-1:-1:-1;70077:1:0;;-1:-1:-1;70069:33:0;;70030:81;70150:18;;70120:27;;70225:9;70207:27;;70244:18;70274:14;70302:615;70318:3;70308:7;:13;:50;;;;;70338:20;70325:10;:33;70308:50;70302:615;;;70369:21;;;;:::i;:::-;70427:15;:27;70369:21;;-1:-1:-1;70404:50:0;;;-1:-1:-1;70401:98:0;;70488:1;70466:23;;70401:98;70509:15;70527;:20;;70548:19;70527:41;;;;;;-1:-1:-1;;;70527:41:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;70527:41:0;70595:23;;;:14;:23;;;;;;;;70527:41;;-1:-1:-1;70582:37:0;;:12;:37::i;:::-;70579:134;;;70634:38;70657:7;70667:4;70634:14;:38::i;:::-;70631:73;;;70685:8;;;;:::i;:::-;;;;70631:73;70723:12;;;;:::i;:::-;;;;70746:18;70767:9;70746:30;;70800:10;70790:7;:20;70787:91;;;70832:36;70844:23;:7;70856:10;70844:11;:23::i;:::-;70832:7;;:11;:36::i;:::-;70822:46;;70787:91;70898:10;-1:-1:-1;70302:615:0;;-1:-1:-1;70302:615:0;;70926:18;:40;;;70984:10;;-1:-1:-1;70996:6:0;-1:-1:-1;70947:19:0;;-1:-1:-1;;;;69881:1150:0;;;;;;:::o;42499:220::-;42557:7;42581:6;42577:20;;-1:-1:-1;42596:1:0;42589:8;;42577:20;42608:9;42620:5;42624:1;42620;:5;:::i;:::-;42608:17;-1:-1:-1;42653:1:0;42644:5;42648:1;42608:17;42644:5;:::i;:::-;:10;42636:56;;;;-1:-1:-1;;;42636:56:0;;7963:2:1;42636:56:0;;;7945:21:1;8002:2;7982:18;;;7975:30;8041:34;8021:18;;;8014:62;-1:-1:-1;;;8092:18:1;;;8085:31;8133:19;;42636:56:0;7935:223:1;42636:56:0;42710:1;42499:220;-1:-1:-1;;;42499:220:0:o;41620:179::-;41678:7;;41710:5;41714:1;41710;:5;:::i;:::-;41698:17;;41739:1;41734;:6;;41726:46;;;;-1:-1:-1;;;41726:46:0;;6354:2:1;41726:46:0;;;6336:21:1;6393:2;6373:18;;;6366:30;6432:29;6412:18;;;6405:57;6479:18;;41726:46:0;6326:177:1;15526:346:0;-1:-1:-1;;;;;15628:19:0;;15620:68;;;;-1:-1:-1;;;15620:68:0;;9687:2:1;15620:68:0;;;9669:21:1;9726:2;9706:18;;;9699:30;9765:34;9745:18;;;9738:62;-1:-1:-1;;;9816:18:1;;;9809:34;9860:19;;15620:68:0;9659:226:1;15620:68:0;-1:-1:-1;;;;;15707:21:0;;15699:68;;;;-1:-1:-1;;;15699:68:0;;5951:2:1;15699: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;;15699:68:0;5923:224:1;15699:68:0;-1:-1:-1;;;;;15780:18:0;;;;;;;-1:-1:-1;15780:18:0;;;;;;;;:27;;;;;;;;;;;;;:36;;;15832:32;;11346:25:1;;;15832:32:0;;;;;;;;;;;;15526:346;;;:::o;65315:153::-;65395:65;;-1:-1:-1;;;65395:65:0;;7547:2:1;65395:65:0;;;7529:21:1;7586:2;7566:18;;;7559:30;7625:34;7605:18;;;7598:62;-1:-1:-1;;;7676:18:1;;;7669:45;7731:19;;65395:65:0;7519:237:1;44447:166:0;44533:7;44569:12;44561:6;;;;44553:29;;;;-1:-1:-1;;;44553:29:0;;;;;;;;:::i;:::-;-1:-1:-1;44600:5:0;44604:1;44600;:5;:::i;:::-;44593:12;44447:166;-1:-1:-1;;;;44447:166:0:o;47812:134::-;47868:6;47901:1;47918:6;;;;47910:15;;;;;47395:162;47451:6;;47477:5;47481:1;47477;:5;:::i;:::-;47466:16;;47503:1;47498;:6;;:16;;;;;47513:1;47508;:6;;47498:16;47497:38;;;;47524:1;47520;:5;:14;;;;;47533:1;47529;:5;47520:14;47489:47;;;;;47563:117;47619:7;47648:1;47643;:6;;47635:15;;;;;;-1:-1:-1;47672:1:0;47563:117::o;28696:407::-;-1:-1:-1;;;;;9502:18:0;;28770:22;9502:18;;;;;;;;;;;28825:27;;;28822:276;;;28863:18;28884:30;:10;28899:14;28884;:30::i;:::-;28863:51;;28923:26;28929:7;28938:10;28923:5;:26::i;:::-;28822:276;69836:29:::1;69413:460:::0;;:::o;28822:276::-;28979:14;28966:10;:27;28963:135;;;29004:18;29025:30;:14;29044:10;29025:18;:30::i;:::-;29004:51;;29064:26;29070:7;29079:10;29064:5;:26::i;42082:158::-;42140:7;42173:1;42168;:6;;42160:49;;;;-1:-1:-1;;;42160:49:0;;7188:2:1;42160:49:0;;;7170:21:1;7227:2;7207:18;;;7200:30;7266:32;7246:18;;;7239:60;7316:18;;42160:49:0;7160:180:1;42160:49:0;42227:5;42231:1;42227;:5;:::i;24565:627::-;24638:7;24654:29;24686:28;24709:4;24686:22;:28::i;:::-;24654:60;-1:-1:-1;24725:25:0;;24721:449;;-1:-1:-1;;;;;24788:24:0;;;;;;:18;:24;;;;;;:51;;24817:21;24788:28;:51::i;:::-;-1:-1:-1;;;;;24761:24:0;;;;;;:18;:24;;;;;;;;;:78;;;;24853:46;11346:25:1;;;24761:24:0;;24853:46;;11319:18:1;24853:46:0;;;;;;;24930:13;;24923:59;;-1:-1:-1;;;24923:59:0;;-1:-1:-1;;;;;3749:32:1;;;24923:59:0;;;3731:51:1;3798:18;;;3791:34;;;24908:12:0;;24930:13;;24923:30;;3704:18:1;;24923:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;24908:74;;24997:7;24993:131;;-1:-1:-1;;;;;25044:24:0;;;;;;:18;:24;;;;;;:51;;25073:21;25044:28;:51::i;:::-;-1:-1:-1;;;;;25017:24:0;;;;;;;;:18;:24;;;;;:78;;;;-1:-1:-1;25017:24:0;;;-1:-1:-1;;24565:627:0:o;24993:131::-;-1:-1:-1;25141:21:0;24565:627;-1:-1:-1;;24565:627:0:o;24721:449::-;-1:-1:-1;25185:1:0;;24565:627;-1:-1:-1;;24565:627:0:o;47236:153::-;47292:6;47321:1;47316;:6;;:20;;;;-1:-1:-1;47335:1:0;47326:5;47330:1;47335;47326:5;:::i;:::-;:10;;47316:20;47315:46;;;;47346:1;47342;:5;:18;;;;-1:-1:-1;47359:1:0;47351:5;47355:1;47359;47351:5;:::i;:::-;:9;47342:18;47307:55;;;;;;47378:5;47382:1;47378;:5;:::i;69186:219::-;69253:4;69286:15;69270:13;:31;69267:67;;;-1:-1:-1;69320:5:0;;69186:219;-1:-1:-1;69186:219:0:o;69267:67::-;69388:9;;69350:34;:15;69370:13;69350:19;:34::i;:::-;:47;;;69186:219;-1:-1:-1;;69186:219:0:o;27895:260::-;27967:27;27979:7;27988:5;27967:11;:27::i;:::-;28043:106;28094:53;28095:36;28125:5;28095:25;;:29;;:36;;;;:::i;28094:53::-;-1:-1:-1;;;;;28043:37:0;;;;;;:28;:37;;;;;;;:49;:106::i;:::-;-1:-1:-1;;;;;28003:37:0;;;;;;;;:28;:37;;;;;:146;;;;-1:-1:-1;27895:260:0:o;28430:::-;28502:27;28514:7;28523:5;28502:11;:27::i;:::-;28578:106;28629:53;28630:36;28660:5;28630:25;;:29;;:36;;;;:::i;28629:53::-;-1:-1:-1;;;;;28578:37:0;;;;;;:28;:37;;;;;;;:49;:106::i;13959:378::-;-1:-1:-1;;;;;14043:21:0;;14035:65;;;;-1:-1:-1;;;14035:65:0;;11012:2:1;14035:65:0;;;10994:21:1;11051:2;11031:18;;;11024:30;11090:33;11070:18;;;11063:61;11141:18;;14035:65:0;10984:181:1;14035:65:0;14190:12;;:24;;14207:6;14190:16;:24::i;:::-;14175:12;:39;-1:-1:-1;;;;;14246:18:0;;:9;:18;;;;;;;;;;;:30;;14269:6;14246:22;:30::i;:::-;-1:-1:-1;;;;;14225:18:0;;:9;:18;;;;;;;;;;;:51;;;;14292:37;;11346:25:1;;;14225:18:0;;:9;;14292:37;;11319:18:1;14292:37:0;;;;;;;;13959:378;;:::o;14670:418::-;-1:-1:-1;;;;;14754:21:0;;14746:67;;;;-1:-1:-1;;;14746:67:0;;8726:2:1;14746:67:0;;;8708:21:1;8765:2;8745:18;;;8738:30;8804:34;8784:18;;;8777:62;-1:-1:-1;;;8855:18:1;;;8848:31;8896:19;;14746:67:0;8698:223:1;14746:67:0;14909:68;14932:6;14909:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;14909:18:0;;:9;:18;;;;;;;;;;;;;:22;:68::i;:::-;-1:-1:-1;;;;;14888:18:0;;:9;:18;;;;;;;;;;:89;15003:12;;:24;;15020:6;15003:16;:24::i;:::-;14988:12;:39;15043:37;;11346:25:1;;;15069:1:0;;-1:-1:-1;;;;;15043:37:0;;;;;11334:2:1;11319:18;15043:37:0;11301: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;8163:356::-;8365:2;8347:21;;;8384:18;;;8377:30;8443:34;8438:2;8423:18;;8416:62;8510:2;8495:18;;8337:182::o;13374:267::-;13413:3;13441:11;;;-1:-1:-1;;;;;13487:27:1;;;13480:35;;13468:10;;13464:52;13461:2;;;13519:18;;:::i;:::-;-1:-1:-1;;;13566:19:1;;;13559:27;;13551:36;;13548:2;;;13590:18;;:::i;:::-;-1:-1:-1;;13626:9:1;;13421:220::o;13646:128::-;13686:3;13717:1;13713:6;13710:1;13707:13;13704:2;;;13723:18;;:::i;:::-;-1:-1:-1;13759:9:1;;13694:80::o;13779:217::-;13819:1;13845;13835:2;;-1:-1:-1;;;13870:31:1;;13924:4;13921:1;13914:15;13952:4;13870:31;13942:15;13835:2;-1:-1:-1;13981:9:1;;13825:171::o;14001:168::-;14041:7;14107:1;14103;14099:6;14095:14;14092:1;14089:21;14084:1;14077:9;14070:17;14066:45;14063:2;;;14114:18;;:::i;:::-;-1:-1:-1;14154:9:1;;14053:116::o;14174:270::-;14213:4;14242:12;;;-1:-1:-1;;;14289:19:1;;14282:27;;14270:10;;14266:44;14263:2;;;14313:18;;:::i;:::-;-1:-1:-1;;;;;14360:27:1;;14353:35;;14345:44;;14342:2;;;14392:18;;:::i;:::-;-1:-1:-1;;14429:9:1;;14222:222::o;14449:125::-;14489:4;14517:1;14514;14511:8;14508:2;;;14522:18;;:::i;:::-;-1:-1:-1;14559:9:1;;14498:76::o;14579:380::-;14658:1;14654:12;;;;14701;;;14722:2;;14776:4;14768:6;14764:17;14754:27;;14722:2;14829;14821:6;14818:14;14798:18;14795:38;14792:2;;;14875:10;14870:3;14866:20;14863:1;14856:31;14910:4;14907:1;14900:15;14938:4;14935:1;14928:15;14792:2;;14634:325;;;:::o;14964:135::-;15003:3;-1:-1:-1;;15024:17:1;;15021:2;;;15044:18;;:::i;:::-;-1:-1:-1;15091:1:1;15080:13;;15011:88::o;15104:127::-;15165:10;15160:3;15156:20;15153:1;15146:31;15196:4;15193:1;15186:15;15220:4;15217:1;15210:15;15236:131;-1:-1:-1;;;;;15311:31:1;;15301:42;;15291:2;;15357:1;15354;15347:12;15372:118;15458:5;15451:13;15444:21;15437:5;15434:32;15424:2;;15480:1;15477;15470:12
Swarm Source
ipfs://e82f1b6c8dc7ebbbcf682417b21cb8c9f0e960a570c1204f92ba224682cf5283
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.