Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
0 X2
Holders
1
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0 X2Value
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xe4C7b6e8...2E1e47b1E The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
X2Token
Compiler Version
v0.6.12+commit.27d51765
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.6.12; import "./libraries/token/IERC20.sol"; import "./libraries/token/SafeERC20.sol"; import "./libraries/math/SafeMath.sol"; import "./libraries/utils/ReentrancyGuard.sol"; import "./interfaces/IX2Fund.sol"; import "./interfaces/IX2Market.sol"; import "./interfaces/IX2Token.sol"; // rewards code adapated from https://github.com/trusttoken/smart-contracts/blob/master/contracts/truefi/TrueFarm.sol contract X2Token is IERC20, IX2Token, ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for IERC20; struct Ledger { uint128 balance; uint128 cost; } // max uint128 has 38 digits // the initial divisor has 10 digits // each 1 wei of rewards will increase cumulativeRewardPerToken by // 1*10^10 (PRECISION 10^20 / divisor 10^10) // assuming a supply of only 1 wei of X2Tokens // if the reward token has 18 decimals, total rewards of up to // 1 billion reward tokens is supported // max uint96 has 28 digits, so max claimable rewards also supports // 1 billion reward tokens struct Reward { uint128 previousCumulativeRewardPerToken; uint96 claimable; uint32 lastBoughtAt; } uint256 constant HOLDING_TIME = 10 minutes; uint256 constant PRECISION = 1e20; uint256 constant MAX_BALANCE = uint128(-1); uint256 constant MAX_REWARD = uint96(-1); uint256 constant MAX_CUMULATIVE_REWARD = uint128(-1); uint256 constant MAX_QUANTITY_POINTS = 1e30; string public name = "X2"; string public symbol = "X2"; uint8 public constant decimals = 18; // _totalSupply also tracks totalStaked uint256 public override _totalSupply; address public override market; address public factory; address public override distributor; address public override rewardToken; // ledgers track balances and costs mapping (address => Ledger) public ledgers; mapping (address => mapping (address => uint256)) public allowances; // track previous cumulated rewards and claimable rewards for accounts mapping(address => Reward) public rewards; // track overall cumulative rewards uint256 public override cumulativeRewardPerToken; bool public isInitialized; event Claim(address receiver, uint256 amount); modifier onlyFactory() { require(msg.sender == factory, "X2Token: forbidden"); _; } modifier onlyMarket() { require(msg.sender == market, "X2Token: forbidden"); _; } receive() external payable {} function initialize(address _factory, address _market) public { require(!isInitialized, "X2Token: already initialized"); isInitialized = true; factory = _factory; market = _market; } function setDistributor(address _distributor, address _rewardToken) external override onlyFactory { distributor = _distributor; rewardToken = _rewardToken; } function setInfo(string memory _name, string memory _symbol) external override onlyFactory { name = _name; symbol = _symbol; } function mint(address _account, uint256 _amount, uint256 _divisor) external override onlyMarket { _mint(_account, _amount, _divisor); } function burn(address _account, uint256 _burnPoints, bool _distribute) external override onlyMarket returns (uint256) { return _burn(_account, _burnPoints, _distribute); } function totalSupply() external view override returns (uint256) { return _totalSupply.div(getDivisor()); } function transfer(address _recipient, uint256 _amount) external override returns (bool) { _transfer(msg.sender, _recipient, _amount); return true; } function allowance(address _owner, address _spender) external view override returns (uint256) { return allowances[_owner][_spender]; } function approve(address _spender, uint256 _amount) external override returns (bool) { _approve(msg.sender, _spender, _amount); return true; } function transferFrom(address _sender, address _recipient, uint256 _amount) public override returns (bool) { uint256 nextAllowance = allowances[_sender][msg.sender].sub(_amount, "X2Token: transfer amount exceeds allowance"); _approve(_sender, msg.sender, nextAllowance); _transfer(_sender, _recipient, _amount); return true; } function claim(address _receiver) external nonReentrant { address _account = msg.sender; uint256 cachedTotalSupply = _totalSupply; _updateRewards(_account, cachedTotalSupply, true, false); Reward storage reward = rewards[_account]; uint256 rewardToClaim = reward.claimable; reward.claimable = 0; IERC20(rewardToken).transfer(_receiver, rewardToClaim); emit Claim(_receiver, rewardToClaim); } function getDivisor() public override view returns (uint256) { return IX2Market(market).getDivisor(address(this)); } function lastBoughtAt(address _account) public override view returns (uint256) { return uint256(rewards[_account].lastBoughtAt); } function hasPendingPurchase(address _account) public view returns (bool) { return lastBoughtAt(_account) > block.timestamp.sub(HOLDING_TIME); } function getPendingProfit(address _account) public override view returns (uint256) { if (!hasPendingPurchase(_account)) { return 0; } uint256 balance = uint256(ledgers[_account].balance).div(getDivisor()); uint256 cost = costOf(_account); return balance <= cost ? 0 : balance.sub(cost); } function balanceOf(address _account) public view override returns (uint256) { uint256 balance = uint256(ledgers[_account].balance).div(getDivisor()); if (!hasPendingPurchase(_account)) { return balance; } uint256 cost = costOf(_account); return balance < cost ? balance : cost; } function _balanceOf(address _account) public view override returns (uint256) { return uint256(ledgers[_account].balance); } function costOf(address _account) public override view returns (uint256) { return uint256(ledgers[_account].cost); } function getReward(address _account) public override view returns (uint256) { return uint256(rewards[_account].claimable); } function _transfer(address _sender, address _recipient, uint256 _amount) private { require(!hasPendingPurchase(_sender), "X2Token: holding time not yet passed"); require(_sender != address(0), "X2Token: transfer from the zero address"); require(_recipient != address(0), "X2Token: transfer to the zero address"); uint256 divisor = getDivisor(); _decreaseBalance(_sender, _amount, divisor, true); _increaseBalance(_recipient, _amount, divisor, false); emit Transfer(_sender, _recipient, _amount); } function _mint(address _account, uint256 _amount, uint256 _divisor) private { require(_account != address(0), "X2Token: mint to the zero address"); _increaseBalance(_account, _amount, _divisor, true); emit Transfer(address(0), _account, _amount); } function _burn(address _account, uint256 _burnPoints, bool _distribute) private returns (uint256) { require(_account != address(0), "X2Token: burn from the zero address"); uint256 divisor = getDivisor(); Ledger memory ledger = ledgers[_account]; uint256 balance = uint256(ledger.balance).div(divisor); uint256 amount = balance.mul(_burnPoints).div(MAX_QUANTITY_POINTS); uint256 scaledAmount = amount; if (hasPendingPurchase(_account) && balance > ledger.cost) { // if there is a pending purchase and the user's balance // is greater than their cost, it means they have a pending profit // we scale up the amount to burn the proportional amount of // pending profit amount = uint256(ledger.cost).mul(_burnPoints).div(MAX_QUANTITY_POINTS); scaledAmount = amount.mul(balance).div(ledger.cost); } _decreaseBalance(_account, scaledAmount, divisor, _distribute); emit Transfer(_account, address(0), amount); return amount; } function _approve(address _owner, address _spender, uint256 _amount) private { require(_owner != address(0), "X2Token: approve from the zero address"); require(_spender != address(0), "X2Token: approve to the zero address"); allowances[_owner][_spender] = _amount; emit Approval(_owner, _spender, _amount); } function _increaseBalance(address _account, uint256 _amount, uint256 _divisor, bool _updateLastBoughtAt) private { if (_amount == 0) { return; } uint256 cachedTotalSupply = _totalSupply; _updateRewards(_account, cachedTotalSupply, true, _updateLastBoughtAt); uint256 scaledAmount = _amount.mul(_divisor); Ledger memory ledger = ledgers[_account]; uint256 nextBalance = uint256(ledger.balance).add(scaledAmount); require(nextBalance < MAX_BALANCE, "X2Token: balance limit exceeded"); uint256 cost = uint256(ledger.cost).add(_amount); require(cost < MAX_BALANCE, "X2Token: cost limit exceeded"); ledgers[_account] = Ledger( uint128(nextBalance), uint128(cost) ); _totalSupply = cachedTotalSupply.add(scaledAmount); } function _decreaseBalance(address _account, uint256 _amount, uint256 _divisor, bool _distribute) private { if (_amount == 0) { return; } uint256 cachedTotalSupply = _totalSupply; _updateRewards(_account, cachedTotalSupply, _distribute, false); uint256 scaledAmount = _amount.mul(_divisor); Ledger memory ledger = ledgers[_account]; // since _amount is not zero, so scaledAmount should not be zero // if ledger.balance is zero, then uint256(ledger.balance).sub(scaledAmount) // should fail, so we can calculate cost with ...div(ledger.balance) // as ledger.balance should not be zero uint256 nextBalance = uint256(ledger.balance).sub(scaledAmount); uint256 cost = uint256(ledger.cost).mul(nextBalance).div(ledger.balance); ledgers[_account] = Ledger( uint128(nextBalance), uint128(cost) ); _totalSupply = cachedTotalSupply.sub(scaledAmount); } function _updateRewards(address _account, uint256 _cachedTotalSupply, bool _distribute, bool _updateLastBoughtAt) private { uint256 blockReward; Reward memory reward = rewards[_account]; if (_distribute && distributor != address(0)) { blockReward = IX2Fund(distributor).distribute(); } uint256 _cumulativeRewardPerToken = cumulativeRewardPerToken; // only update cumulativeRewardPerToken when there are stakers, i.e. when _totalSupply > 0 // if blockReward == 0, then there will be no change to cumulativeRewardPerToken if (_cachedTotalSupply > 0 && blockReward > 0) { // PRECISION is 10^20 and the BASE_DIVISOR is 10^10 // cachedTotalSupply = _totalSupply * divisor // the divisor will be around 10^10 // if 1000 ETH worth is minted, then cachedTotalSupply = 1000 * 10^18 * 10^10 = 10^31 // cumulativeRewardPerToken will increase by blockReward * 10^20 / (10^31) // if the blockReward is 0.001 REWARD_TOKENS // then cumulativeRewardPerToken will increase by 10^-3 * 10^18 * 10^20 / (10^31) // which is 10^35 / 10^31 or 10^4 // if rewards are distributed every hour then at least 0.168 REWARD_TOKENS should be distributed per week // so that there will not be precision issues for distribution _cumulativeRewardPerToken = _cumulativeRewardPerToken.add(blockReward.mul(PRECISION).div(_cachedTotalSupply)); cumulativeRewardPerToken = _cumulativeRewardPerToken; } // ledgers[_account].balance = balance * divisor // this divisor will be around 10^10 // assuming that cumulativeRewardPerToken increases by at least 10^4 // the claimableReward will increase by balance * 10^10 * 10^4 / 10^20 // if the total supply is 1000 ETH // a user must own at least 10^-6 ETH or 0.000001 ETH worth of tokens to get some rewards uint256 claimableReward = uint256(reward.claimable).add( uint256(ledgers[_account].balance).mul(_cumulativeRewardPerToken.sub(reward.previousCumulativeRewardPerToken)).div(PRECISION) ); if (claimableReward > MAX_REWARD) { claimableReward = MAX_REWARD; } if (_cumulativeRewardPerToken > MAX_CUMULATIVE_REWARD) { _cumulativeRewardPerToken = MAX_CUMULATIVE_REWARD; } rewards[_account] = Reward( // update previous cumulative reward for sender uint128(_cumulativeRewardPerToken), uint96(claimableReward), _updateLastBoughtAt ? uint32(block.timestamp % 2**32) : reward.lastBoughtAt ); } }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; /** * @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.6.12; import "./IERC20.sol"; import "../math/SafeMath.sol"; import "../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor () internal { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; interface IX2Fund { function distribute() external returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; interface IX2Market { function bullToken() external view returns (address); function bearToken() external view returns (address); function latestPrice() external view returns (uint256); function lastPrice() external view returns (uint256); function getFunding() external view returns (uint256, uint256); function getDivisor(address token) external view returns (uint256); function getDivisors(uint256 _lastPrice, uint256 _nextPrice) external view returns (uint256, uint256); function setAppFee(uint256 feeBasisPoints) external; function setFunding(uint256 divisor) external; function cachedBullDivisor() external view returns (uint128); function cachedBearDivisor() external view returns (uint128); }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; interface IX2Token { function cumulativeRewardPerToken() external view returns (uint256); function lastBoughtAt(address account) external view returns (uint256); function getPendingProfit(address account) external view returns (uint256); function distributor() external view returns (address); function rewardToken() external view returns (address); function _totalSupply() external view returns (uint256); function _balanceOf(address account) external view returns (uint256); function market() external view returns (address); function getDivisor() external view returns (uint256); function getReward(address account) external view returns (uint256); function costOf(address account) external view returns (uint256); function mint(address account, uint256 amount, uint256 divisor) external; function burn(address account, uint256 amount, bool distribute) external returns (uint256); function setDistributor(address _distributor, address _rewardToken) external; function setInfo(string memory name, string memory symbol) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.2; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.3._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.3._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","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":"_account","type":"address"}],"name":"_balanceOf","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":"_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":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowances","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"},{"internalType":"uint256","name":"_burnPoints","type":"uint256"},{"internalType":"bool","name":"_distribute","type":"bool"}],"name":"burn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"costOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cumulativeRewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distributor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDivisor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getPendingProfit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"hasPendingPurchase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_market","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"lastBoughtAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"ledgers","outputs":[{"internalType":"uint128","name":"balance","type":"uint128"},{"internalType":"uint128","name":"cost","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"market","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_divisor","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint128","name":"previousCumulativeRewardPerToken","type":"uint128"},{"internalType":"uint96","name":"claimable","type":"uint96"},{"internalType":"uint32","name":"lastBoughtAt","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_distributor","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"}],"name":"setDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"name":"setInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"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"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c060405260026080819052612c1960f11b60a090815262000025916001919062000069565b50604080518082019091526002808252612c1960f11b60209092019182526200004f918162000069565b503480156200005d57600080fd5b50600160005562000105565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620000ac57805160ff1916838001178555620000dc565b82800160010185558215620000dc579182015b82811115620000dc578251825591602001919060010190620000bf565b50620000ea929150620000ee565b5090565b5b80821115620000ea5760008155600101620000ef565b61208c80620001156000396000f3fe6080604052600436106101e75760003560e01c806376fd4fdf11610102578063c00007b011610095578063dd62ed3e11610064578063dd62ed3e14610902578063e5eb6ab51461093d578063f5fc507614610952578063f7c618c114610967576101ee565b8063c00007b014610854578063c45a015514610887578063cb843ef31461089c578063cca3e832146108cf576101ee565b8063a9059cbb116100d1578063a9059cbb1461066a578063a923fc40146106a3578063b1e1c370146107dd578063bfe109281461083f576101ee565b806376fd4fdf146105a857806380f55605146105e957806395d89b411461061a578063a768a98a1461062f576101ee565b8063313ce5671161017a578063485cc95511610149578063485cc955146104cc578063525c91ec1461050757806355b6ed5c1461053a57806370a0823114610575576101ee565b8063313ce56714610444578063392e53cd1461046f5780633eaaf86b14610484578063437a640114610499576101ee565b8063156e29f6116101b6578063156e29f61461037857806318160ddd146103b95780631e83409a146103ce57806323b872dd14610401576101ee565b8063061525f7146101f357806306fdde03146102385780630700037d146102c2578063095ea7b31461032b576101ee565b366101ee57005b600080fd5b3480156101ff57600080fd5b506102266004803603602081101561021657600080fd5b50356001600160a01b031661097c565b60408051918252519081900360200190f35b34801561024457600080fd5b5061024d6109ab565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561028757818101518382015260200161026f565b50505050905090810190601f1680156102b45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102ce57600080fd5b506102f5600480360360208110156102e557600080fd5b50356001600160a01b0316610a38565b604080516001600160801b0390941684526001600160601b03909216602084015263ffffffff1682820152519081900360600190f35b34801561033757600080fd5b506103646004803603604081101561034e57600080fd5b506001600160a01b038135169060200135610a73565b604080519115158252519081900360200190f35b34801561038457600080fd5b506103b76004803603606081101561039b57600080fd5b506001600160a01b038135169060208101359060400135610a8a565b005b3480156103c557600080fd5b50610226610aee565b3480156103da57600080fd5b506103b7600480360360208110156103f157600080fd5b50356001600160a01b0316610b09565b34801561040d57600080fd5b506103646004803603606081101561042457600080fd5b506001600160a01b03813581169160208101359091169060400135610c88565b34801561045057600080fd5b50610459610cf6565b6040805160ff9092168252519081900360200190f35b34801561047b57600080fd5b50610364610cfb565b34801561049057600080fd5b50610226610d04565b3480156104a557600080fd5b50610364600480360360208110156104bc57600080fd5b50356001600160a01b0316610d0a565b3480156104d857600080fd5b506103b7600480360360408110156104ef57600080fd5b506001600160a01b0381358116916020013516610d28565b34801561051357600080fd5b506102266004803603602081101561052a57600080fd5b50356001600160a01b0316610dbb565b34801561054657600080fd5b506102266004803603604081101561055d57600080fd5b506001600160a01b0381358116916020013516610e38565b34801561058157600080fd5b506102266004803603602081101561059857600080fd5b50356001600160a01b0316610e55565b3480156105b457600080fd5b50610226600480360360608110156105cb57600080fd5b506001600160a01b0381351690602081013590604001351515610e9a565b3480156105f557600080fd5b506105fe610efc565b604080516001600160a01b039092168252519081900360200190f35b34801561062657600080fd5b5061024d610f0b565b34801561063b57600080fd5b506103b76004803603604081101561065257600080fd5b506001600160a01b0381358116916020013516610f63565b34801561067657600080fd5b506103646004803603604081101561068d57600080fd5b506001600160a01b038135169060200135610fe5565b3480156106af57600080fd5b506103b7600480360360408110156106c657600080fd5b8101906020810181356401000000008111156106e157600080fd5b8201836020820111156106f357600080fd5b8035906020019184600183028401116401000000008311171561071557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929594936020810193503591505064010000000081111561076857600080fd5b82018360208201111561077a57600080fd5b8035906020019184600183028401116401000000008311171561079c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610ff2945050505050565b3480156107e957600080fd5b506108106004803603602081101561080057600080fd5b50356001600160a01b031661106d565b60405180836001600160801b03168152602001826001600160801b031681526020019250505060405180910390f35b34801561084b57600080fd5b506105fe611093565b34801561086057600080fd5b506102266004803603602081101561087757600080fd5b50356001600160a01b03166110a2565b34801561089357600080fd5b506105fe6110cd565b3480156108a857600080fd5b50610226600480360360208110156108bf57600080fd5b50356001600160a01b03166110dc565b3480156108db57600080fd5b50610226600480360360208110156108f257600080fd5b50356001600160a01b0316611104565b34801561090e57600080fd5b506102266004803603604081101561092557600080fd5b506001600160a01b0381358116916020013516611128565b34801561094957600080fd5b50610226611153565b34801561095e57600080fd5b506102266111d3565b34801561097357600080fd5b506105fe6111d9565b6001600160a01b038116600090815260086020526040902054600160801b90046001600160801b03165b919050565b60018054604080516020600284861615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610a305780601f10610a0557610100808354040283529160200191610a30565b820191906000526020600020905b815481529060010190602001808311610a1357829003601f168201915b505050505081565b600a602052600090815260409020546001600160801b03811690600160801b81046001600160601b031690600160e01b900463ffffffff1683565b6000610a803384846111e8565b5060015b92915050565b6004546001600160a01b03163314610ade576040805162461bcd60e51b81526020600482015260126024820152712c192a37b5b2b71d103337b93134b23232b760711b604482015290519081900360640190fd5b610ae98383836112d4565b505050565b6000610b04610afb611153565b6003549061136c565b905090565b60026000541415610b61576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260009081556003543391610b7d90839083906001906113b5565b6001600160a01b038281166000908152600a6020908152604080832080546bffffffffffffffffffffffff60801b1981168255600754835163a9059cbb60e01b81528a88166004820152600160801b9092046001600160601b03166024830181905293519296939593169363a9059cbb9360448084019492938390030190829087803b158015610c0c57600080fd5b505af1158015610c20573d6000803e3d6000fd5b505050506040513d6020811015610c3657600080fd5b5050604080516001600160a01b03871681526020810183905281517f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4929181900390910190a150506001600055505050565b600080610cd3836040518060600160405280602a8152602001611fc0602a91396001600160a01b0388166000908152600960209081526040808320338452909152902054919061167f565b9050610ce08533836111e8565b610ceb858585611716565b506001949350505050565b601281565b600c5460ff1681565b60035481565b6000610d184261025861185c565b610d21836110dc565b1192915050565b600c5460ff1615610d80576040805162461bcd60e51b815260206004820152601c60248201527f5832546f6b656e3a20616c726561647920696e697469616c697a656400000000604482015290519081900360640190fd5b600c805460ff19166001179055600580546001600160a01b039384166001600160a01b03199182161790915560048054929093169116179055565b6000610dc682610d0a565b610dd2575060006109a6565b6000610e07610ddf611153565b6001600160a01b0385166000908152600860205260409020546001600160801b03169061136c565b90506000610e148461097c565b905080821115610e2d57610e28828261185c565b610e30565b60005b949350505050565b600960209081526000928352604080842090915290825290205481565b600080610e63610ddf611153565b9050610e6e83610d0a565b610e795790506109a6565b6000610e848461097c565b9050808210610e935780610e30565b5092915050565b6004546000906001600160a01b03163314610ef1576040805162461bcd60e51b81526020600482015260126024820152712c192a37b5b2b71d103337b93134b23232b760711b604482015290519081900360640190fd5b610e3084848461189e565b6004546001600160a01b031681565b6002805460408051602060018416156101000260001901909316849004601f81018490048402820184019092528181529291830182828015610a305780601f10610a0557610100808354040283529160200191610a30565b6005546001600160a01b03163314610fb7576040805162461bcd60e51b81526020600482015260126024820152712c192a37b5b2b71d103337b93134b23232b760711b604482015290519081900360640190fd5b600680546001600160a01b039384166001600160a01b03199182161790915560078054929093169116179055565b6000610a80338484611716565b6005546001600160a01b03163314611046576040805162461bcd60e51b81526020600482015260126024820152712c192a37b5b2b71d103337b93134b23232b760711b604482015290519081900360640190fd5b8151611059906001906020850190611e43565b508051610ae9906002906020840190611e43565b6008602052600090815260409020546001600160801b0380821691600160801b90041682565b6006546001600160a01b031681565b6001600160a01b03166000908152600a6020526040902054600160801b90046001600160601b031690565b6005546001600160a01b031681565b6001600160a01b03166000908152600a6020526040902054600160e01b900463ffffffff1690565b6001600160a01b03166000908152600860205260409020546001600160801b031690565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205490565b6004805460408051634cff936f60e11b81523093810193909352516000926001600160a01b03909216916399ff26de916024808301926020929190829003018186803b1580156111a257600080fd5b505afa1580156111b6573d6000803e3d6000fd5b505050506040513d60208110156111cc57600080fd5b5051905090565b600b5481565b6007546001600160a01b031681565b6001600160a01b03831661122d5760405162461bcd60e51b8152600401808060200182810382526026815260200180611fea6026913960400191505060405180910390fd5b6001600160a01b0382166112725760405162461bcd60e51b8152600401808060200182810382526024815260200180611f0e6024913960400191505060405180910390fd5b6001600160a01b03808416600081815260096020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166113195760405162461bcd60e51b8152600401808060200182810382526021815260200180611f326021913960400191505060405180910390fd5b6113268383836001611a3c565b6040805183815290516001600160a01b038516916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a3505050565b60006113ae83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611c0a565b9392505050565b60006113bf611ec1565b506001600160a01b0385166000908152600a6020908152604091829020825160608101845290546001600160801b0381168252600160801b81046001600160601b031692820192909252600160e01b90910463ffffffff169181019190915283801561143557506006546001600160a01b031615155b156114b957600660009054906101000a90046001600160a01b03166001600160a01b031663e4fc6b6d6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561148a57600080fd5b505af115801561149e573d6000803e3d6000fd5b505050506040513d60208110156114b457600080fd5b505191505b600b5485158015906114cb5750600083115b156114ff576114f76114f0876114ea8668056bc75e2d63100000611c6f565b9061136c565b8290611cc8565b600b81905590505b600061157061155c68056bc75e2d631000006114ea61153487600001516001600160801b03168761185c90919063ffffffff16565b6001600160a01b038d166000908152600860205260409020546001600160801b031690611c6f565b60208501516001600160601b031690611cc8565b90506001600160601b0381111561158b57506001600160601b035b6001600160801b038211156115a5576001600160801b0391505b6040518060600160405280836001600160801b03168152602001826001600160601b03168152602001866115dd5784604001516115e6565b64010000000042065b63ffffffff9081169091526001600160a01b039099166000908152600a602090815260409182902083518154928501519490930151909b16600160e01b026001600160e01b036001600160601b03909416600160801b026bffffffffffffffffffffffff60801b196001600160801b039094166001600160801b0319909316929092179290921617919091161790975550505050505050565b6000818484111561170e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116d35781810151838201526020016116bb565b50505050905090810190601f1680156117005780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b61171f83610d0a565b1561175b5760405162461bcd60e51b81526004018080602001828103825260248152602001806120336024913960400191505060405180910390fd5b6001600160a01b0383166117a05760405162461bcd60e51b8152600401808060200182810382526027815260200180611f996027913960400191505060405180910390fd5b6001600160a01b0382166117e55760405162461bcd60e51b8152600401808060200182810382526025815260200180611f536025913960400191505060405180910390fd5b60006117ef611153565b90506117fe8483836001611d22565b61180b8383836000611a3c565b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a350505050565b60006113ae83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061167f565b60006001600160a01b0384166118e55760405162461bcd60e51b81526004018080602001828103825260238152602001806120106023913960400191505060405180910390fd5b60006118ef611153565b90506118f9611ee1565b506001600160a01b03851660009081526008602090815260408083208151808301909252546001600160801b03808216808452600160801b90920416928201929092529190611948908461136c565b905060006119676c0c9f2c9cd04674edea400000006114ea848a611c6f565b90508061197389610d0a565b801561198b575083602001516001600160801b031683115b156119e3576119c16c0c9f2c9cd04674edea400000006114ea8a87602001516001600160801b0316611c6f90919063ffffffff16565b60208501519092506119e0906001600160801b03166114ea8486611c6f565b90505b6119ef8982878a611d22565b6040805183815290516000916001600160a01b038c16917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a350979650505050505050565b82611a4657611c04565b600354611a5685826001856113b5565b6000611a628585611c6f565b9050611a6c611ee1565b506001600160a01b03861660009081526008602090815260408083208151808301909252546001600160801b03808216808452600160801b90920416928201929092529190611abb9084611cc8565b90506001600160801b038110611b18576040805162461bcd60e51b815260206004820152601f60248201527f5832546f6b656e3a2062616c616e6365206c696d697420657863656564656400604482015290519081900360640190fd5b6020820151600090611b33906001600160801b031689611cc8565b90506001600160801b038110611b90576040805162461bcd60e51b815260206004820152601c60248201527f5832546f6b656e3a20636f7374206c696d697420657863656564656400000000604482015290519081900360640190fd5b6040805180820182526001600160801b03808516825283811660208084019182526001600160a01b038e1660009081526008909152939093209151825493518216600160801b029082166001600160801b03199094169390931716919091179055611bfb8585611cc8565b60035550505050505b50505050565b60008183611c595760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156116d35781810151838201526020016116bb565b506000838581611c6557fe5b0495945050505050565b600082611c7e57506000610a84565b82820282848281611c8b57fe5b04146113ae5760405162461bcd60e51b8152600401808060200182810382526021815260200180611f786021913960400191505060405180910390fd5b6000828201838110156113ae576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b82611d2c57611c04565b600354611d3c85828460006113b5565b6000611d488585611c6f565b9050611d52611ee1565b506001600160a01b03861660009081526008602090815260408083208151808301909252546001600160801b03808216808452600160801b90920416928201929092529190611da1908461185c565b90506000611dd683600001516001600160801b03166114ea8486602001516001600160801b0316611c6f90919063ffffffff16565b6040805180820182526001600160801b03808616825280841660208084019182526001600160a01b038f1660009081526008909152939093209151825493518216600160801b029082166001600160801b031990941693909317169190911790559050611bfb858561185c565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611e8457805160ff1916838001178555611eb1565b82800160010185558215611eb1579182015b82811115611eb1578251825591602001919060010190611e96565b50611ebd929150611ef8565b5090565b604080516060810182526000808252602082018190529181019190915290565b604080518082019091526000808252602082015290565b5b80821115611ebd5760008155600101611ef956fe5832546f6b656e3a20617070726f766520746f20746865207a65726f20616464726573735832546f6b656e3a206d696e7420746f20746865207a65726f20616464726573735832546f6b656e3a207472616e7366657220746f20746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775832546f6b656e3a207472616e736665722066726f6d20746865207a65726f20616464726573735832546f6b656e3a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63655832546f6b656e3a20617070726f76652066726f6d20746865207a65726f20616464726573735832546f6b656e3a206275726e2066726f6d20746865207a65726f20616464726573735832546f6b656e3a20686f6c64696e672074696d65206e6f742079657420706173736564a2646970667358221220ea66f51f36f20cba8c738dd08e6ec62a315a4fdcf9e7a827cfde5be53fa2bd0664736f6c634300060c0033
Deployed Bytecode
0x6080604052600436106101e75760003560e01c806376fd4fdf11610102578063c00007b011610095578063dd62ed3e11610064578063dd62ed3e14610902578063e5eb6ab51461093d578063f5fc507614610952578063f7c618c114610967576101ee565b8063c00007b014610854578063c45a015514610887578063cb843ef31461089c578063cca3e832146108cf576101ee565b8063a9059cbb116100d1578063a9059cbb1461066a578063a923fc40146106a3578063b1e1c370146107dd578063bfe109281461083f576101ee565b806376fd4fdf146105a857806380f55605146105e957806395d89b411461061a578063a768a98a1461062f576101ee565b8063313ce5671161017a578063485cc95511610149578063485cc955146104cc578063525c91ec1461050757806355b6ed5c1461053a57806370a0823114610575576101ee565b8063313ce56714610444578063392e53cd1461046f5780633eaaf86b14610484578063437a640114610499576101ee565b8063156e29f6116101b6578063156e29f61461037857806318160ddd146103b95780631e83409a146103ce57806323b872dd14610401576101ee565b8063061525f7146101f357806306fdde03146102385780630700037d146102c2578063095ea7b31461032b576101ee565b366101ee57005b600080fd5b3480156101ff57600080fd5b506102266004803603602081101561021657600080fd5b50356001600160a01b031661097c565b60408051918252519081900360200190f35b34801561024457600080fd5b5061024d6109ab565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561028757818101518382015260200161026f565b50505050905090810190601f1680156102b45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102ce57600080fd5b506102f5600480360360208110156102e557600080fd5b50356001600160a01b0316610a38565b604080516001600160801b0390941684526001600160601b03909216602084015263ffffffff1682820152519081900360600190f35b34801561033757600080fd5b506103646004803603604081101561034e57600080fd5b506001600160a01b038135169060200135610a73565b604080519115158252519081900360200190f35b34801561038457600080fd5b506103b76004803603606081101561039b57600080fd5b506001600160a01b038135169060208101359060400135610a8a565b005b3480156103c557600080fd5b50610226610aee565b3480156103da57600080fd5b506103b7600480360360208110156103f157600080fd5b50356001600160a01b0316610b09565b34801561040d57600080fd5b506103646004803603606081101561042457600080fd5b506001600160a01b03813581169160208101359091169060400135610c88565b34801561045057600080fd5b50610459610cf6565b6040805160ff9092168252519081900360200190f35b34801561047b57600080fd5b50610364610cfb565b34801561049057600080fd5b50610226610d04565b3480156104a557600080fd5b50610364600480360360208110156104bc57600080fd5b50356001600160a01b0316610d0a565b3480156104d857600080fd5b506103b7600480360360408110156104ef57600080fd5b506001600160a01b0381358116916020013516610d28565b34801561051357600080fd5b506102266004803603602081101561052a57600080fd5b50356001600160a01b0316610dbb565b34801561054657600080fd5b506102266004803603604081101561055d57600080fd5b506001600160a01b0381358116916020013516610e38565b34801561058157600080fd5b506102266004803603602081101561059857600080fd5b50356001600160a01b0316610e55565b3480156105b457600080fd5b50610226600480360360608110156105cb57600080fd5b506001600160a01b0381351690602081013590604001351515610e9a565b3480156105f557600080fd5b506105fe610efc565b604080516001600160a01b039092168252519081900360200190f35b34801561062657600080fd5b5061024d610f0b565b34801561063b57600080fd5b506103b76004803603604081101561065257600080fd5b506001600160a01b0381358116916020013516610f63565b34801561067657600080fd5b506103646004803603604081101561068d57600080fd5b506001600160a01b038135169060200135610fe5565b3480156106af57600080fd5b506103b7600480360360408110156106c657600080fd5b8101906020810181356401000000008111156106e157600080fd5b8201836020820111156106f357600080fd5b8035906020019184600183028401116401000000008311171561071557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929594936020810193503591505064010000000081111561076857600080fd5b82018360208201111561077a57600080fd5b8035906020019184600183028401116401000000008311171561079c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610ff2945050505050565b3480156107e957600080fd5b506108106004803603602081101561080057600080fd5b50356001600160a01b031661106d565b60405180836001600160801b03168152602001826001600160801b031681526020019250505060405180910390f35b34801561084b57600080fd5b506105fe611093565b34801561086057600080fd5b506102266004803603602081101561087757600080fd5b50356001600160a01b03166110a2565b34801561089357600080fd5b506105fe6110cd565b3480156108a857600080fd5b50610226600480360360208110156108bf57600080fd5b50356001600160a01b03166110dc565b3480156108db57600080fd5b50610226600480360360208110156108f257600080fd5b50356001600160a01b0316611104565b34801561090e57600080fd5b506102266004803603604081101561092557600080fd5b506001600160a01b0381358116916020013516611128565b34801561094957600080fd5b50610226611153565b34801561095e57600080fd5b506102266111d3565b34801561097357600080fd5b506105fe6111d9565b6001600160a01b038116600090815260086020526040902054600160801b90046001600160801b03165b919050565b60018054604080516020600284861615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610a305780601f10610a0557610100808354040283529160200191610a30565b820191906000526020600020905b815481529060010190602001808311610a1357829003601f168201915b505050505081565b600a602052600090815260409020546001600160801b03811690600160801b81046001600160601b031690600160e01b900463ffffffff1683565b6000610a803384846111e8565b5060015b92915050565b6004546001600160a01b03163314610ade576040805162461bcd60e51b81526020600482015260126024820152712c192a37b5b2b71d103337b93134b23232b760711b604482015290519081900360640190fd5b610ae98383836112d4565b505050565b6000610b04610afb611153565b6003549061136c565b905090565b60026000541415610b61576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260009081556003543391610b7d90839083906001906113b5565b6001600160a01b038281166000908152600a6020908152604080832080546bffffffffffffffffffffffff60801b1981168255600754835163a9059cbb60e01b81528a88166004820152600160801b9092046001600160601b03166024830181905293519296939593169363a9059cbb9360448084019492938390030190829087803b158015610c0c57600080fd5b505af1158015610c20573d6000803e3d6000fd5b505050506040513d6020811015610c3657600080fd5b5050604080516001600160a01b03871681526020810183905281517f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4929181900390910190a150506001600055505050565b600080610cd3836040518060600160405280602a8152602001611fc0602a91396001600160a01b0388166000908152600960209081526040808320338452909152902054919061167f565b9050610ce08533836111e8565b610ceb858585611716565b506001949350505050565b601281565b600c5460ff1681565b60035481565b6000610d184261025861185c565b610d21836110dc565b1192915050565b600c5460ff1615610d80576040805162461bcd60e51b815260206004820152601c60248201527f5832546f6b656e3a20616c726561647920696e697469616c697a656400000000604482015290519081900360640190fd5b600c805460ff19166001179055600580546001600160a01b039384166001600160a01b03199182161790915560048054929093169116179055565b6000610dc682610d0a565b610dd2575060006109a6565b6000610e07610ddf611153565b6001600160a01b0385166000908152600860205260409020546001600160801b03169061136c565b90506000610e148461097c565b905080821115610e2d57610e28828261185c565b610e30565b60005b949350505050565b600960209081526000928352604080842090915290825290205481565b600080610e63610ddf611153565b9050610e6e83610d0a565b610e795790506109a6565b6000610e848461097c565b9050808210610e935780610e30565b5092915050565b6004546000906001600160a01b03163314610ef1576040805162461bcd60e51b81526020600482015260126024820152712c192a37b5b2b71d103337b93134b23232b760711b604482015290519081900360640190fd5b610e3084848461189e565b6004546001600160a01b031681565b6002805460408051602060018416156101000260001901909316849004601f81018490048402820184019092528181529291830182828015610a305780601f10610a0557610100808354040283529160200191610a30565b6005546001600160a01b03163314610fb7576040805162461bcd60e51b81526020600482015260126024820152712c192a37b5b2b71d103337b93134b23232b760711b604482015290519081900360640190fd5b600680546001600160a01b039384166001600160a01b03199182161790915560078054929093169116179055565b6000610a80338484611716565b6005546001600160a01b03163314611046576040805162461bcd60e51b81526020600482015260126024820152712c192a37b5b2b71d103337b93134b23232b760711b604482015290519081900360640190fd5b8151611059906001906020850190611e43565b508051610ae9906002906020840190611e43565b6008602052600090815260409020546001600160801b0380821691600160801b90041682565b6006546001600160a01b031681565b6001600160a01b03166000908152600a6020526040902054600160801b90046001600160601b031690565b6005546001600160a01b031681565b6001600160a01b03166000908152600a6020526040902054600160e01b900463ffffffff1690565b6001600160a01b03166000908152600860205260409020546001600160801b031690565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205490565b6004805460408051634cff936f60e11b81523093810193909352516000926001600160a01b03909216916399ff26de916024808301926020929190829003018186803b1580156111a257600080fd5b505afa1580156111b6573d6000803e3d6000fd5b505050506040513d60208110156111cc57600080fd5b5051905090565b600b5481565b6007546001600160a01b031681565b6001600160a01b03831661122d5760405162461bcd60e51b8152600401808060200182810382526026815260200180611fea6026913960400191505060405180910390fd5b6001600160a01b0382166112725760405162461bcd60e51b8152600401808060200182810382526024815260200180611f0e6024913960400191505060405180910390fd5b6001600160a01b03808416600081815260096020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166113195760405162461bcd60e51b8152600401808060200182810382526021815260200180611f326021913960400191505060405180910390fd5b6113268383836001611a3c565b6040805183815290516001600160a01b038516916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a3505050565b60006113ae83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611c0a565b9392505050565b60006113bf611ec1565b506001600160a01b0385166000908152600a6020908152604091829020825160608101845290546001600160801b0381168252600160801b81046001600160601b031692820192909252600160e01b90910463ffffffff169181019190915283801561143557506006546001600160a01b031615155b156114b957600660009054906101000a90046001600160a01b03166001600160a01b031663e4fc6b6d6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561148a57600080fd5b505af115801561149e573d6000803e3d6000fd5b505050506040513d60208110156114b457600080fd5b505191505b600b5485158015906114cb5750600083115b156114ff576114f76114f0876114ea8668056bc75e2d63100000611c6f565b9061136c565b8290611cc8565b600b81905590505b600061157061155c68056bc75e2d631000006114ea61153487600001516001600160801b03168761185c90919063ffffffff16565b6001600160a01b038d166000908152600860205260409020546001600160801b031690611c6f565b60208501516001600160601b031690611cc8565b90506001600160601b0381111561158b57506001600160601b035b6001600160801b038211156115a5576001600160801b0391505b6040518060600160405280836001600160801b03168152602001826001600160601b03168152602001866115dd5784604001516115e6565b64010000000042065b63ffffffff9081169091526001600160a01b039099166000908152600a602090815260409182902083518154928501519490930151909b16600160e01b026001600160e01b036001600160601b03909416600160801b026bffffffffffffffffffffffff60801b196001600160801b039094166001600160801b0319909316929092179290921617919091161790975550505050505050565b6000818484111561170e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116d35781810151838201526020016116bb565b50505050905090810190601f1680156117005780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b61171f83610d0a565b1561175b5760405162461bcd60e51b81526004018080602001828103825260248152602001806120336024913960400191505060405180910390fd5b6001600160a01b0383166117a05760405162461bcd60e51b8152600401808060200182810382526027815260200180611f996027913960400191505060405180910390fd5b6001600160a01b0382166117e55760405162461bcd60e51b8152600401808060200182810382526025815260200180611f536025913960400191505060405180910390fd5b60006117ef611153565b90506117fe8483836001611d22565b61180b8383836000611a3c565b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a350505050565b60006113ae83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061167f565b60006001600160a01b0384166118e55760405162461bcd60e51b81526004018080602001828103825260238152602001806120106023913960400191505060405180910390fd5b60006118ef611153565b90506118f9611ee1565b506001600160a01b03851660009081526008602090815260408083208151808301909252546001600160801b03808216808452600160801b90920416928201929092529190611948908461136c565b905060006119676c0c9f2c9cd04674edea400000006114ea848a611c6f565b90508061197389610d0a565b801561198b575083602001516001600160801b031683115b156119e3576119c16c0c9f2c9cd04674edea400000006114ea8a87602001516001600160801b0316611c6f90919063ffffffff16565b60208501519092506119e0906001600160801b03166114ea8486611c6f565b90505b6119ef8982878a611d22565b6040805183815290516000916001600160a01b038c16917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a350979650505050505050565b82611a4657611c04565b600354611a5685826001856113b5565b6000611a628585611c6f565b9050611a6c611ee1565b506001600160a01b03861660009081526008602090815260408083208151808301909252546001600160801b03808216808452600160801b90920416928201929092529190611abb9084611cc8565b90506001600160801b038110611b18576040805162461bcd60e51b815260206004820152601f60248201527f5832546f6b656e3a2062616c616e6365206c696d697420657863656564656400604482015290519081900360640190fd5b6020820151600090611b33906001600160801b031689611cc8565b90506001600160801b038110611b90576040805162461bcd60e51b815260206004820152601c60248201527f5832546f6b656e3a20636f7374206c696d697420657863656564656400000000604482015290519081900360640190fd5b6040805180820182526001600160801b03808516825283811660208084019182526001600160a01b038e1660009081526008909152939093209151825493518216600160801b029082166001600160801b03199094169390931716919091179055611bfb8585611cc8565b60035550505050505b50505050565b60008183611c595760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156116d35781810151838201526020016116bb565b506000838581611c6557fe5b0495945050505050565b600082611c7e57506000610a84565b82820282848281611c8b57fe5b04146113ae5760405162461bcd60e51b8152600401808060200182810382526021815260200180611f786021913960400191505060405180910390fd5b6000828201838110156113ae576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b82611d2c57611c04565b600354611d3c85828460006113b5565b6000611d488585611c6f565b9050611d52611ee1565b506001600160a01b03861660009081526008602090815260408083208151808301909252546001600160801b03808216808452600160801b90920416928201929092529190611da1908461185c565b90506000611dd683600001516001600160801b03166114ea8486602001516001600160801b0316611c6f90919063ffffffff16565b6040805180820182526001600160801b03808616825280841660208084019182526001600160a01b038f1660009081526008909152939093209151825493518216600160801b029082166001600160801b031990941693909317169190911790559050611bfb858561185c565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611e8457805160ff1916838001178555611eb1565b82800160010185558215611eb1579182015b82811115611eb1578251825591602001919060010190611e96565b50611ebd929150611ef8565b5090565b604080516060810182526000808252602082018190529181019190915290565b604080518082019091526000808252602082015290565b5b80821115611ebd5760008155600101611ef956fe5832546f6b656e3a20617070726f766520746f20746865207a65726f20616464726573735832546f6b656e3a206d696e7420746f20746865207a65726f20616464726573735832546f6b656e3a207472616e7366657220746f20746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775832546f6b656e3a207472616e736665722066726f6d20746865207a65726f20616464726573735832546f6b656e3a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63655832546f6b656e3a20617070726f76652066726f6d20746865207a65726f20616464726573735832546f6b656e3a206275726e2066726f6d20746865207a65726f20616464726573735832546f6b656e3a20686f6c64696e672074696d65206e6f742079657420706173736564a2646970667358221220ea66f51f36f20cba8c738dd08e6ec62a315a4fdcf9e7a827cfde5be53fa2bd0664736f6c634300060c0033
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.