Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
182,252.258032397820313519 RCKT
Holders
140
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
28,013.852730524245219275 RCKTValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
RocketV2
Compiler Version
v0.6.6+commit.6c089d02
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-10-25 */ pragma solidity =0.6.6; 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) { // Solidity only automatically asserts when dividing by 0 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; } } /** * @title Initializable * * @dev Helper contract to support initializer functions. To use it, replace * the constructor with a function that has the `initializer` modifier. * WARNING: Unlike constructors, initializer functions must be manually * invoked. This applies both to deploying an Initializable contract, as well * as extending an Initializable contract via inheritance. * WARNING: When used with inheritance, manual care must be taken to not invoke * a parent initializer twice, or ensure that all initializers are idempotent, * because this is not dealt with automatically as with constructors. */ contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private initializing; /** * @dev Modifier to use in the initializer function of a contract. */ modifier initializer() { require(initializing || isConstructor() || !initialized, "Contract instance has already been initialized"); bool isTopLevelCall = !initializing; if (isTopLevelCall) { initializing = true; initialized = true; } _; if (isTopLevelCall) { initializing = false; } } /// @dev Returns true if and only if the function is running in the constructor function isConstructor() private view returns (bool) { // extcodesize checks the size of the code stored in an address, and // address returns the current address. Since the code is still not // deployed when running a constructor, any checks on its code size will // yield zero, making it an effective way to detect if a contract is // under construction or not. address self = address(this); uint256 cs; assembly { cs := extcodesize(self) } return cs == 0; } // Reserved storage space to allow for layout changes in the future. uint256[50] private ______gap; } /* * @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 GSN 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. */ contract ContextUpgradeSafe is Initializable { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } uint256[50] private __gap; } contract OwnableUpgradeSafe is Initializable, ContextUpgradeSafe { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal initializer { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal initializer { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } uint256[49] private __gap; } 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); } /** * @dev Interface of the ERC20 standard as defined in the EIP. */ /** * @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. */ /** * @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) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @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"); } } contract ERC20UpgradeSafe is Initializable, ContextUpgradeSafe, IERC20 { using SafeMath for uint256; using Address for address; mapping(address => uint256) internal _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 internal _totalSupply; string private _name; string private _symbol; uint8 private _decimals; uint256 internal _gonsPerToken; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ function __ERC20_init(string memory name, string memory symbol) internal initializer { __Context_init_unchained(); __ERC20_init_unchained(name, symbol); } function __ERC20_init_unchained(string memory name, string memory symbol) internal initializer { _name = name; _symbol = symbol; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view 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 {_setupDecimals} is * called. * * 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 returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public override view returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public override view returns (uint256) { return _balances[account].div(_gonsPerToken); } /** * @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 virtual override view returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve( sender, _msgSender(), _allowances[sender][_msgSender()].sub( amount, "ERC20: transfer amount exceeds allowance" ) ); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve( _msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue) ); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve( _msgSender(), spender, _allowances[_msgSender()][spender].sub( subtractedValue, "ERC20: decreased allowance below zero" ) ); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 gonAmount = amount.mul(_gonsPerToken); _balances[sender] = _balances[sender].sub( gonAmount, "ERC20: transfer amount exceeds balance" ); _balances[recipient] = _balances[recipient].add(gonAmount); emit Transfer(sender, recipient, amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is 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 Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} uint256[44] private __gap; } 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; } } interface IOracle { function getData() external returns (uint256, bool); function update() external; function consult() external view returns (uint256 exchangeRate); } interface IFeeCollector { function collectTransferFee(uint256 _amount) external returns (uint256 amountAfterFee); function collectTransferAndStakingFees(uint256 _amount) external returns (uint256 amountAfterFee); function calculateTransferAndStakingFee(uint256 _amount) external view returns ( uint256 totalFeeAmount, uint256 transferFeeAmount, uint256 stakingFeeAmount, uint256 feeToBurn, uint256 feeToStakers, uint256 amountAfterFee ); function calculateTransferFee(uint256 _amount) external view returns ( uint256 feeToCharge, uint256 feeToBurn, uint256 feeToStakers, uint256 amountAfterFee ); } interface IMonetaryPolicy { function rebase() external; function setMarketOracle(IOracle _marketOracle) external; function setRocket(IRocketV2 _rocket) external; function setDeviationThreshold(uint256 _deviationThreshold) external; function setRebaseLag(uint256 _rebaseLag) external; function setRebaseTimingParameters( uint256 _minRebaseTimeIntervalSec, uint256 _rebaseWindowOffsetSec, uint256 _rebaseWindowLengthSec ) external; function inRebaseWindow() external view returns (bool); } interface IRocketV2 is IERC20 { function setMonetaryPolicy(IMonetaryPolicy _monetaryPolicy) external; function rebase(uint256 epoch, int256 supplyDelta) external returns (uint256 supplyAfterRebase); function setFeeCollector(IFeeCollector _feeCollector) external; function isFeeChargingEnabled() external view returns (bool stakingEnabled); function transferFromWithoutCollectingFee( address sender, address recipient, uint256 amount ) external returns (bool success); function claim(uint256 rocketV1Amount) external; function calculateClaim(uint256 rocketV1AmountToSend) external view returns (uint256 rocketV2AmountToReceive); } interface IStaking { function stake(uint256 _amount) external returns (uint256 creditsIssued); function redeem(uint256 _amount) external returns (uint256 rocketReturned); function tokensToCredits(uint256 _amount) external view returns (uint256 credits); function creditsToTokens(uint256 _credits) external view returns (uint256 rocketAmount); function getStakerBalance(address staker) external view returns ( uint256 credits, uint256 toRedeem, uint256 toRedeemAfterFee ); } // SPDX-License-Identifier: MIT contract RocketV2 is IRocketV2, OwnableUpgradeSafe, ERC20UpgradeSafe { using SafeMath for uint256; using SafeMathInt for int256; IFeeCollector public feeCollector; IStaking public staking; IMonetaryPolicy public monetaryPolicy; IERC20 public rocketV1; uint256 private constant DECIMALS = 18; uint256 private constant MAX_UINT256 = ~uint256(0); uint256 private constant INITIAL_SUPPLY = 3 * 10**6 * 10**DECIMALS; // TOTAL_GONS is a multiple of INITIAL_SUPPLY so that _gonsPerToken is an integer. // Use the highest value that fits in a uint256 for max granularity. uint256 private constant TOTAL_GONS = MAX_UINT256 - (MAX_UINT256 % INITIAL_SUPPLY); // MAX_SUPPLY = maximum integer < (sqrt(4*TOTAL_GONS + 1) - 1) / 2 uint256 private constant MAX_SUPPLY = ~uint128(0); // (2^128) - 1 event LogMonetaryPolicyUpdated(address monetaryPolicy); event FeeCollectorUpdated(address feeCollector); event StakingUpdated(address staking); event RocketRebased(uint256 indexed epoch, uint256 totalSupply); modifier onlyMonetaryPolicy() { require( _msgSender() == address(monetaryPolicy), "RocketV2: caller is not the monetary policy" ); _; } modifier canTransferWithoutFees() { require( _msgSender() == address(feeCollector) || _msgSender() == address(staking), "RocketV2: caller is not allowed to transfer without paying fees" ); _; } function initialize(IERC20 _rocketV1) external initializer { __Context_init_unchained(); __ERC20_init_unchained("Rocket Coin", "RCKT"); __Ownable_init_unchained(); _setupDecimals(uint8(DECIMALS)); _totalSupply = INITIAL_SUPPLY; _balances[address(this)] = TOTAL_GONS; _gonsPerToken = TOTAL_GONS.div(_totalSupply); rocketV1 = _rocketV1; emit Transfer(address(0x0), address(this), _totalSupply); } function setMonetaryPolicy(IMonetaryPolicy _monetaryPolicy) external override onlyOwner { require( address(_monetaryPolicy) != address(0), "RocketV2: monetaryPolicy address can't be zero" ); monetaryPolicy = _monetaryPolicy; emit LogMonetaryPolicyUpdated(address(_monetaryPolicy)); } function setFeeCollector(IFeeCollector _feeCollector) external override onlyOwner { require( address(_feeCollector) != address(0), "RocketV2: feeCollector address can't be zero" ); feeCollector = _feeCollector; emit FeeCollectorUpdated(address(_feeCollector)); } function setStaking(IStaking _staking) public onlyOwner { require( address(_staking) != address(0), "RocketV2: staking address can't be zero" ); staking = _staking; emit StakingUpdated(address(_staking)); } function claim(uint256 rocketV1Amount) external override { require( rocketV1.transferFrom(_msgSender(), address(this), rocketV1Amount), "RocketV2: Must receive RocketV1 tokens" ); uint256 toSend = calculateClaim(rocketV1Amount); // Note: this transfer doesn't collect fees super._transfer(address(this), _msgSender(), toSend); } function calculateClaim(uint256 rocketV1AmountToSend) public override view returns (uint256 rocketV2AmountToReceive) { uint256 v1Supply = rocketV1.totalSupply(); uint256 v2Supply = totalSupply(); rocketV2AmountToReceive = rocketV1AmountToSend.mul(v2Supply).div( v1Supply ); } function rebase(uint256 epoch, int256 supplyDelta) external override onlyMonetaryPolicy returns (uint256 supplyAfterRebase) { if (supplyDelta == 0) { emit RocketRebased(epoch, _totalSupply); return _totalSupply; } if (supplyDelta < 0) { _totalSupply = _totalSupply.sub(uint256(supplyDelta.abs())); } else { _totalSupply = _totalSupply.add(uint256(supplyDelta)); } if (_totalSupply > MAX_SUPPLY) { _totalSupply = MAX_SUPPLY; } _gonsPerToken = TOTAL_GONS.div(_totalSupply); // From this point forward, _gonsPerToken is taken as the source of truth. // We recalculate a new _totalSupply to be in agreement with the _gonsPerToken // conversion rate. // This means our applied supplyDelta can deviate from the requested supplyDelta, // but this deviation is guaranteed to be < (_totalSupply^2)/(TOTAL_GONS - _totalSupply). // // In the case of _totalSupply <= MAX_UINT128 (our current supply cap), this // deviation is guaranteed to be < 1, so we can omit this step. If the supply cap is // ever increased, it must be re-included. // _totalSupply = TOTAL_GONS.div(_gonsPerToken) emit RocketRebased(epoch, _totalSupply); return _totalSupply; } function isFeeChargingEnabled() public override view returns (bool feeEnabled) { return address(feeCollector) != address(0) ? true : false; } function transferFromWithoutCollectingFee( address sender, address recipient, uint256 amount ) external override canTransferWithoutFees returns (bool success) { super._transfer(sender, recipient, amount); success = true; } function _transfer( address sender, address recipient, uint256 amount ) internal override { if (isFeeChargingEnabled()) { (uint256 totalFee, , , ) = feeCollector.calculateTransferFee( amount ); super._transfer(sender, address(this), totalFee); super._approve(address(this), address(feeCollector), totalFee); uint256 amountAfterFee = feeCollector.collectTransferFee(amount); super._approve(address(this), address(feeCollector), 0); super._transfer(sender, recipient, amountAfterFee); } else { super._transfer(sender, recipient, amount); } } }
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":"feeCollector","type":"address"}],"name":"FeeCollectorUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"monetaryPolicy","type":"address"}],"name":"LogMonetaryPolicyUpdated","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":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"}],"name":"RocketRebased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"staking","type":"address"}],"name":"StakingUpdated","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"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"rocketV1AmountToSend","type":"uint256"}],"name":"calculateClaim","outputs":[{"internalType":"uint256","name":"rocketV2AmountToReceive","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"rocketV1Amount","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeCollector","outputs":[{"internalType":"contract IFeeCollector","name":"","type":"address"}],"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":"contract IERC20","name":"_rocketV1","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isFeeChargingEnabled","outputs":[{"internalType":"bool","name":"feeEnabled","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"monetaryPolicy","outputs":[{"internalType":"contract IMonetaryPolicy","name":"","type":"address"}],"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":"epoch","type":"uint256"},{"internalType":"int256","name":"supplyDelta","type":"int256"}],"name":"rebase","outputs":[{"internalType":"uint256","name":"supplyAfterRebase","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rocketV1","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IFeeCollector","name":"_feeCollector","type":"address"}],"name":"setFeeCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMonetaryPolicy","name":"_monetaryPolicy","type":"address"}],"name":"setMonetaryPolicy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IStaking","name":"_staking","type":"address"}],"name":"setStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staking","outputs":[{"internalType":"contract IStaking","name":"","type":"address"}],"stateMutability":"view","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"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFromWithoutCollectingFee","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506133ed806100206000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80638b5a6a08116100f9578063a457c2d711610097578063c415b95c11610071578063c415b95c146108ce578063c4d66de814610918578063dd62ed3e1461095c578063f2fde38b146109d4576101a9565b8063a457c2d7146107c0578063a726b16614610826578063a9059cbb14610868576101a9565b80638ff39099116100d35780638ff390991461066b57806395d89b41146106af578063a1a51e4814610732578063a42dce801461077c576101a9565b80638b5a6a08146105935780638da5cb5b146105d75780638e27d7d714610621576101a9565b8063379607f5116101665780634cf088d9116101405780634cf088d91461049b57806370a08231146104e5578063715018a61461053d5780637a43e23f14610547576101a9565b8063379607f5146103e557806339509351146104135780634363d40e14610479576101a9565b806306fdde03146101ae578063095ea7b31461023157806318160ddd1461029757806323b872dd146102b5578063313ce5671461033b57806334122e711461035f575b600080fd5b6101b6610a18565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101f65780820151818401526020810190506101db565b50505050905090810190601f1680156102235780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61027d6004803603604081101561024757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610aba565b604051808215151515815260200191505060405180910390f35b61029f610ad8565b6040518082815260200191505060405180910390f35b610321600480360360608110156102cb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610ae2565b604051808215151515815260200191505060405180910390f35b610343610bbb565b604051808260ff1660ff16815260200191505060405180910390f35b6103cb6004803603606081101561037557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610bd2565b604051808215151515815260200191505060405180910390f35b610411600480360360208110156103fb57600080fd5b8101908080359060200190929190505050610cf6565b005b61045f6004803603604081101561042957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610e8d565b604051808215151515815260200191505060405180910390f35b610481610f40565b604051808215151515815260200191505060405180910390f35b6104a3610fa7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610527600480360360208110156104fb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610fcd565b6040518082815260200191505060405180910390f35b61054561102a565b005b61057d6004803603604081101561055d57600080fd5b8101908080359060200190929190803590602001909291905050506111b5565b6040518082815260200191505060405180910390f35b6105d5600480360360208110156105a957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506113b1565b005b6105df6115a8565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6106296115d2565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6106ad6004803603602081101561068157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506115f8565b005b6106b76117ef565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156106f75780820151818401526020810190506106dc565b50505050905090810190601f1680156107245780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61073a611891565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6107be6004803603602081101561079257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506118b7565b005b61080c600480360360408110156107d657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611aae565b604051808215151515815260200191505060405180910390f35b6108526004803603602081101561083c57600080fd5b8101908080359060200190929190505050611b7b565b6040518082815260200191505060405180910390f35b6108b46004803603604081101561087e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611c5d565b604051808215151515815260200191505060405180910390f35b6108d6611c7b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61095a6004803603602081101561092e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611ca1565b005b6109be6004803603604081101561097257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611f77565b6040518082815260200191505060405180910390f35b610a16600480360360208110156109ea57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611ffe565b005b6060609a8054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610ab05780601f10610a8557610100808354040283529160200191610ab0565b820191906000526020600020905b815481529060010190602001808311610a9357829003601f168201915b5050505050905090565b6000610ace610ac761220e565b8484612216565b6001905092915050565b6000609954905090565b6000610aef84848461240d565b610bb084610afb61220e565b610bab856040518060600160405280602881526020016132cd60289139609860008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610b6161220e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461262a9092919063ffffffff16565b612216565b600190509392505050565b6000609c60009054906101000a900460ff16905090565b600060ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610c1561220e565b73ffffffffffffffffffffffffffffffffffffffff161480610c8b575060cb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610c7361220e565b73ffffffffffffffffffffffffffffffffffffffff16145b610ce0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603f815260200180613247603f913960400191505060405180910390fd5b610ceb8484846126ea565b600190509392505050565b60cd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd610d3c61220e565b30846040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015610dda57600080fd5b505af1158015610dee573d6000803e3d6000fd5b505050506040513d6020811015610e0457600080fd5b8101908080519060200190929190505050610e6a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806132a76026913960400191505060405180910390fd5b6000610e7582611b7b565b9050610e8930610e8361220e565b836126ea565b5050565b6000610f36610e9a61220e565b84610f318560986000610eab61220e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546129c990919063ffffffff16565b612216565b6001905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff1660ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610f9f576000610fa2565b60015b905090565b60cb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000611023609d54609760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a5190919063ffffffff16565b9050919050565b61103261220e565b73ffffffffffffffffffffffffffffffffffffffff16606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600060cc60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166111f861220e565b73ffffffffffffffffffffffffffffffffffffffff1614611264576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180613182602b913960400191505060405180910390fd5b60008214156112b157827f1e579ac1fd6bbeb933c99da3167e6f3b63346028e890326d99f3059f3838f0c36099546040518082815260200191505060405180910390a260995490506113ab565b60008212156112e2576112d76112c683612a9b565b609954612ac990919063ffffffff16565b6099819055506112fe565b6112f7826099546129c990919063ffffffff16565b6099819055505b6000196fffffffffffffffffffffffffffffffff166099541115611338576000196fffffffffffffffffffffffffffffffff166099819055505b6113656099546012600a0a622dc6c0026000198161135257fe5b0660001903612a5190919063ffffffff16565b609d81905550827f1e579ac1fd6bbeb933c99da3167e6f3b63346028e890326d99f3059f3838f0c36099546040518082815260200191505060405180910390a260995490505b92915050565b6113b961220e565b73ffffffffffffffffffffffffffffffffffffffff16606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461147b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611501576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180613154602e913960400191505060405180910390fd5b8060cc60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f0e6961f1a1afb87eaf51fd64f22ddc10062e23aa7838eac5d0bdf140bfd3897281604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a150565b6000606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60cc60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61160061220e565b73ffffffffffffffffffffffffffffffffffffffff16606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146116c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611748576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806133236027913960400191505060405180910390fd5b8060cb60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fe189a719dae2bf18df1013cfa028ecce01f9fafdbd456a862fa18e6d0143e3c281604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a150565b6060609b8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156118875780601f1061185c57610100808354040283529160200191611887565b820191906000526020600020905b81548152906001019060200180831161186a57829003601f168201915b5050505050905090565b60cd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6118bf61220e565b73ffffffffffffffffffffffffffffffffffffffff16606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611981576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a07576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c8152602001806131ad602c913960400191505060405180910390fd5b8060ca60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fe5693914d19c789bdee50a362998c0bc8d035a835f9871da5d51152f0582c34f81604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a150565b6000611b71611abb61220e565b84611b6c856040518060600160405280602581526020016133936025913960986000611ae561220e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461262a9092919063ffffffff16565b612216565b6001905092915050565b60008060cd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611be657600080fd5b505afa158015611bfa573d6000803e3d6000fd5b505050506040513d6020811015611c1057600080fd5b810190808051906020019092919050505090506000611c2d610ad8565b9050611c5482611c468387612b1390919063ffffffff16565b612a5190919063ffffffff16565b92505050919050565b6000611c71611c6a61220e565b848461240d565b6001905092915050565b60ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060019054906101000a900460ff1680611cc05750611cbf612b99565b5b80611cd757506000809054906101000a900460ff16155b611d2c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806132f5602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015611d7c576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b611d84612bb0565b611df86040518060400160405280600b81526020017f526f636b657420436f696e0000000000000000000000000000000000000000008152506040518060400160405280600481526020017f52434b5400000000000000000000000000000000000000000000000000000000815250612caf565b611e00612dfa565b611e0a6012612fa2565b6012600a0a622dc6c0026099819055506012600a0a622dc6c00260001981611e2e57fe5b0660001903609760003073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611ea36099546012600a0a622dc6c00260001981611e9057fe5b0660001903612a5190919063ffffffff16565b609d819055508160cd60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6099546040518082815260200191505060405180910390a38015611f735760008060016101000a81548160ff0219169083151502179055505b5050565b6000609860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b61200661220e565b73ffffffffffffffffffffffffffffffffffffffff16606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146120c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561214e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806131d96026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561229c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602481526020018061336f6024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612322576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806131ff6022913960400191505060405180910390fd5b80609860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b612415610f40565b1561261957600060ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166337800bde836040518263ffffffff1660e01b81526004018082815260200191505060806040518083038186803b15801561248f57600080fd5b505afa1580156124a3573d6000803e3d6000fd5b505050506040513d60808110156124b957600080fd5b810190808051906020019092919080519060200190929190805190602001909291908051906020019092919050505050505090506124f88430836126ea565b6125253060ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683612216565b600060ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166305d871e5846040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b15801561259c57600080fd5b505af11580156125b0573d6000803e3d6000fd5b505050506040513d60208110156125c657600080fd5b810190808051906020019092919050505090506126073060ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000612216565b6126128585836126ea565b5050612625565b6126248383836126ea565b5b505050565b60008383111582906126d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561269c578082015181840152602081019050612681565b50505050905090810190601f1680156126c95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612770576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061334a6025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156127f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806131316023913960400191505060405180910390fd5b612801838383612fc0565b6000612818609d5483612b1390919063ffffffff16565b90506128868160405180606001604052806026815260200161322160269139609760008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461262a9092919063ffffffff16565b609760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061291b81609760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546129c990919063ffffffff16565b609760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a350505050565b600080828401905083811015612a47576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000612a9383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612fc5565b905092915050565b600060ff6001901b821415612aaf57600080fd5b60008212612abd5781612ac2565b816000035b9050919050565b6000612b0b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061262a565b905092915050565b600080831415612b265760009050612b93565b6000828402905082848281612b3757fe5b0414612b8e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806132866021913960400191505060405180910390fd5b809150505b92915050565b6000803090506000813b9050600081149250505090565b600060019054906101000a900460ff1680612bcf5750612bce612b99565b5b80612be657506000809054906101000a900460ff16155b612c3b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806132f5602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015612c8b576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b8015612cac5760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680612cce5750612ccd612b99565b5b80612ce557506000809054906101000a900460ff16155b612d3a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806132f5602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015612d8a576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b82609a9080519060200190612da092919061308b565b5081609b9080519060200190612db792919061308b565b506012609c60006101000a81548160ff021916908360ff1602179055508015612df55760008060016101000a81548160ff0219169083151502179055505b505050565b600060019054906101000a900460ff1680612e195750612e18612b99565b5b80612e3057506000809054906101000a900460ff16155b612e85576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806132f5602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015612ed5576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6000612edf61220e565b905080606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3508015612f9f5760008060016101000a81548160ff0219169083151502179055505b50565b80609c60006101000a81548160ff021916908360ff16021790555050565b505050565b60008083118290613071576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561303657808201518184015260208101905061301b565b50505050905090810190601f1680156130635780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161307d57fe5b049050809150509392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106130cc57805160ff19168380011785556130fa565b828001600101855582156130fa579182015b828111156130f95782518255916020019190600101906130de565b5b509050613107919061310b565b5090565b61312d91905b80821115613129576000816000905550600101613111565b5090565b9056fe45524332303a207472616e7366657220746f20746865207a65726f2061646472657373526f636b657456323a206d6f6e6574617279506f6c69637920616464726573732063616e2774206265207a65726f526f636b657456323a2063616c6c6572206973206e6f7420746865206d6f6e657461727920706f6c696379526f636b657456323a20666565436f6c6c6563746f7220616464726573732063616e2774206265207a65726f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365526f636b657456323a2063616c6c6572206973206e6f7420616c6c6f77656420746f207472616e7366657220776974686f757420706179696e672066656573536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77526f636b657456323a204d757374207265636569766520526f636b6574563120746f6b656e7345524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564526f636b657456323a207374616b696e6720616464726573732063616e2774206265207a65726f45524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212202edd11a65c05fa4bbe6e2ad12c8ccccadcdafd84a85bc0b6c14a68743b6b80ce64736f6c63430006060033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a95760003560e01c80638b5a6a08116100f9578063a457c2d711610097578063c415b95c11610071578063c415b95c146108ce578063c4d66de814610918578063dd62ed3e1461095c578063f2fde38b146109d4576101a9565b8063a457c2d7146107c0578063a726b16614610826578063a9059cbb14610868576101a9565b80638ff39099116100d35780638ff390991461066b57806395d89b41146106af578063a1a51e4814610732578063a42dce801461077c576101a9565b80638b5a6a08146105935780638da5cb5b146105d75780638e27d7d714610621576101a9565b8063379607f5116101665780634cf088d9116101405780634cf088d91461049b57806370a08231146104e5578063715018a61461053d5780637a43e23f14610547576101a9565b8063379607f5146103e557806339509351146104135780634363d40e14610479576101a9565b806306fdde03146101ae578063095ea7b31461023157806318160ddd1461029757806323b872dd146102b5578063313ce5671461033b57806334122e711461035f575b600080fd5b6101b6610a18565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101f65780820151818401526020810190506101db565b50505050905090810190601f1680156102235780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61027d6004803603604081101561024757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610aba565b604051808215151515815260200191505060405180910390f35b61029f610ad8565b6040518082815260200191505060405180910390f35b610321600480360360608110156102cb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610ae2565b604051808215151515815260200191505060405180910390f35b610343610bbb565b604051808260ff1660ff16815260200191505060405180910390f35b6103cb6004803603606081101561037557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610bd2565b604051808215151515815260200191505060405180910390f35b610411600480360360208110156103fb57600080fd5b8101908080359060200190929190505050610cf6565b005b61045f6004803603604081101561042957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610e8d565b604051808215151515815260200191505060405180910390f35b610481610f40565b604051808215151515815260200191505060405180910390f35b6104a3610fa7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610527600480360360208110156104fb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610fcd565b6040518082815260200191505060405180910390f35b61054561102a565b005b61057d6004803603604081101561055d57600080fd5b8101908080359060200190929190803590602001909291905050506111b5565b6040518082815260200191505060405180910390f35b6105d5600480360360208110156105a957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506113b1565b005b6105df6115a8565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6106296115d2565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6106ad6004803603602081101561068157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506115f8565b005b6106b76117ef565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156106f75780820151818401526020810190506106dc565b50505050905090810190601f1680156107245780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61073a611891565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6107be6004803603602081101561079257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506118b7565b005b61080c600480360360408110156107d657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611aae565b604051808215151515815260200191505060405180910390f35b6108526004803603602081101561083c57600080fd5b8101908080359060200190929190505050611b7b565b6040518082815260200191505060405180910390f35b6108b46004803603604081101561087e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611c5d565b604051808215151515815260200191505060405180910390f35b6108d6611c7b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61095a6004803603602081101561092e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611ca1565b005b6109be6004803603604081101561097257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611f77565b6040518082815260200191505060405180910390f35b610a16600480360360208110156109ea57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611ffe565b005b6060609a8054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610ab05780601f10610a8557610100808354040283529160200191610ab0565b820191906000526020600020905b815481529060010190602001808311610a9357829003601f168201915b5050505050905090565b6000610ace610ac761220e565b8484612216565b6001905092915050565b6000609954905090565b6000610aef84848461240d565b610bb084610afb61220e565b610bab856040518060600160405280602881526020016132cd60289139609860008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610b6161220e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461262a9092919063ffffffff16565b612216565b600190509392505050565b6000609c60009054906101000a900460ff16905090565b600060ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610c1561220e565b73ffffffffffffffffffffffffffffffffffffffff161480610c8b575060cb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610c7361220e565b73ffffffffffffffffffffffffffffffffffffffff16145b610ce0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603f815260200180613247603f913960400191505060405180910390fd5b610ceb8484846126ea565b600190509392505050565b60cd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd610d3c61220e565b30846040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015610dda57600080fd5b505af1158015610dee573d6000803e3d6000fd5b505050506040513d6020811015610e0457600080fd5b8101908080519060200190929190505050610e6a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806132a76026913960400191505060405180910390fd5b6000610e7582611b7b565b9050610e8930610e8361220e565b836126ea565b5050565b6000610f36610e9a61220e565b84610f318560986000610eab61220e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546129c990919063ffffffff16565b612216565b6001905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff1660ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610f9f576000610fa2565b60015b905090565b60cb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000611023609d54609760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a5190919063ffffffff16565b9050919050565b61103261220e565b73ffffffffffffffffffffffffffffffffffffffff16606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600060cc60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166111f861220e565b73ffffffffffffffffffffffffffffffffffffffff1614611264576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180613182602b913960400191505060405180910390fd5b60008214156112b157827f1e579ac1fd6bbeb933c99da3167e6f3b63346028e890326d99f3059f3838f0c36099546040518082815260200191505060405180910390a260995490506113ab565b60008212156112e2576112d76112c683612a9b565b609954612ac990919063ffffffff16565b6099819055506112fe565b6112f7826099546129c990919063ffffffff16565b6099819055505b6000196fffffffffffffffffffffffffffffffff166099541115611338576000196fffffffffffffffffffffffffffffffff166099819055505b6113656099546012600a0a622dc6c0026000198161135257fe5b0660001903612a5190919063ffffffff16565b609d81905550827f1e579ac1fd6bbeb933c99da3167e6f3b63346028e890326d99f3059f3838f0c36099546040518082815260200191505060405180910390a260995490505b92915050565b6113b961220e565b73ffffffffffffffffffffffffffffffffffffffff16606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461147b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611501576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180613154602e913960400191505060405180910390fd5b8060cc60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f0e6961f1a1afb87eaf51fd64f22ddc10062e23aa7838eac5d0bdf140bfd3897281604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a150565b6000606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60cc60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61160061220e565b73ffffffffffffffffffffffffffffffffffffffff16606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146116c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611748576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806133236027913960400191505060405180910390fd5b8060cb60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fe189a719dae2bf18df1013cfa028ecce01f9fafdbd456a862fa18e6d0143e3c281604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a150565b6060609b8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156118875780601f1061185c57610100808354040283529160200191611887565b820191906000526020600020905b81548152906001019060200180831161186a57829003601f168201915b5050505050905090565b60cd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6118bf61220e565b73ffffffffffffffffffffffffffffffffffffffff16606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611981576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a07576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c8152602001806131ad602c913960400191505060405180910390fd5b8060ca60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fe5693914d19c789bdee50a362998c0bc8d035a835f9871da5d51152f0582c34f81604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a150565b6000611b71611abb61220e565b84611b6c856040518060600160405280602581526020016133936025913960986000611ae561220e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461262a9092919063ffffffff16565b612216565b6001905092915050565b60008060cd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611be657600080fd5b505afa158015611bfa573d6000803e3d6000fd5b505050506040513d6020811015611c1057600080fd5b810190808051906020019092919050505090506000611c2d610ad8565b9050611c5482611c468387612b1390919063ffffffff16565b612a5190919063ffffffff16565b92505050919050565b6000611c71611c6a61220e565b848461240d565b6001905092915050565b60ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060019054906101000a900460ff1680611cc05750611cbf612b99565b5b80611cd757506000809054906101000a900460ff16155b611d2c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806132f5602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015611d7c576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b611d84612bb0565b611df86040518060400160405280600b81526020017f526f636b657420436f696e0000000000000000000000000000000000000000008152506040518060400160405280600481526020017f52434b5400000000000000000000000000000000000000000000000000000000815250612caf565b611e00612dfa565b611e0a6012612fa2565b6012600a0a622dc6c0026099819055506012600a0a622dc6c00260001981611e2e57fe5b0660001903609760003073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611ea36099546012600a0a622dc6c00260001981611e9057fe5b0660001903612a5190919063ffffffff16565b609d819055508160cd60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6099546040518082815260200191505060405180910390a38015611f735760008060016101000a81548160ff0219169083151502179055505b5050565b6000609860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b61200661220e565b73ffffffffffffffffffffffffffffffffffffffff16606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146120c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561214e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806131d96026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561229c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602481526020018061336f6024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612322576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806131ff6022913960400191505060405180910390fd5b80609860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b612415610f40565b1561261957600060ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166337800bde836040518263ffffffff1660e01b81526004018082815260200191505060806040518083038186803b15801561248f57600080fd5b505afa1580156124a3573d6000803e3d6000fd5b505050506040513d60808110156124b957600080fd5b810190808051906020019092919080519060200190929190805190602001909291908051906020019092919050505050505090506124f88430836126ea565b6125253060ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683612216565b600060ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166305d871e5846040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b15801561259c57600080fd5b505af11580156125b0573d6000803e3d6000fd5b505050506040513d60208110156125c657600080fd5b810190808051906020019092919050505090506126073060ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000612216565b6126128585836126ea565b5050612625565b6126248383836126ea565b5b505050565b60008383111582906126d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561269c578082015181840152602081019050612681565b50505050905090810190601f1680156126c95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612770576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061334a6025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156127f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806131316023913960400191505060405180910390fd5b612801838383612fc0565b6000612818609d5483612b1390919063ffffffff16565b90506128868160405180606001604052806026815260200161322160269139609760008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461262a9092919063ffffffff16565b609760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061291b81609760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546129c990919063ffffffff16565b609760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a350505050565b600080828401905083811015612a47576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000612a9383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612fc5565b905092915050565b600060ff6001901b821415612aaf57600080fd5b60008212612abd5781612ac2565b816000035b9050919050565b6000612b0b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061262a565b905092915050565b600080831415612b265760009050612b93565b6000828402905082848281612b3757fe5b0414612b8e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806132866021913960400191505060405180910390fd5b809150505b92915050565b6000803090506000813b9050600081149250505090565b600060019054906101000a900460ff1680612bcf5750612bce612b99565b5b80612be657506000809054906101000a900460ff16155b612c3b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806132f5602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015612c8b576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b8015612cac5760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680612cce5750612ccd612b99565b5b80612ce557506000809054906101000a900460ff16155b612d3a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806132f5602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015612d8a576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b82609a9080519060200190612da092919061308b565b5081609b9080519060200190612db792919061308b565b506012609c60006101000a81548160ff021916908360ff1602179055508015612df55760008060016101000a81548160ff0219169083151502179055505b505050565b600060019054906101000a900460ff1680612e195750612e18612b99565b5b80612e3057506000809054906101000a900460ff16155b612e85576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806132f5602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015612ed5576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6000612edf61220e565b905080606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3508015612f9f5760008060016101000a81548160ff0219169083151502179055505b50565b80609c60006101000a81548160ff021916908360ff16021790555050565b505050565b60008083118290613071576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561303657808201518184015260208101905061301b565b50505050905090810190601f1680156130635780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161307d57fe5b049050809150509392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106130cc57805160ff19168380011785556130fa565b828001600101855582156130fa579182015b828111156130f95782518255916020019190600101906130de565b5b509050613107919061310b565b5090565b61312d91905b80821115613129576000816000905550600101613111565b5090565b9056fe45524332303a207472616e7366657220746f20746865207a65726f2061646472657373526f636b657456323a206d6f6e6574617279506f6c69637920616464726573732063616e2774206265207a65726f526f636b657456323a2063616c6c6572206973206e6f7420746865206d6f6e657461727920706f6c696379526f636b657456323a20666565436f6c6c6563746f7220616464726573732063616e2774206265207a65726f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365526f636b657456323a2063616c6c6572206973206e6f7420616c6c6f77656420746f207472616e7366657220776974686f757420706179696e672066656573536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77526f636b657456323a204d757374207265636569766520526f636b6574563120746f6b656e7345524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564526f636b657456323a207374616b696e6720616464726573732063616e2774206265207a65726f45524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212202edd11a65c05fa4bbe6e2ad12c8ccccadcdafd84a85bc0b6c14a68743b6b80ce64736f6c63430006060033
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.