Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
363,025,305.041938268498873622 GODL_Dividend_Tracker
Holders
449
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
834,610.66 GODL_Dividend_TrackerValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
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:
GODLDividendTracker
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./DividendPayingToken.sol"; import "./SafeMath.sol"; import "./IterableMapping.sol"; import "./Ownable.sol"; contract GODLDividendTracker 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 constant MIN_TOKEN_BALANCE_FOR_DIVIDENDS = 10000 * (10**18); // Must hold 10000+ tokens. event ExcludedFromDividends(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("GODL_Dividend_Tracker", "GODL_Dividend_Tracker") { claimWait = 3600; } function _transfer(address, address, uint256) internal pure override { require(false, "GODL_Dividend_Tracker: No transfers allowed"); } function withdrawDividend() public pure override { require(false, "GODL_Dividend_Tracker: withdrawDividend disabled. Use the 'claim' function on the main GODL contract."); } function excludeFromDividends(address account) external onlyOwner { require(!excludedFromDividends[account]); excludedFromDividends[account] = true; _setBalance(account, 0); tokenHoldersMap.remove(account); emit ExcludedFromDividends(account); } function updateGasForTransfer(uint256 newGasForTransfer) external onlyOwner { require(newGasForTransfer != gasForTransfer, "GODL_Dividend_Tracker: Cannot update gasForTransfer to same value"); emit GasForTransferUpdated(newGasForTransfer, gasForTransfer); gasForTransfer = newGasForTransfer; } function updateClaimWait(uint256 newClaimWait) external onlyOwner { require(newClaimWait >= 3600 && newClaimWait <= 86400, "GODL_Dividend_Tracker: claimWait must be updated to between 1 and 24 hours"); require(newClaimWait != claimWait, "GODL_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 >= MIN_TOKEN_BALANCE_FOR_DIVIDENDS) { _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; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./ERC20.sol"; import "./SafeMath.sol"; import "./SafeMathUint.sol"; import "./SafeMathInt.sol"; import "./DividendPayingTokenInterface.sol"; import "./DividendPayingTokenOptionalInterface.sol"; /// @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, DividendPayingTokenInterface, DividendPayingTokenOptionalInterface { 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; // 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; // Need to make gas fee customizable to future-proof against Ethereum network upgrades. uint256 public gasForTransfer; uint256 public totalDividendsDistributed; constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol) { gasForTransfer = 3000; } /// @dev Distributes dividends whenever ether is paid to this contract. receive() external payable { distributeDividends(); } /// @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); } } /// @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)); } /// @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,) = user.call{value: _withdrawableDividend, gas: gasForTransfer}(""); 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); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /// @title Dividend-Paying Token Interface /// @author Roger Wu (https://github.com/roger-wu) /// @dev An interface for a dividend-paying token contract. interface DividendPayingTokenInterface { /// @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 ); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /// @title Dividend-Paying Token Optional Interface /// @author Roger Wu (https://github.com/roger-wu) /// @dev OPTIONAL functions for a dividend-paying token contract. interface DividendPayingTokenOptionalInterface { /// @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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./IERC20.sol"; import "./IERC20Metadata.sol"; import "./Context.sol"; import "./SafeMath.sol"; /** * @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, IERC20Metadata { 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; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override 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 this function is * overridden; * * 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 override returns (uint8) { return 18; } /** * @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: * * - `account` 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 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 {} }
pragma solidity ^0.8.4; // SPDX-License-Identifier: MIT License interface FTPAntiBot { function scanAddress(address _recipient, address _sender, address _origin) external returns (bool); function registerBlock(address _recipient, address _sender, address _origin) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./GODLDividendTracker.sol"; import "./FTPAntiBot.sol"; import "./SafeMath.sol"; import "./Ownable.sol"; import "./IUniswapV2Pair.sol"; import "./IUniswapV2Factory.sol"; import "./IUniswapV2Router.sol"; contract GODL is ERC20, Ownable { using SafeMath for uint256; FTPAntiBot private antiBot; bool public useAntiBot = true; IUniswapV2Router02 public uniswapV2Router; address public immutable uniswapV2Pair; bool private liquidating; GODLDividendTracker public dividendTracker; address public liquidityWallet; uint256 public constant MAX_SELL_TRANSACTION_AMOUNT = 1000000 * (10**18); uint256 public constant ETH_REWARDS_FEE = 5; uint256 public constant LIQUIDITY_FEE = 3; uint256 public constant TOTAL_FEES = ETH_REWARDS_FEE + LIQUIDITY_FEE; // 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, "GODL: Trading is already enabled"); 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 UpdatedAntiBot(address indexed newAddress, address indexed oldAddress); event ToggledAntiBot(bool newValue, bool oldValue); 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 SentDividends( uint256 tokensSwapped, uint256 amount ); event ProcessedDividendTracker( uint256 iterations, uint256 claims, uint256 lastProcessedIndex, bool indexed automatic, uint256 gas, address indexed processor ); constructor() ERC20("GODL", "GODL") { assert(TOTAL_FEES == 8); dividendTracker = new GODLDividendTracker(); liquidityWallet = owner(); IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); // Create a uniswap pair for this new token address _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH()); FTPAntiBot _antiBot = FTPAntiBot(0xCD5312d086f078D1554e8813C27Cf6C9D1C3D9b3); antiBot = _antiBot; 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)); // 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 updateDividendTracker(address newAddress) public onlyOwner { require(newAddress != address(dividendTracker), "GODL: The dividend tracker already has that address"); GODLDividendTracker newDividendTracker = GODLDividendTracker(payable(newAddress)); require(newDividendTracker.owner() == address(this), "GODL: The new dividend tracker must be owned by the GODL token contract"); newDividendTracker.excludeFromDividends(address(newDividendTracker)); newDividendTracker.excludeFromDividends(address(this)); newDividendTracker.excludeFromDividends(owner()); newDividendTracker.excludeFromDividends(address(uniswapV2Router)); emit UpdatedDividendTracker(newAddress, address(dividendTracker)); dividendTracker = newDividendTracker; } function updateUniswapV2Router(address newAddress) public onlyOwner { require(newAddress != address(uniswapV2Router), "GODL: The router already has that address"); emit UpdatedUniswapV2Router(newAddress, address(uniswapV2Router)); uniswapV2Router = IUniswapV2Router02(newAddress); } function excludeFromFees(address account) public onlyOwner { require(!_isExcludedFromFees[account], "GODL: Account is already excluded from fees"); _isExcludedFromFees[account] = true; } function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner { require(pair != uniswapV2Pair, "GODL: The Uniswap pair cannot be removed from automatedMarketMakerPairs"); _setAutomatedMarketMakerPair(pair, value); } function _setAutomatedMarketMakerPair(address pair, bool value) private { require(automatedMarketMakerPairs[pair] != value, "GODL: Automated market maker pair is already set to that value"); automatedMarketMakerPairs[pair] = value; if (value) { dividendTracker.excludeFromDividends(pair); } emit SetAutomatedMarketMakerPair(pair, value); } function allowTransferBeforeTradingIsEnabled(address account) public onlyOwner { require(!canTransferBeforeTradingIsEnabled[account], "GODL: Account is already allowed to transfer before trading is enabled"); canTransferBeforeTradingIsEnabled[account] = true; } function updateLiquidityWallet(address newLiquidityWallet) public onlyOwner { require(newLiquidityWallet != liquidityWallet, "GODL: The liquidity wallet is already this address"); excludeFromFees(newLiquidityWallet); emit LiquidityWalletUpdated(newLiquidityWallet, liquidityWallet); liquidityWallet = newLiquidityWallet; } function updateGasForProcessing(uint256 newValue) public onlyOwner { // Need to make gas fee customizable to future-proof against Ethereum network upgrades. require(newValue != gasForProcessing, "GODL: Cannot update gasForProcessing to same value"); emit GasForProcessingUpdated(newValue, gasForProcessing); gasForProcessing = newValue; } function updateLiquidationThreshold(uint256 newValue) external onlyOwner { require(newValue <= 200000 * (10 ** 18), "GODL: liquidateTokensAtAmount must be less than 200,000"); require(newValue != liquidateTokensAtAmount, "GODL: Cannot update gasForProcessing to same value"); emit LiquidationThresholdUpdated(newValue, liquidateTokensAtAmount); liquidateTokensAtAmount = newValue; } function updateGasForTransfer(uint256 gasForTransfer) external onlyOwner { dividendTracker.updateGasForTransfer(gasForTransfer); } function updateClaimWait(uint256 claimWait) external onlyOwner { dividendTracker.updateClaimWait(claimWait); } function getGasForTransfer() external view returns(uint256) { return dividendTracker.gasForTransfer(); } function getClaimWait() external view returns(uint256) { return dividendTracker.claimWait(); } function getTotalDividendsDistributed() external view returns (uint256) { return dividendTracker.totalDividendsDistributed(); } function isExcludedFromFees(address account) public view returns(bool) { return _isExcludedFromFees[account]; } function withdrawableDividendOf(address account) public view returns(uint256) { return dividendTracker.withdrawableDividendOf(account); } function dividendTokenBalanceOf(address account) public view returns (uint256) { return dividendTracker.balanceOf(account); } function getAccountDividendsInfo(address account) external view returns ( address, int256, int256, uint256, uint256, uint256, uint256, uint256) { return dividendTracker.getAccount(account); } function getAccountDividendsInfoAtIndex(uint256 index) external view returns ( address, int256, int256, uint256, uint256, uint256, uint256, uint256) { return dividendTracker.getAccountAtIndex(index); } function processDividendTracker(uint256 gas) external { (uint256 iterations, uint256 claims, uint256 lastProcessedIndex) = dividendTracker.process(gas); emit ProcessedDividendTracker(iterations, claims, lastProcessedIndex, false, gas, tx.origin); } function claim() external { dividendTracker.processAccount(payable(msg.sender), false); } function getLastProcessedIndex() external view returns(uint256) { return dividendTracker.getLastProcessedIndex(); } function getNumberOfDividendTokenHolders() external view returns(uint256) { return dividendTracker.getNumberOfTokenHolders(); } function updateAntiBot(address newAddress) external onlyOwner { FTPAntiBot _antiBot = FTPAntiBot(newAddress); emit UpdatedAntiBot(newAddress, address(antiBot)); antiBot = _antiBot; } function toggleAntiBot() external onlyOwner { bool newValue = !useAntiBot; emit ToggledAntiBot(newValue, useAntiBot); useAntiBot = newValue; } 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"); bool tradingIsEnabled = tradingEnabled; // only whitelisted addresses can make transfers before the public presale is over. if (!tradingIsEnabled) { require(canTransferBeforeTradingIsEnabled[from], "GODL: This account cannot send tokens until trading is enabled"); } if (useAntiBot) { 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, uniswapV2Pair, 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 && !liquidating && !automatedMarketMakerPairs[from] && from != liquidityWallet && to != liquidityWallet ) { liquidating = true; uint256 swapTokens = contractTokenBalance.mul(LIQUIDITY_FEE).div(TOTAL_FEES); swapAndLiquify(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 (useAntiBot) { // Tells AntiBot to start watching. antiBot.registerBlock(from, to, tx.origin); } 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 swapAndLiquify(uint256 tokens) private { // split the contract balance into halves uint256 half = tokens.div(2); uint256 otherHalf = tokens.sub(half); // capture the contract's current ETH balance. // this is so that we can capture exactly the amount of ETH that the // swap creates, and not make the liquidity event include any ETH that // has been manually sent to the contract uint256 initialBalance = address(this).balance; // swap tokens for ETH swapTokensForEth(half); // <- this breaks the ETH -> HATE swap when swap+liquify is triggered // how much ETH did we just swap into? uint256 newBalance = address(this).balance.sub(initialBalance); // add liquidity to uniswap addLiquidity(otherHalf, newBalance); emit Liquified(half, newBalance, otherHalf); } 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 ); } function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private { // approve token transfer to cover all possible scenarios _approve(address(this), address(uniswapV2Router), tokenAmount); // add the liquidity uniswapV2Router.addLiquidityETH{value: ethAmount}( address(this), tokenAmount, 0, // slippage is unavoidable 0, // slippage is unavoidable liquidityWallet, block.timestamp ); } function swapAndSendDividends(uint256 tokens) private { swapTokensForEth(tokens); uint256 dividends = address(this).balance; (bool success,) = address(dividendTracker).call{value: dividends}(""); if (success) { emit SentDividends(tokens, dividends); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ 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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; 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(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; 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; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); } // pragma solidity >=0.6.2; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
pragma solidity ^0.8.4; // SPDX-License-Identifier: MIT License import "./Context.sol"; 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 returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; library SafeMath { /** * @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) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * 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); uint256 c = a - b; return c; } /** * @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) { // 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 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts 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) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT /* MIT License Copyright (c) 2018 requestnetwork Copyright (c) 2018 Fragments, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ pragma solidity ^0.8.4; /** * @title SafeMathInt * @dev Math operations for int256 with overflow safety checks. */ library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256 c = a * b; // Detect overflow when multiplying MIN_INT256 with -1 require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256)); require((b == 0) || (c / b == a)); return c; } /** * @dev Division of two int256 variables and fails on overflow. */ function div(int256 a, int256 b) internal pure returns (int256) { // Prevent overflow when dividing MIN_INT256 by -1 require(b != -1 || a != MIN_INT256); // Solidity already throws when dividing by 0. return a / b; } /** * @dev Subtracts two int256 variables and fails on overflow. */ function sub(int256 a, int256 b) internal pure returns (int256) { int256 c = a - b; require((b >= 0 && c <= a) || (b < 0 && c > a)); return c; } /** * @dev Adds two int256 variables and fails on overflow. */ 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; } /** * @dev Converts to absolute value, and fails on overflow. */ function abs(int256 a) internal pure returns (int256) { require(a != MIN_INT256); return a < 0 ? -a : a; } function toUint256Safe(int256 a) internal pure returns (uint256) { require(a >= 0); return uint256(a); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /** * @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; } }
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":"ExcludedFromDividends","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":[],"name":"MIN_TOKEN_BALANCE_FOR_DIVIDENDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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":"address","name":"_owner","type":"address"}],"name":"dividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"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":[],"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
60806040523480156200001157600080fd5b5060408051808201825260158082527f474f444c5f4469766964656e645f547261636b65720000000000000000000000602080840182815285518087019096529285528401528151919291839183916200006e91600391620000e0565b50805162000084906004906020840190620000e0565b5050610bb86008555050600a80546001600160a01b0319163390811790915560405190915081906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350610e10601255620001c3565b828054620000ee9062000186565b90600052602060002090601f0160209004810192826200011257600085556200015d565b82601f106200012d57805160ff19168380011785556200015d565b828001600101855582156200015d579182015b828111156200015d57825182559160200191906001019062000140565b506200016b9291506200016f565b5090565b5b808211156200016b576000815560010162000170565b600181811c908216806200019b57607f821691505b60208210811415620001bd57634e487b7160e01b600052602260045260246000fd5b50919050565b61218380620001d36000396000f3fe60806040526004361061021e5760003560e01c806385a6b3ae11610123578063bc4c4b37116100ab578063e98030c71161006f578063e98030c714610695578063f2fde38b146106b5578063f39b5020146106d5578063fbcbc0f1146106eb578063ffb2c4791461070b57600080fd5b8063bc4c4b37146105dc578063c38f9cad146105fc578063dd62ed3e1461061a578063e30443bc14610660578063e7841ec01461068057600080fd5b80639d55d16f116100f25780639d55d16f14610526578063a457c2d714610546578063a8b9d24014610566578063a9059cbb14610586578063aafd847a146105a657600080fd5b806385a6b3ae146104b35780638da5cb5b146104c957806391b89fba146104f157806395d89b411461051157600080fd5b8063313ce567116101a65780635183d6fd116101755780635183d6fd146103d85780636a4740021461043d5780636f2789ec1461045257806370a0823114610468578063715018a61461049e57600080fd5b8063313ce5671461034c57806331e79db01461036857806339509351146103885780634e7b827f146103a857600080fd5b806318160ddd116101ed57806318160ddd146102b4578063226cfa3d146102c957806323b872dd146102f657806327ce0147146103165780633009a6091461033657600080fd5b806303c833021461023257806306fdde031461023a578063095ea7b31461026557806309bbedde1461029557600080fd5b3661022d5761022b610746565b005b600080fd5b61022b610746565b34801561024657600080fd5b5061024f6107d9565b60405161025c9190611ee4565b60405180910390f35b34801561027157600080fd5b50610285610280366004611e1c565b61086b565b604051901515815260200161025c565b3480156102a157600080fd5b50600b545b60405190815260200161025c565b3480156102c057600080fd5b506002546102a6565b3480156102d557600080fd5b506102a66102e4366004611da8565b60116020526000908152604090205481565b34801561030257600080fd5b50610285610311366004611e74565b610882565b34801561032257600080fd5b506102a6610331366004611da8565b6108eb565b34801561034257600080fd5b506102a6600f5481565b34801561035857600080fd5b506040516012815260200161025c565b34801561037457600080fd5b5061022b610383366004611da8565b610947565b34801561039457600080fd5b506102856103a3366004611e1c565b610a77565b3480156103b457600080fd5b506102856103c3366004611da8565b60106020526000908152604090205460ff1681565b3480156103e457600080fd5b506103f86103f3366004611ecc565b610aad565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e08201526101000161025c565b34801561044957600080fd5b5061022b610c1f565b34801561045e57600080fd5b506102a660125481565b34801561047457600080fd5b506102a6610483366004611da8565b6001600160a01b031660009081526020819052604090205490565b3480156104aa57600080fd5b5061022b610cc1565b3480156104bf57600080fd5b506102a660095481565b3480156104d557600080fd5b50600a546040516001600160a01b03909116815260200161025c565b3480156104fd57600080fd5b506102a661050c366004611da8565b610d35565b34801561051d57600080fd5b5061024f610d40565b34801561053257600080fd5b5061022b610541366004611ecc565b610d4f565b34801561055257600080fd5b50610285610561366004611e1c565b610e2e565b34801561057257600080fd5b506102a6610581366004611da8565b610e7d565b34801561059257600080fd5b506102856105a1366004611e1c565b610ea9565b3480156105b257600080fd5b506102a66105c1366004611da8565b6001600160a01b031660009081526007602052604090205490565b3480156105e857600080fd5b506102856105f7366004611de0565b610eb6565b34801561060857600080fd5b506102a669021e19e0c9bab240000081565b34801561062657600080fd5b506102a6610635366004611e47565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561066c57600080fd5b5061022b61067b366004611e1c565b610f64565b34801561068c57600080fd5b50600f546102a6565b3480156106a157600080fd5b5061022b6106b0366004611ecc565b6110da565b3480156106c157600080fd5b5061022b6106d0366004611da8565b611249565b3480156106e157600080fd5b506102a660085481565b3480156106f757600080fd5b506103f8610706366004611da8565b611334565b34801561071757600080fd5b5061072b610726366004611ecc565b6114ac565b6040805193845260208401929092529082015260600161025c565b600061075160025490565b1161075b57600080fd5b34156107d75761078e61076d60025490565b61077b34600160801b6115d5565b6107859190611fc5565b6005549061165b565b60055560405134815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a26009546107d3903461165b565b6009555b565b6060600380546107e89061205a565b80601f01602080910402602001604051908101604052809291908181526020018280546108149061205a565b80156108615780601f1061083657610100808354040283529160200191610861565b820191906000526020600020905b81548152906001019060200180831161084457829003601f168201915b5050505050905090565b60006108783384846116ba565b5060015b92915050565b600061088f8484846117de565b6108e184336108dc85604051806060016040528060288152602001612101602891396001600160a01b038a166000908152600160209081526040808320338452909152902054919061183a565b6116ba565b5060019392505050565b6001600160a01b03811660009081526006602090815260408083205491839052822054600554600160801b9261093d92610938926109329161092d91906115d5565b611874565b90611884565b6118c2565b61087c9190611fc5565b600a546001600160a01b0316331461097a5760405162461bcd60e51b815260040161097190611f37565b60405180910390fd5b6001600160a01b03811660009081526010602052604090205460ff16156109a057600080fd5b6001600160a01b0381166000908152601060205260408120805460ff191660011790556109ce9082906118d5565b60405163131836e760e21b8152600b60048201526001600160a01b038216602482015273af1da175cf30d036b53d1e94c3173a78a5a59e7f90634c60db9c9060440160006040518083038186803b158015610a2857600080fd5b505af4158015610a3c573d6000803e3d6000fd5b50506040516001600160a01b03841692507fbc358c1a6bbec2cf1d21c2fb5a564b55d7828e32fb5da64adf3c5479264650109150600090a250565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916108789185906108dc908661165b565b600080600080600080600080600b73af1da175cf30d036b53d1e94c3173a78a5a59e7f63deb3d89690916040518263ffffffff1660e01b8152600401610af591815260200190565b60206040518083038186803b158015610b0d57600080fd5b505af4158015610b21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b459190611eb4565b8910610b6a575060009650600019955085945086935083925082915081905080610c14565b6040516368d54f3f60e11b8152600b6004820152602481018a905260009073af1da175cf30d036b53d1e94c3173a78a5a59e7f9063d1aa9e7e9060440160206040518083038186803b158015610bbf57600080fd5b505af4158015610bd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf79190611dc4565b9050610c0281611334565b98509850985098509850985098509850505b919395975091939597565b60405162461bcd60e51b815260206004820152606560248201527f474f444c5f4469766964656e645f547261636b65723a2077697468647261774460448201527f69766964656e642064697361626c65642e20557365207468652027636c61696d60648201527f272066756e6374696f6e206f6e20746865206d61696e20474f444c20636f6e746084820152643930b1ba1760d91b60a482015260c401610971565b600a546001600160a01b03163314610ceb5760405162461bcd60e51b815260040161097190611f37565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b600061087c82610e7d565b6060600480546107e89061205a565b600a546001600160a01b03163314610d795760405162461bcd60e51b815260040161097190611f37565b600854811415610dfb5760405162461bcd60e51b815260206004820152604160248201527f474f444c5f4469766964656e645f547261636b65723a2043616e6e6f7420757060448201527f6461746520676173466f725472616e7366657220746f2073616d652076616c756064820152606560f81b608482015260a401610971565b60085460405182907f5e2963a3d7c88b344b101641f89a2f7da9734fc777ed11ad0097b2775a9e9d1790600090a3600855565b600061087833846108dc85604051806060016040528060258152602001612129602591393360009081526001602090815260408083206001600160a01b038d168452909152902054919061183a565b6001600160a01b03811660009081526007602052604081205461087c90610ea3846108eb565b90611934565b60006108783384846117de565b600a546000906001600160a01b03163314610ee35760405162461bcd60e51b815260040161097190611f37565b6000610eee84611976565b90508015610f5a576001600160a01b038416600081815260116020526040908190204290555184151591907fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf09290610f489085815260200190565b60405180910390a3600191505061087c565b5060009392505050565b600a546001600160a01b03163314610f8e5760405162461bcd60e51b815260040161097190611f37565b6001600160a01b03821660009081526010602052604090205460ff1615610fb3575050565b69021e19e0c9bab2400000811061104c57610fce82826118d5565b604051632f0ad01760e21b8152600b60048201526001600160a01b03831660248201526044810182905273af1da175cf30d036b53d1e94c3173a78a5a59e7f9063bc2b405c9060640160006040518083038186803b15801561102f57600080fd5b505af4158015611043573d6000803e3d6000fd5b505050506110ca565b6110578260006118d5565b60405163131836e760e21b8152600b60048201526001600160a01b038316602482015273af1da175cf30d036b53d1e94c3173a78a5a59e7f90634c60db9c9060440160006040518083038186803b1580156110b157600080fd5b505af41580156110c5573d6000803e3d6000fd5b505050505b6110d5826001610eb6565b505050565b600a546001600160a01b031633146111045760405162461bcd60e51b815260040161097190611f37565b610e1081101580156111195750620151808111155b61119e5760405162461bcd60e51b815260206004820152604a60248201527f474f444c5f4469766964656e645f547261636b65723a20636c61696d5761697460448201527f206d757374206265207570646174656420746f206265747765656e203120616e6064820152696420323420686f75727360b01b608482015260a401610971565b6012548114156112165760405162461bcd60e51b815260206004820152603c60248201527f474f444c5f4469766964656e645f547261636b65723a2043616e6e6f7420757060448201527f6461746520636c61696d5761697420746f2073616d652076616c7565000000006064820152608401610971565b60125460405182907f474ea64804364a1e29a4487ddb63c3342a2dd826ccd8acf48825e680a0e6f20f90600090a3601255565b600a546001600160a01b031633146112735760405162461bcd60e51b815260040161097190611f37565b6001600160a01b0381166112d85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610971565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6040516317e142d160e01b8152600b60048201526001600160a01b0382166024820152819060009081908190819081908190819073af1da175cf30d036b53d1e94c3173a78a5a59e7f906317e142d19060440160206040518083038186803b15801561139f57600080fd5b505af41580156113b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d79190611eb4565b965060001995506000871261143957600f5487111561140557600f546113fe908890611ab9565b9550611439565b600f54600b546000911061141a576000611429565b600f54600b5461142991611934565b90506114358882611884565b9650505b61144288610e7d565b945061144d886108eb565b6001600160a01b038916600090815260116020526040902054909450925082611477576000611485565b60125461148590849061165b565b915042821161149557600061149f565b61149f8242611934565b9050919395975091939597565b600b5460009081908190806114cc575050600f54600092508291506115ce565b600f546000805a90506000805b89841080156114e757508582105b156115bd57846114f681612095565b600b549096508610905061150957600094505b6000600b600001868154811061152f57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316808352601190915260409091205490915061156090611af6565b1561158357611570816001610eb6565b15611583578161157f81612095565b9250505b8261158d81612095565b93505060005a9050808511156115b4576115b16115aa8683611934565b879061165b565b95505b93506114d99050565b600f85905590975095509193505050505b9193909250565b6000826115e45750600061087c565b60006115f08385611fe5565b9050826115fd8583611fc5565b146116545760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610971565b9392505050565b6000806116688385611fad565b9050838110156116545760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610971565b6001600160a01b03831661171c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610971565b6001600160a01b03821661177d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610971565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60405162461bcd60e51b815260206004820152602b60248201527f474f444c5f4469766964656e645f547261636b65723a204e6f207472616e736660448201526a195c9cc8185b1b1bddd95960aa1b6064820152608401610971565b6000818484111561185e5760405162461bcd60e51b81526004016109719190611ee4565b50600061186b8486612043565b95945050505050565b6000818181121561087c57600080fd5b6000806118918385611f6c565b9050600083121580156118a45750838112155b806118b957506000831280156118b957508381125b61165457600080fd5b6000808212156118d157600080fd5b5090565b6001600160a01b038216600090815260208190526040902054808211156119145760006119028383611934565b905061190e8482611b1d565b50505050565b808210156110d55760006119288284611934565b905061190e8482611b81565b600061165483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061183a565b60008061198283610e7d565b90508015611ab0576001600160a01b0383166000908152600760205260409020546119ad908261165b565b6001600160a01b038416600081815260076020526040908190209290925590517fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d906119fc9084815260200190565b60405180910390a26008546040516000916001600160a01b03861691849084818181858888f193505050503d8060008114611a53576040519150601f19603f3d011682016040523d82523d6000602084013e611a58565b606091505b5050905080611aa9576001600160a01b038416600090815260076020526040902054611a849083611934565b6001600160a01b03909416600090815260076020526040812094909455509192915050565b5092915050565b50600092915050565b600080611ac68385612004565b905060008312158015611ad95750838113155b806118b957506000831280156118b9575083811361165457600080fd5b600042821115611b0857506000919050565b601254611b154284611934565b101592915050565b611b278282611bc5565b611b61611b4261092d836005546115d590919063ffffffff16565b6001600160a01b03841660009081526006602052604090205490611ab9565b6001600160a01b0390921660009081526006602052604090209190915550565b611b8b8282611ca4565b611b61611ba661092d836005546115d590919063ffffffff16565b6001600160a01b03841660009081526006602052604090205490611884565b6001600160a01b038216611c1b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610971565b600254611c28908261165b565b6002556001600160a01b038216600090815260208190526040902054611c4e908261165b565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b6001600160a01b038216611d045760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610971565b611d41816040518060600160405280602281526020016120df602291396001600160a01b038516600090815260208190526040902054919061183a565b6001600160a01b038316600090815260208190526040902055600254611d679082611934565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611c98565b600060208284031215611db9578081fd5b8135611654816120c6565b600060208284031215611dd5578081fd5b8151611654816120c6565b60008060408385031215611df2578081fd5b8235611dfd816120c6565b915060208301358015158114611e11578182fd5b809150509250929050565b60008060408385031215611e2e578182fd5b8235611e39816120c6565b946020939093013593505050565b60008060408385031215611e59578182fd5b8235611e64816120c6565b91506020830135611e11816120c6565b600080600060608486031215611e88578081fd5b8335611e93816120c6565b92506020840135611ea3816120c6565b929592945050506040919091013590565b600060208284031215611ec5578081fd5b5051919050565b600060208284031215611edd578081fd5b5035919050565b6000602080835283518082850152825b81811015611f1057858101830151858201604001528201611ef4565b81811115611f215783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600080821280156001600160ff1b0384900385131615611f8e57611f8e6120b0565b600160ff1b8390038412811615611fa757611fa76120b0565b50500190565b60008219821115611fc057611fc06120b0565b500190565b600082611fe057634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611fff57611fff6120b0565b500290565b60008083128015600160ff1b850184121615612022576120226120b0565b6001600160ff1b038401831381161561203d5761203d6120b0565b50500390565b600082821015612055576120556120b0565b500390565b600181811c9082168061206e57607f821691505b6020821081141561208f57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156120a9576120a96120b0565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146120db57600080fd5b5056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122025ce86633c7c2ece637005e849b3a7d090fd2106327e62d47b4e47a9c8586c4c64736f6c63430008040033
Deployed Bytecode
0x60806040526004361061021e5760003560e01c806385a6b3ae11610123578063bc4c4b37116100ab578063e98030c71161006f578063e98030c714610695578063f2fde38b146106b5578063f39b5020146106d5578063fbcbc0f1146106eb578063ffb2c4791461070b57600080fd5b8063bc4c4b37146105dc578063c38f9cad146105fc578063dd62ed3e1461061a578063e30443bc14610660578063e7841ec01461068057600080fd5b80639d55d16f116100f25780639d55d16f14610526578063a457c2d714610546578063a8b9d24014610566578063a9059cbb14610586578063aafd847a146105a657600080fd5b806385a6b3ae146104b35780638da5cb5b146104c957806391b89fba146104f157806395d89b411461051157600080fd5b8063313ce567116101a65780635183d6fd116101755780635183d6fd146103d85780636a4740021461043d5780636f2789ec1461045257806370a0823114610468578063715018a61461049e57600080fd5b8063313ce5671461034c57806331e79db01461036857806339509351146103885780634e7b827f146103a857600080fd5b806318160ddd116101ed57806318160ddd146102b4578063226cfa3d146102c957806323b872dd146102f657806327ce0147146103165780633009a6091461033657600080fd5b806303c833021461023257806306fdde031461023a578063095ea7b31461026557806309bbedde1461029557600080fd5b3661022d5761022b610746565b005b600080fd5b61022b610746565b34801561024657600080fd5b5061024f6107d9565b60405161025c9190611ee4565b60405180910390f35b34801561027157600080fd5b50610285610280366004611e1c565b61086b565b604051901515815260200161025c565b3480156102a157600080fd5b50600b545b60405190815260200161025c565b3480156102c057600080fd5b506002546102a6565b3480156102d557600080fd5b506102a66102e4366004611da8565b60116020526000908152604090205481565b34801561030257600080fd5b50610285610311366004611e74565b610882565b34801561032257600080fd5b506102a6610331366004611da8565b6108eb565b34801561034257600080fd5b506102a6600f5481565b34801561035857600080fd5b506040516012815260200161025c565b34801561037457600080fd5b5061022b610383366004611da8565b610947565b34801561039457600080fd5b506102856103a3366004611e1c565b610a77565b3480156103b457600080fd5b506102856103c3366004611da8565b60106020526000908152604090205460ff1681565b3480156103e457600080fd5b506103f86103f3366004611ecc565b610aad565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e08201526101000161025c565b34801561044957600080fd5b5061022b610c1f565b34801561045e57600080fd5b506102a660125481565b34801561047457600080fd5b506102a6610483366004611da8565b6001600160a01b031660009081526020819052604090205490565b3480156104aa57600080fd5b5061022b610cc1565b3480156104bf57600080fd5b506102a660095481565b3480156104d557600080fd5b50600a546040516001600160a01b03909116815260200161025c565b3480156104fd57600080fd5b506102a661050c366004611da8565b610d35565b34801561051d57600080fd5b5061024f610d40565b34801561053257600080fd5b5061022b610541366004611ecc565b610d4f565b34801561055257600080fd5b50610285610561366004611e1c565b610e2e565b34801561057257600080fd5b506102a6610581366004611da8565b610e7d565b34801561059257600080fd5b506102856105a1366004611e1c565b610ea9565b3480156105b257600080fd5b506102a66105c1366004611da8565b6001600160a01b031660009081526007602052604090205490565b3480156105e857600080fd5b506102856105f7366004611de0565b610eb6565b34801561060857600080fd5b506102a669021e19e0c9bab240000081565b34801561062657600080fd5b506102a6610635366004611e47565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561066c57600080fd5b5061022b61067b366004611e1c565b610f64565b34801561068c57600080fd5b50600f546102a6565b3480156106a157600080fd5b5061022b6106b0366004611ecc565b6110da565b3480156106c157600080fd5b5061022b6106d0366004611da8565b611249565b3480156106e157600080fd5b506102a660085481565b3480156106f757600080fd5b506103f8610706366004611da8565b611334565b34801561071757600080fd5b5061072b610726366004611ecc565b6114ac565b6040805193845260208401929092529082015260600161025c565b600061075160025490565b1161075b57600080fd5b34156107d75761078e61076d60025490565b61077b34600160801b6115d5565b6107859190611fc5565b6005549061165b565b60055560405134815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a26009546107d3903461165b565b6009555b565b6060600380546107e89061205a565b80601f01602080910402602001604051908101604052809291908181526020018280546108149061205a565b80156108615780601f1061083657610100808354040283529160200191610861565b820191906000526020600020905b81548152906001019060200180831161084457829003601f168201915b5050505050905090565b60006108783384846116ba565b5060015b92915050565b600061088f8484846117de565b6108e184336108dc85604051806060016040528060288152602001612101602891396001600160a01b038a166000908152600160209081526040808320338452909152902054919061183a565b6116ba565b5060019392505050565b6001600160a01b03811660009081526006602090815260408083205491839052822054600554600160801b9261093d92610938926109329161092d91906115d5565b611874565b90611884565b6118c2565b61087c9190611fc5565b600a546001600160a01b0316331461097a5760405162461bcd60e51b815260040161097190611f37565b60405180910390fd5b6001600160a01b03811660009081526010602052604090205460ff16156109a057600080fd5b6001600160a01b0381166000908152601060205260408120805460ff191660011790556109ce9082906118d5565b60405163131836e760e21b8152600b60048201526001600160a01b038216602482015273af1da175cf30d036b53d1e94c3173a78a5a59e7f90634c60db9c9060440160006040518083038186803b158015610a2857600080fd5b505af4158015610a3c573d6000803e3d6000fd5b50506040516001600160a01b03841692507fbc358c1a6bbec2cf1d21c2fb5a564b55d7828e32fb5da64adf3c5479264650109150600090a250565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916108789185906108dc908661165b565b600080600080600080600080600b73af1da175cf30d036b53d1e94c3173a78a5a59e7f63deb3d89690916040518263ffffffff1660e01b8152600401610af591815260200190565b60206040518083038186803b158015610b0d57600080fd5b505af4158015610b21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b459190611eb4565b8910610b6a575060009650600019955085945086935083925082915081905080610c14565b6040516368d54f3f60e11b8152600b6004820152602481018a905260009073af1da175cf30d036b53d1e94c3173a78a5a59e7f9063d1aa9e7e9060440160206040518083038186803b158015610bbf57600080fd5b505af4158015610bd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf79190611dc4565b9050610c0281611334565b98509850985098509850985098509850505b919395975091939597565b60405162461bcd60e51b815260206004820152606560248201527f474f444c5f4469766964656e645f547261636b65723a2077697468647261774460448201527f69766964656e642064697361626c65642e20557365207468652027636c61696d60648201527f272066756e6374696f6e206f6e20746865206d61696e20474f444c20636f6e746084820152643930b1ba1760d91b60a482015260c401610971565b600a546001600160a01b03163314610ceb5760405162461bcd60e51b815260040161097190611f37565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b600061087c82610e7d565b6060600480546107e89061205a565b600a546001600160a01b03163314610d795760405162461bcd60e51b815260040161097190611f37565b600854811415610dfb5760405162461bcd60e51b815260206004820152604160248201527f474f444c5f4469766964656e645f547261636b65723a2043616e6e6f7420757060448201527f6461746520676173466f725472616e7366657220746f2073616d652076616c756064820152606560f81b608482015260a401610971565b60085460405182907f5e2963a3d7c88b344b101641f89a2f7da9734fc777ed11ad0097b2775a9e9d1790600090a3600855565b600061087833846108dc85604051806060016040528060258152602001612129602591393360009081526001602090815260408083206001600160a01b038d168452909152902054919061183a565b6001600160a01b03811660009081526007602052604081205461087c90610ea3846108eb565b90611934565b60006108783384846117de565b600a546000906001600160a01b03163314610ee35760405162461bcd60e51b815260040161097190611f37565b6000610eee84611976565b90508015610f5a576001600160a01b038416600081815260116020526040908190204290555184151591907fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf09290610f489085815260200190565b60405180910390a3600191505061087c565b5060009392505050565b600a546001600160a01b03163314610f8e5760405162461bcd60e51b815260040161097190611f37565b6001600160a01b03821660009081526010602052604090205460ff1615610fb3575050565b69021e19e0c9bab2400000811061104c57610fce82826118d5565b604051632f0ad01760e21b8152600b60048201526001600160a01b03831660248201526044810182905273af1da175cf30d036b53d1e94c3173a78a5a59e7f9063bc2b405c9060640160006040518083038186803b15801561102f57600080fd5b505af4158015611043573d6000803e3d6000fd5b505050506110ca565b6110578260006118d5565b60405163131836e760e21b8152600b60048201526001600160a01b038316602482015273af1da175cf30d036b53d1e94c3173a78a5a59e7f90634c60db9c9060440160006040518083038186803b1580156110b157600080fd5b505af41580156110c5573d6000803e3d6000fd5b505050505b6110d5826001610eb6565b505050565b600a546001600160a01b031633146111045760405162461bcd60e51b815260040161097190611f37565b610e1081101580156111195750620151808111155b61119e5760405162461bcd60e51b815260206004820152604a60248201527f474f444c5f4469766964656e645f547261636b65723a20636c61696d5761697460448201527f206d757374206265207570646174656420746f206265747765656e203120616e6064820152696420323420686f75727360b01b608482015260a401610971565b6012548114156112165760405162461bcd60e51b815260206004820152603c60248201527f474f444c5f4469766964656e645f547261636b65723a2043616e6e6f7420757060448201527f6461746520636c61696d5761697420746f2073616d652076616c7565000000006064820152608401610971565b60125460405182907f474ea64804364a1e29a4487ddb63c3342a2dd826ccd8acf48825e680a0e6f20f90600090a3601255565b600a546001600160a01b031633146112735760405162461bcd60e51b815260040161097190611f37565b6001600160a01b0381166112d85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610971565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6040516317e142d160e01b8152600b60048201526001600160a01b0382166024820152819060009081908190819081908190819073af1da175cf30d036b53d1e94c3173a78a5a59e7f906317e142d19060440160206040518083038186803b15801561139f57600080fd5b505af41580156113b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d79190611eb4565b965060001995506000871261143957600f5487111561140557600f546113fe908890611ab9565b9550611439565b600f54600b546000911061141a576000611429565b600f54600b5461142991611934565b90506114358882611884565b9650505b61144288610e7d565b945061144d886108eb565b6001600160a01b038916600090815260116020526040902054909450925082611477576000611485565b60125461148590849061165b565b915042821161149557600061149f565b61149f8242611934565b9050919395975091939597565b600b5460009081908190806114cc575050600f54600092508291506115ce565b600f546000805a90506000805b89841080156114e757508582105b156115bd57846114f681612095565b600b549096508610905061150957600094505b6000600b600001868154811061152f57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316808352601190915260409091205490915061156090611af6565b1561158357611570816001610eb6565b15611583578161157f81612095565b9250505b8261158d81612095565b93505060005a9050808511156115b4576115b16115aa8683611934565b879061165b565b95505b93506114d99050565b600f85905590975095509193505050505b9193909250565b6000826115e45750600061087c565b60006115f08385611fe5565b9050826115fd8583611fc5565b146116545760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610971565b9392505050565b6000806116688385611fad565b9050838110156116545760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610971565b6001600160a01b03831661171c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610971565b6001600160a01b03821661177d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610971565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60405162461bcd60e51b815260206004820152602b60248201527f474f444c5f4469766964656e645f547261636b65723a204e6f207472616e736660448201526a195c9cc8185b1b1bddd95960aa1b6064820152608401610971565b6000818484111561185e5760405162461bcd60e51b81526004016109719190611ee4565b50600061186b8486612043565b95945050505050565b6000818181121561087c57600080fd5b6000806118918385611f6c565b9050600083121580156118a45750838112155b806118b957506000831280156118b957508381125b61165457600080fd5b6000808212156118d157600080fd5b5090565b6001600160a01b038216600090815260208190526040902054808211156119145760006119028383611934565b905061190e8482611b1d565b50505050565b808210156110d55760006119288284611934565b905061190e8482611b81565b600061165483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061183a565b60008061198283610e7d565b90508015611ab0576001600160a01b0383166000908152600760205260409020546119ad908261165b565b6001600160a01b038416600081815260076020526040908190209290925590517fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d906119fc9084815260200190565b60405180910390a26008546040516000916001600160a01b03861691849084818181858888f193505050503d8060008114611a53576040519150601f19603f3d011682016040523d82523d6000602084013e611a58565b606091505b5050905080611aa9576001600160a01b038416600090815260076020526040902054611a849083611934565b6001600160a01b03909416600090815260076020526040812094909455509192915050565b5092915050565b50600092915050565b600080611ac68385612004565b905060008312158015611ad95750838113155b806118b957506000831280156118b9575083811361165457600080fd5b600042821115611b0857506000919050565b601254611b154284611934565b101592915050565b611b278282611bc5565b611b61611b4261092d836005546115d590919063ffffffff16565b6001600160a01b03841660009081526006602052604090205490611ab9565b6001600160a01b0390921660009081526006602052604090209190915550565b611b8b8282611ca4565b611b61611ba661092d836005546115d590919063ffffffff16565b6001600160a01b03841660009081526006602052604090205490611884565b6001600160a01b038216611c1b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610971565b600254611c28908261165b565b6002556001600160a01b038216600090815260208190526040902054611c4e908261165b565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b6001600160a01b038216611d045760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610971565b611d41816040518060600160405280602281526020016120df602291396001600160a01b038516600090815260208190526040902054919061183a565b6001600160a01b038316600090815260208190526040902055600254611d679082611934565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611c98565b600060208284031215611db9578081fd5b8135611654816120c6565b600060208284031215611dd5578081fd5b8151611654816120c6565b60008060408385031215611df2578081fd5b8235611dfd816120c6565b915060208301358015158114611e11578182fd5b809150509250929050565b60008060408385031215611e2e578182fd5b8235611e39816120c6565b946020939093013593505050565b60008060408385031215611e59578182fd5b8235611e64816120c6565b91506020830135611e11816120c6565b600080600060608486031215611e88578081fd5b8335611e93816120c6565b92506020840135611ea3816120c6565b929592945050506040919091013590565b600060208284031215611ec5578081fd5b5051919050565b600060208284031215611edd578081fd5b5035919050565b6000602080835283518082850152825b81811015611f1057858101830151858201604001528201611ef4565b81811115611f215783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600080821280156001600160ff1b0384900385131615611f8e57611f8e6120b0565b600160ff1b8390038412811615611fa757611fa76120b0565b50500190565b60008219821115611fc057611fc06120b0565b500190565b600082611fe057634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611fff57611fff6120b0565b500290565b60008083128015600160ff1b850184121615612022576120226120b0565b6001600160ff1b038401831381161561203d5761203d6120b0565b50500390565b600082821015612055576120556120b0565b500390565b600181811c9082168061206e57607f821691505b6020821081141561208f57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156120a9576120a96120b0565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146120db57600080fd5b5056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122025ce86633c7c2ece637005e849b3a7d090fd2106327e62d47b4e47a9c8586c4c64736f6c63430008040033
Deployed Bytecode Sourcemap
176:6685:7:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2660:21:1;:19;:21::i;:::-;176:6685:7;;;;;3550:428:1;;;:::i;2111:98:4:-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;4208:166;;;;;;;;;;-1:-1:-1;4208:166:4;;;;;:::i;:::-;;:::i;:::-;;;4414:14:18;;4407:22;4389:41;;4377:2;4362:18;4208:166:4;4344:92:18;2636:117:7;;;;;;;;;;-1:-1:-1;2719:15:7;:27;2636:117;;;10670:25:18;;;10658:2;10643:18;2636:117:7;10625:76:18;3199:106:4;;;;;;;;;;-1:-1:-1;3286:12:4;;3199:106;;511:50:7;;;;;;;;;;-1:-1:-1;511:50:7;;;;;:::i;:::-;;;;;;;;;;;;;;4841:347:4;;;;;;;;;;-1:-1:-1;4841:347:4;;;;;:::i;:::-;;:::i;6645:252:1:-;;;;;;;;;;-1:-1:-1;6645:252:1;;;;;:::i;:::-;;:::i;410:33:7:-;;;;;;;;;;;;;;;;3048:91:4;;;;;;;;;;-1:-1:-1;3048:91:4;;3130:2;12651:36:18;;12639:2;12624:18;3048:91:4;12606:87:18;1481:291:7;;;;;;;;;;-1:-1:-1;1481:291:7;;;;;:::i;:::-;;:::i;5583:215:4:-;;;;;;;;;;-1:-1:-1;5583:215:4;;;;;:::i;:::-;;:::i;450:54:7:-;;;;;;;;;;-1:-1:-1;450:54:7;;;;;:::i;:::-;;;;;;;;;;;;;;;;4053:455;;;;;;;;;;-1:-1:-1;4053:455:7;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3900:32:18;;;;3882:51;;3964:2;3949:18;;3942:34;;;;3992:18;;;3985:34;;;;4050:2;4035:18;;4028:34;;;;4093:3;4078:19;;4071:35;-1:-1:-1;4122:19:18;;4115:35;4181:3;4166:19;;4159:35;4225:3;4210:19;;4203:35;3869:3;3854:19;4053:455:7;3836:408:18;1290:185:7;;;;;;;;;;;;;:::i;568:24::-;;;;;;;;;;;;;;;;3363:125:4;;;;;;;;;;-1:-1:-1;3363:125:4;;;;;:::i;:::-;-1:-1:-1;;;;;3463:18:4;3437:7;3463:18;;;;;;;;;;;;3363:125;1189:145:14;;;;;;;;;;;;;:::i;2378:40:1:-;;;;;;;;;;;;;;;;566:77:14;;;;;;;;;;-1:-1:-1;630:6:14;;566:77;;-1:-1:-1;;;;;630:6:14;;;3481:51:18;;3469:2;3454:18;566:77:14;3436:102:18;5337:128:1;;;;;;;;;;-1:-1:-1;5337:128:1;;;;;:::i;:::-;;:::i;2322:102:4:-;;;;;;;;;;;;;:::i;1778:321:7:-;;;;;;;;;;-1:-1:-1;1778:321:7;;;;;:::i;:::-;;:::i;6285:266:4:-;;;;;;;;;;-1:-1:-1;6285:266:4;;;;;:::i;:::-;;:::i;5679:172:1:-;;;;;;;;;;-1:-1:-1;5679:172:1;;;;;:::i;:::-;;:::i;3691::4:-;;;;;;;;;;-1:-1:-1;3691:172:4;;;;;:::i;:::-;;:::i;6067:133:1:-;;;;;;;;;;-1:-1:-1;6067:133:1;;;;;:::i;:::-;-1:-1:-1;;;;;6167:26:1;6141:7;6167:26;;;:18;:26;;;;;;;6067:133;6504:355:7;;;;;;;;;;-1:-1:-1;6504:355:7;;;;;:::i;:::-;;:::i;598:74::-;;;;;;;;;;;;656:16;598:74;;3921:149:4;;;;;;;;;;-1:-1:-1;3921:149:4;;;;;:::i;:::-;-1:-1:-1;;;;;4036:18:4;;;4010:7;4036:18;;;-1:-1:-1;4036:18:4;;;;;;;;:27;;;;;;;;;;;;;3921:149;4748:478:7;;;;;;;;;;-1:-1:-1;4748:478:7;;;;;:::i;:::-;;:::i;2524:106::-;;;;;;;;;;-1:-1:-1;2605:18:7;;2524:106;;2105:413;;;;;;;;;;-1:-1:-1;2105:413:7;;;;;:::i;:::-;;:::i;1483:240:14:-;;;;;;;;;;-1:-1:-1;1483:240:14;;;;;:::i;:::-;;:::i;2342:29:1:-;;;;;;;;;;;;;;;;2759:1288:7;;;;;;;;;;-1:-1:-1;2759:1288:7;;;;;:::i;:::-;;:::i;5232:1266::-;;;;;;;;;;-1:-1:-1;5232:1266:7;;;;;:::i;:::-;;:::i;:::-;;;;12387:25:18;;;12443:2;12428:18;;12421:34;;;;12471:18;;;12464:34;12375:2;12360:18;5232:1266:7;12342:162:18;3550:428:1;3639:1;3623:13;3286:12:4;;;3199:106;3623:13:1;:17;3615:26;;;;;;3656:9;:13;3652:320;;3713:103;3789:13;3286:12:4;;;3199:106;3789:13:1;3760:26;3761:9;-1:-1:-1;;;3760:15:1;:26::i;:::-;:42;;;;:::i;:::-;3713:25;;;:29;:103::i;:::-;3685:25;:131;3835:43;;3868:9;10670:25:18;;3856:10:1;;3835:43;;10658:2:18;10643:18;3835:43:1;;;;;;;3921:25;;:40;;3951:9;3921:29;:40::i;:::-;3893:25;:68;3652:320;3550:428::o;2111:98:4:-;2165:13;2197:5;2190:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2111:98;:::o;4208:166::-;4291:4;4307:39;665:10:0;4330:7:4;4339:6;4307:8;:39::i;:::-;-1:-1:-1;4363:4:4;4208:166;;;;;:::o;4841:347::-;4977:4;4993:36;5003:6;5011:9;5022:6;4993:9;:36::i;:::-;5039:121;5048:6;665:10:0;5070:89:4;5108:6;5070:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5070:19:4;;;;;;-1:-1:-1;5070:19:4;;;;;;;;665:10:0;5070:33:4;;;;;;;;;;:37;:89::i;:::-;5039:8;:121::i;:::-;-1:-1:-1;5177:4:4;4841:347;;;;;:::o;6645:252:1:-;-1:-1:-1;;;;;6825:36:1;;6722:7;6825:36;;;:28;:36;;;;;;;;;3463:18:4;;;;;;;6748:25:1;;-1:-1:-1;;;;6748:130:1;;:114;;:63;;:48;;:25;:29;:48::i;:::-;:61;:63::i;:::-;:76;;:114::i;:::-;:128;:130::i;:::-;:142;;;;:::i;1481:291:7:-;770:6:14;;-1:-1:-1;;;;;770:6:14;665:10:0;770:22:14;762:67;;;;-1:-1:-1;;;762:67:14;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;;;;;1566:30:7;::::1;;::::0;;;:21:::1;:30;::::0;;;;;::::1;;1565:31;1557:40;;;::::0;::::1;;-1:-1:-1::0;;;;;1607:30:7;::::1;;::::0;;;:21:::1;:30;::::0;;;;:37;;-1:-1:-1;;1607:37:7::1;-1:-1:-1::0;1607:37:7::1;::::0;;1655:23:::1;::::0;1607:30;;1655:11:::1;:23::i;:::-;1688:31;::::0;-1:-1:-1;;;1688:31:7;;:15:::1;:31;::::0;::::1;10910:25:18::0;-1:-1:-1;;;;;10971:32:18;;10951:18;;;10944:60;1688:22:7::1;::::0;::::1;::::0;10883:18:18;;1688:31:7::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;1735:30:7::1;::::0;-1:-1:-1;;;;;1735:30:7;::::1;::::0;-1:-1:-1;1735:30:7::1;::::0;-1:-1:-1;1735:30:7;;::::1;1481:291:::0;:::o;5583:215:4:-;665:10:0;5671:4:4;5719:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;5719:34:4;;;;;;;;;;5671:4;;5687:83;;5719:34;;:50;;5758:10;5719:38;:50::i;4053:455:7:-;4129:7;4146:6;4162;4178:7;4195;4212;4229;4246;4278:15;:20;;;;:22;;;;;;;;;;;;;10670:25:18;;10658:2;10643:18;;10625:76;4278:22:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4269:5;:31;4265:136;;-1:-1:-1;4324:42:7;;-1:-1:-1;;;;;;;;4324:42:7;;-1:-1:-1;4324:42:7;;-1:-1:-1;4324:42:7;;-1:-1:-1;4324:42:7;;-1:-1:-1;4324:42:7;4316:74;;4265:136;4429:36;;-1:-1:-1;;;4429:36:7;;:15;:36;;;11924:25:18;11965:18;;;11958:34;;;4411:15:7;;4429:29;;;;11897:18:18;;4429:36:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4411:54;;4482:19;4493:7;4482:10;:19::i;:::-;4475:26;;;;;;;;;;;;;;;;;4053:455;;;;;;;;;;:::o;1290:185::-;1349:119;;-1:-1:-1;;;1349:119:7;;5663:2:18;1349:119:7;;;5645:21:18;5702:3;5682:18;;;5675:31;5742:34;5722:18;;;5715:62;5813:34;5793:18;;;5786:62;5885:34;5864:19;;;5857:63;-1:-1:-1;;;5936:19:18;;;5929:36;5982:19;;1349:119:7;5635:372:18;1189:145:14;770:6;;-1:-1:-1;;;;;770:6:14;665:10:0;770:22:14;762:67;;;;-1:-1:-1;;;762:67:14;;;;;;;:::i;:::-;1279:6:::1;::::0;1258:40:::1;::::0;1295:1:::1;::::0;-1:-1:-1;;;;;1279:6:14::1;::::0;1258:40:::1;::::0;1295:1;;1258:40:::1;1308:6;:19:::0;;-1:-1:-1;;;;;;1308:19:14::1;::::0;;1189:145::o;5337:128:1:-;5402:7;5428:30;5451:6;5428:22;:30::i;2322:102:4:-;2378:13;2410:7;2403:14;;;;;:::i;1778:321:7:-;770:6:14;;-1:-1:-1;;;;;770:6:14;665:10:0;770:22:14;762:67;;;;-1:-1:-1;;;762:67:14;;;;;;;:::i;:::-;1893:14:7::1;;1872:17;:35;;1864:113;;;::::0;-1:-1:-1;;;1864:113:7;;7380:2:18;1864:113:7::1;::::0;::::1;7362:21:18::0;7419:2;7399:18;;;7392:30;7458:34;7438:18;;;7431:62;7529:34;7509:18;;;7502:62;-1:-1:-1;;;7580:19:18;;;7573:32;7622:19;;1864:113:7::1;7352:295:18::0;1864:113:7::1;2033:14;::::0;1992:56:::1;::::0;2014:17;;1992:56:::1;::::0;;;::::1;2058:14;:34:::0;1778:321::o;6285:266:4:-;6378:4;6394:129;665:10:0;6417:7:4;6426:96;6465:15;6426:96;;;;;;;;;;;;;;;;;665:10:0;6426:25:4;;;;:11;:25;;;;;;;;-1:-1:-1;;;;;6426:34:4;;;;;;;;;;;;:38;:96::i;5679:172:1:-;-1:-1:-1;;;;;5817:26:1;;5756:7;5817:26;;;:18;:26;;;;;;5782:62;;:30;5817:26;5782:22;:30::i;:::-;:34;;:62::i;3691:172:4:-;3777:4;3793:42;665:10:0;3817:9:4;3828:6;3793:9;:42::i;6504:355:7:-;770:6:14;;6595:4:7;;-1:-1:-1;;;;;770:6:14;665:10:0;770:22:14;762:67;;;;-1:-1:-1;;;762:67:14;;;;;;;:::i;:::-;6611:14:7::1;6628:32;6652:7;6628:23;:32::i;:::-;6611:49:::0;-1:-1:-1;6675:10:7;;6671:159:::1;;-1:-1:-1::0;;;;;6701:23:7;::::1;;::::0;;;:14:::1;:23;::::0;;;;;;;;6727:15:::1;6701:41:::0;;6761:33;;10670:25:18;;;6761:33:7;::::1;;::::0;6701:23;6761:33:::1;::::0;10643:18:18;6761:33:7::1;;;;;;;6815:4;6808:11;;;;;6671:159;-1:-1:-1::0;6847:5:7::1;::::0;6504:355;-1:-1:-1;;;6504:355:7:o;4748:478::-;770:6:14;;-1:-1:-1;;;;;770:6:14;665:10:0;770:22:14;762:67;;;;-1:-1:-1;;;762:67:14;;;;;;;:::i;:::-;-1:-1:-1;;;;;4846:30:7;::::1;;::::0;;;:21:::1;:30;::::0;;;;;::::1;;4842:67;;;4748:478:::0;;:::o;4842:67::-:1;656:16;4923:10;:45;4919:261;;4984:32;4996:7;5005:10;4984:11;:32::i;:::-;5030:40;::::0;-1:-1:-1;;;5030:40:7;;:15:::1;:40;::::0;::::1;11572:25:18::0;-1:-1:-1;;;;;11633:32:18;;11613:18;;;11606:60;11682:18;;;11675:34;;;5030:19:7::1;::::0;::::1;::::0;11545:18:18;;5030:40:7::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;4919:261;;;5101:23;5113:7;5122:1;5101:11;:23::i;:::-;5138:31;::::0;-1:-1:-1;;;5138:31:7;;:15:::1;:31;::::0;::::1;10910:25:18::0;-1:-1:-1;;;;;10971:32:18;;10951:18;;;10944:60;5138:22:7::1;::::0;::::1;::::0;10883:18:18;;5138:31:7::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;4919:261;5190:29;5205:7;5214:4;5190:14;:29::i;:::-;;4748:478:::0;;:::o;2105:413::-;770:6:14;;-1:-1:-1;;;;;770:6:14;665:10:0;770:22:14;762:67;;;;-1:-1:-1;;;762:67:14;;;;;;;:::i;:::-;2205:4:7::1;2189:12;:20;;:45;;;;;2229:5;2213:12;:21;;2189:45;2181:132;;;::::0;-1:-1:-1;;;2181:132:7;;9853:2:18;2181:132:7::1;::::0;::::1;9835:21:18::0;9892:2;9872:18;;;9865:30;9931:34;9911:18;;;9904:62;10002:34;9982:18;;;9975:62;-1:-1:-1;;;10053:19:18;;;10046:41;10104:19;;2181:132:7::1;9825:304:18::0;2181:132:7::1;2347:9;;2331:12;:25;;2323:98;;;::::0;-1:-1:-1;;;2323:98:7;;7854:2:18;2323:98:7::1;::::0;::::1;7836:21:18::0;7893:2;7873:18;;;7866:30;7932:34;7912:18;;;7905:62;8003:30;7983:18;;;7976:58;8051:19;;2323:98:7::1;7826:250:18::0;2323:98:7::1;2467:9;::::0;2436:41:::1;::::0;2453:12;;2436:41:::1;::::0;;;::::1;2487:9;:24:::0;2105:413::o;1483:240:14:-;770:6;;-1:-1:-1;;;;;770:6:14;665:10:0;770:22:14;762:67;;;;-1:-1:-1;;;762:67:14;;;;;;;:::i;:::-;-1:-1:-1;;;;;1571:22:14;::::1;1563:73;;;::::0;-1:-1:-1;;;1563:73:14;;6214:2:18;1563:73:14::1;::::0;::::1;6196:21:18::0;6253:2;6233:18;;;6226:30;6292:34;6272:18;;;6265:62;-1:-1:-1;;;6343:18:18;;;6336:36;6389:19;;1563:73:14::1;6186:228:18::0;1563:73:14::1;1672:6;::::0;1651:38:::1;::::0;-1:-1:-1;;;;;1651:38:14;;::::1;::::0;1672:6:::1;::::0;1651:38:::1;::::0;1672:6:::1;::::0;1651:38:::1;1699:6;:17:::0;;-1:-1:-1;;;;;;1699:17:14::1;-1:-1:-1::0;;;;;1699:17:14;;;::::1;::::0;;;::::1;::::0;;1483:240::o;2759:1288:7:-;3139:38;;-1:-1:-1;;;3139:38:7;;:15;:38;;;10910:25:18;-1:-1:-1;;;;;10971:32:18;;10951:18;;;10944:60;3112:8:7;;2831:15;;;;;;;;;;;;;;3139:29;;;;10883:18:18;;3139:38:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3131:46;-1:-1:-1;;;;;;3232:10:7;;3228:446;;3279:18;;3270:5;3262:35;3258:406;;;3361:18;;3344:37;;:5;;:9;:37::i;:::-;3317:64;;3258:406;;;3485:18;;3455:15;:27;3420:32;;-1:-1:-1;3455:106:7;;3560:1;3455:106;;;3538:18;;3506:15;:27;:51;;:31;:51::i;:::-;3420:141;-1:-1:-1;3606:43:7;:5;3420:141;3606:9;:43::i;:::-;3579:70;;3258:406;;3708:31;3731:7;3708:22;:31::i;:::-;3684:55;;3766:31;3789:7;3766:22;:31::i;:::-;-1:-1:-1;;;;;3824:23:7;;;;;;:14;:23;;;;;;3749:48;;-1:-1:-1;3824:23:7;-1:-1:-1;3824:23:7;3873:52;;3924:1;3873:52;;;3911:9;;3893:28;;:13;;:17;:28::i;:::-;3857:68;;3984:15;3968:13;:31;:72;;4039:1;3968:72;;;4002:34;:13;4020:15;4002:17;:34::i;:::-;3935:105;;2759:1288;;;;;;;;;:::o;5232:1266::-;5346:15;:27;5278:7;;;;;;5388:25;5384:89;;-1:-1:-1;;5443:18:7;;5437:1;;-1:-1:-1;5437:1:7;;-1:-1:-1;5429:33:7;;5384:89;5513:18;;5483:27;;5589:9;5571:27;;5609:18;5641:14;5670:713;5687:3;5677:7;:13;:50;;;;;5707:20;5694:10;:33;5677:50;5670:713;;;5743:21;;;;:::i;:::-;5806:15;:27;5743:21;;-1:-1:-1;5783:50:7;;;-1:-1:-1;5779:112:7;;5875:1;5853:23;;5779:112;5905:15;5923;:20;;5944:19;5923:41;;;;;;-1:-1:-1;;;5923:41:7;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5923:41:7;5996:23;;;:14;:23;;;;;;;;5923:41;;-1:-1:-1;5983:37:7;;:12;:37::i;:::-;5979:168;;;6044:38;6067:7;6077:4;6044:14;:38::i;:::-;6040:93;;;6106:8;;;;:::i;:::-;;;;6040:93;6161:12;;;;:::i;:::-;;;;6188:18;6209:9;6188:30;;6247:10;6237:7;:20;6233:105;;;6287:36;6299:23;:7;6311:10;6299:11;:23::i;:::-;6287:7;;:11;:36::i;:::-;6277:46;;6233:105;6362:10;-1:-1:-1;5670:713:7;;-1:-1:-1;5670:713:7;;6393:18;:40;;;6452:10;;-1:-1:-1;6464:6:7;-1:-1:-1;6414:19:7;;-1:-1:-1;;;;5232:1266:7;;;;;;:::o;1616:459:15:-;1674:7;1915:6;1911:45;;-1:-1:-1;1944:1:15;1937:8;;1911:45;1966:9;1978:5;1982:1;1978;:5;:::i;:::-;1966:17;-1:-1:-1;2010:1:15;2001:5;2005:1;1966:17;2001:5;:::i;:::-;:10;1993:56;;;;-1:-1:-1;;;1993:56:15;;8283:2:18;1993:56:15;;;8265:21:18;8322:2;8302:18;;;8295:30;8361:34;8341:18;;;8334:62;-1:-1:-1;;;8412:18:18;;;8405:31;8453:19;;1993:56:15;8255:223:18;1993:56:15;2067:1;1616:459;-1:-1:-1;;;1616:459:15:o;310:176::-;368:7;;399:5;403:1;399;:5;:::i;:::-;387:17;;427:1;422;:6;;414:46;;;;-1:-1:-1;;;414:46:15;;7024:2:18;414:46:15;;;7006:21:18;7063:2;7043:18;;;7036:30;7102:29;7082:18;;;7075:57;7149:18;;414:46:15;6996:177:18;9384:370:4;-1:-1:-1;;;;;9515:19:4;;9507:68;;;;-1:-1:-1;;;9507:68:4;;9448:2:18;9507:68:4;;;9430:21:18;9487:2;9467:18;;;9460:30;9526:34;9506:18;;;9499:62;-1:-1:-1;;;9577:18:18;;;9570:34;9621:19;;9507:68:4;9420:226:18;9507:68:4;-1:-1:-1;;;;;9593:21:4;;9585:68;;;;-1:-1:-1;;;9585:68:4;;6621:2:18;9585:68:4;;;6603:21:18;6660:2;6640:18;;;6633:30;6699:34;6679:18;;;6672:62;-1:-1:-1;;;6750:18:18;;;6743:32;6792:19;;9585:68:4;6593:224:18;9585:68:4;-1:-1:-1;;;;;9664:18:4;;;;;;;-1:-1:-1;9664:18:4;;;;;;;;:27;;;;;;;;;;;;;:36;;;9715:32;;10670:25:18;;;9715:32:4;;;;;;;;;;;;9384:370;;;:::o;1137:147:7:-;1216:61;;-1:-1:-1;;;1216:61:7;;5251:2:18;1216:61:7;;;5233:21:18;5290:2;5270:18;;;5263:30;5329:34;5309:18;;;5302:62;-1:-1:-1;;;5380:18:18;;;5373:41;5431:19;;1216:61:7;5223:233:18;1182:187:15;1268:7;1303:12;1295:6;;;;1287:29;;;;-1:-1:-1;;;1287:29:15;;;;;;;;:::i;:::-;-1:-1:-1;1326:9:15;1338:5;1342:1;1338;:5;:::i;:::-;1326:17;1182:187;-1:-1:-1;;;;;1182:187:15:o;180:144:17:-;236:6;272:1;292:6;;;;284:15;;;;;2478:172:16;2534:6;;2563:5;2567:1;2563;:5;:::i;:::-;2552:16;;2592:1;2587;:6;;:16;;;;;2602:1;2597;:6;;2587:16;2586:38;;;;2613:1;2609;:5;:14;;;;;2622:1;2618;:5;2609:14;2578:47;;;;;2868:124;2924:7;2956:1;2951;:6;;2943:15;;;;;;-1:-1:-1;2983:1:16;2868:124::o;8694:439:1:-;-1:-1:-1;;;;;3463:18:4;;8771:22:1;3463:18:4;;;;;;;;;;;8828:27:1;;;8825:302;;;8871:18;8892:30;:10;8907:14;8892;:30::i;:::-;8871:51;;8936:26;8942:7;8951:10;8936:5;:26::i;:::-;8825:302;5190:29:7::1;4748:478:::0;;:::o;8825:302:1:-;8995:14;8982:10;:27;8979:148;;;9025:18;9046:30;:14;9065:10;9046:18;:30::i;:::-;9025:51;;9090:26;9096:7;9105:10;9090:5;:26::i;757:134:15:-;815:7;841:43;845:1;848;841:43;;;;;;;;;;;;;;;;;:3;:43::i;4433:689:1:-;4506:7;4525:29;4557:28;4580:4;4557:22;:28::i;:::-;4525:60;-1:-1:-1;4599:25:1;;4595:502;;-1:-1:-1;;;;;4667:24:1;;;;;;:18;:24;;;;;;:51;;4696:21;4667:28;:51::i;:::-;-1:-1:-1;;;;;4640:24:1;;;;;;:18;:24;;;;;;;;;:78;;;;4737:46;10670:25:18;;;4640:24:1;;4737:46;;10643:18:18;4737:46:1;;;;;;;4860:14;;4815:64;;4798:12;;-1:-1:-1;;;;;4815:9:1;;;4832:21;;4798:12;4815:64;4798:12;4815:64;4832:21;4815:9;4860:14;4815:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4797:82;;;4898:7;4894:150;;-1:-1:-1;;;;;4952:24:1;;;;;;:18;:24;;;;;;:51;;4981:21;4952:28;:51::i;:::-;-1:-1:-1;;;;;4925:24:1;;;;;;;;:18;:24;;;;;:78;;;;-1:-1:-1;4925:24:1;;;-1:-1:-1;;4433:689:1:o;4894:150::-;-1:-1:-1;5065:21:1;4433:689;-1:-1:-1;;4433:689:1:o;4595:502::-;-1:-1:-1;5114:1:1;;4433:689;-1:-1:-1;;4433:689:1:o;2223:172:16:-;2279:6;;2308:5;2312:1;2308;:5;:::i;:::-;2297:16;;2337:1;2332;:6;;:16;;;;;2347:1;2342;:6;;2332:16;2331:38;;;;2358:1;2354;:5;:14;;;;;2367:1;2363;:5;2323:47;;;;;4514:228:7;4581:4;4617:15;4601:13;:31;4597:75;;;-1:-1:-1;4656:5:7;;4514:228;-1:-1:-1;4514:228:7:o;4597:75::-;4726:9;;4688:34;:15;4708:13;4688:19;:34::i;:::-;:47;;;4514:228;-1:-1:-1;;4514:228:7:o;7875:267:1:-;7950:27;7962:7;7971:5;7950:11;:27::i;:::-;8028:107;8080:53;8081:36;8111:5;8081:25;;:29;;:36;;;;:::i;8080:53::-;-1:-1:-1;;;;;8028:37:1;;;;;;:28;:37;;;;;;;:50;:107::i;:::-;-1:-1:-1;;;;;7988:37:1;;;;;;;;:28;:37;;;;;:147;;;;-1:-1:-1;7875:267:1:o;8421:::-;8496:27;8508:7;8517:5;8496:11;:27::i;:::-;8574:107;8626:53;8627:36;8657:5;8627:25;;:29;;:36;;;;:::i;8626:53::-;-1:-1:-1;;;;;8574:37:1;;;;;;:28;:37;;;;;;;:50;:107::i;7861:370:4:-;-1:-1:-1;;;;;7944:21:4;;7936:65;;;;-1:-1:-1;;;7936:65:4;;10336:2:18;7936:65:4;;;10318:21:18;10375:2;10355:18;;;10348:30;10414:33;10394:18;;;10387:61;10465:18;;7936:65:4;10308:181:18;7936:65:4;8087:12;;:24;;8104:6;8087:16;:24::i;:::-;8072:12;:39;-1:-1:-1;;;;;8142:18:4;;:9;:18;;;;;;;;;;;:30;;8165:6;8142:22;:30::i;:::-;-1:-1:-1;;;;;8121:18:4;;:9;:18;;;;;;;;;;;:51;;;;8187:37;;10670:25:18;;;8121:18:4;;:9;;8187:37;;10643:18:18;8187:37:4;;;;;;;;7861:370;;:::o;8551:410::-;-1:-1:-1;;;;;8634:21:4;;8626:67;;;;-1:-1:-1;;;8626:67:4;;9046:2:18;8626:67:4;;;9028:21:18;9085:2;9065:18;;;9058:30;9124:34;9104:18;;;9097:62;-1:-1:-1;;;9175:18:18;;;9168:31;9216:19;;8626:67:4;9018:223:18;8626:67:4;8785:68;8808:6;8785:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;8785:18:4;;:9;:18;;;;;;;;;;;;;:22;:68::i;:::-;-1:-1:-1;;;;;8764:18:4;;:9;:18;;;;;;;;;;:89;8878:12;;:24;;8895:6;8878:16;:24::i;:::-;8863:12;:39;8917:37;;10670:25:18;;;8943:1:4;;-1:-1:-1;;;;;8917:37:4;;;;;10658:2:18;10643:18;8917:37:4;10625:76:18;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:444::-;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:18;852:18;;839:32;909:15;;902:23;890:36;;880:2;;945:6;937;930:22;880:2;973:7;963:17;;;634:352;;;;;:::o;991:333::-;1067:6;1075;1128:2;1116:9;1107:7;1103:23;1099:32;1096:2;;;1149:6;1141;1134:22;1096:2;1193:9;1180:23;1212:31;1237:5;1212:31;:::i;:::-;1262:5;1314:2;1299:18;;;;1286:32;;-1:-1:-1;;;1086:238:18:o;1329:398::-;1397:6;1405;1458:2;1446:9;1437:7;1433:23;1429:32;1426:2;;;1479:6;1471;1464:22;1426:2;1523:9;1510:23;1542:31;1567:5;1542:31;:::i;:::-;1592:5;-1:-1:-1;1649:2:18;1634:18;;1621:32;1662:33;1621:32;1662:33;:::i;1732:466::-;1809:6;1817;1825;1878:2;1866:9;1857:7;1853:23;1849:32;1846:2;;;1899:6;1891;1884:22;1846:2;1943:9;1930:23;1962:31;1987:5;1962:31;:::i;:::-;2012:5;-1:-1:-1;2069:2:18;2054:18;;2041:32;2082:33;2041:32;2082:33;:::i;:::-;1836:362;;2134:7;;-1:-1:-1;;;2188:2:18;2173:18;;;;2160:32;;1836:362::o;2533:193::-;2602:6;2655:2;2643:9;2634:7;2630:23;2626:32;2623:2;;;2676:6;2668;2661:22;2623:2;-1:-1:-1;2704:16:18;;2613:113;-1:-1:-1;2613:113:18:o;2731:190::-;2790:6;2843:2;2831:9;2822:7;2818:23;2814:32;2811:2;;;2864:6;2856;2849:22;2811:2;-1:-1:-1;2892:23:18;;2801:120;-1:-1:-1;2801:120:18:o;4441:603::-;4553:4;4582:2;4611;4600:9;4593:21;4643:6;4637:13;4686:6;4681:2;4670:9;4666:18;4659:34;4711:4;4724:140;4738:6;4735:1;4732:13;4724:140;;;4833:14;;;4829:23;;4823:30;4799:17;;;4818:2;4795:26;4788:66;4753:10;;4724:140;;;4882:6;4879:1;4876:13;4873:2;;;4952:4;4947:2;4938:6;4927:9;4923:22;4919:31;4912:45;4873:2;-1:-1:-1;5028:2:18;5007:15;-1:-1:-1;;5003:29:18;4988:45;;;;5035:2;4984:54;;4562:482;-1:-1:-1;;;4562:482:18:o;8483:356::-;8685:2;8667:21;;;8704:18;;;8697:30;8763:34;8758:2;8743:18;;8736:62;8830:2;8815:18;;8657:182::o;12698:267::-;12737:3;12765:11;;;-1:-1:-1;;;;;12811:27:18;;;12804:35;;12792:10;;12788:52;12785:2;;;12843:18;;:::i;:::-;-1:-1:-1;;;12890:19:18;;;12883:27;;12875:36;;12872:2;;;12914:18;;:::i;:::-;-1:-1:-1;;12950:9:18;;12745:220::o;12970:128::-;13010:3;13041:1;13037:6;13034:1;13031:13;13028:2;;;13047:18;;:::i;:::-;-1:-1:-1;13083:9:18;;13018:80::o;13103:217::-;13143:1;13169;13159:2;;-1:-1:-1;;;13194:31:18;;13248:4;13245:1;13238:15;13276:4;13194:31;13266:15;13159:2;-1:-1:-1;13305:9:18;;13149:171::o;13325:168::-;13365:7;13431:1;13427;13423:6;13419:14;13416:1;13413:21;13408:1;13401:9;13394:17;13390:45;13387:2;;;13438:18;;:::i;:::-;-1:-1:-1;13478:9:18;;13377:116::o;13498:270::-;13537:4;13566:12;;;-1:-1:-1;;;13613:19:18;;13606:27;;13594:10;;13590:44;13587:2;;;13637:18;;:::i;:::-;-1:-1:-1;;;;;13684:27:18;;13677:35;;13669:44;;13666:2;;;13716:18;;:::i;:::-;-1:-1:-1;;13753:9:18;;13546:222::o;13773:125::-;13813:4;13841:1;13838;13835:8;13832:2;;;13846:18;;:::i;:::-;-1:-1:-1;13883:9:18;;13822:76::o;13903:380::-;13982:1;13978:12;;;;14025;;;14046:2;;14100:4;14092:6;14088:17;14078:27;;14046:2;14153;14145:6;14142:14;14122:18;14119:38;14116:2;;;14199:10;14194:3;14190:20;14187:1;14180:31;14234:4;14231:1;14224:15;14262:4;14259:1;14252:15;14116:2;;13958:325;;;:::o;14288:135::-;14327:3;-1:-1:-1;;14348:17:18;;14345:2;;;14368:18;;:::i;:::-;-1:-1:-1;14415:1:18;14404:13;;14335:88::o;14428:127::-;14489:10;14484:3;14480:20;14477:1;14470:31;14520:4;14517:1;14510:15;14544:4;14541:1;14534:15;14560:131;-1:-1:-1;;;;;14635:31:18;;14625:42;;14615:2;;14681:1;14678;14671:12;14615:2;14605:86;:::o
Swarm Source
ipfs://25ce86633c7c2ece637005e849b3a7d090fd2106327e62d47b4e47a9c8586c4c
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.