Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
36,236,948.037487502236986741 TRKR_AFTRBCK
Holders
86
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
25,645.523254650610808138 TRKR_AFTRBCKValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
AfterBackDividendTracker
Compiler Version
v0.8.4+commit.c7e474f2
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.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./DividendPayingToken.sol"; import "./DividendPayingTokenInterface.sol"; import "./DividendPayingTokenOptionalInterface.sol"; import "./SafeMathInt.sol"; import "./IterableMapping.sol"; contract AfterBackDividendTracker is DividendPayingToken, Ownable { using SafeMath for uint256; using SafeMathInt for int256; using IterableMapping for IterableMapping.Map; IterableMapping.Map private tokenHoldersMap; uint256 public lastProcessedIndex; mapping (address => bool) public excludedFromDividends; mapping (address => uint256) public lastClaimTimes; uint256 public claimWait; uint256 public immutable minimumTokenBalanceForDividends; event ExcludeFromDividends(address indexed account); event ClaimWaitUpdated(uint256 indexed newValue, uint256 indexed oldValue); event Claim(address indexed account, uint256 amount, bool indexed automatic); constructor() DividendPayingToken("Track AFTRBCK", "TRKR_AFTRBCK") { claimWait = 3600; minimumTokenBalanceForDividends = 10000 * (10**18); } function _transfer(address, address, uint256) internal override pure { require(false, "AFTRBCK_TRKR: No transfers allowed"); } function withdrawDividend() public override pure { require(false, "AFTRBCK_TRKR: withdrawDividend disabled. Use the 'claim' function on the main AfterBack contract."); } function excludeFromDividends(address account) external onlyOwner { require(!excludedFromDividends[account]); excludedFromDividends[account] = true; _setBalance(account, 0); tokenHoldersMap.remove(account); emit ExcludeFromDividends(account); } function updateClaimWait(uint256 newClaimWait) external onlyOwner { require(newClaimWait >= 3600 && newClaimWait <= 86400, "AFTRBCK_TRKR: claimWait must be updated to between 1 and 24 hours"); require(newClaimWait != claimWait, "AFTRBCK_TRKR: Cannot update claimWait to same value"); emit ClaimWaitUpdated(newClaimWait, claimWait); claimWait = newClaimWait; } function getLastProcessedIndex() external view returns(uint256) { return lastProcessedIndex; } function getNumberOfTokenHolders() external view returns(uint256) { return tokenHoldersMap.keys.length; } function getAccount(address _account) public view returns ( address account, int256 index, int256 iterationsUntilProcessed, uint256 withdrawableDividends, uint256 totalDividends, uint256 lastClaimTime, uint256 nextClaimTime, uint256 secondsUntilAutoClaimAvailable) { account = _account; index = tokenHoldersMap.getIndexOfKey(account); iterationsUntilProcessed = -1; if(index >= 0) { if(uint256(index) > lastProcessedIndex) { iterationsUntilProcessed = index.sub(int256(lastProcessedIndex)); } else { uint256 processesUntilEndOfArray = tokenHoldersMap.keys.length > lastProcessedIndex ? tokenHoldersMap.keys.length.sub(lastProcessedIndex) : 0; iterationsUntilProcessed = index.add(int256(processesUntilEndOfArray)); } } withdrawableDividends = withdrawableDividendOf(account); totalDividends = accumulativeDividendOf(account); lastClaimTime = lastClaimTimes[account]; nextClaimTime = lastClaimTime > 0 ? lastClaimTime.add(claimWait) : 0; secondsUntilAutoClaimAvailable = nextClaimTime > block.timestamp ? nextClaimTime.sub(block.timestamp) : 0; } function getAccountAtIndex(uint256 index) public view returns ( address, int256, int256, uint256, uint256, uint256, uint256, uint256) { if(index >= tokenHoldersMap.size()) { return (0x0000000000000000000000000000000000000000, -1, -1, 0, 0, 0, 0, 0); } address account = tokenHoldersMap.getKeyAtIndex(index); return getAccount(account); } function canAutoClaim(uint256 lastClaimTime) private view returns (bool) { if(lastClaimTime > block.timestamp) { return false; } return block.timestamp.sub(lastClaimTime) >= claimWait; } function setBalance(address payable account, uint256 newBalance) external onlyOwner { if(excludedFromDividends[account]) { return; } if(newBalance >= minimumTokenBalanceForDividends) { _setBalance(account, newBalance); tokenHoldersMap.set(account, newBalance); } else { _setBalance(account, 0); tokenHoldersMap.remove(account); } processAccount(account, true); } function process(uint256 gas) public returns (uint256, uint256, uint256) { uint256 numberOfTokenHolders = tokenHoldersMap.keys.length; if(numberOfTokenHolders == 0) { return (0, 0, lastProcessedIndex); } uint256 _lastProcessedIndex = lastProcessedIndex; uint256 gasUsed = 0; uint256 gasLeft = gasleft(); uint256 iterations = 0; uint256 claims = 0; while(gasUsed < gas && iterations < numberOfTokenHolders) { _lastProcessedIndex++; if(_lastProcessedIndex >= tokenHoldersMap.keys.length) { _lastProcessedIndex = 0; } address account = tokenHoldersMap.keys[_lastProcessedIndex]; if(canAutoClaim(lastClaimTimes[account])) { if(processAccount(payable(account), true)) { claims++; } } iterations++; uint256 newGasLeft = gasleft(); if(gasLeft > newGasLeft) { gasUsed = gasUsed.add(gasLeft.sub(newGasLeft)); } gasLeft = newGasLeft; } lastProcessedIndex = _lastProcessedIndex; return (iterations, claims, lastProcessedIndex); } function processAccount(address payable account, bool automatic) public onlyOwner returns (bool) { uint256 amount = _withdrawDividendOfUser(account); if(amount > 0) { lastClaimTimes[account] = block.timestamp; emit Claim(account, amount, automatic); return true; } return false; } }
// SPDX-License-Identifier: MIT 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() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./SafeMathInt.sol"; import "./SafeMathUint.sol"; import "./DividendPayingTokenInterface.sol"; import "./DividendPayingTokenOptionalInterface.sol"; /// @title Dividend-Paying Token /// @author Roger Wu (https://github.com/roger-wu) /// @dev A mintable ERC20 token that allows anyone to pay and distribute ether /// to token holders as dividends and allows token holders to withdraw their dividends. contract DividendPayingToken is ERC20, DividendPayingTokenInterface, DividendPayingTokenOptionalInterface { using SafeMath for uint256; using SafeMathUint for uint256; using SafeMathInt for int256; // With `magnitude`, we can properly distribute dividends even if the amount of received ether is small. // For more discussion about choosing the value of `magnitude`, // see https://github.com/ethereum/EIPs/issues/1726#issuecomment-472352728 uint256 constant internal magnitude = 2**128; uint256 internal magnifiedDividendPerShare; // About dividendCorrection: // If the token balance of a `_user` is never changed, the dividend of `_user` can be computed with: // `dividendOf(_user) = dividendPerShare * balanceOf(_user)`. // When `balanceOf(_user)` is changed (via minting/burning/transferring tokens), // `dividendOf(_user)` should not be changed, // but the computed value of `dividendPerShare * balanceOf(_user)` is changed. // To keep the `dividendOf(_user)` unchanged, we add a correction term: // `dividendOf(_user) = dividendPerShare * balanceOf(_user) + dividendCorrectionOf(_user)`, // where `dividendCorrectionOf(_user)` is updated whenever `balanceOf(_user)` is changed: // `dividendCorrectionOf(_user) = dividendPerShare * (old balanceOf(_user)) - (new balanceOf(_user))`. // So now `dividendOf(_user)` returns the same value before and after `balanceOf(_user)` is changed. mapping(address => int256) internal magnifiedDividendCorrections; mapping(address => uint256) internal withdrawnDividends; uint256 public totalDividendsDistributed; 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 override payable { require(totalSupply() > 0); if (msg.value > 0) { magnifiedDividendPerShare = magnifiedDividendPerShare.add( (msg.value).mul(magnitude) / totalSupply() ); emit DividendsDistributed(msg.sender, msg.value); totalDividendsDistributed = totalDividendsDistributed.add(msg.value); } } /// @notice Withdraws the ether distributed to the sender. /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0. function withdrawDividend() public virtual override { _withdrawDividendOfUser(payable(msg.sender)); } /// @notice Withdraws the ether distributed to the sender. /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0. function _withdrawDividendOfUser(address payable user) internal returns (uint256) { uint256 _withdrawableDividend = withdrawableDividendOf(user); if (_withdrawableDividend > 0) { withdrawnDividends[user] = withdrawnDividends[user].add(_withdrawableDividend); emit DividendWithdrawn(user, _withdrawableDividend); (bool success,) = user.call{value: _withdrawableDividend, gas: 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 override returns(uint256) { return withdrawableDividendOf(_owner); } /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function withdrawableDividendOf(address _owner) public view override returns(uint256) { return accumulativeDividendOf(_owner).sub(withdrawnDividends[_owner]); } /// @notice View the amount of dividend in wei that an address has withdrawn. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has withdrawn. function withdrawnDividendOf(address _owner) public view override returns(uint256) { return withdrawnDividends[_owner]; } /// @notice View the amount of dividend in wei that an address has earned in total. /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner) /// = (magnifiedDividendPerShare * balanceOf(_owner) + magnifiedDividendCorrections[_owner]) / magnitude /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has earned in total. function accumulativeDividendOf(address _owner) public view override returns(uint256) { return magnifiedDividendPerShare.mul(balanceOf(_owner)).toInt256Safe() .add(magnifiedDividendCorrections[_owner]).toUint256Safe() / magnitude; } /// @dev Internal function that transfer tokens from one address to another. /// Update magnifiedDividendCorrections to keep dividends unchanged. /// @param from The address to transfer from. /// @param to The address to transfer to. /// @param value The amount to be transferred. // TODO: is this needed? // function _transfer(address from, address to, uint256 value) internal virtual override { // require(false); // } /// @dev Internal function that mints tokens to an account. /// Update magnifiedDividendCorrections to keep dividends unchanged. /// @param account The account that will receive the created tokens. /// @param value The amount that will be created. function _mint(address account, uint256 value) internal override { super._mint(account, value); magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account] .sub( (magnifiedDividendPerShare.mul(value)).toInt256Safe() ); } /// @dev Internal function that burns an amount of the token of a given account. /// Update magnifiedDividendCorrections to keep dividends unchanged. /// @param account The account whose tokens will be burnt. /// @param value The amount that will be burnt. function _burn(address account, uint256 value) internal override { super._burn(account, value); magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account] .add( (magnifiedDividendPerShare.mul(value)).toInt256Safe() ); } function _setBalance(address account, uint256 newBalance) internal { uint256 currentBalance = balanceOf(account); if(newBalance > currentBalance) { uint256 mintAmount = newBalance.sub(currentBalance); _mint(account, mintAmount); } else if(newBalance < currentBalance) { uint256 burnAmount = currentBalance.sub(newBalance); _burn(account, burnAmount); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /// @title Dividend-Paying Token Interface /// @author Roger Wu (https://github.com/roger-wu) /// @dev An interface for a dividend-paying token contract. interface DividendPayingTokenInterface { /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function dividendOf(address _owner) external view returns(uint256); /// @notice Distributes ether to token holders as dividends. /// @dev SHOULD distribute the paid ether to token holders as dividends. /// SHOULD NOT directly transfer ether to token holders in this function. /// MUST emit a `DividendsDistributed` event when the amount of distributed ether is greater than 0. function distributeDividends() external payable; /// @notice Withdraws the ether distributed to the sender. /// @dev SHOULD transfer `dividendOf(msg.sender)` wei to `msg.sender`, and `dividendOf(msg.sender)` SHOULD be 0 after the transfer. /// MUST emit a `DividendWithdrawn` event if the amount of ether transferred is greater than 0. function withdrawDividend() external; /// @dev This event MUST emit when ether is distributed to token holders. /// @param from The address which sends ether to this contract. /// @param weiAmount The amount of distributed ether in wei. event DividendsDistributed( address indexed from, uint256 weiAmount ); /// @dev This event MUST emit when an address withdraws their dividend. /// @param to The address which withdraws ether from this contract. /// @param weiAmount The amount of withdrawn ether in wei. event DividendWithdrawn( address indexed to, uint256 weiAmount ); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /// @title Dividend-Paying Token Optional Interface /// @author Roger Wu (https://github.com/roger-wu) /// @dev OPTIONAL functions for a dividend-paying token contract. interface DividendPayingTokenOptionalInterface { /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function withdrawableDividendOf(address _owner) external view returns(uint256); /// @notice View the amount of dividend in wei that an address has withdrawn. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has withdrawn. function withdrawnDividendOf(address _owner) external view returns(uint256); /// @notice View the amount of dividend in wei that an address has earned in total. /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner) /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has earned in total. function accumulativeDividendOf(address _owner) external view returns(uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /** * @title SafeMathInt * @dev Math operations for int256 with overflow safety checks. */ library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256 c = a * b; // Detect overflow when multiplying MIN_INT256 with -1 require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256)); require((b == 0) || (c / b == a)); return c; } /** * @dev Division of two int256 variables and fails on overflow. */ function div(int256 a, int256 b) internal pure returns (int256) { // Prevent overflow when dividing MIN_INT256 by -1 require(b != -1 || a != MIN_INT256); // Solidity already throws when dividing by 0. return a / b; } /** * @dev Subtracts two int256 variables and fails on overflow. */ function sub(int256 a, int256 b) internal pure returns (int256) { int256 c = a - b; require((b >= 0 && c <= a) || (b < 0 && c > a)); return c; } /** * @dev Adds two int256 variables and fails on overflow. */ function add(int256 a, int256 b) internal pure returns (int256) { int256 c = a + b; require((b >= 0 && c >= a) || (b < 0 && c < a)); return c; } /** * @dev Converts to absolute value, and fails on overflow. */ function abs(int256 a) internal pure returns (int256) { require(a != MIN_INT256); return a < 0 ? -a : a; } function toUint256Safe(int256 a) internal pure returns (uint256) { require(a >= 0); return uint256(a); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; library IterableMapping { // Iterable mapping from address to uint; struct Map { address[] keys; mapping(address => uint) values; mapping(address => uint) indexOf; mapping(address => bool) inserted; } function get(Map storage map, address key) public view returns (uint) { return map.values[key]; } function getIndexOfKey(Map storage map, address key) public view returns (int) { if(!map.inserted[key]) { return -1; } return int(map.indexOf[key]); } function getKeyAtIndex(Map storage map, uint index) public view returns (address) { return map.keys[index]; } function size(Map storage map) public view returns (uint) { return map.keys.length; } function set(Map storage map, address key, uint val) public { if (map.inserted[key]) { map.values[key] = val; } else { map.inserted[key] = true; map.values[key] = val; map.indexOf[key] = map.keys.length; map.keys.push(key); } } function remove(Map storage map, address key) public { if (!map.inserted[key]) { return; } delete map.inserted[key]; delete map.values[key]; uint index = map.indexOf[key]; uint lastIndex = map.keys.length - 1; address lastKey = map.keys[lastIndex]; map.indexOf[lastKey] = index; delete map.indexOf[key]; map.keys[index] = lastKey; map.keys.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.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; 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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - 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) { _approve(_msgSender(), spender, _allowances[_msgSender()][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) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * 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: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _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; } _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 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 pragma solidity ^0.8.4; /** * @title SafeMathUint * @dev Math operations with safety checks that revert on error */ library SafeMathUint { function toInt256Safe(uint256 a) internal pure returns (int256) { int256 b = int256(a); require(b >= 0); return b; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": { "contracts/AfterBackDividendTracker/IterableMapping.sol": { "IterableMapping": "0x9a151f3a3f2d9af6974845f7b3df6944b7d38e7a" } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"bool","name":"automatic","type":"bool"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"oldValue","type":"uint256"}],"name":"ClaimWaitUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"DividendWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"DividendsDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"ExcludeFromDividends","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"accumulativeDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimWait","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributeDividends","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"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":"","type":"address"}],"name":"lastClaimTimes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastProcessedIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumTokenBalanceForDividends","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gas","type":"uint256"}],"name":"process","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"bool","name":"automatic","type":"bool"}],"name":"processAccount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"setBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDividendsDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newClaimWait","type":"uint256"}],"name":"updateClaimWait","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawDividend","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"withdrawableDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"withdrawnDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a06040523480156200001157600080fd5b50604080518082018252600d81526c547261636b204146545242434b60981b60208083019182528351808501909452600c84526b54524b525f4146545242434b60a01b908401528151919291839183916200006f9160039162000114565b5080516200008590600490602084019062000114565b5050505050620000a46200009e620000be60201b60201c565b620000c2565b610e1060115569021e19e0c9bab2400000608052620001f7565b3390565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200012290620001ba565b90600052602060002090601f01602090048101928262000146576000855562000191565b82601f106200016157805160ff191683800117855562000191565b8280016001018555821562000191579182015b828111156200019157825182559160200191906001019062000174565b506200019f929150620001a3565b5090565b5b808211156200019f5760008155600101620001a4565b600181811c90821680620001cf57607f821691505b60208210811415620001f157634e487b7160e01b600052602260045260246000fd5b50919050565b608051611f866200021a600039600081816105d80152610ee90152611f866000f3fe6080604052600436106102085760003560e01c8063715018a611610118578063bc4c4b37116100a0578063e7841ec01161006f578063e7841ec014610660578063e98030c714610675578063f2fde38b14610695578063fbcbc0f1146106b5578063ffb2c479146106d557600080fd5b8063bc4c4b37146105a6578063be10b614146105c6578063dd62ed3e146105fa578063e30443bc1461064057600080fd5b806395d89b41116100e757806395d89b41146104fb578063a457c2d714610510578063a8b9d24014610530578063a9059cbb14610550578063aafd847a1461057057600080fd5b8063715018a61461048857806385a6b3ae1461049d5780638da5cb5b146104b357806391b89fba146104db57600080fd5b80633009a6091161019b5780634e7b827f1161016a5780634e7b827f146103925780635183d6fd146103c25780636a474002146104275780636f2789ec1461043c57806370a082311461045257600080fd5b80633009a60914610320578063313ce5671461033657806331e79db014610352578063395093511461037257600080fd5b806318160ddd116101d757806318160ddd1461029e578063226cfa3d146102b357806323b872dd146102e057806327ce01471461030057600080fd5b806303c833021461021c57806306fdde0314610224578063095ea7b31461024f57806309bbedde1461027f57600080fd5b3661021757610215610710565b005b600080fd5b610215610710565b34801561023057600080fd5b506102396107a3565b6040516102469190611d59565b60405180910390f35b34801561025b57600080fd5b5061026f61026a366004611c91565b610835565b6040519015158152602001610246565b34801561028b57600080fd5b50600a545b604051908152602001610246565b3480156102aa57600080fd5b50600254610290565b3480156102bf57600080fd5b506102906102ce366004611c1d565b60106020526000908152604090205481565b3480156102ec57600080fd5b5061026f6102fb366004611ce9565b61084c565b34801561030c57600080fd5b5061029061031b366004611c1d565b6108fb565b34801561032c57600080fd5b50610290600e5481565b34801561034257600080fd5b5060405160128152602001610246565b34801561035e57600080fd5b5061021561036d366004611c1d565b610957565b34801561037e57600080fd5b5061026f61038d366004611c91565b610a7e565b34801561039e57600080fd5b5061026f6103ad366004611c1d565b600f6020526000908152604090205460ff1681565b3480156103ce57600080fd5b506103e26103dd366004611d41565b610aba565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e082015261010001610246565b34801561043357600080fd5b50610215610c2c565b34801561044857600080fd5b5061029060115481565b34801561045e57600080fd5b5061029061046d366004611c1d565b6001600160a01b031660009081526020819052604090205490565b34801561049457600080fd5b50610215610cca565b3480156104a957600080fd5b5061029060085481565b3480156104bf57600080fd5b506009546040516001600160a01b039091168152602001610246565b3480156104e757600080fd5b506102906104f6366004611c1d565b610cfe565b34801561050757600080fd5b50610239610d09565b34801561051c57600080fd5b5061026f61052b366004611c91565b610d18565b34801561053c57600080fd5b5061029061054b366004611c1d565b610db1565b34801561055c57600080fd5b5061026f61056b366004611c91565b610ddd565b34801561057c57600080fd5b5061029061058b366004611c1d565b6001600160a01b031660009081526007602052604090205490565b3480156105b257600080fd5b5061026f6105c1366004611c55565b610dea565b3480156105d257600080fd5b506102907f000000000000000000000000000000000000000000000000000000000000000081565b34801561060657600080fd5b50610290610615366004611cbc565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561064c57600080fd5b5061021561065b366004611c91565b610e98565b34801561066c57600080fd5b50600e54610290565b34801561068157600080fd5b50610215610690366004611d41565b611025565b3480156106a157600080fd5b506102156106b0366004611c1d565b611181565b3480156106c157600080fd5b506103e26106d0366004611c1d565b61121c565b3480156106e157600080fd5b506106f56106f0366004611d41565b611394565b60408051938452602084019290925290820152606001610246565b600061071b60025490565b1161072557600080fd5b34156107a15761075861073760025490565b61074534600160801b6114bd565b61074f9190611e3a565b600554906114d0565b60055560405134815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a260085461079d90346114d0565b6008555b565b6060600380546107b290611ecf565b80601f01602080910402602001604051908101604052809291908181526020018280546107de90611ecf565b801561082b5780601f106108005761010080835404028352916020019161082b565b820191906000526020600020905b81548152906001019060200180831161080e57829003601f168201915b5050505050905090565b60006108423384846114dc565b5060015b92915050565b6000610859848484611600565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156108e35760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6108f085338584036114dc565b506001949350505050565b6001600160a01b03811660009081526006602090815260408083205491839052822054600554600160801b9261094d92610948926109429161093d91906114bd565b611653565b90611663565b6116a1565b6108469190611e3a565b6009546001600160a01b031633146109815760405162461bcd60e51b81526004016108da90611dac565b6001600160a01b0381166000908152600f602052604090205460ff16156109a757600080fd5b6001600160a01b0381166000908152600f60205260408120805460ff191660011790556109d59082906116b4565b60405163131836e760e21b8152600a60048201526001600160a01b0382166024820152739a151f3a3f2d9af6974845f7b3df6944b7d38e7a90634c60db9c9060440160006040518083038186803b158015610a2f57600080fd5b505af4158015610a43573d6000803e3d6000fd5b50506040516001600160a01b03841692507fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b259150600090a250565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610842918590610ab5908690611e22565b6114dc565b600080600080600080600080600a739a151f3a3f2d9af6974845f7b3df6944b7d38e7a63deb3d89690916040518263ffffffff1660e01b8152600401610b0291815260200190565b60206040518083038186803b158015610b1a57600080fd5b505af4158015610b2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b529190611d29565b8910610b77575060009650600019955085945086935083925082915081905080610c21565b6040516368d54f3f60e11b8152600a6004820152602481018a9052600090739a151f3a3f2d9af6974845f7b3df6944b7d38e7a9063d1aa9e7e9060440160206040518083038186803b158015610bcc57600080fd5b505af4158015610be0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c049190611c39565b9050610c0f8161121c565b98509850985098509850985098509850505b919395975091939597565b60405162461bcd60e51b815260206004820152606160248201527f4146545242434b5f54524b523a2077697468647261774469766964656e64206460448201527f697361626c65642e20557365207468652027636c61696d272066756e6374696f60648201527f6e206f6e20746865206d61696e2041667465724261636b20636f6e74726163746084820152601760f91b60a482015260c4016108da565b6009546001600160a01b03163314610cf45760405162461bcd60e51b81526004016108da90611dac565b6107a16000611719565b600061084682610db1565b6060600480546107b290611ecf565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610d9a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016108da565b610da733858584036114dc565b5060019392505050565b6001600160a01b03811660009081526007602052604081205461084690610dd7846108fb565b9061176b565b6000610842338484611600565b6009546000906001600160a01b03163314610e175760405162461bcd60e51b81526004016108da90611dac565b6000610e2284611777565b90508015610e8e576001600160a01b038416600081815260106020526040908190204290555184151591907fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf09290610e7c9085815260200190565b60405180910390a36001915050610846565b5060009392505050565b6009546001600160a01b03163314610ec25760405162461bcd60e51b81526004016108da90611dac565b6001600160a01b0382166000908152600f602052604090205460ff1615610ee7575050565b7f00000000000000000000000000000000000000000000000000000000000000008110610f9657610f1882826116b4565b604051632f0ad01760e21b8152600a60048201526001600160a01b038316602482015260448101829052739a151f3a3f2d9af6974845f7b3df6944b7d38e7a9063bc2b405c9060640160006040518083038186803b158015610f7957600080fd5b505af4158015610f8d573d6000803e3d6000fd5b50505050611014565b610fa18260006116b4565b60405163131836e760e21b8152600a60048201526001600160a01b0383166024820152739a151f3a3f2d9af6974845f7b3df6944b7d38e7a90634c60db9c9060440160006040518083038186803b158015610ffb57600080fd5b505af415801561100f573d6000803e3d6000fd5b505050505b61101f826001610dea565b505b5050565b6009546001600160a01b0316331461104f5760405162461bcd60e51b81526004016108da90611dac565b610e1081101580156110645750620151808111155b6110e05760405162461bcd60e51b815260206004820152604160248201527f4146545242434b5f54524b523a20636c61696d57616974206d7573742062652060448201527f7570646174656420746f206265747765656e203120616e6420323420686f75726064820152607360f81b608482015260a4016108da565b60115481141561114e5760405162461bcd60e51b815260206004820152603360248201527f4146545242434b5f54524b523a2043616e6e6f742075706461746520636c61696044820152726d5761697420746f2073616d652076616c756560681b60648201526084016108da565b60115460405182907f474ea64804364a1e29a4487ddb63c3342a2dd826ccd8acf48825e680a0e6f20f90600090a3601155565b6009546001600160a01b031633146111ab5760405162461bcd60e51b81526004016108da90611dac565b6001600160a01b0381166112105760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108da565b61121981611719565b50565b6040516317e142d160e01b8152600a60048201526001600160a01b03821660248201528190600090819081908190819081908190739a151f3a3f2d9af6974845f7b3df6944b7d38e7a906317e142d19060440160206040518083038186803b15801561128757600080fd5b505af415801561129b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112bf9190611d29565b965060001995506000871261132157600e548711156112ed57600e546112e69088906118bd565b9550611321565b600e54600a5460009110611302576000611311565b600e54600a546113119161176b565b905061131d8882611663565b9650505b61132a88610db1565b9450611335886108fb565b6001600160a01b03891660009081526010602052604090205490945092508261135f57600061136d565b60115461136d9084906114d0565b915042821161137d576000611387565b611387824261176b565b9050919395975091939597565b600a5460009081908190806113b4575050600e54600092508291506114b6565b600e546000805a90506000805b89841080156113cf57508582105b156114a557846113de81611f0a565b600a54909650861090506113f157600094505b6000600a600001868154811061141757634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168083526010909152604090912054909150611448906118fa565b1561146b57611458816001610dea565b1561146b578161146781611f0a565b9250505b8261147581611f0a565b93505060005a90508085111561149c57611499611492868361176b565b87906114d0565b95505b93506113c19050565b600e85905590975095509193505050505b9193909250565b60006114c98284611e5a565b9392505050565b60006114c98284611e22565b6001600160a01b03831661153e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016108da565b6001600160a01b03821661159f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016108da565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60405162461bcd60e51b815260206004820152602260248201527f4146545242434b5f54524b523a204e6f207472616e736665727320616c6c6f77604482015261195960f21b60648201526084016108da565b6000818181121561084657600080fd5b6000806116708385611de1565b9050600083121580156116835750838112155b80611698575060008312801561169857508381125b6114c957600080fd5b6000808212156116b057600080fd5b5090565b6001600160a01b038216600090815260208190526040902054808211156116f35760006116e1838361176b565b90506116ed8482611921565b5061101f565b8082101561101f576000611707828461176b565b90506117138482611985565b50505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006114c98284611eb8565b60008061178383610db1565b905080156118b4576001600160a01b0383166000908152600760205260409020546117ae90826114d0565b6001600160a01b038416600081815260076020526040908190209290925590517fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d906117fd9084815260200190565b60405180910390a26000836001600160a01b031682610bb890604051600060405180830381858888f193505050503d8060008114611857576040519150601f19603f3d011682016040523d82523d6000602084013e61185c565b606091505b50509050806118ad576001600160a01b038416600090815260076020526040902054611888908361176b565b6001600160a01b03909416600090815260076020526040812094909455509192915050565b5092915050565b50600092915050565b6000806118ca8385611e79565b9050600083121580156118dd5750838113155b80611698575060008312801561169857508381136114c957600080fd5b60004282111561190c57506000919050565b601154611919428461176b565b101592915050565b61192b82826119c9565b61196561194661093d836005546114bd90919063ffffffff16565b6001600160a01b038416600090815260066020526040902054906118bd565b6001600160a01b0390921660009081526006602052604090209190915550565b61198f8282611abc565b6119656119aa61093d836005546114bd90919063ffffffff16565b6001600160a01b03841660009081526006602052604090205490611663565b6001600160a01b038216611a1f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016108da565b611a2b6000838361101f565b8060026000828254611a3d9190611e22565b90915550506001600160a01b03821660009081526020819052604081208054839290611a6a908490611e22565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a36110216000838361101f565b6001600160a01b038216611b1c5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016108da565b611b288260008361101f565b6001600160a01b03821660009081526020819052604090205481811015611b9c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016108da565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611bcb908490611eb8565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361101f8360008461101f565b600060208284031215611c2e578081fd5b81356114c981611f3b565b600060208284031215611c4a578081fd5b81516114c981611f3b565b60008060408385031215611c67578081fd5b8235611c7281611f3b565b915060208301358015158114611c86578182fd5b809150509250929050565b60008060408385031215611ca3578182fd5b8235611cae81611f3b565b946020939093013593505050565b60008060408385031215611cce578182fd5b8235611cd981611f3b565b91506020830135611c8681611f3b565b600080600060608486031215611cfd578081fd5b8335611d0881611f3b565b92506020840135611d1881611f3b565b929592945050506040919091013590565b600060208284031215611d3a578081fd5b5051919050565b600060208284031215611d52578081fd5b5035919050565b6000602080835283518082850152825b81811015611d8557858101830151858201604001528201611d69565b81811115611d965783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600080821280156001600160ff1b0384900385131615611e0357611e03611f25565b600160ff1b8390038412811615611e1c57611e1c611f25565b50500190565b60008219821115611e3557611e35611f25565b500190565b600082611e5557634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611e7457611e74611f25565b500290565b60008083128015600160ff1b850184121615611e9757611e97611f25565b6001600160ff1b0384018313811615611eb257611eb2611f25565b50500390565b600082821015611eca57611eca611f25565b500390565b600181811c90821680611ee357607f821691505b60208210811415611f0457634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611f1e57611f1e611f25565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461121957600080fdfea2646970667358221220965e20592b617ce5faf2e1f94e41cf7f0e4916d8e4b8b0ccc75afbeb67cd414f64736f6c63430008040033
Deployed Bytecode
0x6080604052600436106102085760003560e01c8063715018a611610118578063bc4c4b37116100a0578063e7841ec01161006f578063e7841ec014610660578063e98030c714610675578063f2fde38b14610695578063fbcbc0f1146106b5578063ffb2c479146106d557600080fd5b8063bc4c4b37146105a6578063be10b614146105c6578063dd62ed3e146105fa578063e30443bc1461064057600080fd5b806395d89b41116100e757806395d89b41146104fb578063a457c2d714610510578063a8b9d24014610530578063a9059cbb14610550578063aafd847a1461057057600080fd5b8063715018a61461048857806385a6b3ae1461049d5780638da5cb5b146104b357806391b89fba146104db57600080fd5b80633009a6091161019b5780634e7b827f1161016a5780634e7b827f146103925780635183d6fd146103c25780636a474002146104275780636f2789ec1461043c57806370a082311461045257600080fd5b80633009a60914610320578063313ce5671461033657806331e79db014610352578063395093511461037257600080fd5b806318160ddd116101d757806318160ddd1461029e578063226cfa3d146102b357806323b872dd146102e057806327ce01471461030057600080fd5b806303c833021461021c57806306fdde0314610224578063095ea7b31461024f57806309bbedde1461027f57600080fd5b3661021757610215610710565b005b600080fd5b610215610710565b34801561023057600080fd5b506102396107a3565b6040516102469190611d59565b60405180910390f35b34801561025b57600080fd5b5061026f61026a366004611c91565b610835565b6040519015158152602001610246565b34801561028b57600080fd5b50600a545b604051908152602001610246565b3480156102aa57600080fd5b50600254610290565b3480156102bf57600080fd5b506102906102ce366004611c1d565b60106020526000908152604090205481565b3480156102ec57600080fd5b5061026f6102fb366004611ce9565b61084c565b34801561030c57600080fd5b5061029061031b366004611c1d565b6108fb565b34801561032c57600080fd5b50610290600e5481565b34801561034257600080fd5b5060405160128152602001610246565b34801561035e57600080fd5b5061021561036d366004611c1d565b610957565b34801561037e57600080fd5b5061026f61038d366004611c91565b610a7e565b34801561039e57600080fd5b5061026f6103ad366004611c1d565b600f6020526000908152604090205460ff1681565b3480156103ce57600080fd5b506103e26103dd366004611d41565b610aba565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e082015261010001610246565b34801561043357600080fd5b50610215610c2c565b34801561044857600080fd5b5061029060115481565b34801561045e57600080fd5b5061029061046d366004611c1d565b6001600160a01b031660009081526020819052604090205490565b34801561049457600080fd5b50610215610cca565b3480156104a957600080fd5b5061029060085481565b3480156104bf57600080fd5b506009546040516001600160a01b039091168152602001610246565b3480156104e757600080fd5b506102906104f6366004611c1d565b610cfe565b34801561050757600080fd5b50610239610d09565b34801561051c57600080fd5b5061026f61052b366004611c91565b610d18565b34801561053c57600080fd5b5061029061054b366004611c1d565b610db1565b34801561055c57600080fd5b5061026f61056b366004611c91565b610ddd565b34801561057c57600080fd5b5061029061058b366004611c1d565b6001600160a01b031660009081526007602052604090205490565b3480156105b257600080fd5b5061026f6105c1366004611c55565b610dea565b3480156105d257600080fd5b506102907f00000000000000000000000000000000000000000000021e19e0c9bab240000081565b34801561060657600080fd5b50610290610615366004611cbc565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561064c57600080fd5b5061021561065b366004611c91565b610e98565b34801561066c57600080fd5b50600e54610290565b34801561068157600080fd5b50610215610690366004611d41565b611025565b3480156106a157600080fd5b506102156106b0366004611c1d565b611181565b3480156106c157600080fd5b506103e26106d0366004611c1d565b61121c565b3480156106e157600080fd5b506106f56106f0366004611d41565b611394565b60408051938452602084019290925290820152606001610246565b600061071b60025490565b1161072557600080fd5b34156107a15761075861073760025490565b61074534600160801b6114bd565b61074f9190611e3a565b600554906114d0565b60055560405134815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a260085461079d90346114d0565b6008555b565b6060600380546107b290611ecf565b80601f01602080910402602001604051908101604052809291908181526020018280546107de90611ecf565b801561082b5780601f106108005761010080835404028352916020019161082b565b820191906000526020600020905b81548152906001019060200180831161080e57829003601f168201915b5050505050905090565b60006108423384846114dc565b5060015b92915050565b6000610859848484611600565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156108e35760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6108f085338584036114dc565b506001949350505050565b6001600160a01b03811660009081526006602090815260408083205491839052822054600554600160801b9261094d92610948926109429161093d91906114bd565b611653565b90611663565b6116a1565b6108469190611e3a565b6009546001600160a01b031633146109815760405162461bcd60e51b81526004016108da90611dac565b6001600160a01b0381166000908152600f602052604090205460ff16156109a757600080fd5b6001600160a01b0381166000908152600f60205260408120805460ff191660011790556109d59082906116b4565b60405163131836e760e21b8152600a60048201526001600160a01b0382166024820152739a151f3a3f2d9af6974845f7b3df6944b7d38e7a90634c60db9c9060440160006040518083038186803b158015610a2f57600080fd5b505af4158015610a43573d6000803e3d6000fd5b50506040516001600160a01b03841692507fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b259150600090a250565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610842918590610ab5908690611e22565b6114dc565b600080600080600080600080600a739a151f3a3f2d9af6974845f7b3df6944b7d38e7a63deb3d89690916040518263ffffffff1660e01b8152600401610b0291815260200190565b60206040518083038186803b158015610b1a57600080fd5b505af4158015610b2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b529190611d29565b8910610b77575060009650600019955085945086935083925082915081905080610c21565b6040516368d54f3f60e11b8152600a6004820152602481018a9052600090739a151f3a3f2d9af6974845f7b3df6944b7d38e7a9063d1aa9e7e9060440160206040518083038186803b158015610bcc57600080fd5b505af4158015610be0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c049190611c39565b9050610c0f8161121c565b98509850985098509850985098509850505b919395975091939597565b60405162461bcd60e51b815260206004820152606160248201527f4146545242434b5f54524b523a2077697468647261774469766964656e64206460448201527f697361626c65642e20557365207468652027636c61696d272066756e6374696f60648201527f6e206f6e20746865206d61696e2041667465724261636b20636f6e74726163746084820152601760f91b60a482015260c4016108da565b6009546001600160a01b03163314610cf45760405162461bcd60e51b81526004016108da90611dac565b6107a16000611719565b600061084682610db1565b6060600480546107b290611ecf565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610d9a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016108da565b610da733858584036114dc565b5060019392505050565b6001600160a01b03811660009081526007602052604081205461084690610dd7846108fb565b9061176b565b6000610842338484611600565b6009546000906001600160a01b03163314610e175760405162461bcd60e51b81526004016108da90611dac565b6000610e2284611777565b90508015610e8e576001600160a01b038416600081815260106020526040908190204290555184151591907fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf09290610e7c9085815260200190565b60405180910390a36001915050610846565b5060009392505050565b6009546001600160a01b03163314610ec25760405162461bcd60e51b81526004016108da90611dac565b6001600160a01b0382166000908152600f602052604090205460ff1615610ee7575050565b7f00000000000000000000000000000000000000000000021e19e0c9bab24000008110610f9657610f1882826116b4565b604051632f0ad01760e21b8152600a60048201526001600160a01b038316602482015260448101829052739a151f3a3f2d9af6974845f7b3df6944b7d38e7a9063bc2b405c9060640160006040518083038186803b158015610f7957600080fd5b505af4158015610f8d573d6000803e3d6000fd5b50505050611014565b610fa18260006116b4565b60405163131836e760e21b8152600a60048201526001600160a01b0383166024820152739a151f3a3f2d9af6974845f7b3df6944b7d38e7a90634c60db9c9060440160006040518083038186803b158015610ffb57600080fd5b505af415801561100f573d6000803e3d6000fd5b505050505b61101f826001610dea565b505b5050565b6009546001600160a01b0316331461104f5760405162461bcd60e51b81526004016108da90611dac565b610e1081101580156110645750620151808111155b6110e05760405162461bcd60e51b815260206004820152604160248201527f4146545242434b5f54524b523a20636c61696d57616974206d7573742062652060448201527f7570646174656420746f206265747765656e203120616e6420323420686f75726064820152607360f81b608482015260a4016108da565b60115481141561114e5760405162461bcd60e51b815260206004820152603360248201527f4146545242434b5f54524b523a2043616e6e6f742075706461746520636c61696044820152726d5761697420746f2073616d652076616c756560681b60648201526084016108da565b60115460405182907f474ea64804364a1e29a4487ddb63c3342a2dd826ccd8acf48825e680a0e6f20f90600090a3601155565b6009546001600160a01b031633146111ab5760405162461bcd60e51b81526004016108da90611dac565b6001600160a01b0381166112105760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108da565b61121981611719565b50565b6040516317e142d160e01b8152600a60048201526001600160a01b03821660248201528190600090819081908190819081908190739a151f3a3f2d9af6974845f7b3df6944b7d38e7a906317e142d19060440160206040518083038186803b15801561128757600080fd5b505af415801561129b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112bf9190611d29565b965060001995506000871261132157600e548711156112ed57600e546112e69088906118bd565b9550611321565b600e54600a5460009110611302576000611311565b600e54600a546113119161176b565b905061131d8882611663565b9650505b61132a88610db1565b9450611335886108fb565b6001600160a01b03891660009081526010602052604090205490945092508261135f57600061136d565b60115461136d9084906114d0565b915042821161137d576000611387565b611387824261176b565b9050919395975091939597565b600a5460009081908190806113b4575050600e54600092508291506114b6565b600e546000805a90506000805b89841080156113cf57508582105b156114a557846113de81611f0a565b600a54909650861090506113f157600094505b6000600a600001868154811061141757634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168083526010909152604090912054909150611448906118fa565b1561146b57611458816001610dea565b1561146b578161146781611f0a565b9250505b8261147581611f0a565b93505060005a90508085111561149c57611499611492868361176b565b87906114d0565b95505b93506113c19050565b600e85905590975095509193505050505b9193909250565b60006114c98284611e5a565b9392505050565b60006114c98284611e22565b6001600160a01b03831661153e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016108da565b6001600160a01b03821661159f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016108da565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60405162461bcd60e51b815260206004820152602260248201527f4146545242434b5f54524b523a204e6f207472616e736665727320616c6c6f77604482015261195960f21b60648201526084016108da565b6000818181121561084657600080fd5b6000806116708385611de1565b9050600083121580156116835750838112155b80611698575060008312801561169857508381125b6114c957600080fd5b6000808212156116b057600080fd5b5090565b6001600160a01b038216600090815260208190526040902054808211156116f35760006116e1838361176b565b90506116ed8482611921565b5061101f565b8082101561101f576000611707828461176b565b90506117138482611985565b50505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006114c98284611eb8565b60008061178383610db1565b905080156118b4576001600160a01b0383166000908152600760205260409020546117ae90826114d0565b6001600160a01b038416600081815260076020526040908190209290925590517fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d906117fd9084815260200190565b60405180910390a26000836001600160a01b031682610bb890604051600060405180830381858888f193505050503d8060008114611857576040519150601f19603f3d011682016040523d82523d6000602084013e61185c565b606091505b50509050806118ad576001600160a01b038416600090815260076020526040902054611888908361176b565b6001600160a01b03909416600090815260076020526040812094909455509192915050565b5092915050565b50600092915050565b6000806118ca8385611e79565b9050600083121580156118dd5750838113155b80611698575060008312801561169857508381136114c957600080fd5b60004282111561190c57506000919050565b601154611919428461176b565b101592915050565b61192b82826119c9565b61196561194661093d836005546114bd90919063ffffffff16565b6001600160a01b038416600090815260066020526040902054906118bd565b6001600160a01b0390921660009081526006602052604090209190915550565b61198f8282611abc565b6119656119aa61093d836005546114bd90919063ffffffff16565b6001600160a01b03841660009081526006602052604090205490611663565b6001600160a01b038216611a1f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016108da565b611a2b6000838361101f565b8060026000828254611a3d9190611e22565b90915550506001600160a01b03821660009081526020819052604081208054839290611a6a908490611e22565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a36110216000838361101f565b6001600160a01b038216611b1c5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016108da565b611b288260008361101f565b6001600160a01b03821660009081526020819052604090205481811015611b9c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016108da565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611bcb908490611eb8565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361101f8360008461101f565b600060208284031215611c2e578081fd5b81356114c981611f3b565b600060208284031215611c4a578081fd5b81516114c981611f3b565b60008060408385031215611c67578081fd5b8235611c7281611f3b565b915060208301358015158114611c86578182fd5b809150509250929050565b60008060408385031215611ca3578182fd5b8235611cae81611f3b565b946020939093013593505050565b60008060408385031215611cce578182fd5b8235611cd981611f3b565b91506020830135611c8681611f3b565b600080600060608486031215611cfd578081fd5b8335611d0881611f3b565b92506020840135611d1881611f3b565b929592945050506040919091013590565b600060208284031215611d3a578081fd5b5051919050565b600060208284031215611d52578081fd5b5035919050565b6000602080835283518082850152825b81811015611d8557858101830151858201604001528201611d69565b81811115611d965783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600080821280156001600160ff1b0384900385131615611e0357611e03611f25565b600160ff1b8390038412811615611e1c57611e1c611f25565b50500190565b60008219821115611e3557611e35611f25565b500190565b600082611e5557634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611e7457611e74611f25565b500290565b60008083128015600160ff1b850184121615611e9757611e97611f25565b6001600160ff1b0384018313811615611eb257611eb2611f25565b50500390565b600082821015611eca57611eca611f25565b500390565b600181811c90821680611ee357607f821691505b60208210811415611f0457634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611f1e57611f1e611f25565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461121957600080fdfea2646970667358221220965e20592b617ce5faf2e1f94e41cf7f0e4916d8e4b8b0ccc75afbeb67cd414f64736f6c63430008040033
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.