ERC-20
Overview
Max Total Supply
73,384,375.379809568121323175 DUMPD
Holders
1,054
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
11,837.682405210047856168 DUMPDValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DumpDividends
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 2000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./utils/SafeMath.sol"; pragma solidity >=0.8.19; contract DividendPayingToken is ERC20 { 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 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; uint256 public totalDividendsDistributed; event DividendsDistributed(address user, uint256 amount); event DividendWithdrawn(address user, uint256 amount); constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol) {} /// @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 payable virtual { 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 { _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: 3000}(""); 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 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 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 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 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); } } } contract DumpDividends is DividendPayingToken, Ownable { using SafeMath for uint256; using SafeMathInt for int256; IERC20 token; mapping(address => bool) public excludedFromDividends; uint256 public closeTime; uint256 public constant claimGracePeriod = 60 days; event ExcludeFromDividends(address indexed account); event Claim(address indexed account, uint256 amount, bool indexed automatic); constructor() DividendPayingToken("Dump dividend token", "DUMPD") { token = IERC20(msg.sender); } bool noWarning; function _transfer(address, address, uint256) internal override { require(false, "No transfers allowed"); noWarning = noWarning; } function withdrawDividend() public override { require( false, "withdrawDividend disabled. Use the 'claim' function on the main token contract." ); noWarning = noWarning; } function claim(address account) external onlyOwner { require(closeTime == 0 || block.timestamp < closeTime + claimGracePeriod, "closed"); _withdrawDividendOfUser(payable(account)); } function excludeFromDividends(address account) external onlyOwner { excludedFromDividends[account] = true; _setBalance(account, 0); emit ExcludeFromDividends(account); } function getAccount( address _account ) public view returns (address account, uint256 withdrawableDividends, uint256 totalDividends) { account = _account; withdrawableDividends = withdrawableDividendOf(account); totalDividends = accumulativeDividendOf(account); } function updateBalance(address payable account) external { if (excludedFromDividends[account]) { return; } _setBalance(account, token.balanceOf(account)); } //If the dividend contract needs to be updated, we can close //this one, and let people claim for a month //After that is over, we can take the remaining funds and //use for the project function close() external onlyOwner { require(closeTime == 0, "Contract was already closed."); closeTime = block.timestamp; } //Only allows funds to be taken if contract has been closed for a month function collect() external onlyOwner { require( closeTime >= 0 && block.timestamp >= closeTime + claimGracePeriod, "Cannot collect yet." ); (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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.9.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]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * 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}. * * 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 default value returned by this function, unless * it's 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.9.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 (last updated v4.9.4) (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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.19; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; return c; } } /** * @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; } } /** * @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); } }
{ "optimizer": { "enabled": true, "runs": 2000 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
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":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DividendWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","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":"_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":[{"internalType":"address","name":"account","type":"address"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimGracePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"close","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"closeTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collect","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"_account","type":"address"}],"name":"getAccount","outputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"withdrawableDividends","type":"uint256"},{"internalType":"uint256","name":"totalDividends","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":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"address payable","name":"account","type":"address"}],"name":"updateBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawDividend","outputs":[],"stateMutability":"nonpayable","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
60806040523480156200001157600080fd5b506040518060400160405280601381526020017f44756d70206469766964656e6420746f6b656e0000000000000000000000000081525060405180604001604052806005815260200164111553541160da1b81525081818160039081620000799190620001ba565b506004620000888282620001ba565b5050505050620000a7620000a1620000bf60201b60201c565b620000c3565b600a80546001600160a01b0319163317905562000286565b3390565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200014057607f821691505b6020821081036200016157634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001b557600081815260208120601f850160051c81016020861015620001905750805b601f850160051c820191505b81811015620001b1578281556001016200019c565b5050505b505050565b81516001600160401b03811115620001d657620001d662000115565b620001ee81620001e784546200012b565b8462000167565b602080601f8311600181146200022657600084156200020d5750858301515b600019600386901b1c1916600185901b178555620001b1565b600085815260208120601f198616915b82811015620002575788860151825594840194600190910190840162000236565b5085821015620002765787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61195b80620002966000396000f3fe6080604052600436106101d15760003560e01c806370a08231116100f7578063a8b9d24011610095578063dd62ed3e11610064578063dd62ed3e1461051e578063e522538114610564578063f2fde38b14610579578063fbcbc0f11461059957600080fd5b8063a8b9d24014610491578063a9059cbb146104b1578063aafd847a146104d1578063c9e7cc131461050757600080fd5b80638da5cb5b116100d15780638da5cb5b1461041457806391b89fba1461043c57806395d89b411461045c578063a457c2d71461047157600080fd5b806370a08231146103b3578063715018a6146103e957806385a6b3ae146103fe57600080fd5b8063313ce5671161016f57806343d726d61161013e57806343d726d6146103435780634e7b827f14610358578063627749e6146103885780636a4740021461039e57600080fd5b8063313ce567146102c757806331e79db0146102e3578063395093511461030357806340b8405a1461032357600080fd5b806318160ddd116101ab57806318160ddd146102485780631e83409a1461026757806323b872dd1461028757806327ce0147146102a757600080fd5b806303c83302146101e557806306fdde03146101ed578063095ea7b31461021857600080fd5b366101e0576101de6105de565b005b600080fd5b6101de6105de565b3480156101f957600080fd5b50610202610681565b60405161020f91906116d1565b60405180910390f35b34801561022457600080fd5b50610238610233366004611752565b610713565b604051901515815260200161020f565b34801561025457600080fd5b506002545b60405190815260200161020f565b34801561027357600080fd5b506101de61028236600461177e565b61072d565b34801561029357600080fd5b506102386102a236600461179b565b6107b1565b3480156102b357600080fd5b506102596102c236600461177e565b6107d5565b3480156102d357600080fd5b506040516012815260200161020f565b3480156102ef57600080fd5b506101de6102fe36600461177e565b61083e565b34801561030f57600080fd5b5061023861031e366004611752565b6108c9565b34801561032f57600080fd5b506101de61033e36600461177e565b610908565b34801561034f57600080fd5b506101de6109c0565b34801561036457600080fd5b5061023861037336600461177e565b600b6020526000908152604090205460ff1681565b34801561039457600080fd5b50610259600c5481565b3480156103aa57600080fd5b506101de610a1e565b3480156103bf57600080fd5b506102596103ce36600461177e565b6001600160a01b031660009081526020819052604090205490565b3480156103f557600080fd5b506101de610ab2565b34801561040a57600080fd5b5061025960085481565b34801561042057600080fd5b506009546040516001600160a01b03909116815260200161020f565b34801561044857600080fd5b5061025961045736600461177e565b610ac4565b34801561046857600080fd5b50610202610acf565b34801561047d57600080fd5b5061023861048c366004611752565b610ade565b34801561049d57600080fd5b506102596104ac36600461177e565b610b88565b3480156104bd57600080fd5b506102386104cc366004611752565b610bb4565b3480156104dd57600080fd5b506102596104ec36600461177e565b6001600160a01b031660009081526007602052604090205490565b34801561051357600080fd5b50610259624f1a0081565b34801561052a57600080fd5b506102596105393660046117dc565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561057057600080fd5b506101de610bc2565b34801561058557600080fd5b506101de61059436600461177e565b610c7f565b3480156105a557600080fd5b506105b96105b436600461177e565b610d0c565b604080516001600160a01b03909416845260208401929092529082015260600161020f565b60006105e960025490565b116105f357600080fd5b341561067f5761063361060560025490565b61062034700100000000000000000000000000000000610d2c565b61062a919061182b565b60055490610dd1565b600555604080513381523460208201527fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d78454116511910160405180910390a160085461067b9034610dd1565b6008555b565b6060600380546106909061184d565b80601f01602080910402602001604051908101604052809291908181526020018280546106bc9061184d565b80156107095780601f106106de57610100808354040283529160200191610709565b820191906000526020600020905b8154815290600101906020018083116106ec57829003601f168201915b5050505050905090565b600033610721818585610e30565b60019150505b92915050565b610735610f88565b600c5415806107535750624f1a00600c546107509190611887565b42105b6107a45760405162461bcd60e51b815260206004820152600660248201527f636c6f736564000000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b6107ad81610fe2565b5050565b6000336107bf858285611127565b6107ca8585856111d7565b506001949350505050565b6001600160a01b03811660009081526006602090815260408083205491839052822054600554700100000000000000000000000000000000926108349261082f92610829916108249190610d2c565b61121f565b9061122f565b61126d565b610727919061182b565b610846610f88565b6001600160a01b0381166000908152600b6020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055610892908290611280565b6040516001600160a01b038216907fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b2590600090a250565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906107219082908690610903908790611887565b610e30565b6001600160a01b0381166000908152600b602052604090205460ff161561092c5750565b600a546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b0380841660048301526109bd9284929116906370a0823190602401602060405180830381865afa158015610994573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b8919061189a565b611280565b50565b6109c8610f88565b600c5415610a185760405162461bcd60e51b815260206004820152601c60248201527f436f6e74726163742077617320616c726561647920636c6f7365642e00000000604482015260640161079b565b42600c55565b60405162461bcd60e51b815260206004820152604f60248201527f77697468647261774469766964656e642064697361626c65642e20557365207460448201527f68652027636c61696d272066756e6374696f6e206f6e20746865206d61696e2060648201527f746f6b656e20636f6e74726163742e0000000000000000000000000000000000608482015260a40161079b565b610aba610f88565b61067f60006112de565b600061072782610b88565b6060600480546106909061184d565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610b7b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161079b565b6107ca8286868403610e30565b6001600160a01b03811660009081526007602052604081205461072790610bae846107d5565b90611348565b6000336107218185856111d7565b610bca610f88565b624f1a00600c54610bdb9190611887565b421015610c2a5760405162461bcd60e51b815260206004820152601360248201527f43616e6e6f7420636f6c6c656374207965742e00000000000000000000000000604482015260640161079b565b604051600090339047908381818185875af1925050503d8060008114610c6c576040519150601f19603f3d011682016040523d82523d6000602084013e610c71565b606091505b50509050806109bd57600080fd5b610c87610f88565b6001600160a01b038116610d035760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161079b565b6109bd816112de565b80600080610d1983610b88565b9150610d24836107d5565b929491935050565b600082600003610d3e57506000610727565b6000610d4a83856118b3565b905082610d57858361182b565b14610dca5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60448201527f7700000000000000000000000000000000000000000000000000000000000000606482015260840161079b565b9392505050565b600080610dde8385611887565b905083811015610dca5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015260640161079b565b6001600160a01b038316610eab5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161079b565b6001600160a01b038216610f275760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161079b565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6009546001600160a01b0316331461067f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161079b565b600080610fee83610b88565b9050801561111e576001600160a01b0383166000908152600760205260409020546110199082610dd1565b6001600160a01b0384166000818152600760209081526040918290209390935580519182529181018390527fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d910160405180910390a16000836001600160a01b031682610bb890604051600060405180830381858888f193505050503d80600081146110c1576040519150601f19603f3d011682016040523d82523d6000602084013e6110c6565b606091505b5050905080611117576001600160a01b0384166000908152600760205260409020546110f29083611348565b6001600160a01b03909416600090815260076020526040812094909455509192915050565b5092915050565b50600092915050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146111d157818110156111c45760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161079b565b6111d18484848403610e30565b50505050565b60405162461bcd60e51b815260206004820152601460248201527f4e6f207472616e736665727320616c6c6f776564000000000000000000000000604482015260640161079b565b6000818181121561072757600080fd5b60008061123c83856118ca565b90506000831215801561124f5750838112155b80611264575060008312801561126457508381125b610dca57600080fd5b60008082121561127c57600080fd5b5090565b6001600160a01b038216600090815260208190526040902054808211156112b95760006112ad8383611348565b90506111d1848261138a565b808210156112d95760006112cd8284611348565b90506111d184826113ee565b505050565b600980546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000610dca83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611432565b611394828261146c565b6113ce6113af61082483600554610d2c90919063ffffffff16565b6001600160a01b0384166000908152600660205260409020549061152b565b6001600160a01b0390921660009081526006602052604090209190915550565b6113f88282611568565b6113ce61141361082483600554610d2c90919063ffffffff16565b6001600160a01b0384166000908152600660205260409020549061122f565b600081848411156114565760405162461bcd60e51b815260040161079b91906116d1565b50600061146384866118f2565b95945050505050565b6001600160a01b0382166114c25760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161079b565b80600260008282546114d49190611887565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6000806115388385611905565b90506000831215801561154b5750838113155b8061126457506000831280156112645750838113610dca57600080fd5b6001600160a01b0382166115e45760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161079b565b6001600160a01b038216600090815260208190526040902054818110156116735760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f6365000000000000000000000000000000000000000000000000000000000000606482015260840161079b565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600060208083528351808285015260005b818110156116fe578581018301518582016040015282016116e2565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b6001600160a01b03811681146109bd57600080fd5b6000806040838503121561176557600080fd5b82356117708161173d565b946020939093013593505050565b60006020828403121561179057600080fd5b8135610dca8161173d565b6000806000606084860312156117b057600080fd5b83356117bb8161173d565b925060208401356117cb8161173d565b929592945050506040919091013590565b600080604083850312156117ef57600080fd5b82356117fa8161173d565b9150602083013561180a8161173d565b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b60008261184857634e487b7160e01b600052601260045260246000fd5b500490565b600181811c9082168061186157607f821691505b60208210810361188157634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561072757610727611815565b6000602082840312156118ac57600080fd5b5051919050565b808202811582820484141761072757610727611815565b80820182811260008312801582168215821617156118ea576118ea611815565b505092915050565b8181038181111561072757610727611815565b81810360008312801583831316838312821617156111175761111761181556fea26469706673582212205918168b9a5391f305689cbb66d491ae5fa042b51033e6788ffd595211750bbb64736f6c63430008140033
Deployed Bytecode
0x6080604052600436106101d15760003560e01c806370a08231116100f7578063a8b9d24011610095578063dd62ed3e11610064578063dd62ed3e1461051e578063e522538114610564578063f2fde38b14610579578063fbcbc0f11461059957600080fd5b8063a8b9d24014610491578063a9059cbb146104b1578063aafd847a146104d1578063c9e7cc131461050757600080fd5b80638da5cb5b116100d15780638da5cb5b1461041457806391b89fba1461043c57806395d89b411461045c578063a457c2d71461047157600080fd5b806370a08231146103b3578063715018a6146103e957806385a6b3ae146103fe57600080fd5b8063313ce5671161016f57806343d726d61161013e57806343d726d6146103435780634e7b827f14610358578063627749e6146103885780636a4740021461039e57600080fd5b8063313ce567146102c757806331e79db0146102e3578063395093511461030357806340b8405a1461032357600080fd5b806318160ddd116101ab57806318160ddd146102485780631e83409a1461026757806323b872dd1461028757806327ce0147146102a757600080fd5b806303c83302146101e557806306fdde03146101ed578063095ea7b31461021857600080fd5b366101e0576101de6105de565b005b600080fd5b6101de6105de565b3480156101f957600080fd5b50610202610681565b60405161020f91906116d1565b60405180910390f35b34801561022457600080fd5b50610238610233366004611752565b610713565b604051901515815260200161020f565b34801561025457600080fd5b506002545b60405190815260200161020f565b34801561027357600080fd5b506101de61028236600461177e565b61072d565b34801561029357600080fd5b506102386102a236600461179b565b6107b1565b3480156102b357600080fd5b506102596102c236600461177e565b6107d5565b3480156102d357600080fd5b506040516012815260200161020f565b3480156102ef57600080fd5b506101de6102fe36600461177e565b61083e565b34801561030f57600080fd5b5061023861031e366004611752565b6108c9565b34801561032f57600080fd5b506101de61033e36600461177e565b610908565b34801561034f57600080fd5b506101de6109c0565b34801561036457600080fd5b5061023861037336600461177e565b600b6020526000908152604090205460ff1681565b34801561039457600080fd5b50610259600c5481565b3480156103aa57600080fd5b506101de610a1e565b3480156103bf57600080fd5b506102596103ce36600461177e565b6001600160a01b031660009081526020819052604090205490565b3480156103f557600080fd5b506101de610ab2565b34801561040a57600080fd5b5061025960085481565b34801561042057600080fd5b506009546040516001600160a01b03909116815260200161020f565b34801561044857600080fd5b5061025961045736600461177e565b610ac4565b34801561046857600080fd5b50610202610acf565b34801561047d57600080fd5b5061023861048c366004611752565b610ade565b34801561049d57600080fd5b506102596104ac36600461177e565b610b88565b3480156104bd57600080fd5b506102386104cc366004611752565b610bb4565b3480156104dd57600080fd5b506102596104ec36600461177e565b6001600160a01b031660009081526007602052604090205490565b34801561051357600080fd5b50610259624f1a0081565b34801561052a57600080fd5b506102596105393660046117dc565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561057057600080fd5b506101de610bc2565b34801561058557600080fd5b506101de61059436600461177e565b610c7f565b3480156105a557600080fd5b506105b96105b436600461177e565b610d0c565b604080516001600160a01b03909416845260208401929092529082015260600161020f565b60006105e960025490565b116105f357600080fd5b341561067f5761063361060560025490565b61062034700100000000000000000000000000000000610d2c565b61062a919061182b565b60055490610dd1565b600555604080513381523460208201527fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d78454116511910160405180910390a160085461067b9034610dd1565b6008555b565b6060600380546106909061184d565b80601f01602080910402602001604051908101604052809291908181526020018280546106bc9061184d565b80156107095780601f106106de57610100808354040283529160200191610709565b820191906000526020600020905b8154815290600101906020018083116106ec57829003601f168201915b5050505050905090565b600033610721818585610e30565b60019150505b92915050565b610735610f88565b600c5415806107535750624f1a00600c546107509190611887565b42105b6107a45760405162461bcd60e51b815260206004820152600660248201527f636c6f736564000000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b6107ad81610fe2565b5050565b6000336107bf858285611127565b6107ca8585856111d7565b506001949350505050565b6001600160a01b03811660009081526006602090815260408083205491839052822054600554700100000000000000000000000000000000926108349261082f92610829916108249190610d2c565b61121f565b9061122f565b61126d565b610727919061182b565b610846610f88565b6001600160a01b0381166000908152600b6020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055610892908290611280565b6040516001600160a01b038216907fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b2590600090a250565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906107219082908690610903908790611887565b610e30565b6001600160a01b0381166000908152600b602052604090205460ff161561092c5750565b600a546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b0380841660048301526109bd9284929116906370a0823190602401602060405180830381865afa158015610994573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b8919061189a565b611280565b50565b6109c8610f88565b600c5415610a185760405162461bcd60e51b815260206004820152601c60248201527f436f6e74726163742077617320616c726561647920636c6f7365642e00000000604482015260640161079b565b42600c55565b60405162461bcd60e51b815260206004820152604f60248201527f77697468647261774469766964656e642064697361626c65642e20557365207460448201527f68652027636c61696d272066756e6374696f6e206f6e20746865206d61696e2060648201527f746f6b656e20636f6e74726163742e0000000000000000000000000000000000608482015260a40161079b565b610aba610f88565b61067f60006112de565b600061072782610b88565b6060600480546106909061184d565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610b7b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161079b565b6107ca8286868403610e30565b6001600160a01b03811660009081526007602052604081205461072790610bae846107d5565b90611348565b6000336107218185856111d7565b610bca610f88565b624f1a00600c54610bdb9190611887565b421015610c2a5760405162461bcd60e51b815260206004820152601360248201527f43616e6e6f7420636f6c6c656374207965742e00000000000000000000000000604482015260640161079b565b604051600090339047908381818185875af1925050503d8060008114610c6c576040519150601f19603f3d011682016040523d82523d6000602084013e610c71565b606091505b50509050806109bd57600080fd5b610c87610f88565b6001600160a01b038116610d035760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161079b565b6109bd816112de565b80600080610d1983610b88565b9150610d24836107d5565b929491935050565b600082600003610d3e57506000610727565b6000610d4a83856118b3565b905082610d57858361182b565b14610dca5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60448201527f7700000000000000000000000000000000000000000000000000000000000000606482015260840161079b565b9392505050565b600080610dde8385611887565b905083811015610dca5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015260640161079b565b6001600160a01b038316610eab5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161079b565b6001600160a01b038216610f275760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161079b565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6009546001600160a01b0316331461067f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161079b565b600080610fee83610b88565b9050801561111e576001600160a01b0383166000908152600760205260409020546110199082610dd1565b6001600160a01b0384166000818152600760209081526040918290209390935580519182529181018390527fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d910160405180910390a16000836001600160a01b031682610bb890604051600060405180830381858888f193505050503d80600081146110c1576040519150601f19603f3d011682016040523d82523d6000602084013e6110c6565b606091505b5050905080611117576001600160a01b0384166000908152600760205260409020546110f29083611348565b6001600160a01b03909416600090815260076020526040812094909455509192915050565b5092915050565b50600092915050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146111d157818110156111c45760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161079b565b6111d18484848403610e30565b50505050565b60405162461bcd60e51b815260206004820152601460248201527f4e6f207472616e736665727320616c6c6f776564000000000000000000000000604482015260640161079b565b6000818181121561072757600080fd5b60008061123c83856118ca565b90506000831215801561124f5750838112155b80611264575060008312801561126457508381125b610dca57600080fd5b60008082121561127c57600080fd5b5090565b6001600160a01b038216600090815260208190526040902054808211156112b95760006112ad8383611348565b90506111d1848261138a565b808210156112d95760006112cd8284611348565b90506111d184826113ee565b505050565b600980546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000610dca83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611432565b611394828261146c565b6113ce6113af61082483600554610d2c90919063ffffffff16565b6001600160a01b0384166000908152600660205260409020549061152b565b6001600160a01b0390921660009081526006602052604090209190915550565b6113f88282611568565b6113ce61141361082483600554610d2c90919063ffffffff16565b6001600160a01b0384166000908152600660205260409020549061122f565b600081848411156114565760405162461bcd60e51b815260040161079b91906116d1565b50600061146384866118f2565b95945050505050565b6001600160a01b0382166114c25760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161079b565b80600260008282546114d49190611887565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6000806115388385611905565b90506000831215801561154b5750838113155b8061126457506000831280156112645750838113610dca57600080fd5b6001600160a01b0382166115e45760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161079b565b6001600160a01b038216600090815260208190526040902054818110156116735760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f6365000000000000000000000000000000000000000000000000000000000000606482015260840161079b565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600060208083528351808285015260005b818110156116fe578581018301518582016040015282016116e2565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b6001600160a01b03811681146109bd57600080fd5b6000806040838503121561176557600080fd5b82356117708161173d565b946020939093013593505050565b60006020828403121561179057600080fd5b8135610dca8161173d565b6000806000606084860312156117b057600080fd5b83356117bb8161173d565b925060208401356117cb8161173d565b929592945050506040919091013590565b600080604083850312156117ef57600080fd5b82356117fa8161173d565b9150602083013561180a8161173d565b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b60008261184857634e487b7160e01b600052601260045260246000fd5b500490565b600181811c9082168061186157607f821691505b60208210810361188157634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561072757610727611815565b6000602082840312156118ac57600080fd5b5051919050565b808202811582820484141761072757610727611815565b80820182811260008312801582168215821617156118ea576118ea611815565b505092915050565b8181038181111561072757610727611815565b81810360008312801583831316838312821617156111175761111761181556fea26469706673582212205918168b9a5391f305689cbb66d491ae5fa042b51033e6788ffd595211750bbb64736f6c63430008140033
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.