Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 11549293 | 1419 days ago | IN | 0 ETH | 0.36840287 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
TWOBASED
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-12-29 */ // File: @openzeppelin/contracts-ethereum-package/contracts/utils/SafeCast.sol pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's uintXX casting operators with added overflow * checks. * * Downcasting from uint256 in Solidity does not revert on overflow. This can * easily result in undesired exploitation or bugs, since developers usually * assume that overflows raise errors. `SafeCast` restores this intuition by * reverting the transaction when such 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. * * Can be combined with {SafeMath} to extend it to smaller types, by performing * all math on `uint256` and then downcasting. */ library SafeCast { /** * @dev Returns the downcasted uint128 from uint256, reverting on * overflow (when the input is greater than largest uint128). * * Counterpart to Solidity's `uint128` operator. * * Requirements: * * - input must fit into 128 bits */ function toUint128(uint256 value) internal pure returns (uint128) { require(value < 2**128, "SafeCast: value doesn\'t fit in 128 bits"); return uint128(value); } /** * @dev Returns the downcasted uint64 from uint256, reverting on * overflow (when the input is greater than largest uint64). * * Counterpart to Solidity's `uint64` operator. * * Requirements: * * - input must fit into 64 bits */ function toUint64(uint256 value) internal pure returns (uint64) { require(value < 2**64, "SafeCast: value doesn\'t fit in 64 bits"); return uint64(value); } /** * @dev Returns the downcasted uint32 from uint256, reverting on * overflow (when the input is greater than largest uint32). * * Counterpart to Solidity's `uint32` operator. * * Requirements: * * - input must fit into 32 bits */ function toUint32(uint256 value) internal pure returns (uint32) { require(value < 2**32, "SafeCast: value doesn\'t fit in 32 bits"); return uint32(value); } /** * @dev Returns the downcasted uint16 from uint256, reverting on * overflow (when the input is greater than largest uint16). * * Counterpart to Solidity's `uint16` operator. * * Requirements: * * - input must fit into 16 bits */ function toUint16(uint256 value) internal pure returns (uint16) { require(value < 2**16, "SafeCast: value doesn\'t fit in 16 bits"); return uint16(value); } /** * @dev Returns the downcasted uint8 from uint256, reverting on * overflow (when the input is greater than largest uint8). * * Counterpart to Solidity's `uint8` operator. * * Requirements: * * - input must fit into 8 bits. */ function toUint8(uint256 value) internal pure returns (uint8) { require(value < 2**8, "SafeCast: value doesn\'t fit in 8 bits"); return uint8(value); } /** * @dev Converts a signed int256 into an unsigned uint256. * * Requirements: * * - input must be greater than or equal to 0. */ function toUint256(int256 value) internal pure returns (uint256) { require(value >= 0, "SafeCast: value must be positive"); return uint256(value); } /** * @dev Converts an unsigned uint256 into a signed int256. * * Requirements: * * - input must be less than or equal to maxInt256. */ function toInt256(uint256 value) internal pure returns (int256) { require(value < 2**255, "SafeCast: value doesn't fit in an int256"); return int256(value); } } // File: @openzeppelin/contracts-ethereum-package/contracts/Initializable.sol pragma solidity >=0.4.24 <0.7.0; /** * @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; } // File: @openzeppelin/contracts-ethereum-package/contracts/GSN/Context.sol pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with 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; } // File: @openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol pragma solidity ^0.6.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ 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; } // File: @openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: @openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol pragma solidity ^0.6.0; /** * @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) { // 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; } } // File: @openzeppelin/contracts-ethereum-package/contracts/utils/Address.sol 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) { // 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"); } } // File: contracts/TWOBASED.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); } interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; } /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20MinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20UpgradeSafe is Initializable, ContextUpgradeSafe, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @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 view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(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, "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), "zero address"); require(recipient != address(0), "zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); 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), "zero address"); require(spender != address(0), "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; } /* * * Copyright 2020 2based.finance. ALL RIGHTS RESERVED. * */ contract TWOBASED is ERC20UpgradeSafe, OwnableUpgradeSafe { // PLEASE READ BEFORE CHANGING ANY ACCOUNTING OR MATH // Anytime there is division, there is a risk of numerical instability from rounding errors. In // order to minimize this risk, we adhere to the following guidelines: // 1) The conversion rate adopted is the number of gons that equals 1 fragment. // The inverse rate must not be used--TOTAL_GONS is always the numerator and _totalSupply is // always the denominator. (i.e. If you want to convert gons to fragments instead of // multiplying by the inverse rate, you should divide by the normal rate) // 2) Gon balances converted into Fragments are always rounded down (truncated). // // We make the following guarantees: // - If address 'A' transfers x Fragments to address 'B'. A's resulting external balance will // be decreased by precisely x Fragments, and B's external balance will be precisely // increased by x Fragments. // // We do not guarantee that the sum of all balances equals the result of calling totalSupply(). // This is because, for any conversion function 'f()' that has non-zero rounding error, // f(x0) + f(x1) + ... + f(xn) is not always equal to f(x0 + x1 + ... xn). using SafeMath for uint256; using SafeCast for int256; using Address for address; struct Transaction { bool enabled; address destination; bytes data; } event TransactionFailed(address indexed destination, uint index, bytes data); // Stable ordering is not guaranteed. Transaction[] public transactions; event Rebase(uint256 indexed epoch, uint256 priceUSD, int256 rebasePercent, uint256 totalSupply, uint8 jackpotLevel); modifier validRecipient(address to) { require(to != address(0x0)); require(to != address(this)); _; } uint256 private constant DECIMALS = 9; uint256 private constant MAX_UINT256 = ~uint256(0); uint256 private constant INITIAL_FRAGMENTS_SUPPLY = 1 * 10**6 * 10**DECIMALS; // TOTAL_GONS is a multiple of INITIAL_FRAGMENTS_SUPPLY so that _gonsPerFragment 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_FRAGMENTS_SUPPLY); // MAX_SUPPLY = maximum integer < (sqrt(4*TOTAL_GONS + 1) - 1) / 2 uint256 private constant MAX_SUPPLY = ~uint128(0); // (2^128) - 1 uint256 private _epoch; uint256 private _totalSupply; uint256 private _gonsPerFragment; mapping(address => uint256) private _gonBalances; // This is denominated in Fragments, because the gons-fragments conversion might change before // it's fully paid. mapping (address => mapping (address => uint256)) private _allowedFragments; address public _router; address public _tokenQuote; address public _tokenUSD; uint256 public _rebasingPriceUSD; uint256 public _rebasingPriceLastBlock; bool public _rebasingPriceUseCurrent; uint256 public _limitExpiresTimestamp; uint256 public _limitTransferAmount; uint256 public _limitMaxBalance; uint256 public _limitSellFeePercent; uint256 public _limitTimestamp; bool public _rebasePaused; int256 public _rebasePositivePercent; uint256 public _rebasePositivePriceUSD; int256 public _rebaseNegativePercent; uint256 public _rebaseNegativePriceUSD; uint256 public _rebaseTokensMinSupplyPercent; uint256 public _rebaseNextTimestamp; uint256 public _rebaseNextSeconds; uint8 public _rebaseJackpotLevel; uint256 public _rebaseJackpotLastBlock; uint256 public _rebaseJackpotRewardDivisor; uint256 public _rebaseLastPriceUSD; uint256 public _rebasingPriceStartBlock; uint256 public _rebaseLastPriceUSDCumulative; uint256 public _rebaseOptionsTimestamp; mapping (address => bool) private _isExchanger; mapping (address => bool) private _isDistributor; address public _vault; uint256 public _sellFeePercent; address public _sellFeeAddress; uint256 public _sellFeeTimestamp; function initialize(uint256 initialSupply, address router, address tokenQuote, address tokenUSD, address team, address dev, address eco, address vault) public initializer { __ERC20_init("2based.finance", "2BASED"); _setupDecimals(uint8(DECIMALS)); __Ownable_init(); _totalSupply = initialSupply; _gonBalances[_msgSender()] = TOTAL_GONS; _gonsPerFragment = TOTAL_GONS.div(_totalSupply); _router = router; _tokenQuote = tokenQuote; _tokenUSD = tokenUSD; _vault = vault; _sellFeePercent = 200; //2% _sellFeeAddress = vault; _rebasePositivePercent = 200; _rebasePositivePriceUSD = 2 * 10**6; _rebaseNegativePercent = -200; _rebaseNegativePriceUSD = 1 * 10**6; _rebaseTokensMinSupplyPercent = 100; // Precision 4 eg. 1 = 0.0001, 10 = 0.001 % _rebaseNextSeconds = 1342; // 22:22, 22 minutes 22 seconds _rebaseJackpotRewardDivisor = 2; setDistributor(_msgSender(), true); setDistributor(team, true); setDistributor(dev, true); setDistributor(eco, true); setDistributor(vault, true); //multisender setDistributor(address(0xA5025FABA6E70B84F74e9b1113e5F7F4E7f4859f), true); setDistributor(address(0xE7BD68547F41413A6bAa7609550A7eB58C84c406), true); emit Transfer(address(0x0), _msgSender(), _totalSupply); } function rebase() external returns (uint256) { require(!_rebasePaused, "Paused"); require(_rebaseJackpotLevel != 10, "Paused until rewards released"); require(now >= _rebaseNextTimestamp, "Countdown > 0"); require(balanceOf(_msgSender()) >= getMinTokensToRebase(), "Sender must hold a minimum number of tokens to rebase"); uint256 priceUSD = _internalRebasingPriceUSD(); require(priceUSD < _rebaseNegativePriceUSD || priceUSD > _rebasePositivePriceUSD, "Err: Rebasing range"); uint256 totalSupplyNew = _totalSupply; int256 rebasePercent = 0; if(priceUSD > _rebasePositivePriceUSD) { rebasePercent = _rebasePositivePercent; } if(priceUSD < _rebaseNegativePriceUSD) { rebasePercent = _rebaseNegativePercent; } totalSupplyNew = _totalSupply.mul((10000 + rebasePercent).toUint256()).div(10000); if (totalSupplyNew > MAX_SUPPLY) { totalSupplyNew = MAX_SUPPLY; } _epoch = _epoch.add(1); _totalSupply = totalSupplyNew; _gonsPerFragment = TOTAL_GONS.div(_totalSupply); // From this point forward, _gonsPerFragment is taken as the source of truth. // We recalculate a new _totalSupply to be in agreement with the _gonsPerFragment // 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(_gonsPerFragment) _rebaseNextTimestamp = now + _rebaseNextSeconds; if (priceUSD > _rebasePositivePriceUSD && priceUSD > _rebaseLastPriceUSD && _rebaseLastPriceUSD > 0) { _rebaseJackpotLevel++; if(_rebaseJackpotLevel == 10) { _rebaseJackpotLastBlock = block.number; _rebaseNextTimestamp = now + 24 hours; } } else { _rebaseJackpotLevel = 0; } for (uint i = 0; i < transactions.length; i++) { Transaction storage t = transactions[i]; if (t.enabled) { bool result = externalCall(t.destination, t.data); if (!result) { emit TransactionFailed(t.destination, i, t.data); revert("Transaction Failed"); } } } emit Rebase(_epoch, priceUSD, rebasePercent, _totalSupply, _rebaseJackpotLevel); _rebaseLastPriceUSD = _rebasePositivePriceUSD; //priceUSD; _resetRebasingPrice(); return _totalSupply; } function setRebaseOptions( bool rebasePaused, int256 rebasePositivePercent, uint256 rebasePositivePriceUSD, int256 rebaseNegativePercent, uint256 rebaseNegativePriceUSD, bool rebasingPriceUseCurrent, uint256 rebaseTokensMinSupplyPercent, uint256 rebaseNextTimestamp, uint256 rebaseNextSeconds, uint8 rebaseJackpotLevel, uint256 rebaseJackpotLastBlock, uint256 rebaseJackpotRewardDivisor, uint256 rebaseLastPriceUSD ) external onlyOwner() { if(rebasePaused != _rebasePaused) _rebasePaused = rebasePaused; if(rebasePositivePercent != _rebasePositivePercent) _rebasePositivePercent = rebasePositivePercent; if(rebasePositivePriceUSD != _rebasePositivePriceUSD) _rebasePositivePriceUSD = rebasePositivePriceUSD; if(rebaseNegativePercent != _rebaseNegativePercent) _rebaseNegativePercent = rebaseNegativePercent; if(rebaseNegativePriceUSD != _rebaseNegativePriceUSD) _rebaseNegativePriceUSD = rebaseNegativePriceUSD; if(rebasingPriceUseCurrent != _rebasingPriceUseCurrent) _rebasingPriceUseCurrent = rebasingPriceUseCurrent; if(rebaseTokensMinSupplyPercent != _rebaseTokensMinSupplyPercent) _rebaseTokensMinSupplyPercent = rebaseTokensMinSupplyPercent; if(rebaseNextTimestamp != _rebaseNextTimestamp) _rebaseNextTimestamp = rebaseNextTimestamp; if(rebaseNextSeconds != _rebaseNextSeconds) _rebaseNextSeconds = rebaseNextSeconds; if(rebaseJackpotLevel != _rebaseJackpotLevel) _rebaseJackpotLevel = rebaseJackpotLevel; if(rebaseJackpotLastBlock != _rebaseJackpotLastBlock) _rebaseJackpotLastBlock = rebaseJackpotLastBlock; if(rebaseJackpotRewardDivisor != _rebaseJackpotRewardDivisor && rebaseJackpotRewardDivisor > 0) _rebaseJackpotRewardDivisor = rebaseJackpotRewardDivisor; if(rebaseLastPriceUSD != _rebaseLastPriceUSD) _rebaseLastPriceUSD = rebaseLastPriceUSD; _rebaseOptionsTimestamp = now; } function beforeLaunch(uint256 rebaseFirstTimestamp, uint256 limitExpiresTimestamp, uint256 limitTransferAmount, uint256 limitMaxBalance, uint256 limitSellFeePercent) public onlyOwner() { _rebaseJackpotLevel = 0; _rebaseNextTimestamp = rebaseFirstTimestamp; _rebaseLastPriceUSD = _rebasePositivePriceUSD; setLimit(limitExpiresTimestamp, limitTransferAmount, limitMaxBalance, limitSellFeePercent); } function afterLaunch() public onlyOwner() { _resetRebasingPrice(); } function resetJackpot() public onlyOwner() { _rebaseJackpotLevel = 0; _rebaseNextTimestamp = now + _rebaseNextSeconds; _rebaseLastPriceUSD = _rebasePositivePriceUSD; _resetRebasingPrice(); } function _resetRebasingPrice() internal { _rebasingPriceStartBlock = block.number; _rebaseLastPriceUSDCumulative = 0; _rebasingPriceLastBlock = block.number; } function setVault(address vault) external onlyOwner() { _vault = vault; } function setSellFee(uint256 sellFeePercent, address sellFeeAddress) external onlyOwner() { _sellFeePercent = sellFeePercent; _sellFeeAddress = sellFeeAddress; _sellFeeTimestamp = now; } function setLimit(uint256 expiresTimestamp, uint256 transferAmount, uint256 maxBalance, uint256 sellFeePercent) public onlyOwner() { _limitExpiresTimestamp = expiresTimestamp; _limitTransferAmount = transferAmount; _limitMaxBalance = maxBalance; _limitSellFeePercent = sellFeePercent; _limitTimestamp = now; } function setExchanger(address account, bool exchanger) public onlyOwner() { _isExchanger[account] = exchanger; } function setDistributor(address account, bool distributor) public onlyOwner() { _isDistributor[account] = distributor; } function setUniswapRouter(address router) external onlyOwner { require(address(router) != address(0)); _router = router; } function setTokenUSD(address token) external onlyOwner { require(address(token) != address(0)); _tokenUSD = token; } function _internalRebasingPriceUSD() internal returns (uint256) { uint256 priceUSD; if(_rebasingPriceUseCurrent) { (priceUSD,) = getPrices(); return priceUSD; } else { if(block.number > _rebasingPriceLastBlock) { (priceUSD,) = getPrices(); if(_rebasingPriceStartBlock == 0) _rebasingPriceStartBlock = block.number; uint256 blocksSinceRebasingPriceStartBlock = block.number - _rebasingPriceStartBlock; if(blocksSinceRebasingPriceStartBlock > 0) { uint256 blocksDiff = (_rebasingPriceLastBlock == 0 ? 0 : block.number - _rebasingPriceLastBlock); _rebaseLastPriceUSDCumulative = _rebaseLastPriceUSDCumulative.add(blocksDiff.mul(priceUSD)); _rebasingPriceUSD = _rebaseLastPriceUSDCumulative.div(blocksSinceRebasingPriceStartBlock); } else { _rebasingPriceUSD = priceUSD; } _rebasingPriceLastBlock = block.number; } } return _rebasingPriceUSD; } function externalRebasingPriceUSD() public view returns (uint256) { (uint256 priceUSD,) = getPrices(); uint256 rebasingPriceUSD = priceUSD; if(!_rebasingPriceUseCurrent) { uint256 blocksSinceRebasingPriceStartBlock = (block.number - _rebasingPriceStartBlock)+1; uint256 blocksDiff = (_rebasingPriceLastBlock == 0 ? 0 : (block.number - _rebasingPriceLastBlock)+1); rebasingPriceUSD = _rebaseLastPriceUSDCumulative.add(blocksDiff.mul(priceUSD)).div(blocksSinceRebasingPriceStartBlock); } return rebasingPriceUSD; } function getJackpotValueUSD() public view returns (uint256) { require(_rebaseJackpotRewardDivisor > 0, "Reward Divisor must be > 0"); uint256 amount = balanceOf(_vault).div(_rebaseJackpotRewardDivisor); (uint256 priceUSD,) = getPrices(); return amount.mul(priceUSD).div(10**DECIMALS); } /** * info() - called by frontend * * Returns : * * - $ price of 2BASED used for rebasing (6 DECIMALS) * - current $ price of 2BASED (6 DECIMALS) * - current ETH price of 2 BASED (18 DECIMALS) * - next rebase UTC timestamp (seconds) * - $ price of 2BASED at last rebase (6 DECIMALS) * - senders balance of 2BASED (9 DECIMALS) * - minimum sender balance of 2BASED required to call rebase() (9 DECIMALS) * - current jackpot level (0-10) * - current jackpot $ value (6 DECIMALS) * - block number last jockpot was hit * */ function info() public view returns (uint256, uint256, uint256, uint256, uint256, uint256, uint256, uint8, uint256, uint256) { (uint256 priceUSD, uint256 priceETH) = getPrices(); return (externalRebasingPriceUSD(), priceUSD, priceETH, _rebaseNextTimestamp, _rebaseLastPriceUSD, balanceOf(_msgSender()), getMinTokensToRebase(), _rebaseJackpotLevel, getJackpotValueUSD(), _rebaseJackpotLastBlock); } function getMinTokensToRebase() public view returns (uint256) { return _totalSupply.mul(_rebaseTokensMinSupplyPercent).div(1000000); // 4dp } function getPrices() public view returns (uint256, uint256) { address[] memory path = new address[](3); path[0] = address(this); path[1] = _tokenQuote; path[2] = _tokenUSD; uint256[] memory prices = IUniswapV2Router02(_router).getAmountsOut(10**DECIMALS, path); require(prices.length == 3, "Error retreiving current prices"); return (prices[2], prices[1]); } /** * @return The total number of fragments. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @param who The address to query. * @return The balance of the specified address. */ function balanceOf(address who) public view override returns (uint256) { return _gonBalances[who].div(_gonsPerFragment); } /** * @dev Function to check the amount of tokens that an owner has allowed to a spender. * @param owner_ The address which owns the funds. * @param spender The address which will spend the funds. * @return The number of tokens still available for the spender. */ function allowance(address owner_, address spender) public view override returns (uint256) { return _allowedFragments[owner_][spender]; } /** * @dev Transfer tokens to a specified address. * @param to The address to transfer to. * @param value The amount to be transferred. * @return True on success, false otherwise. */ function transfer(address to, uint256 value) public validRecipient(to) override returns (bool) { _transfer(_msgSender(), to, value); return true; } /** * @dev Transfer tokens from one address to another. * @param from The address you want to send tokens from. * @param to The address you want to transfer to. * @param value The amount of tokens to be transferred. */ function transferFrom(address from, address to, uint256 value) public validRecipient(to) override returns (bool) { _allowedFragments[from][_msgSender()] = _allowedFragments[from][_msgSender()].sub(value); _transfer(from, to, value); return true; } function _transfer(address sender, address recipient, uint256 amount) internal override { uint256 sellFeeAmount = 0; uint256 transferAmount = amount; //no fees for distributors if(!_isDistributor[sender] && !_isDistributor[recipient]) { //no fees between exchangers if(!(_isExchanger[sender] && _isExchanger[recipient])) { if(_limitExpiresTimestamp >= now) { require(amount <= _limitTransferAmount, "Initial Uniswap listing - amount exceeds transfer limit"); require(balanceOf(recipient).add(amount) <= _limitMaxBalance, "Initial Uniswap listing - max balance limit"); } if(!_isExchanger[sender] && _isExchanger[recipient]) { //selling if(_limitExpiresTimestamp >= now) { sellFeeAmount = amount.mul(_limitSellFeePercent).div(10000); } else { sellFeeAmount = amount.mul(_sellFeePercent).div(10000); } } else if (!_isExchanger[sender] && !_isExchanger[recipient]) { require(_limitExpiresTimestamp < now, "Initial Uniswap listing - Wallet to Wallet transfers temporarily disabled"); } if((_isExchanger[sender] && !_isExchanger[recipient]) || (!_isExchanger[sender] && _isExchanger[recipient])) { //buying or selling uint256 rebasingPriceUSD = _internalRebasingPriceUSD(); (uint256 priceUSD,) = getPrices(); if(now > _rebaseNextTimestamp) { if(rebasingPriceUSD < _rebasePositivePriceUSD && priceUSD >= _rebasePositivePriceUSD) { _rebaseJackpotLevel = 0; _rebaseNextTimestamp = now + _rebaseNextSeconds; _rebaseLastPriceUSD = _rebasePositivePriceUSD; _resetRebasingPrice(); } else if (rebasingPriceUSD > _rebaseNegativePriceUSD && priceUSD <= _rebaseNegativePriceUSD){ _rebaseNextTimestamp = now + _rebaseNextSeconds; _rebaseLastPriceUSD = _rebaseNegativePriceUSD; _resetRebasingPrice(); } } } } } if(sellFeeAmount > 0) { transferAmount = amount.sub(sellFeeAmount); uint256 sellFeeGonValue = sellFeeAmount.mul(_gonsPerFragment); _gonBalances[_sellFeeAddress] = _gonBalances[_sellFeeAddress].add(sellFeeGonValue); emit Transfer(sender, _sellFeeAddress, sellFeeAmount); } uint256 amountGonValue = amount.mul(_gonsPerFragment); uint256 transferAmountGonValue = transferAmount.mul(_gonsPerFragment); _gonBalances[sender] = _gonBalances[sender].sub(amountGonValue); _gonBalances[recipient] = _gonBalances[recipient].add(transferAmountGonValue); emit Transfer(sender, recipient, transferAmount); } /** * @dev Approve the passed address to spend the specified amount of tokens on behalf of * _msgSender(). This method is included for ERC20 compatibility. * increaseAllowance and decreaseAllowance should be used instead. * Changing an allowance with this method brings the risk that someone may transfer both * the old and the new allowance - if they are both greater than zero - if a transfer * transaction is mined before the later approve() call is mined. * * @param spender The address which will spend the funds. * @param value The amount of tokens to be spent. */ function approve(address spender, uint256 value) public override returns (bool) { _allowedFragments[_msgSender()][spender] = value; emit Approval(_msgSender(), spender, value); return true; } /** * @dev Increase the amount of tokens that an owner has allowed to a spender. * This method should be used instead of approve() to avoid the double approval vulnerability * described above. * @param spender The address which will spend the funds. * @param addedValue The amount of tokens to increase the allowance by. */ function increaseAllowance(address spender, uint256 addedValue) public override returns (bool) { _allowedFragments[_msgSender()][spender] = _allowedFragments[_msgSender()][spender].add(addedValue); emit Approval(_msgSender(), spender, _allowedFragments[_msgSender()][spender]); return true; } /** * @dev Decrease the amount of tokens that an owner has allowed to a spender. * * @param spender The address which will spend the funds. * @param subtractedValue The amount of tokens to decrease the allowance by. */ function decreaseAllowance(address spender, uint256 subtractedValue) public override returns (bool) { uint256 oldValue = _allowedFragments[_msgSender()][spender]; if (subtractedValue >= oldValue) { _allowedFragments[_msgSender()][spender] = 0; } else { _allowedFragments[_msgSender()][spender] = oldValue.sub(subtractedValue); } emit Approval(_msgSender(), spender, _allowedFragments[_msgSender()][spender]); return true; } /** * @notice Adds a transaction that gets called for a downstream receiver of rebases * @param destination Address of contract destination * @param data Transaction data payload */ function addTransaction(address destination, bytes memory data) external onlyOwner { transactions.push(Transaction({ enabled: true, destination: destination, data: data })); } /** * @param index Index of transaction to remove. * Transaction ordering may have changed since adding. */ function removeTransaction(uint index) external onlyOwner { require(index < transactions.length, "index out of bounds"); if (index < transactions.length - 1) { transactions[index] = transactions[transactions.length - 1]; } transactions.pop(); } /** * @param index Index of transaction. Transaction ordering may have changed since adding. * @param enabled True for enabled, false for disabled. */ function setTransactionEnabled(uint index, bool enabled) external onlyOwner { require(index < transactions.length, "index must be in range of stored tx list"); transactions[index].enabled = enabled; } /** * @return Number of transactions, both enabled and disabled, in transactions list. */ function transactionsSize() external view returns (uint256) { return transactions.length; } /** * @dev wrapper to call the encoded transactions on downstream consumers. * @param destination Address of destination contract. * @param data The encoded data payload. * @return True on success */ function externalCall(address destination, bytes memory data) internal returns (bool) { bool result; assembly { // solhint-disable-line no-inline-assembly // "Allocate" memory for output // (0x40 is where "free memory" pointer is stored by convention) let outputAddress := mload(0x40) // First 32 bytes are the padded length of data, so exclude that let dataAddress := add(data, 32) result := call( // 34710 is the value that solidity is currently emitting // It includes callGas (700) + callVeryLow (3, to pay for SUB) // + callValueTransferGas (9000) + callNewAccountGas // (25000, in case the destination address does not exist and needs creating) sub(gas(), 34710), destination, 0, // transfer value in wei dataAddress, mload(data), // Size of the input, in bytes. Stored in position 0 of the array. outputAddress, 0 // Output is ignored, therefore the output size is zero ) } return result; } /** * refund any ERC20 tokens sent to contract by mistake */ function transferERC20(IERC20 token, uint256 amount, address to) public onlyOwner returns (bool) { require(token.balanceOf(address(this)) >= amount,"Insufficent balance to transfer token amount."); return token.transfer(to, 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":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":"priceUSD","type":"uint256"},{"indexed":false,"internalType":"int256","name":"rebasePercent","type":"int256"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"jackpotLevel","type":"uint8"}],"name":"Rebase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"destination","type":"address"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"TransactionFailed","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":[],"name":"_limitExpiresTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_limitMaxBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_limitSellFeePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_limitTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_limitTransferAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_rebaseJackpotLastBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_rebaseJackpotLevel","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_rebaseJackpotRewardDivisor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_rebaseLastPriceUSD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_rebaseLastPriceUSDCumulative","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_rebaseNegativePercent","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_rebaseNegativePriceUSD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_rebaseNextSeconds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_rebaseNextTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_rebaseOptionsTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_rebasePaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_rebasePositivePercent","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_rebasePositivePriceUSD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_rebaseTokensMinSupplyPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_rebasingPriceLastBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_rebasingPriceStartBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_rebasingPriceUSD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_rebasingPriceUseCurrent","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_router","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_sellFeeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_sellFeePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_sellFeeTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_tokenQuote","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_tokenUSD","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"destination","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"addTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"afterLaunch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"rebaseFirstTimestamp","type":"uint256"},{"internalType":"uint256","name":"limitExpiresTimestamp","type":"uint256"},{"internalType":"uint256","name":"limitTransferAmount","type":"uint256"},{"internalType":"uint256","name":"limitMaxBalance","type":"uint256"},{"internalType":"uint256","name":"limitSellFeePercent","type":"uint256"}],"name":"beforeLaunch","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":"externalRebasingPriceUSD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getJackpotValueUSD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMinTokensToRebase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrices","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"info","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint8","name":"","type":"uint8"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"initialSupply","type":"uint256"},{"internalType":"address","name":"router","type":"address"},{"internalType":"address","name":"tokenQuote","type":"address"},{"internalType":"address","name":"tokenUSD","type":"address"},{"internalType":"address","name":"team","type":"address"},{"internalType":"address","name":"dev","type":"address"},{"internalType":"address","name":"eco","type":"address"},{"internalType":"address","name":"vault","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"removeTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resetJackpot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"distributor","type":"bool"}],"name":"setDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"exchanger","type":"bool"}],"name":"setExchanger","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"expiresTimestamp","type":"uint256"},{"internalType":"uint256","name":"transferAmount","type":"uint256"},{"internalType":"uint256","name":"maxBalance","type":"uint256"},{"internalType":"uint256","name":"sellFeePercent","type":"uint256"}],"name":"setLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"rebasePaused","type":"bool"},{"internalType":"int256","name":"rebasePositivePercent","type":"int256"},{"internalType":"uint256","name":"rebasePositivePriceUSD","type":"uint256"},{"internalType":"int256","name":"rebaseNegativePercent","type":"int256"},{"internalType":"uint256","name":"rebaseNegativePriceUSD","type":"uint256"},{"internalType":"bool","name":"rebasingPriceUseCurrent","type":"bool"},{"internalType":"uint256","name":"rebaseTokensMinSupplyPercent","type":"uint256"},{"internalType":"uint256","name":"rebaseNextTimestamp","type":"uint256"},{"internalType":"uint256","name":"rebaseNextSeconds","type":"uint256"},{"internalType":"uint8","name":"rebaseJackpotLevel","type":"uint8"},{"internalType":"uint256","name":"rebaseJackpotLastBlock","type":"uint256"},{"internalType":"uint256","name":"rebaseJackpotRewardDivisor","type":"uint256"},{"internalType":"uint256","name":"rebaseLastPriceUSD","type":"uint256"}],"name":"setRebaseOptions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"sellFeePercent","type":"uint256"},{"internalType":"address","name":"sellFeeAddress","type":"address"}],"name":"setSellFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"setTokenUSD","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setTransactionEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"router","type":"address"}],"name":"setUniswapRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"vault","type":"address"}],"name":"setVault","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":"uint256","name":"","type":"uint256"}],"name":"transactions","outputs":[{"internalType":"bool","name":"enabled","type":"bool"},{"internalType":"address","name":"destination","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"transactionsSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"transferERC20","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50613b9e806100206000396000f3fe608060405234801561001057600080fd5b50600436106103fb5760003560e01c80636a8b3ad211610215578063a457c2d711610125578063d12385e7116100b8578063dd62ed3e11610087578063dd62ed3e14610ba2578063e4597dac14610bd0578063edae876f14610bd8578063f2fde38b14610be0578063fd243da314610c06576103fb565b8063d12385e714610b05578063d59ba0df14610b0d578063d84babca14610b3b578063d9ae7da414610b43576103fb565b8063bc43f6fb116100f4578063bc43f6fb14610a88578063bd9a548b14610a90578063bea9849e14610ab1578063c0b4fd1114610ad7576103fb565b8063a457c2d714610a20578063a9059cbb14610a4c578063ac0bf90214610a78578063af14052c14610a80576103fb565b80637d449789116101a857806395420f751161017757806395420f751461090657806395d89b411461092c57806397e10a79146109345780639ace38c21461096a578063a2a0f29714610a18576103fb565b80637d449789146108e6578063896f9b9a146108ee5780638da5cb5b146108f657806391d4ec18146108fe576103fb565b80637201eb13116101e45780637201eb13146108c657806373afc25f146108ce57806376160fc5146108d65780637a25dabe146108de576103fb565b80636a8b3ad2146108015780636e9dde991461087357806370a0823114610898578063715018a6146108be576103fb565b8063370158ea116103105780634ad79ff4116102a35780635e8e80fa116102725780635e8e80fa146107bb57806360940e3d146107c357806361808d6a146107cb57806363b13f18146107d35780636817031b146107db576103fb565b80634ad79ff4146107475780634c13a9cd1461077c5780635c1eca84146107845780635cf0144a146107b3576103fb565b8063456e0a5d116102df578063456e0a5d1461071257806346c3bd1f1461071a57806346d8d9fc1461073757806349142d2a1461073f576103fb565b8063370158ea1461067b57806338a9ad1d146106d657806339509351146106de578063439780881461070a576103fb565b8063126e19be116103935780631fc7df7f116103625780631fc7df7f1461060157806323b872dd1461062d5780632647f51d146106635780632bc1281e1461066b578063313ce56714610673576103fb565b8063126e19be14610533578063178704b6146105e957806318160ddd146105f15780631991f47d146105f9576103fb565b8063095ea7b3116103cf578063095ea7b3146104a95780630b7d61f1146104e95780630f134f4e1461050d5780631051690514610515576103fb565b8062abaee7146104005780630257ad1f1461041a57806306fdde031461042457806308d1dd8a146104a1575b600080fd5b610408610c0e565b60408051918252519081900360200190f35b610422610c14565b005b61042c610c8e565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561046657818101518382015260200161044e565b50505050905090810190601f1680156104935780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610408610d25565b6104d5600480360360408110156104bf57600080fd5b506001600160a01b038135169060200135610d2b565b604080519115158252519081900360200190f35b6104f1610dbc565b604080516001600160a01b039092168252519081900360200190f35b610408610dcb565b61051d610dd1565b6040805160ff9092168252519081900360200190f35b6104226004803603604081101561054957600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561057457600080fd5b82018360208201111561058657600080fd5b803590602001918460018302840111640100000000831117156105a857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610dda945050505050565b6104f1610efb565b610408610f0a565b6104f1610f10565b6104226004803603604081101561061757600080fd5b50803590602001356001600160a01b0316610f1f565b6104d56004803603606081101561064357600080fd5b506001600160a01b03813581169160208101359091169060400135610fa2565b610408611066565b61040861106c565b61051d611072565b61068361107b565b604080519a8b5260208b0199909952898901979097526060890195909552608088019390935260a087019190915260c086015260ff1660e085015261010084015261012083015251908190036101400190f35b6104086110f4565b6104d5600480360360408110156106f457600080fd5b506001600160a01b0381351690602001356110fa565b6104086111fb565b610408611201565b6104226004803603602081101561073057600080fd5b5035611207565b61040861139f565b6104086113a5565b610422600480360360a081101561075d57600080fd5b50803590602081013590604081013590606081013590608001356113ab565b610408611424565b6104226004803603608081101561079a57600080fd5b508035906020810135906040810135906060013561142a565b61040861149a565b61040861150a565b610408611510565b610408611516565b61040861151c565b610422600480360360208110156107f157600080fd5b50356001600160a01b0316611541565b61042260048036036101a081101561081857600080fd5b50803515159060208101359060408101359060608101359060808101359060a081013515159060c08101359060e0810135906101008101359060ff6101208201351690610140810135906101608101359061018001356115bb565b6104226004803603604081101561088957600080fd5b50803590602001351515611727565b610408600480360360208110156108ae57600080fd5b50356001600160a01b03166117f0565b610422611818565b6104086118ba565b6104086118c0565b6104086118c6565b6104d5611965565b61040861196e565b610422611974565b6104f16119d4565b6104086119e3565b6104226004803603602081101561091c57600080fd5b50356001600160a01b03166119e9565b61042c611a76565b6104d56004803603606081101561094a57600080fd5b506001600160a01b03813581169160208101359160409091013516611ad7565b6109876004803603602081101561098057600080fd5b5035611c73565b604051808415158152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b838110156109db5781810151838201526020016109c3565b50505050905090810190601f168015610a085780820380516001836020036101000a031916815260200191505b5094505050505060405180910390f35b6104d5611d38565b6104d560048036036040811015610a3657600080fd5b506001600160a01b038135169060200135611d41565b6104d560048036036040811015610a6257600080fd5b506001600160a01b038135169060200135611e8f565b610408611ed7565b610408611edd565b6104086123de565b610a986123e4565b6040805192835260208301919091528051918290030190f35b61042260048036036020811015610ac757600080fd5b50356001600160a01b031661266c565b61042260048036036040811015610aed57600080fd5b506001600160a01b03813516906020013515156126f9565b61040861277c565b61042260048036036040811015610b2357600080fd5b506001600160a01b0381351690602001351515612782565b610408612805565b6104226004803603610100811015610b5a57600080fd5b508035906001600160a01b03602082013581169160408101358216916060820135811691608081013582169160a082013581169160c081013582169160e0909101351661280b565b61040860048036036040811015610bb857600080fd5b506001600160a01b0381358116916020013516612ab4565b610408612adf565b6104f1612ae5565b61042260048036036020811015610bf657600080fd5b50356001600160a01b0316612af4565b6104f1612bed565b60e45481565b610c1c612bfc565b6097546001600160a01b03908116911614610c6c576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b60e2805460ff1916905560e154420160e05560dc5460e555610c8c612c00565b565b60688054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610d1a5780601f10610cef57610100808354040283529160200191610d1a565b820191906000526020600020905b815481529060010190602001808311610cfd57829003601f168201915b505050505090505b90565b60d95481565b60008160ce6000610d3a612bfc565b6001600160a01b0390811682526020808301939093526040918201600090812091881680825291909352912091909155610d72612bfc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a35060015b92915050565b60d1546001600160a01b031681565b60ee5481565b60e25460ff1681565b610de2612bfc565b6097546001600160a01b03908116911614610e32576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b6040805160608101825260018082526001600160a01b03808616602080850191825294840186815260c980549485018155600052845160029094027f66be4f155c5ef2ebd3772b228f2f00681e4ed5826cdb3b1943cc11ad15ad1d2881018054935190941661010002610100600160a81b031995151560ff19909416939093179490941691909117825551805193949193610ef4937f66be4f155c5ef2ebd3772b228f2f00681e4ed5826cdb3b1943cc11ad15ad1d290192919091019061385a565b5050505050565b60d0546001600160a01b031681565b60cb5490565b60ed546001600160a01b031681565b610f27612bfc565b6097546001600160a01b03908116911614610f77576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b60ec9190915560ed80546001600160a01b0319166001600160a01b039092169190911790554260ee55565b6000826001600160a01b038116610fb857600080fd5b6001600160a01b038116301415610fce57600080fd5b6001600160a01b038516600090815260ce6020526040812061101591859190610ff5612bfc565b6001600160a01b0316815260208101919091526040016000205490612c10565b6001600160a01b038616600090815260ce6020526040812090611036612bfc565b6001600160a01b0316815260208101919091526040016000205561105b858585612c59565b506001949350505050565b60dc5481565b60d65481565b606a5460ff1690565b6000806000806000806000806000806000806110956123e4565b915091506110a161149a565b828260e05460e5546110b96110b4612bfc565b6117f0565b6110c161151c565b60e25460ff166110cf6118c6565b60e3549b509b509b509b509b509b509b509b509b509b50505090919293949596979899565b60d55481565b600061113c8260ce600061110c612bfc565b6001600160a01b039081168252602080830193909352604091820160009081209189168152925290205490613153565b60ce6000611148612bfc565b6001600160a01b0390811682526020808301939093526040918201600090812091881680825291909352912091909155611180612bfc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560ce60006111b6612bfc565b6001600160a01b03908116825260208083019390935260409182016000908120918a16815290835281902054815190815290519081900390910190a350600192915050565b60e55481565b60d75481565b61120f612bfc565b6097546001600160a01b0390811691161461125f576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b60c95481106112ab576040805162461bcd60e51b8152602060048201526013602482015272696e646578206f7574206f6620626f756e647360681b604482015290519081900360640190fd5b60c9546000190181101561135c5760c9805460001981019081106112cb57fe5b906000526020600020906002020160c982815481106112e657fe5b6000918252602090912082546002928302909101805460ff191660ff9092161515919091178082558354610100600160a81b0319909116610100918290046001600160a01b031682021782556001808501805493946113589483870194929381161590920260001901909116046138d4565b5050505b60c980548061136757fe5b60008281526020812060026000199093019283020180546001600160a81b0319168155906113986001830182613949565b5050905550565b60dd5481565b60df5481565b6113b3612bfc565b6097546001600160a01b03908116911614611403576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b60e2805460ff1916905560e085905560dc5460e555610ef48484848461142a565b60e05481565b611432612bfc565b6097546001600160a01b03908116911614611482576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b60d59390935560d69190915560d75560d8554260d955565b6000806114a56123e4565b5060d454909150819060ff1661150457600060e65443036001019050600060d3546000146114da5760d35443036001016114dd565b60005b90506114ff826114f96114f084886131ad565b60e75490613153565b90613206565b925050505b91505090565b60e15481565b60d25481565b60ec5481565b600061153c620f42406114f960df5460cb546131ad90919063ffffffff16565b905090565b611549612bfc565b6097546001600160a01b03908116911614611599576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b60eb80546001600160a01b0319166001600160a01b0392909216919091179055565b6115c3612bfc565b6097546001600160a01b03908116911614611613576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b60da5460ff1615158d1515146116325760da805460ff19168e15151790555b60db548c146116415760db8c90555b60dc548b146116505760dc8b90555b60dd548a1461165f5760dd8a90555b60de54891461166e5760de8990555b60d45460ff1615158815151461168d5760d4805460ff19168915151790555b60df54871461169c5760df8790555b60e05486146116ab5760e08690555b60e15485146116ba5760e18590555b60e25460ff8581169116146116d95760e2805460ff191660ff86161790555b60e35483146116e85760e38390555b60e45482141580156116fa5750600082115b156117055760e48290555b60e55481146117145760e58190555b50504260e8555050505050505050505050565b61172f612bfc565b6097546001600160a01b0390811691161461177f576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b60c95482106117bf5760405162461bcd60e51b81526004018080602001828103825260288152602001806139f26028913960400191505060405180910390fd5b8060c983815481106117cd57fe5b60009182526020909120600290910201805460ff19169115159190911790555050565b60cc546001600160a01b038216600090815260cd60205260408120549091610db69190613206565b611820612bfc565b6097546001600160a01b03908116911614611870576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b6097546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3609780546001600160a01b0319169055565b60d35481565b60e65481565b60008060e4541161191e576040805162461bcd60e51b815260206004820152601a60248201527f5265776172642044697669736f72206d757374206265203e2030000000000000604482015290519081900360640190fd5b60e45460eb5460009161193d916114f9906001600160a01b03166117f0565b905060006119496123e4565b50905061195e633b9aca006114f984846131ad565b9250505090565b60d45460ff1681565b60d85481565b61197c612bfc565b6097546001600160a01b039081169116146119cc576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b610c8c612c00565b6097546001600160a01b031690565b60c95490565b6119f1612bfc565b6097546001600160a01b03908116911614611a41576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b6001600160a01b038116611a5457600080fd5b60d180546001600160a01b0319166001600160a01b0392909216919091179055565b60698054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610d1a5780601f10610cef57610100808354040283529160200191610d1a565b6000611ae1612bfc565b6097546001600160a01b03908116911614611b31576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b82846001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611b7f57600080fd5b505afa158015611b93573d6000803e3d6000fd5b505050506040513d6020811015611ba957600080fd5b50511015611be85760405162461bcd60e51b815260040180806020018281038252602d8152602001806139c5602d913960400191505060405180910390fd5b836001600160a01b031663a9059cbb83856040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611c3f57600080fd5b505af1158015611c53573d6000803e3d6000fd5b505050506040513d6020811015611c6957600080fd5b5051949350505050565b60c98181548110611c8057fe5b6000918252602091829020600291820201805460018083018054604080516101009483161585026000190190921696909604601f810188900488028201880190965285815260ff84169750919092046001600160a01b03169492939092830182828015611d2e5780601f10611d0357610100808354040283529160200191611d2e565b820191906000526020600020905b815481529060010190602001808311611d1157829003601f168201915b5050505050905083565b60da5460ff1681565b60008060ce6000611d50612bfc565b6001600160a01b03908116825260208083019390935260409182016000908120918816815292529020549050808310611dc057600060ce6000611d91612bfc565b6001600160a01b0390811682526020808301939093526040918201600090812091891681529252902055611e01565b611dca8184612c10565b60ce6000611dd6612bfc565b6001600160a01b03908116825260208083019390935260409182016000908120918916815292529020555b836001600160a01b0316611e13612bfc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560ce6000611e49612bfc565b6001600160a01b03908116825260208083019390935260409182016000908120918b16815290835281902054815190815290519081900390910190a35060019392505050565b6000826001600160a01b038116611ea557600080fd5b6001600160a01b038116301415611ebb57600080fd5b611ecd611ec6612bfc565b8585612c59565b5060019392505050565b60de5481565b60da5460009060ff1615611f21576040805162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b604482015290519081900360640190fd5b60e25460ff16600a1415611f7c576040805162461bcd60e51b815260206004820152601d60248201527f50617573656420756e74696c20726577617264732072656c6561736564000000604482015290519081900360640190fd5b60e054421015611fc3576040805162461bcd60e51b815260206004820152600d60248201526c0436f756e74646f776e203e203609c1b604482015290519081900360640190fd5b611fcb61151c565b611fd66110b4612bfc565b10156120135760405162461bcd60e51b8152600401808060200182810382526035815260200180613b346035913960400191505060405180910390fd5b600061201d613248565b905060de54811080612030575060dc5481115b612077576040805162461bcd60e51b81526020600482015260136024820152724572723a205265626173696e672072616e676560681b604482015290519081900360640190fd5b60cb5460dc5460009083111561208c575060db545b60de5483101561209b575060dd545b6120ba6127106114f96120b184612710016132eb565b60cb54906131ad565b91506001600160801b038211156120d6576001600160801b0391505b60ca546120e4906001613153565b60ca5560cb8290556121048266038d7ea4c680006000195b061990613206565b60cc5560e154420160e05560dc5483118015612121575060e55483115b801561212f5750600060e554115b156121685760e2805460ff198116600160ff928316018216179182905516600a1415612163574360e35562015180420160e0555b612173565b60e2805460ff191690555b60005b60c95481101561237157600060c9828154811061218f57fe5b60009182526020909120600290910201805490915060ff16156123685780546001808301805460408051602060026101009685161587026000190190941693909304601f81018490048402820184019092528181526000956122579590046001600160a01b031693909290919083018282801561224d5780601f106122225761010080835404028352916020019161224d565b820191906000526020600020905b81548152906001019060200180831161223057829003601f168201915b5050505050613346565b9050806123665781546040805185815260208101828152600180870180546002610100938216158402600019019091160494840185905294046001600160a01b0316937f8091ecaaa54ebb82e02d36c2c336528e0fcb9b3430fc1291ac88295032b9c2639388939192906060830190849080156123155780601f106122ea57610100808354040283529160200191612315565b820191906000526020600020905b8154815290600101906020018083116122f857829003601f168201915b5050935050505060405180910390a26040805162461bcd60e51b8152602060048201526012602482015271151c985b9cd858dd1a5bdb8811985a5b195960721b604482015290519081900360640190fd5b505b50600101612176565b5060ca5460cb5460e25460408051878152602081018690528082019390935260ff9091166060830152517f996e1f9c83ea5994d7bef0858c0315280c136a07b8473ffc0322e08b3c648c959181900360800190a260dc5460e5556123d3612c00565b60cb54935050505090565b60e35481565b604080516003808252608082019092526000918291606091602082018380368337019050509050308160008151811061241957fe5b6001600160a01b03928316602091820292909201015260d05482519116908290600190811061244457fe5b6001600160a01b03928316602091820292909201015260d15482519116908290600290811061246f57fe5b6001600160a01b0392831660209182029290920181019190915260cf546040805163d06ca61f60e01b8152633b9aca006004820181815260248301938452875160448401528751606097959095169563d06ca61f95929489949293909260640191858101910280838360005b838110156124f35781810151838201526020016124db565b50505050905001935050505060006040518083038186803b15801561251757600080fd5b505afa15801561252b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561255457600080fd5b810190808051604051939291908464010000000082111561257457600080fd5b90830190602082018581111561258957600080fd5b82518660208202830111640100000000821117156125a657600080fd5b82525081516020918201928201910280838360005b838110156125d35781810151838201526020016125bb565b5050505090500160405250505090508051600314612638576040805162461bcd60e51b815260206004820152601f60248201527f4572726f722072657472656976696e672063757272656e742070726963657300604482015290519081900360640190fd5b8060028151811061264557fe5b60200260200101518160018151811061265a57fe5b60200260200101519350935050509091565b612674612bfc565b6097546001600160a01b039081169116146126c4576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b6001600160a01b0381166126d757600080fd5b60cf80546001600160a01b0319166001600160a01b0392909216919091179055565b612701612bfc565b6097546001600160a01b03908116911614612751576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b6001600160a01b0391909116600090815260e960205260409020805460ff1916911515919091179055565b60e85481565b61278a612bfc565b6097546001600160a01b039081169116146127da576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b6001600160a01b0391909116600090815260ea60205260409020805460ff1916911515919091179055565b60e75481565b600054610100900460ff16806128245750612824613369565b80612832575060005460ff16155b61286d5760405162461bcd60e51b815260040180806020018281038252602e815260200180613adb602e913960400191505060405180910390fd5b600054610100900460ff16158015612898576000805460ff1961ff0019909116610100171660011790555b6128e66040518060400160405280600e81526020016d3262617365642e66696e616e636560901b815250604051806040016040528060068152602001650c909054d15160d21b81525061336f565b6128f06009613425565b6128f861343b565b60cb8990556507326b47ffff1960cd6000612911612bfc565b6001600160a01b0316815260208101919091526040016000205560cb546129429066038d7ea4c680006000196120fc565b60cc5560cf80546001600160a01b03808b166001600160a01b03199283161790925560d080548a841690831617905560d1805489841690831617905560eb80549285169282168317905560c860ec81905560ed8054909216909217905560db55621e848060dc5560c71960dd55620f424060de55606460df5561053e60e155600260e4556129d86129d1612bfc565b6001612782565b6129e3856001612782565b6129ee846001612782565b6129f9836001612782565b612a04826001612782565b612a2373a5025faba6e70b84f74e9b1113e5f7f4e7f4859f6001612782565b612a4273e7bd68547f41413a6baa7609550a7eb58c84c4066001612782565b612a4a612bfc565b6001600160a01b031660006001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60cb546040518082815260200191505060405180910390a38015612aa9576000805461ff00191690555b505050505050505050565b6001600160a01b03918216600090815260ce6020908152604080832093909416825291909152205490565b60db5481565b60cf546001600160a01b031681565b612afc612bfc565b6097546001600160a01b03908116911614612b4c576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b6001600160a01b038116612b915760405162461bcd60e51b815260040180806020018281038252602681526020018061399f6026913960400191505060405180910390fd5b6097546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3609780546001600160a01b0319166001600160a01b0392909216919091179055565b60eb546001600160a01b031681565b3390565b4360e6819055600060e75560d355565b6000612c5283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506134ed565b9392505050565b6001600160a01b038316600090815260ea6020526040812054829060ff16158015612c9d57506001600160a01b038416600090815260ea602052604090205460ff16155b15612fbc576001600160a01b038516600090815260e9602052604090205460ff168015612ce257506001600160a01b038416600090815260e9602052604090205460ff165b612fbc574260d55410612d835760d654831115612d305760405162461bcd60e51b8152600401808060200182810382526037815260200180613a636037913960400191505060405180910390fd5b60d754612d4684612d40876117f0565b90613153565b1115612d835760405162461bcd60e51b815260040180806020018281038252602b815260200180613b09602b913960400191505060405180910390fd5b6001600160a01b038516600090815260e9602052604090205460ff16158015612dc457506001600160a01b038416600090815260e9602052604090205460ff165b15612e17574260d55410612df457612ded6127106114f960d854866131ad90919063ffffffff16565b9150612e12565b612e0f6127106114f960ec54866131ad90919063ffffffff16565b91505b612e9e565b6001600160a01b038516600090815260e9602052604090205460ff16158015612e5957506001600160a01b038416600090815260e9602052604090205460ff16155b15612e9e574260d55410612e9e5760405162461bcd60e51b8152600401808060200182810382526049815260200180613a1a6049913960600191505060405180910390fd5b6001600160a01b038516600090815260e9602052604090205460ff168015612edf57506001600160a01b038416600090815260e9602052604090205460ff16155b80612f2657506001600160a01b038516600090815260e9602052604090205460ff16158015612f2657506001600160a01b038416600090815260e9602052604090205460ff165b15612fbc576000612f35613248565b90506000612f416123e4565b50905060e054421115612fb95760dc5482108015612f61575060dc548110155b15612f8b5760e2805460ff1916905560e154420160e05560dc5460e555612f86612c00565b612fb9565b60de5482118015612f9e575060de548111155b15612fb95760e154420160e05560de5460e555612fb9612c00565b50505b811561306e57612fcc8383612c10565b90506000612fe560cc54846131ad90919063ffffffff16565b60ed546001600160a01b0316600090815260cd602052604090205490915061300d9082613153565b60ed80546001600160a01b03908116600090815260cd60209081526040918290209490945591548251878152925190821693918a16927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92908290030190a3505b600061308560cc54856131ad90919063ffffffff16565b9050600061309e60cc54846131ad90919063ffffffff16565b6001600160a01b038816600090815260cd60205260409020549091506130c49083612c10565b6001600160a01b03808916600090815260cd602052604080822093909355908816815220546130f39082613153565b6001600160a01b03808816600081815260cd602090815260409182902094909455805187815290519193928b16927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a350505050505050565b600082820183811015612c52576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000826131bc57506000610db6565b828202828482816131c957fe5b0414612c525760405162461bcd60e51b8152600401808060200182810382526021815260200180613a9a6021913960400191505060405180910390fd5b6000612c5283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613584565b60d454600090819060ff161561326a576132606123e4565b509150610d229050565b60d3544311156132e35761327c6123e4565b5060e65490915061328c574360e6555b60e654430380156132d757600060d3546000146132ad5760d35443036132b0565b60005b90506132bf6114f082856131ad565b60e78190556132ce9083613206565b60d255506132dd565b60d28290555b504360d3555b505060d25490565b600080821215613342576040805162461bcd60e51b815260206004820181905260248201527f53616665436173743a2076616c7565206d75737420626520706f736974697665604482015290519081900360640190fd5b5090565b6000806040516020840160008286518360008a6187965a03f19695505050505050565b303b1590565b600054610100900460ff16806133885750613388613369565b80613396575060005460ff16155b6133d15760405162461bcd60e51b815260040180806020018281038252602e815260200180613adb602e913960400191505060405180910390fd5b600054610100900460ff161580156133fc576000805460ff1961ff0019909116610100171660011790555b6134046135e9565b61340e8383613689565b8015613420576000805461ff00191690555b505050565b606a805460ff191660ff92909216919091179055565b600054610100900460ff16806134545750613454613369565b80613462575060005460ff16155b61349d5760405162461bcd60e51b815260040180806020018281038252602e815260200180613adb602e913960400191505060405180910390fd5b600054610100900460ff161580156134c8576000805460ff1961ff0019909116610100171660011790555b6134d06135e9565b6134d8613761565b80156134ea576000805461ff00191690555b50565b6000818484111561357c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613541578181015183820152602001613529565b50505050905090810190601f16801561356e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836135d35760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315613541578181015183820152602001613529565b5060008385816135df57fe5b0495945050505050565b600054610100900460ff16806136025750613602613369565b80613610575060005460ff16155b61364b5760405162461bcd60e51b815260040180806020018281038252602e815260200180613adb602e913960400191505060405180910390fd5b600054610100900460ff161580156134d8576000805460ff1961ff00199091166101001716600117905580156134ea576000805461ff001916905550565b600054610100900460ff16806136a257506136a2613369565b806136b0575060005460ff16155b6136eb5760405162461bcd60e51b815260040180806020018281038252602e815260200180613adb602e913960400191505060405180910390fd5b600054610100900460ff16158015613716576000805460ff1961ff0019909116610100171660011790555b825161372990606890602086019061385a565b50815161373d90606990602085019061385a565b50606a805460ff191660121790558015613420576000805461ff0019169055505050565b600054610100900460ff168061377a575061377a613369565b80613788575060005460ff16155b6137c35760405162461bcd60e51b815260040180806020018281038252602e815260200180613adb602e913960400191505060405180910390fd5b600054610100900460ff161580156137ee576000805460ff1961ff0019909116610100171660011790555b60006137f8612bfc565b609780546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35080156134ea576000805461ff001916905550565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061389b57805160ff19168380011785556138c8565b828001600101855582156138c8579182015b828111156138c85782518255916020019190600101906138ad565b50613342929150613989565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061390d57805485556138c8565b828001600101855582156138c857600052602060002091601f016020900482015b828111156138c857825482559160010191906001019061392e565b50805460018160011615610100020316600290046000825580601f1061396f57506134ea565b601f0160209004906000526020600020908101906134ea91905b5b80821115613342576000815560010161398a56fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373496e737566666963656e742062616c616e636520746f207472616e7366657220746f6b656e20616d6f756e742e696e646578206d75737420626520696e2072616e6765206f662073746f726564207478206c697374496e697469616c20556e6973776170206c697374696e67202d2057616c6c657420746f2057616c6c6574207472616e73666572732074656d706f726172696c792064697361626c6564496e697469616c20556e6973776170206c697374696e67202d20616d6f756e742065786365656473207472616e73666572206c696d6974536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564496e697469616c20556e6973776170206c697374696e67202d206d61782062616c616e6365206c696d697453656e646572206d75737420686f6c642061206d696e696d756d206e756d626572206f6620746f6b656e7320746f20726562617365a264697066735822122084307783a427883d6d59e137a94e36dbf6928a843ab799969b32ad1d4d97bcd064736f6c634300060c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103fb5760003560e01c80636a8b3ad211610215578063a457c2d711610125578063d12385e7116100b8578063dd62ed3e11610087578063dd62ed3e14610ba2578063e4597dac14610bd0578063edae876f14610bd8578063f2fde38b14610be0578063fd243da314610c06576103fb565b8063d12385e714610b05578063d59ba0df14610b0d578063d84babca14610b3b578063d9ae7da414610b43576103fb565b8063bc43f6fb116100f4578063bc43f6fb14610a88578063bd9a548b14610a90578063bea9849e14610ab1578063c0b4fd1114610ad7576103fb565b8063a457c2d714610a20578063a9059cbb14610a4c578063ac0bf90214610a78578063af14052c14610a80576103fb565b80637d449789116101a857806395420f751161017757806395420f751461090657806395d89b411461092c57806397e10a79146109345780639ace38c21461096a578063a2a0f29714610a18576103fb565b80637d449789146108e6578063896f9b9a146108ee5780638da5cb5b146108f657806391d4ec18146108fe576103fb565b80637201eb13116101e45780637201eb13146108c657806373afc25f146108ce57806376160fc5146108d65780637a25dabe146108de576103fb565b80636a8b3ad2146108015780636e9dde991461087357806370a0823114610898578063715018a6146108be576103fb565b8063370158ea116103105780634ad79ff4116102a35780635e8e80fa116102725780635e8e80fa146107bb57806360940e3d146107c357806361808d6a146107cb57806363b13f18146107d35780636817031b146107db576103fb565b80634ad79ff4146107475780634c13a9cd1461077c5780635c1eca84146107845780635cf0144a146107b3576103fb565b8063456e0a5d116102df578063456e0a5d1461071257806346c3bd1f1461071a57806346d8d9fc1461073757806349142d2a1461073f576103fb565b8063370158ea1461067b57806338a9ad1d146106d657806339509351146106de578063439780881461070a576103fb565b8063126e19be116103935780631fc7df7f116103625780631fc7df7f1461060157806323b872dd1461062d5780632647f51d146106635780632bc1281e1461066b578063313ce56714610673576103fb565b8063126e19be14610533578063178704b6146105e957806318160ddd146105f15780631991f47d146105f9576103fb565b8063095ea7b3116103cf578063095ea7b3146104a95780630b7d61f1146104e95780630f134f4e1461050d5780631051690514610515576103fb565b8062abaee7146104005780630257ad1f1461041a57806306fdde031461042457806308d1dd8a146104a1575b600080fd5b610408610c0e565b60408051918252519081900360200190f35b610422610c14565b005b61042c610c8e565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561046657818101518382015260200161044e565b50505050905090810190601f1680156104935780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610408610d25565b6104d5600480360360408110156104bf57600080fd5b506001600160a01b038135169060200135610d2b565b604080519115158252519081900360200190f35b6104f1610dbc565b604080516001600160a01b039092168252519081900360200190f35b610408610dcb565b61051d610dd1565b6040805160ff9092168252519081900360200190f35b6104226004803603604081101561054957600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561057457600080fd5b82018360208201111561058657600080fd5b803590602001918460018302840111640100000000831117156105a857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610dda945050505050565b6104f1610efb565b610408610f0a565b6104f1610f10565b6104226004803603604081101561061757600080fd5b50803590602001356001600160a01b0316610f1f565b6104d56004803603606081101561064357600080fd5b506001600160a01b03813581169160208101359091169060400135610fa2565b610408611066565b61040861106c565b61051d611072565b61068361107b565b604080519a8b5260208b0199909952898901979097526060890195909552608088019390935260a087019190915260c086015260ff1660e085015261010084015261012083015251908190036101400190f35b6104086110f4565b6104d5600480360360408110156106f457600080fd5b506001600160a01b0381351690602001356110fa565b6104086111fb565b610408611201565b6104226004803603602081101561073057600080fd5b5035611207565b61040861139f565b6104086113a5565b610422600480360360a081101561075d57600080fd5b50803590602081013590604081013590606081013590608001356113ab565b610408611424565b6104226004803603608081101561079a57600080fd5b508035906020810135906040810135906060013561142a565b61040861149a565b61040861150a565b610408611510565b610408611516565b61040861151c565b610422600480360360208110156107f157600080fd5b50356001600160a01b0316611541565b61042260048036036101a081101561081857600080fd5b50803515159060208101359060408101359060608101359060808101359060a081013515159060c08101359060e0810135906101008101359060ff6101208201351690610140810135906101608101359061018001356115bb565b6104226004803603604081101561088957600080fd5b50803590602001351515611727565b610408600480360360208110156108ae57600080fd5b50356001600160a01b03166117f0565b610422611818565b6104086118ba565b6104086118c0565b6104086118c6565b6104d5611965565b61040861196e565b610422611974565b6104f16119d4565b6104086119e3565b6104226004803603602081101561091c57600080fd5b50356001600160a01b03166119e9565b61042c611a76565b6104d56004803603606081101561094a57600080fd5b506001600160a01b03813581169160208101359160409091013516611ad7565b6109876004803603602081101561098057600080fd5b5035611c73565b604051808415158152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b838110156109db5781810151838201526020016109c3565b50505050905090810190601f168015610a085780820380516001836020036101000a031916815260200191505b5094505050505060405180910390f35b6104d5611d38565b6104d560048036036040811015610a3657600080fd5b506001600160a01b038135169060200135611d41565b6104d560048036036040811015610a6257600080fd5b506001600160a01b038135169060200135611e8f565b610408611ed7565b610408611edd565b6104086123de565b610a986123e4565b6040805192835260208301919091528051918290030190f35b61042260048036036020811015610ac757600080fd5b50356001600160a01b031661266c565b61042260048036036040811015610aed57600080fd5b506001600160a01b03813516906020013515156126f9565b61040861277c565b61042260048036036040811015610b2357600080fd5b506001600160a01b0381351690602001351515612782565b610408612805565b6104226004803603610100811015610b5a57600080fd5b508035906001600160a01b03602082013581169160408101358216916060820135811691608081013582169160a082013581169160c081013582169160e0909101351661280b565b61040860048036036040811015610bb857600080fd5b506001600160a01b0381358116916020013516612ab4565b610408612adf565b6104f1612ae5565b61042260048036036020811015610bf657600080fd5b50356001600160a01b0316612af4565b6104f1612bed565b60e45481565b610c1c612bfc565b6097546001600160a01b03908116911614610c6c576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b60e2805460ff1916905560e154420160e05560dc5460e555610c8c612c00565b565b60688054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610d1a5780601f10610cef57610100808354040283529160200191610d1a565b820191906000526020600020905b815481529060010190602001808311610cfd57829003601f168201915b505050505090505b90565b60d95481565b60008160ce6000610d3a612bfc565b6001600160a01b0390811682526020808301939093526040918201600090812091881680825291909352912091909155610d72612bfc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a35060015b92915050565b60d1546001600160a01b031681565b60ee5481565b60e25460ff1681565b610de2612bfc565b6097546001600160a01b03908116911614610e32576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b6040805160608101825260018082526001600160a01b03808616602080850191825294840186815260c980549485018155600052845160029094027f66be4f155c5ef2ebd3772b228f2f00681e4ed5826cdb3b1943cc11ad15ad1d2881018054935190941661010002610100600160a81b031995151560ff19909416939093179490941691909117825551805193949193610ef4937f66be4f155c5ef2ebd3772b228f2f00681e4ed5826cdb3b1943cc11ad15ad1d290192919091019061385a565b5050505050565b60d0546001600160a01b031681565b60cb5490565b60ed546001600160a01b031681565b610f27612bfc565b6097546001600160a01b03908116911614610f77576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b60ec9190915560ed80546001600160a01b0319166001600160a01b039092169190911790554260ee55565b6000826001600160a01b038116610fb857600080fd5b6001600160a01b038116301415610fce57600080fd5b6001600160a01b038516600090815260ce6020526040812061101591859190610ff5612bfc565b6001600160a01b0316815260208101919091526040016000205490612c10565b6001600160a01b038616600090815260ce6020526040812090611036612bfc565b6001600160a01b0316815260208101919091526040016000205561105b858585612c59565b506001949350505050565b60dc5481565b60d65481565b606a5460ff1690565b6000806000806000806000806000806000806110956123e4565b915091506110a161149a565b828260e05460e5546110b96110b4612bfc565b6117f0565b6110c161151c565b60e25460ff166110cf6118c6565b60e3549b509b509b509b509b509b509b509b509b509b50505090919293949596979899565b60d55481565b600061113c8260ce600061110c612bfc565b6001600160a01b039081168252602080830193909352604091820160009081209189168152925290205490613153565b60ce6000611148612bfc565b6001600160a01b0390811682526020808301939093526040918201600090812091881680825291909352912091909155611180612bfc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560ce60006111b6612bfc565b6001600160a01b03908116825260208083019390935260409182016000908120918a16815290835281902054815190815290519081900390910190a350600192915050565b60e55481565b60d75481565b61120f612bfc565b6097546001600160a01b0390811691161461125f576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b60c95481106112ab576040805162461bcd60e51b8152602060048201526013602482015272696e646578206f7574206f6620626f756e647360681b604482015290519081900360640190fd5b60c9546000190181101561135c5760c9805460001981019081106112cb57fe5b906000526020600020906002020160c982815481106112e657fe5b6000918252602090912082546002928302909101805460ff191660ff9092161515919091178082558354610100600160a81b0319909116610100918290046001600160a01b031682021782556001808501805493946113589483870194929381161590920260001901909116046138d4565b5050505b60c980548061136757fe5b60008281526020812060026000199093019283020180546001600160a81b0319168155906113986001830182613949565b5050905550565b60dd5481565b60df5481565b6113b3612bfc565b6097546001600160a01b03908116911614611403576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b60e2805460ff1916905560e085905560dc5460e555610ef48484848461142a565b60e05481565b611432612bfc565b6097546001600160a01b03908116911614611482576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b60d59390935560d69190915560d75560d8554260d955565b6000806114a56123e4565b5060d454909150819060ff1661150457600060e65443036001019050600060d3546000146114da5760d35443036001016114dd565b60005b90506114ff826114f96114f084886131ad565b60e75490613153565b90613206565b925050505b91505090565b60e15481565b60d25481565b60ec5481565b600061153c620f42406114f960df5460cb546131ad90919063ffffffff16565b905090565b611549612bfc565b6097546001600160a01b03908116911614611599576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b60eb80546001600160a01b0319166001600160a01b0392909216919091179055565b6115c3612bfc565b6097546001600160a01b03908116911614611613576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b60da5460ff1615158d1515146116325760da805460ff19168e15151790555b60db548c146116415760db8c90555b60dc548b146116505760dc8b90555b60dd548a1461165f5760dd8a90555b60de54891461166e5760de8990555b60d45460ff1615158815151461168d5760d4805460ff19168915151790555b60df54871461169c5760df8790555b60e05486146116ab5760e08690555b60e15485146116ba5760e18590555b60e25460ff8581169116146116d95760e2805460ff191660ff86161790555b60e35483146116e85760e38390555b60e45482141580156116fa5750600082115b156117055760e48290555b60e55481146117145760e58190555b50504260e8555050505050505050505050565b61172f612bfc565b6097546001600160a01b0390811691161461177f576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b60c95482106117bf5760405162461bcd60e51b81526004018080602001828103825260288152602001806139f26028913960400191505060405180910390fd5b8060c983815481106117cd57fe5b60009182526020909120600290910201805460ff19169115159190911790555050565b60cc546001600160a01b038216600090815260cd60205260408120549091610db69190613206565b611820612bfc565b6097546001600160a01b03908116911614611870576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b6097546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3609780546001600160a01b0319169055565b60d35481565b60e65481565b60008060e4541161191e576040805162461bcd60e51b815260206004820152601a60248201527f5265776172642044697669736f72206d757374206265203e2030000000000000604482015290519081900360640190fd5b60e45460eb5460009161193d916114f9906001600160a01b03166117f0565b905060006119496123e4565b50905061195e633b9aca006114f984846131ad565b9250505090565b60d45460ff1681565b60d85481565b61197c612bfc565b6097546001600160a01b039081169116146119cc576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b610c8c612c00565b6097546001600160a01b031690565b60c95490565b6119f1612bfc565b6097546001600160a01b03908116911614611a41576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b6001600160a01b038116611a5457600080fd5b60d180546001600160a01b0319166001600160a01b0392909216919091179055565b60698054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610d1a5780601f10610cef57610100808354040283529160200191610d1a565b6000611ae1612bfc565b6097546001600160a01b03908116911614611b31576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b82846001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611b7f57600080fd5b505afa158015611b93573d6000803e3d6000fd5b505050506040513d6020811015611ba957600080fd5b50511015611be85760405162461bcd60e51b815260040180806020018281038252602d8152602001806139c5602d913960400191505060405180910390fd5b836001600160a01b031663a9059cbb83856040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611c3f57600080fd5b505af1158015611c53573d6000803e3d6000fd5b505050506040513d6020811015611c6957600080fd5b5051949350505050565b60c98181548110611c8057fe5b6000918252602091829020600291820201805460018083018054604080516101009483161585026000190190921696909604601f810188900488028201880190965285815260ff84169750919092046001600160a01b03169492939092830182828015611d2e5780601f10611d0357610100808354040283529160200191611d2e565b820191906000526020600020905b815481529060010190602001808311611d1157829003601f168201915b5050505050905083565b60da5460ff1681565b60008060ce6000611d50612bfc565b6001600160a01b03908116825260208083019390935260409182016000908120918816815292529020549050808310611dc057600060ce6000611d91612bfc565b6001600160a01b0390811682526020808301939093526040918201600090812091891681529252902055611e01565b611dca8184612c10565b60ce6000611dd6612bfc565b6001600160a01b03908116825260208083019390935260409182016000908120918916815292529020555b836001600160a01b0316611e13612bfc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560ce6000611e49612bfc565b6001600160a01b03908116825260208083019390935260409182016000908120918b16815290835281902054815190815290519081900390910190a35060019392505050565b6000826001600160a01b038116611ea557600080fd5b6001600160a01b038116301415611ebb57600080fd5b611ecd611ec6612bfc565b8585612c59565b5060019392505050565b60de5481565b60da5460009060ff1615611f21576040805162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b604482015290519081900360640190fd5b60e25460ff16600a1415611f7c576040805162461bcd60e51b815260206004820152601d60248201527f50617573656420756e74696c20726577617264732072656c6561736564000000604482015290519081900360640190fd5b60e054421015611fc3576040805162461bcd60e51b815260206004820152600d60248201526c0436f756e74646f776e203e203609c1b604482015290519081900360640190fd5b611fcb61151c565b611fd66110b4612bfc565b10156120135760405162461bcd60e51b8152600401808060200182810382526035815260200180613b346035913960400191505060405180910390fd5b600061201d613248565b905060de54811080612030575060dc5481115b612077576040805162461bcd60e51b81526020600482015260136024820152724572723a205265626173696e672072616e676560681b604482015290519081900360640190fd5b60cb5460dc5460009083111561208c575060db545b60de5483101561209b575060dd545b6120ba6127106114f96120b184612710016132eb565b60cb54906131ad565b91506001600160801b038211156120d6576001600160801b0391505b60ca546120e4906001613153565b60ca5560cb8290556121048266038d7ea4c680006000195b061990613206565b60cc5560e154420160e05560dc5483118015612121575060e55483115b801561212f5750600060e554115b156121685760e2805460ff198116600160ff928316018216179182905516600a1415612163574360e35562015180420160e0555b612173565b60e2805460ff191690555b60005b60c95481101561237157600060c9828154811061218f57fe5b60009182526020909120600290910201805490915060ff16156123685780546001808301805460408051602060026101009685161587026000190190941693909304601f81018490048402820184019092528181526000956122579590046001600160a01b031693909290919083018282801561224d5780601f106122225761010080835404028352916020019161224d565b820191906000526020600020905b81548152906001019060200180831161223057829003601f168201915b5050505050613346565b9050806123665781546040805185815260208101828152600180870180546002610100938216158402600019019091160494840185905294046001600160a01b0316937f8091ecaaa54ebb82e02d36c2c336528e0fcb9b3430fc1291ac88295032b9c2639388939192906060830190849080156123155780601f106122ea57610100808354040283529160200191612315565b820191906000526020600020905b8154815290600101906020018083116122f857829003601f168201915b5050935050505060405180910390a26040805162461bcd60e51b8152602060048201526012602482015271151c985b9cd858dd1a5bdb8811985a5b195960721b604482015290519081900360640190fd5b505b50600101612176565b5060ca5460cb5460e25460408051878152602081018690528082019390935260ff9091166060830152517f996e1f9c83ea5994d7bef0858c0315280c136a07b8473ffc0322e08b3c648c959181900360800190a260dc5460e5556123d3612c00565b60cb54935050505090565b60e35481565b604080516003808252608082019092526000918291606091602082018380368337019050509050308160008151811061241957fe5b6001600160a01b03928316602091820292909201015260d05482519116908290600190811061244457fe5b6001600160a01b03928316602091820292909201015260d15482519116908290600290811061246f57fe5b6001600160a01b0392831660209182029290920181019190915260cf546040805163d06ca61f60e01b8152633b9aca006004820181815260248301938452875160448401528751606097959095169563d06ca61f95929489949293909260640191858101910280838360005b838110156124f35781810151838201526020016124db565b50505050905001935050505060006040518083038186803b15801561251757600080fd5b505afa15801561252b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561255457600080fd5b810190808051604051939291908464010000000082111561257457600080fd5b90830190602082018581111561258957600080fd5b82518660208202830111640100000000821117156125a657600080fd5b82525081516020918201928201910280838360005b838110156125d35781810151838201526020016125bb565b5050505090500160405250505090508051600314612638576040805162461bcd60e51b815260206004820152601f60248201527f4572726f722072657472656976696e672063757272656e742070726963657300604482015290519081900360640190fd5b8060028151811061264557fe5b60200260200101518160018151811061265a57fe5b60200260200101519350935050509091565b612674612bfc565b6097546001600160a01b039081169116146126c4576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b6001600160a01b0381166126d757600080fd5b60cf80546001600160a01b0319166001600160a01b0392909216919091179055565b612701612bfc565b6097546001600160a01b03908116911614612751576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b6001600160a01b0391909116600090815260e960205260409020805460ff1916911515919091179055565b60e85481565b61278a612bfc565b6097546001600160a01b039081169116146127da576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b6001600160a01b0391909116600090815260ea60205260409020805460ff1916911515919091179055565b60e75481565b600054610100900460ff16806128245750612824613369565b80612832575060005460ff16155b61286d5760405162461bcd60e51b815260040180806020018281038252602e815260200180613adb602e913960400191505060405180910390fd5b600054610100900460ff16158015612898576000805460ff1961ff0019909116610100171660011790555b6128e66040518060400160405280600e81526020016d3262617365642e66696e616e636560901b815250604051806040016040528060068152602001650c909054d15160d21b81525061336f565b6128f06009613425565b6128f861343b565b60cb8990556507326b47ffff1960cd6000612911612bfc565b6001600160a01b0316815260208101919091526040016000205560cb546129429066038d7ea4c680006000196120fc565b60cc5560cf80546001600160a01b03808b166001600160a01b03199283161790925560d080548a841690831617905560d1805489841690831617905560eb80549285169282168317905560c860ec81905560ed8054909216909217905560db55621e848060dc5560c71960dd55620f424060de55606460df5561053e60e155600260e4556129d86129d1612bfc565b6001612782565b6129e3856001612782565b6129ee846001612782565b6129f9836001612782565b612a04826001612782565b612a2373a5025faba6e70b84f74e9b1113e5f7f4e7f4859f6001612782565b612a4273e7bd68547f41413a6baa7609550a7eb58c84c4066001612782565b612a4a612bfc565b6001600160a01b031660006001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60cb546040518082815260200191505060405180910390a38015612aa9576000805461ff00191690555b505050505050505050565b6001600160a01b03918216600090815260ce6020908152604080832093909416825291909152205490565b60db5481565b60cf546001600160a01b031681565b612afc612bfc565b6097546001600160a01b03908116911614612b4c576040805162461bcd60e51b81526020600482018190526024820152600080516020613abb833981519152604482015290519081900360640190fd5b6001600160a01b038116612b915760405162461bcd60e51b815260040180806020018281038252602681526020018061399f6026913960400191505060405180910390fd5b6097546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3609780546001600160a01b0319166001600160a01b0392909216919091179055565b60eb546001600160a01b031681565b3390565b4360e6819055600060e75560d355565b6000612c5283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506134ed565b9392505050565b6001600160a01b038316600090815260ea6020526040812054829060ff16158015612c9d57506001600160a01b038416600090815260ea602052604090205460ff16155b15612fbc576001600160a01b038516600090815260e9602052604090205460ff168015612ce257506001600160a01b038416600090815260e9602052604090205460ff165b612fbc574260d55410612d835760d654831115612d305760405162461bcd60e51b8152600401808060200182810382526037815260200180613a636037913960400191505060405180910390fd5b60d754612d4684612d40876117f0565b90613153565b1115612d835760405162461bcd60e51b815260040180806020018281038252602b815260200180613b09602b913960400191505060405180910390fd5b6001600160a01b038516600090815260e9602052604090205460ff16158015612dc457506001600160a01b038416600090815260e9602052604090205460ff165b15612e17574260d55410612df457612ded6127106114f960d854866131ad90919063ffffffff16565b9150612e12565b612e0f6127106114f960ec54866131ad90919063ffffffff16565b91505b612e9e565b6001600160a01b038516600090815260e9602052604090205460ff16158015612e5957506001600160a01b038416600090815260e9602052604090205460ff16155b15612e9e574260d55410612e9e5760405162461bcd60e51b8152600401808060200182810382526049815260200180613a1a6049913960600191505060405180910390fd5b6001600160a01b038516600090815260e9602052604090205460ff168015612edf57506001600160a01b038416600090815260e9602052604090205460ff16155b80612f2657506001600160a01b038516600090815260e9602052604090205460ff16158015612f2657506001600160a01b038416600090815260e9602052604090205460ff165b15612fbc576000612f35613248565b90506000612f416123e4565b50905060e054421115612fb95760dc5482108015612f61575060dc548110155b15612f8b5760e2805460ff1916905560e154420160e05560dc5460e555612f86612c00565b612fb9565b60de5482118015612f9e575060de548111155b15612fb95760e154420160e05560de5460e555612fb9612c00565b50505b811561306e57612fcc8383612c10565b90506000612fe560cc54846131ad90919063ffffffff16565b60ed546001600160a01b0316600090815260cd602052604090205490915061300d9082613153565b60ed80546001600160a01b03908116600090815260cd60209081526040918290209490945591548251878152925190821693918a16927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92908290030190a3505b600061308560cc54856131ad90919063ffffffff16565b9050600061309e60cc54846131ad90919063ffffffff16565b6001600160a01b038816600090815260cd60205260409020549091506130c49083612c10565b6001600160a01b03808916600090815260cd602052604080822093909355908816815220546130f39082613153565b6001600160a01b03808816600081815260cd602090815260409182902094909455805187815290519193928b16927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a350505050505050565b600082820183811015612c52576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000826131bc57506000610db6565b828202828482816131c957fe5b0414612c525760405162461bcd60e51b8152600401808060200182810382526021815260200180613a9a6021913960400191505060405180910390fd5b6000612c5283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613584565b60d454600090819060ff161561326a576132606123e4565b509150610d229050565b60d3544311156132e35761327c6123e4565b5060e65490915061328c574360e6555b60e654430380156132d757600060d3546000146132ad5760d35443036132b0565b60005b90506132bf6114f082856131ad565b60e78190556132ce9083613206565b60d255506132dd565b60d28290555b504360d3555b505060d25490565b600080821215613342576040805162461bcd60e51b815260206004820181905260248201527f53616665436173743a2076616c7565206d75737420626520706f736974697665604482015290519081900360640190fd5b5090565b6000806040516020840160008286518360008a6187965a03f19695505050505050565b303b1590565b600054610100900460ff16806133885750613388613369565b80613396575060005460ff16155b6133d15760405162461bcd60e51b815260040180806020018281038252602e815260200180613adb602e913960400191505060405180910390fd5b600054610100900460ff161580156133fc576000805460ff1961ff0019909116610100171660011790555b6134046135e9565b61340e8383613689565b8015613420576000805461ff00191690555b505050565b606a805460ff191660ff92909216919091179055565b600054610100900460ff16806134545750613454613369565b80613462575060005460ff16155b61349d5760405162461bcd60e51b815260040180806020018281038252602e815260200180613adb602e913960400191505060405180910390fd5b600054610100900460ff161580156134c8576000805460ff1961ff0019909116610100171660011790555b6134d06135e9565b6134d8613761565b80156134ea576000805461ff00191690555b50565b6000818484111561357c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613541578181015183820152602001613529565b50505050905090810190601f16801561356e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836135d35760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315613541578181015183820152602001613529565b5060008385816135df57fe5b0495945050505050565b600054610100900460ff16806136025750613602613369565b80613610575060005460ff16155b61364b5760405162461bcd60e51b815260040180806020018281038252602e815260200180613adb602e913960400191505060405180910390fd5b600054610100900460ff161580156134d8576000805460ff1961ff00199091166101001716600117905580156134ea576000805461ff001916905550565b600054610100900460ff16806136a257506136a2613369565b806136b0575060005460ff16155b6136eb5760405162461bcd60e51b815260040180806020018281038252602e815260200180613adb602e913960400191505060405180910390fd5b600054610100900460ff16158015613716576000805460ff1961ff0019909116610100171660011790555b825161372990606890602086019061385a565b50815161373d90606990602085019061385a565b50606a805460ff191660121790558015613420576000805461ff0019169055505050565b600054610100900460ff168061377a575061377a613369565b80613788575060005460ff16155b6137c35760405162461bcd60e51b815260040180806020018281038252602e815260200180613adb602e913960400191505060405180910390fd5b600054610100900460ff161580156137ee576000805460ff1961ff0019909116610100171660011790555b60006137f8612bfc565b609780546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35080156134ea576000805461ff001916905550565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061389b57805160ff19168380011785556138c8565b828001600101855582156138c8579182015b828111156138c85782518255916020019190600101906138ad565b50613342929150613989565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061390d57805485556138c8565b828001600101855582156138c857600052602060002091601f016020900482015b828111156138c857825482559160010191906001019061392e565b50805460018160011615610100020316600290046000825580601f1061396f57506134ea565b601f0160209004906000526020600020908101906134ea91905b5b80821115613342576000815560010161398a56fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373496e737566666963656e742062616c616e636520746f207472616e7366657220746f6b656e20616d6f756e742e696e646578206d75737420626520696e2072616e6765206f662073746f726564207478206c697374496e697469616c20556e6973776170206c697374696e67202d2057616c6c657420746f2057616c6c6574207472616e73666572732074656d706f726172696c792064697361626c6564496e697469616c20556e6973776170206c697374696e67202d20616d6f756e742065786365656473207472616e73666572206c696d6974536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564496e697469616c20556e6973776170206c697374696e67202d206d61782062616c616e6365206c696d697453656e646572206d75737420686f6c642061206d696e696d756d206e756d626572206f6620746f6b656e7320746f20726562617365a264697066735822122084307783a427883d6d59e137a94e36dbf6928a843ab799969b32ad1d4d97bcd064736f6c634300060c0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.