ERC-20
Overview
Max Total Supply
106,223,448,219,152.344748741185131154 DT_PEPE
Holders
218
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
195,349,318,752.467269979510762532 DT_PEPEValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TokenDividendTracker
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity 0.8.18; import "@openzeppelin/contracts/access/Ownable.sol"; import "./PepeDividendPayingToken.sol"; contract TokenDividendTracker is Ownable, DividendPayingToken { struct MAP { address[] keys; mapping(address => uint) values; mapping(address => uint) indexOf; mapping(address => bool) inserted; } MAP private tokenHoldersMap; uint256 public lastProcessedIndex; mapping(address => bool) public excludedFromDividends; mapping(address => uint256) public lastClaimTimes; uint256 public claimWait; uint256 public minimumTokenBalanceForDividends; event ExcludeFromDividends(address indexed account); event ClaimWaitUpdated(uint256 indexed newValue, uint256 indexed oldValue); event Claim( address indexed account, uint256 amount, bool indexed automatic ); constructor( uint256 _minimumTokenBalanceForDividends ) DividendPayingToken("Dividen_Tracker_PEPE", "DT_PEPE") { claimWait = 3600; minimumTokenBalanceForDividends = _minimumTokenBalanceForDividends; } function _transfer(address, address, uint256) internal pure override { require(false, "Dividend_Tracker: No transfers"); } function withdrawDividend() public pure override { require(false, "Dividend_Tracker: Use the 'claim' function on token"); } function setMinimumTokenBalanceForDividends( uint256 val ) external onlyOwner { minimumTokenBalanceForDividends = val; } function excludeFromDividends(address account) external onlyOwner { require(!excludedFromDividends[account]); excludedFromDividends[account] = true; _setBalance(account, 0); MAPRemove(account); emit ExcludeFromDividends(account); } function updateClaimWait(uint256 newClaimWait) external onlyOwner { require( newClaimWait >= 3600 && newClaimWait <= 86400, "UDAO_Div_Tracker: claimWait >= 1 or <= 24 hours" ); require(newClaimWait != claimWait, "UDAO_Div_Tracker: 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 isExcludedFromDividends( address account ) public view returns (bool) { return excludedFromDividends[account]; } 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 = MAPGetIndexOfKey(account); iterationsUntilProcessed = -1; if (index >= 0) { if (uint256(index) > lastProcessedIndex) { iterationsUntilProcessed = index - int256(lastProcessedIndex); } else { uint256 processesUntilEndOfArray = tokenHoldersMap.keys.length > lastProcessedIndex ? tokenHoldersMap.keys.length - lastProcessedIndex : 0; iterationsUntilProcessed = index + int256(processesUntilEndOfArray); } } withdrawableDividends = withdrawableDividendOf(account); totalDividends = accumulativeDividendOf(account); lastClaimTime = lastClaimTimes[account]; nextClaimTime = lastClaimTime > 0 ? lastClaimTime + claimWait : 0; secondsUntilAutoClaimAvailable = nextClaimTime > block.timestamp ? nextClaimTime - block.timestamp : 0; } function getAccountAtIndex( uint256 index ) public view returns ( address, int256, int256, uint256, uint256, uint256, uint256, uint256 ) { if (index >= MAPSize()) { return ( 0x0000000000000000000000000000000000000000, -1, -1, 0, 0, 0, 0, 0 ); } address account = MAPGetKeyAtIndex(index); return getAccount(account); } function canAutoClaim(uint256 lastClaimTime) private view returns (bool) { if (lastClaimTime > block.timestamp) { return false; } return block.timestamp - lastClaimTime >= claimWait; } function setBalance( address account, uint256 newBalance ) external onlyOwner { if (excludedFromDividends[account]) { return; } if (newBalance >= minimumTokenBalanceForDividends) { _setBalance(account, newBalance); MAPSet(account, newBalance); } else { _setBalance(account, 0); MAPRemove(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(account, true)) { claims++; } } iterations++; uint256 newGasLeft = gasleft(); if (gasLeft > newGasLeft) { gasUsed += gasLeft - newGasLeft; } gasLeft = newGasLeft; } lastProcessedIndex = _lastProcessedIndex; return (iterations, claims, lastProcessedIndex); } function processAccount( address 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; } function MAPGet(address key) public view returns (uint) { return tokenHoldersMap.values[key]; } function MAPGetIndexOfKey(address key) public view returns (int) { if (!tokenHoldersMap.inserted[key]) { return -1; } return int(tokenHoldersMap.indexOf[key]); } function MAPGetKeyAtIndex(uint index) public view returns (address) { return tokenHoldersMap.keys[index]; } function MAPSize() public view returns (uint) { return tokenHoldersMap.keys.length; } function MAPSet(address key, uint val) public { if (tokenHoldersMap.inserted[key]) { tokenHoldersMap.values[key] = val; } else { tokenHoldersMap.inserted[key] = true; tokenHoldersMap.values[key] = val; tokenHoldersMap.indexOf[key] = tokenHoldersMap.keys.length; tokenHoldersMap.keys.push(key); } } function MAPRemove(address key) public { if (!tokenHoldersMap.inserted[key]) { return; } delete tokenHoldersMap.inserted[key]; delete tokenHoldersMap.values[key]; uint index = tokenHoldersMap.indexOf[key]; uint lastIndex = tokenHoldersMap.keys.length - 1; address lastKey = tokenHoldersMap.keys[lastIndex]; tokenHoldersMap.indexOf[lastKey] = index; delete tokenHoldersMap.indexOf[key]; tokenHoldersMap.keys[index] = lastKey; tokenHoldersMap.keys.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 { _transferOwnership(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"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.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.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead 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 { 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: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, 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}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, 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}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); 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) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + 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) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This 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: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, 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 += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(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); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(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 Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - 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 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 {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; 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 // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev 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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; 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 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); } 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.18; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./interfaces/IDividends.sol"; //TODO @audit-issue MAKE SURE TO CHANGE THIS SHIT TO USE PEPE /// @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, Ownable, DividendPayingTokenInterface, DividendPayingTokenOptionalInterface { // 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 internal constant 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; ERC20 public immutable PEPE; uint256 public totalDividendsDistributed; constructor( string memory _name, string memory _symbol ) ERC20(_name, _symbol) { PEPE = ERC20(0x6982508145454Ce325dDbE47a25d4ec3d2311933); } function distributePepeDividends(uint256 amount) public onlyOwner { require(totalSupply() > 0); if (amount > 0) { magnifiedDividendPerShare = magnifiedDividendPerShare + ((amount * magnitude) / totalSupply()); emit DividendsDistributed(msg.sender, amount); totalDividendsDistributed = totalDividendsDistributed + amount; } } /// @notice Withdraws the ether distributed to the sender. /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0. function withdrawDividend() public virtual override { _withdrawDividendOfUser(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 user) internal returns (uint256) { uint256 _withdrawableDividend = withdrawableDividendOf(user); if (_withdrawableDividend > 0) { withdrawnDividends[user] = withdrawnDividends[user] + _withdrawableDividend; emit DividendWithdrawn(user, _withdrawableDividend); bool success = PEPE.transfer(user, _withdrawableDividend); if (!success) { withdrawnDividends[user] = withdrawnDividends[user] - _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) - 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) { uint256 magDivUserCorr = toUint256Safe( toInt256Safe(magnifiedDividendPerShare * balanceOf(_owner)) + magnifiedDividendCorrections[_owner] ); return magDivUserCorr / 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 = toInt256Safe(magnifiedDividendPerShare * value); magnifiedDividendCorrections[from] = magnifiedDividendCorrections[from] + _magCorrection; magnifiedDividendCorrections[to] = magnifiedDividendCorrections[to] - _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] - toInt256Safe(magnifiedDividendPerShare * value); } /// @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] + toInt256Safe(magnifiedDividendPerShare * value); } function _setBalance(address account, uint256 newBalance) internal { uint256 currentBalance = balanceOf(account); if (newBalance > currentBalance) { uint256 mintAmount = newBalance - currentBalance; _mint(account, mintAmount); } else if (newBalance < currentBalance) { uint256 burnAmount = currentBalance - newBalance; _burn(account, burnAmount); } } // INT SAFETY function toUint256Safe(int256 a) internal pure returns (uint256) { require(a >= 0); return uint256(a); } function toInt256Safe(uint256 a) internal pure returns (int256) { int256 b = int256(a); require(b >= 0); return b; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_minimumTokenBalanceForDividends","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"bool","name":"automatic","type":"bool"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"oldValue","type":"uint256"}],"name":"ClaimWaitUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"DividendWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"DividendsDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"ExcludeFromDividends","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"key","type":"address"}],"name":"MAPGet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"key","type":"address"}],"name":"MAPGetIndexOfKey","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"MAPGetKeyAtIndex","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"key","type":"address"}],"name":"MAPRemove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"key","type":"address"},{"internalType":"uint256","name":"val","type":"uint256"}],"name":"MAPSet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"MAPSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PEPE","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"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":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"distributePepeDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"dividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":[{"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":"account","type":"address"}],"name":"isExcludedFromDividends","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastClaimTimes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastProcessedIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumTokenBalanceForDividends","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gas","type":"uint256"}],"name":"process","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","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","name":"account","type":"address"},{"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"setBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"val","type":"uint256"}],"name":"setMinimumTokenBalanceForDividends","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":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","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":[],"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"}]
Contract Creation Code
60a06040523480156200001157600080fd5b5060405162001f0c38038062001f0c833981016040819052620000349162000148565b6040518060400160405280601481526020017f4469766964656e5f547261636b65725f504550450000000000000000000000008152506040518060400160405280600781526020016644545f5045504560c81b815250818181600390816200009d919062000207565b506004620000ac828262000207565b505050620000c9620000c3620000f260201b60201c565b620000f6565b5050736982508145454ce325ddbe47a25d4ec3d2311933608052610e10601155601255620002d3565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000602082840312156200015b57600080fd5b5051919050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200018d57607f821691505b602082108103620001ae57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200020257600081815260208120601f850160051c81016020861015620001dd5750805b601f850160051c820191505b81811015620001fe57828155600101620001e9565b5050505b505050565b81516001600160401b0381111562000223576200022362000162565b6200023b8162000234845462000178565b84620001b4565b602080601f8311600181146200027357600084156200025a5750858301515b600019600386901b1c1916600185901b178555620001fe565b600085815260208120601f198616915b82811015620002a45788860151825594840194600190910190840162000283565b5085821015620002c35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b608051611c16620002f6600039600081816105d401526115880152611c166000f3fe608060405234801561001057600080fd5b50600436106102745760003560e01c8063715018a611610151578063bc4c4b37116100c3578063e4fbaecb11610087578063e4fbaecb146105cf578063e7841ec0146105f6578063e98030c7146105fe578063f2fde38b14610611578063fbcbc0f114610624578063ffb2c4791461063757600080fd5b8063bc4c4b3714610561578063be10b61414610574578063c705c5691461057d578063dd62ed3e146105a9578063e30443bc146105bc57600080fd5b8063a3395cb411610115578063a3395cb4146104ec578063a457c2d7146104ff578063a8b9d24014610512578063a9059cbb14610525578063aafd847a14610538578063b1181e55146102cf57600080fd5b8063715018a6146104af57806385a6b3ae146104b75780638da5cb5b146104c057806391b89fba146104d157806395d89b41146104e457600080fd5b80633009a609116101ea5780635183d6fd116101ae5780635183d6fd146103e1578063556cafb0146104395780635ebf4db9146104625780636a474002146104755780636f2789ec1461047d57806370a082311461048657600080fd5b80633009a60914610380578063313ce5671461038957806331e79db01461039857806339509351146103ab5780634e7b827f146103be57600080fd5b806310a8c46b1161023c57806310a8c46b146102f45780631105e7401461031f57806318160ddd14610332578063226cfa3d1461033a57806323b872dd1461035a57806327ce01471461036d57600080fd5b806306fdde03146102795780630716c61114610297578063095ea7b3146102ac57806309bbedde146102cf5780630eb6a97f146102e1575b600080fd5b610281610665565b60405161028e919061190b565b60405180910390f35b6102aa6102a5366004611975565b6106f7565b005b6102bf6102ba366004611990565b61082a565b604051901515815260200161028e565b600a545b60405190815260200161028e565b6102aa6102ef3660046119ba565b610844565b6103076103023660046119ba565b6108dc565b6040516001600160a01b03909116815260200161028e565b6102aa61032d366004611990565b61090f565b6002546102d3565b6102d3610348366004611975565b60106020526000908152604090205481565b6102bf6103683660046119d3565b6109ce565b6102d361037b366004611975565b6109f2565b6102d3600e5481565b6040516012815260200161028e565b6102aa6103a6366004611975565b610a57565b6102bf6103b9366004611990565b610af3565b6102bf6103cc366004611975565b600f6020526000908152604090205460ff1681565b6103f46103ef3660046119ba565b610b15565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e08201526101000161028e565b6102d3610447366004611975565b6001600160a01b03166000908152600b602052604090205490565b6102aa6104703660046119ba565b610b82565b6102aa610b8f565b6102d360115481565b6102d3610494366004611975565b6001600160a01b031660009081526020819052604090205490565b6102aa610bfa565b6102d360095481565b6005546001600160a01b0316610307565b6102d36104df366004611975565b610c0c565b610281610c17565b6102d36104fa366004611975565b610c26565b6102bf61050d366004611990565b610c6b565b6102d3610520366004611975565b610ce6565b6102bf610533366004611990565b610d12565b6102d3610546366004611975565b6001600160a01b031660009081526008602052604090205490565b6102bf61056f366004611a1d565b610d20565b6102d360125481565b6102bf61058b366004611975565b6001600160a01b03166000908152600f602052604090205460ff1690565b6102d36105b7366004611a54565b610dab565b6102aa6105ca366004611990565b610dd6565b6103077f000000000000000000000000000000000000000000000000000000000000000081565b600e546102d3565b6102aa61060c3660046119ba565b610e44565b6102aa61061f366004611975565b610f49565b6103f4610632366004611975565b610fbf565b61064a6106453660046119ba565b6110a5565b6040805193845260208401929092529082015260600161028e565b60606003805461067490611a87565b80601f01602080910402602001604051908101604052809291908181526020018280546106a090611a87565b80156106ed5780601f106106c2576101008083540402835291602001916106ed565b820191906000526020600020905b8154815290600101906020018083116106d057829003601f168201915b5050505050905090565b6001600160a01b0381166000908152600d602052604090205460ff1661071a5750565b6001600160a01b0381166000908152600d60209081526040808320805460ff19169055600b8252808320839055600c909152812054600a5490919061076190600190611ad7565b90506000600a600001828154811061077b5761077b611aea565b60009182526020808320909101546001600160a01b03908116808452600c90925260408084208790559087168352822091909155600a80549192508291859081106107c8576107c8611aea565b600091825260209091200180546001600160a01b0319166001600160a01b0392909216919091179055600a80548061080257610802611b00565b600082815260209020810160001990810180546001600160a01b031916905501905550505050565b6000336108388185856111c2565b60019150505b92915050565b61084c6112e6565b600061085760025490565b1161086157600080fd5b80156108d957600254610878600160801b83611b16565b6108829190611b2d565b60065461088f9190611b4f565b60065560405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a2806009546108d59190611b4f565b6009555b50565b6000600a60000182815481106108f4576108f4611aea565b6000918252602090912001546001600160a01b031692915050565b6001600160a01b0382166000908152600d602052604090205460ff161561094d576001600160a01b03919091166000908152600b6020526040902055565b6001600160a01b0382166000818152600d60209081526040808320805460ff19166001908117909155600b8352818420869055600a8054600c909452918420839055820181559091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80180546001600160a01b03191690911790555b5050565b6000336109dc858285611340565b6109e78585856113ba565b506001949350505050565b6001600160a01b038116600090815260076020908152604080832054918390528220548291610a4091610a3190600654610a2c9190611b16565b611402565b610a3b9190611b62565b611412565b9050610a50600160801b82611b2d565b9392505050565b610a5f6112e6565b6001600160a01b0381166000908152600f602052604090205460ff1615610a8557600080fd5b6001600160a01b0381166000908152600f60205260408120805460ff19166001179055610ab3908290611425565b610abc816106f7565b6040516001600160a01b038216907fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b2590600090a250565b600033610838818585610b068383610dab565b610b109190611b4f565b6111c2565b600080600080600080600080610b2a600a5490565b8910610b4f575060009650600019955085945086935083925082915081905080610b77565b6000610b5a8a6108dc565b9050610b6581610fbf565b98509850985098509850985098509850505b919395975091939597565b610b8a6112e6565b601255565b60405162461bcd60e51b815260206004820152603360248201527f4469766964656e645f547261636b65723a20557365207468652027636c61696d6044820152721390333ab731ba34b7b71037b7103a37b5b2b760691b60648201526084015b60405180910390fd5b565b610c026112e6565b610bf8600061147e565b600061083e82610ce6565b60606004805461067490611a87565b6001600160a01b0381166000908152600d602052604081205460ff16610c4f5750600019919050565b506001600160a01b03166000908152600c602052604090205490565b60003381610c798286610dab565b905083811015610cd95760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610bef565b6109e782868684036111c2565b6001600160a01b038116600090815260086020526040812054610d08836109f2565b61083e9190611ad7565b6000336108388185856113ba565b6000610d2a6112e6565b6000610d35846114d0565b90508015610da1576001600160a01b038416600081815260106020526040908190204290555184151591907fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf09290610d8f9085815260200190565b60405180910390a3600191505061083e565b5060009392505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610dde6112e6565b6001600160a01b0382166000908152600f602052604090205460ff166109ca576012548110610e2057610e118282611425565b610e1b828261090f565b610e34565b610e2b826000611425565b610e34826106f7565b610e3f826001610d20565b505050565b610e4c6112e6565b610e108110158015610e615750620151808111155b610ec55760405162461bcd60e51b815260206004820152602f60248201527f5544414f5f4469765f547261636b65723a20636c61696d57616974203e3d203160448201526e206f72203c3d20323420686f75727360881b6064820152608401610bef565b6011548103610f165760405162461bcd60e51b815260206004820152601c60248201527f5544414f5f4469765f547261636b65723a2073616d652076616c7565000000006044820152606401610bef565b60115460405182907f474ea64804364a1e29a4487ddb63c3342a2dd826ccd8acf48825e680a0e6f20f90600090a3601155565b610f516112e6565b6001600160a01b038116610fb65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bef565b6108d98161147e565b806000808080808080610fd188610c26565b965060001995506000871261103357600e54871115610ffe57600e54610ff79088611b8a565b9550611033565b600e54600a5460009110611013576000611023565b600e54600a546110239190611ad7565b905061102f8189611b62565b9650505b61103c88610ce6565b9450611047886109f2565b6001600160a01b03891660009081526010602052604090205490945092508261107157600061107e565b60115461107e9084611b4f565b915042821161108e576000611098565b6110984283611ad7565b9050919395975091939597565b600a54600090819081908082036110c7575050600e54600092508291506111bb565b600e546000805a90506000805b89841080156110e257508582105b156111aa57846110f181611baa565b600a549096508610905061110457600094505b6000600a600001868154811061111c5761111c611aea565b60009182526020808320909101546001600160a01b0316808352601090915260409091205490915061114d90611657565b156111705761115d816001610d20565b15611170578161116c81611baa565b9250505b8261117a81611baa565b93505060005a9050808511156111a1576111948186611ad7565b61119e9087611b4f565b95505b93506110d49050565b600e85905590975095509193505050505b9193909250565b6001600160a01b0383166112245760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610bef565b6001600160a01b0382166112855760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610bef565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b03163314610bf85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610bef565b600061134c8484610dab565b905060001981146113b457818110156113a75760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610bef565b6113b484848484036111c2565b50505050565b60405162461bcd60e51b815260206004820152601e60248201527f4469766964656e645f547261636b65723a204e6f207472616e736665727300006044820152606401610bef565b6000818181121561083e57600080fd5b60008082121561142157600080fd5b5090565b6001600160a01b0382166000908152602081905260409020548082111561145e5760006114528284611ad7565b90506113b4848261167e565b80821015610e3f5760006114728383611ad7565b90506113b484826116dc565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000806114dc83610ce6565b9050801561164e576001600160a01b038316600090815260086020526040902054611508908290611b4f565b6001600160a01b038416600081815260086020526040908190209290925590517fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d906115579084815260200190565b60405180910390a260405163a9059cbb60e01b81526001600160a01b038481166004830152602482018390526000917f00000000000000000000000000000000000000000000000000000000000000009091169063a9059cbb906044016020604051808303816000875af11580156115d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115f79190611bc3565b905080611647576001600160a01b038416600090815260086020526040902054611622908390611ad7565b6001600160a01b03909416600090815260086020526040812094909455509192915050565b5092915050565b50600092915050565b60004282111561166957506000919050565b6011546116768342611ad7565b101592915050565b611688828261171a565b61169981600654610a2c9190611b16565b6001600160a01b0383166000908152600760205260409020546116bc9190611b8a565b6001600160a01b0390921660009081526007602052604090209190915550565b6116e682826117d9565b6116f781600654610a2c9190611b16565b6001600160a01b0383166000908152600760205260409020546116bc9190611b62565b6001600160a01b0382166117705760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610bef565b80600260008282546117829190611b4f565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0382166118395760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610bef565b6001600160a01b038216600090815260208190526040902054818110156118ad5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610bef565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600060208083528351808285015260005b818110156119385785810183015185820160400152820161191c565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461197057600080fd5b919050565b60006020828403121561198757600080fd5b610a5082611959565b600080604083850312156119a357600080fd5b6119ac83611959565b946020939093013593505050565b6000602082840312156119cc57600080fd5b5035919050565b6000806000606084860312156119e857600080fd5b6119f184611959565b92506119ff60208501611959565b9150604084013590509250925092565b80151581146108d957600080fd5b60008060408385031215611a3057600080fd5b611a3983611959565b91506020830135611a4981611a0f565b809150509250929050565b60008060408385031215611a6757600080fd5b611a7083611959565b9150611a7e60208401611959565b90509250929050565b600181811c90821680611a9b57607f821691505b602082108103611abb57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561083e5761083e611ac1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b808202811582820484141761083e5761083e611ac1565b600082611b4a57634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561083e5761083e611ac1565b8082018281126000831280158216821582161715611b8257611b82611ac1565b505092915050565b818103600083128015838313168383128216171561164757611647611ac1565b600060018201611bbc57611bbc611ac1565b5060010190565b600060208284031215611bd557600080fd5b8151610a5081611a0f56fea26469706673582212203f3a4ec7167526c1d6345172ad4b9e37edc26302ac6925198370895bfb964cc864736f6c63430008120033000000000000000000000000000000000000000043dacaf91c1a84ff08000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102745760003560e01c8063715018a611610151578063bc4c4b37116100c3578063e4fbaecb11610087578063e4fbaecb146105cf578063e7841ec0146105f6578063e98030c7146105fe578063f2fde38b14610611578063fbcbc0f114610624578063ffb2c4791461063757600080fd5b8063bc4c4b3714610561578063be10b61414610574578063c705c5691461057d578063dd62ed3e146105a9578063e30443bc146105bc57600080fd5b8063a3395cb411610115578063a3395cb4146104ec578063a457c2d7146104ff578063a8b9d24014610512578063a9059cbb14610525578063aafd847a14610538578063b1181e55146102cf57600080fd5b8063715018a6146104af57806385a6b3ae146104b75780638da5cb5b146104c057806391b89fba146104d157806395d89b41146104e457600080fd5b80633009a609116101ea5780635183d6fd116101ae5780635183d6fd146103e1578063556cafb0146104395780635ebf4db9146104625780636a474002146104755780636f2789ec1461047d57806370a082311461048657600080fd5b80633009a60914610380578063313ce5671461038957806331e79db01461039857806339509351146103ab5780634e7b827f146103be57600080fd5b806310a8c46b1161023c57806310a8c46b146102f45780631105e7401461031f57806318160ddd14610332578063226cfa3d1461033a57806323b872dd1461035a57806327ce01471461036d57600080fd5b806306fdde03146102795780630716c61114610297578063095ea7b3146102ac57806309bbedde146102cf5780630eb6a97f146102e1575b600080fd5b610281610665565b60405161028e919061190b565b60405180910390f35b6102aa6102a5366004611975565b6106f7565b005b6102bf6102ba366004611990565b61082a565b604051901515815260200161028e565b600a545b60405190815260200161028e565b6102aa6102ef3660046119ba565b610844565b6103076103023660046119ba565b6108dc565b6040516001600160a01b03909116815260200161028e565b6102aa61032d366004611990565b61090f565b6002546102d3565b6102d3610348366004611975565b60106020526000908152604090205481565b6102bf6103683660046119d3565b6109ce565b6102d361037b366004611975565b6109f2565b6102d3600e5481565b6040516012815260200161028e565b6102aa6103a6366004611975565b610a57565b6102bf6103b9366004611990565b610af3565b6102bf6103cc366004611975565b600f6020526000908152604090205460ff1681565b6103f46103ef3660046119ba565b610b15565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e08201526101000161028e565b6102d3610447366004611975565b6001600160a01b03166000908152600b602052604090205490565b6102aa6104703660046119ba565b610b82565b6102aa610b8f565b6102d360115481565b6102d3610494366004611975565b6001600160a01b031660009081526020819052604090205490565b6102aa610bfa565b6102d360095481565b6005546001600160a01b0316610307565b6102d36104df366004611975565b610c0c565b610281610c17565b6102d36104fa366004611975565b610c26565b6102bf61050d366004611990565b610c6b565b6102d3610520366004611975565b610ce6565b6102bf610533366004611990565b610d12565b6102d3610546366004611975565b6001600160a01b031660009081526008602052604090205490565b6102bf61056f366004611a1d565b610d20565b6102d360125481565b6102bf61058b366004611975565b6001600160a01b03166000908152600f602052604090205460ff1690565b6102d36105b7366004611a54565b610dab565b6102aa6105ca366004611990565b610dd6565b6103077f0000000000000000000000006982508145454ce325ddbe47a25d4ec3d231193381565b600e546102d3565b6102aa61060c3660046119ba565b610e44565b6102aa61061f366004611975565b610f49565b6103f4610632366004611975565b610fbf565b61064a6106453660046119ba565b6110a5565b6040805193845260208401929092529082015260600161028e565b60606003805461067490611a87565b80601f01602080910402602001604051908101604052809291908181526020018280546106a090611a87565b80156106ed5780601f106106c2576101008083540402835291602001916106ed565b820191906000526020600020905b8154815290600101906020018083116106d057829003601f168201915b5050505050905090565b6001600160a01b0381166000908152600d602052604090205460ff1661071a5750565b6001600160a01b0381166000908152600d60209081526040808320805460ff19169055600b8252808320839055600c909152812054600a5490919061076190600190611ad7565b90506000600a600001828154811061077b5761077b611aea565b60009182526020808320909101546001600160a01b03908116808452600c90925260408084208790559087168352822091909155600a80549192508291859081106107c8576107c8611aea565b600091825260209091200180546001600160a01b0319166001600160a01b0392909216919091179055600a80548061080257610802611b00565b600082815260209020810160001990810180546001600160a01b031916905501905550505050565b6000336108388185856111c2565b60019150505b92915050565b61084c6112e6565b600061085760025490565b1161086157600080fd5b80156108d957600254610878600160801b83611b16565b6108829190611b2d565b60065461088f9190611b4f565b60065560405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a2806009546108d59190611b4f565b6009555b50565b6000600a60000182815481106108f4576108f4611aea565b6000918252602090912001546001600160a01b031692915050565b6001600160a01b0382166000908152600d602052604090205460ff161561094d576001600160a01b03919091166000908152600b6020526040902055565b6001600160a01b0382166000818152600d60209081526040808320805460ff19166001908117909155600b8352818420869055600a8054600c909452918420839055820181559091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80180546001600160a01b03191690911790555b5050565b6000336109dc858285611340565b6109e78585856113ba565b506001949350505050565b6001600160a01b038116600090815260076020908152604080832054918390528220548291610a4091610a3190600654610a2c9190611b16565b611402565b610a3b9190611b62565b611412565b9050610a50600160801b82611b2d565b9392505050565b610a5f6112e6565b6001600160a01b0381166000908152600f602052604090205460ff1615610a8557600080fd5b6001600160a01b0381166000908152600f60205260408120805460ff19166001179055610ab3908290611425565b610abc816106f7565b6040516001600160a01b038216907fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b2590600090a250565b600033610838818585610b068383610dab565b610b109190611b4f565b6111c2565b600080600080600080600080610b2a600a5490565b8910610b4f575060009650600019955085945086935083925082915081905080610b77565b6000610b5a8a6108dc565b9050610b6581610fbf565b98509850985098509850985098509850505b919395975091939597565b610b8a6112e6565b601255565b60405162461bcd60e51b815260206004820152603360248201527f4469766964656e645f547261636b65723a20557365207468652027636c61696d6044820152721390333ab731ba34b7b71037b7103a37b5b2b760691b60648201526084015b60405180910390fd5b565b610c026112e6565b610bf8600061147e565b600061083e82610ce6565b60606004805461067490611a87565b6001600160a01b0381166000908152600d602052604081205460ff16610c4f5750600019919050565b506001600160a01b03166000908152600c602052604090205490565b60003381610c798286610dab565b905083811015610cd95760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610bef565b6109e782868684036111c2565b6001600160a01b038116600090815260086020526040812054610d08836109f2565b61083e9190611ad7565b6000336108388185856113ba565b6000610d2a6112e6565b6000610d35846114d0565b90508015610da1576001600160a01b038416600081815260106020526040908190204290555184151591907fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf09290610d8f9085815260200190565b60405180910390a3600191505061083e565b5060009392505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610dde6112e6565b6001600160a01b0382166000908152600f602052604090205460ff166109ca576012548110610e2057610e118282611425565b610e1b828261090f565b610e34565b610e2b826000611425565b610e34826106f7565b610e3f826001610d20565b505050565b610e4c6112e6565b610e108110158015610e615750620151808111155b610ec55760405162461bcd60e51b815260206004820152602f60248201527f5544414f5f4469765f547261636b65723a20636c61696d57616974203e3d203160448201526e206f72203c3d20323420686f75727360881b6064820152608401610bef565b6011548103610f165760405162461bcd60e51b815260206004820152601c60248201527f5544414f5f4469765f547261636b65723a2073616d652076616c7565000000006044820152606401610bef565b60115460405182907f474ea64804364a1e29a4487ddb63c3342a2dd826ccd8acf48825e680a0e6f20f90600090a3601155565b610f516112e6565b6001600160a01b038116610fb65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bef565b6108d98161147e565b806000808080808080610fd188610c26565b965060001995506000871261103357600e54871115610ffe57600e54610ff79088611b8a565b9550611033565b600e54600a5460009110611013576000611023565b600e54600a546110239190611ad7565b905061102f8189611b62565b9650505b61103c88610ce6565b9450611047886109f2565b6001600160a01b03891660009081526010602052604090205490945092508261107157600061107e565b60115461107e9084611b4f565b915042821161108e576000611098565b6110984283611ad7565b9050919395975091939597565b600a54600090819081908082036110c7575050600e54600092508291506111bb565b600e546000805a90506000805b89841080156110e257508582105b156111aa57846110f181611baa565b600a549096508610905061110457600094505b6000600a600001868154811061111c5761111c611aea565b60009182526020808320909101546001600160a01b0316808352601090915260409091205490915061114d90611657565b156111705761115d816001610d20565b15611170578161116c81611baa565b9250505b8261117a81611baa565b93505060005a9050808511156111a1576111948186611ad7565b61119e9087611b4f565b95505b93506110d49050565b600e85905590975095509193505050505b9193909250565b6001600160a01b0383166112245760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610bef565b6001600160a01b0382166112855760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610bef565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b03163314610bf85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610bef565b600061134c8484610dab565b905060001981146113b457818110156113a75760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610bef565b6113b484848484036111c2565b50505050565b60405162461bcd60e51b815260206004820152601e60248201527f4469766964656e645f547261636b65723a204e6f207472616e736665727300006044820152606401610bef565b6000818181121561083e57600080fd5b60008082121561142157600080fd5b5090565b6001600160a01b0382166000908152602081905260409020548082111561145e5760006114528284611ad7565b90506113b4848261167e565b80821015610e3f5760006114728383611ad7565b90506113b484826116dc565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000806114dc83610ce6565b9050801561164e576001600160a01b038316600090815260086020526040902054611508908290611b4f565b6001600160a01b038416600081815260086020526040908190209290925590517fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d906115579084815260200190565b60405180910390a260405163a9059cbb60e01b81526001600160a01b038481166004830152602482018390526000917f0000000000000000000000006982508145454ce325ddbe47a25d4ec3d23119339091169063a9059cbb906044016020604051808303816000875af11580156115d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115f79190611bc3565b905080611647576001600160a01b038416600090815260086020526040902054611622908390611ad7565b6001600160a01b03909416600090815260086020526040812094909455509192915050565b5092915050565b50600092915050565b60004282111561166957506000919050565b6011546116768342611ad7565b101592915050565b611688828261171a565b61169981600654610a2c9190611b16565b6001600160a01b0383166000908152600760205260409020546116bc9190611b8a565b6001600160a01b0390921660009081526007602052604090209190915550565b6116e682826117d9565b6116f781600654610a2c9190611b16565b6001600160a01b0383166000908152600760205260409020546116bc9190611b62565b6001600160a01b0382166117705760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610bef565b80600260008282546117829190611b4f565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0382166118395760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610bef565b6001600160a01b038216600090815260208190526040902054818110156118ad5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610bef565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600060208083528351808285015260005b818110156119385785810183015185820160400152820161191c565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461197057600080fd5b919050565b60006020828403121561198757600080fd5b610a5082611959565b600080604083850312156119a357600080fd5b6119ac83611959565b946020939093013593505050565b6000602082840312156119cc57600080fd5b5035919050565b6000806000606084860312156119e857600080fd5b6119f184611959565b92506119ff60208501611959565b9150604084013590509250925092565b80151581146108d957600080fd5b60008060408385031215611a3057600080fd5b611a3983611959565b91506020830135611a4981611a0f565b809150509250929050565b60008060408385031215611a6757600080fd5b611a7083611959565b9150611a7e60208401611959565b90509250929050565b600181811c90821680611a9b57607f821691505b602082108103611abb57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561083e5761083e611ac1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b808202811582820484141761083e5761083e611ac1565b600082611b4a57634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561083e5761083e611ac1565b8082018281126000831280158216821582161715611b8257611b82611ac1565b505092915050565b818103600083128015838313168383128216171561164757611647611ac1565b600060018201611bbc57611bbc611ac1565b5060010190565b600060208284031215611bd557600080fd5b8151610a5081611a0f56fea26469706673582212203f3a4ec7167526c1d6345172ad4b9e37edc26302ac6925198370895bfb964cc864736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000043dacaf91c1a84ff08000000
-----Decoded View---------------
Arg [0] : _minimumTokenBalanceForDividends (uint256): 21000000000000000000000000000
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000043dacaf91c1a84ff08000000
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.