Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 12405934 | 1338 days ago | IN | 0 ETH | 0.010075 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
TestToken
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-05-10 */ // SPDX-License-Identifier: GPL-3.0-only pragma experimental ABIEncoderV2; // File: @openzeppelin/contracts/GSN/Context.sol pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with 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. */ abstract contract Context { 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; } } // File: @openzeppelin/contracts/access/Ownable.sol pragma solidity >=0.6.0 <0.8.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. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { 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; } } // File: @openzeppelin/contracts/math/SafeMath.sol pragma solidity >=0.6.0 <0.8.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) { 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/token/ERC20/IERC20.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: @openzeppelin/contracts/utils/Address.sol pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol pragma solidity >=0.6.0 <0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: contracts/Balancer.sol pragma solidity ^0.6.0; interface BFactory { function newBPool() external returns (address _pool); } interface BPool is IERC20 { function getBalance(address _token) external view returns (uint256 _balance); function bind(address _token, uint256 _balance, uint256 _denorm) external; function finalize() external; function setSwapFee(uint256 _swapFee) external; } interface CrpPool is IERC20 { function bPool() external view returns (address _bpool); function isPublicSwap() external view returns (bool _isPublicSwap); function createPool(uint256 _initialSupply, uint256 _minimumWeightChangeBlockPeriodParam, uint256 _addTokenTimeLockInBlocksParam) external; function exitPool(uint256 _poolAmountIn, uint256[] calldata _minAmountsOut) external; function setController(address _controller) external; function setPublicSwap(bool _public) external; function updateWeightsGradually(uint256[] calldata _weights, uint256 _startBlock, uint256 _endBlock) external; } interface CrpFactory { struct PoolParams { string poolTokenSymbol; string poolTokenName; address[] constituentTokens; uint[] tokenBalances; uint[] tokenWeights; uint swapFee; } struct Rights { bool canPauseSwapping; bool canChangeSwapFee; bool canChangeWeights; bool canAddRemoveTokens; bool canWhitelistLPs; bool canChangeCap; } function newCrp(address _factory, PoolParams calldata _params, Rights calldata _rights) external returns (address _pool); } // File: contracts/LiteLauncher.sol pragma solidity ^0.6.0; contract LiteLauncher is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; bool constant MAINNET = true; uint256 constant CHAINID = MAINNET ? 1 : 42; address constant BALANCER_FACTORY = MAINNET ? 0x9424B1412450D0f8Fc2255FAf6046b98213B76Bd : 0x8f7F78080219d4066A8036ccD30D588B416a40DB; address constant BALANCER_CRP_FACTORY = MAINNET ? 0xed52D8E202401645eDAD1c0AA21e872498ce47D0 : 0x53265f0e014995363AE54DAd7059c018BaDbcD74; constructor () public { require(_chainId() == CHAINID, "wrong network"); } function createLiquidityBootstrapPool(address _token0, uint256 _amount0, uint256 _weight0, address _token1, uint256 _amount1, uint256 _weight1, uint256 _swapFee, address _treasury, address _operator) external onlyOwner { require(_weight0.add(_weight1) == 40e18, "invalid weights"); IERC20(_token0).safeTransferFrom(_treasury, address(this), _amount0); IERC20(_token1).safeTransferFrom(_treasury, address(this), _amount1); address _pool; { address[] memory _tokens = new address[](2); _tokens[0] = _token0; _tokens[1] = _token1; uint256[] memory _amounts = new uint256[](2); _amounts[0] = _amount0; _amounts[1] = _amount1; uint256[] memory _weights = new uint256[](2); _weights[0] = _weight0; _weights[1] = _weight1; CrpFactory.PoolParams memory _params = CrpFactory.PoolParams({ poolTokenSymbol: "LBP", poolTokenName: "NFTFY LBP", constituentTokens: _tokens, tokenBalances: _amounts, tokenWeights: _weights, swapFee: _swapFee }); CrpFactory.Rights memory _rights = CrpFactory.Rights({ canPauseSwapping: true, canChangeSwapFee: true, canChangeWeights: true, canAddRemoveTokens: false, canWhitelistLPs: true, canChangeCap: true }); _pool = CrpFactory(BALANCER_CRP_FACTORY).newCrp(BALANCER_FACTORY, _params, _rights); } IERC20(_token0).safeApprove(_pool, _amount0); IERC20(_token1).safeApprove(_pool, _amount1); CrpPool(_pool).createPool(100e18, 10, 10); CrpPool(_pool).setPublicSwap(false); CrpPool(_pool).setController(_operator); IERC20(_pool).safeTransfer(_treasury, IERC20(_pool).balanceOf(address(this))); emit PoolCreated(_pool); } function _chainId() internal pure returns (uint256 _chainid) { assembly { _chainid := chainid() } return _chainid; } event PoolCreated(address _pool); } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; 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. */ constructor (string memory name_, string memory symbol_) public { _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 override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view 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, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev 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 { } } // File: contracts/TestToken.sol pragma solidity ^0.6.0; contract TestToken is ERC20 { uint256 constant TOTAL_SUPPLY = 100_000_000e18; // 100 million constructor () ERC20("Test Token", "TEST") public { address _from = msg.sender; _setupDecimals(18); _mint(_from, TOTAL_SUPPLY); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040518060400160405280600a81526020017f5465737420546f6b656e000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f544553540000000000000000000000000000000000000000000000000000000081525081600390805190602001906200009692919062000333565b508060049080519060200190620000af92919062000333565b506012600560006101000a81548160ff021916908360ff16021790555050506000339050620000e560126200010960201b60201c565b62000102816a52b7d2dcc80cd2e40000006200012760201b60201c565b50620004ea565b80600560006101000a81548160ff021916908360ff16021790555050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156200019a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001919062000490565b60405180910390fd5b620001ae60008383620002d660201b60201c565b620001ca81600254620002db60201b6200073f1790919060201c565b60028190555062000228816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054620002db60201b6200073f1790919060201c565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620002ca9190620004b2565b60405180910390a35050565b505050565b60008082840190508381101562000329576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000320906200046e565b60405180910390fd5b8091505092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200037657805160ff1916838001178555620003a7565b82800160010185558215620003a7579182015b82811115620003a657825182559160200191906001019062000389565b5b509050620003b69190620003ba565b5090565b5b80821115620003d5576000816000905550600101620003bb565b5090565b6000620003e8601b83620004cf565b91507f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006000830152602082019050919050565b60006200042a601f83620004cf565b91507f45524332303a206d696e7420746f20746865207a65726f2061646472657373006000830152602082019050919050565b6200046881620004e0565b82525050565b600060208201905081810360008301526200048981620003d9565b9050919050565b60006020820190508181036000830152620004ab816200041b565b9050919050565b6000602082019050620004c960008301846200045d565b92915050565b600082825260208201905092915050565b6000819050919050565b61125380620004fa6000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461016857806370a082311461019857806395d89b41146101c8578063a457c2d7146101e6578063a9059cbb14610216578063dd62ed3e14610246576100a9565b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100fc57806323b872dd1461011a578063313ce5671461014a575b600080fd5b6100b6610276565b6040516100c39190610fcf565b60405180910390f35b6100e660048036038101906100e19190610d3a565b610318565b6040516100f39190610fb4565b60405180910390f35b610104610336565b6040516101119190611091565b60405180910390f35b610134600480360381019061012f9190610ceb565b610340565b6040516101419190610fb4565b60405180910390f35b610152610419565b60405161015f91906110ac565b60405180910390f35b610182600480360381019061017d9190610d3a565b610430565b60405161018f9190610fb4565b60405180910390f35b6101b260048036038101906101ad9190610c86565b6104e3565b6040516101bf9190611091565b60405180910390f35b6101d061052b565b6040516101dd9190610fcf565b60405180910390f35b61020060048036038101906101fb9190610d3a565b6105cd565b60405161020d9190610fb4565b60405180910390f35b610230600480360381019061022b9190610d3a565b61069a565b60405161023d9190610fb4565b60405180910390f35b610260600480360381019061025b9190610caf565b6106b8565b60405161026d9190611091565b60405180910390f35b606060038054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561030e5780601f106102e35761010080835404028352916020019161030e565b820191906000526020600020905b8154815290600101906020018083116102f157829003601f168201915b5050505050905090565b600061032c610325610794565b848461079c565b6001905092915050565b6000600254905090565b600061034d848484610967565b61040e84610359610794565b610409856040518060600160405280602881526020016111d160289139600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006103bf610794565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610bfc9092919063ffffffff16565b61079c565b600190509392505050565b6000600560009054906101000a900460ff16905090565b60006104d961043d610794565b846104d4856001600061044e610794565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461073f90919063ffffffff16565b61079c565b6001905092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b606060048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105c35780601f10610598576101008083540402835291602001916105c3565b820191906000526020600020905b8154815290600101906020018083116105a657829003601f168201915b5050505050905090565b60006106906105da610794565b8461068b856040518060600160405280602581526020016111f96025913960016000610604610794565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610bfc9092919063ffffffff16565b61079c565b6001905092915050565b60006106ae6106a7610794565b8484610967565b6001905092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60008082840190508381101561078a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078190611031565b60405180910390fd5b8091505092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561080c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080390611071565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561087c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087390611011565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161095a9190611091565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ce90611051565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610a47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3e90610ff1565b60405180910390fd5b610a52838383610c57565b610abd816040518060600160405280602681526020016111ab602691396000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610bfc9092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610b50816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461073f90919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610bef9190611091565b60405180910390a3505050565b6000838311158290610c44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3b9190610fcf565b60405180910390fd5b5060008385039050809150509392505050565b505050565b600081359050610c6b8161117c565b92915050565b600081359050610c8081611193565b92915050565b600060208284031215610c9857600080fd5b6000610ca684828501610c5c565b91505092915050565b60008060408385031215610cc257600080fd5b6000610cd085828601610c5c565b9250506020610ce185828601610c5c565b9150509250929050565b600080600060608486031215610d0057600080fd5b6000610d0e86828701610c5c565b9350506020610d1f86828701610c5c565b9250506040610d3086828701610c71565b9150509250925092565b60008060408385031215610d4d57600080fd5b6000610d5b85828601610c5c565b9250506020610d6c85828601610c71565b9150509250929050565b610d7f816110f5565b82525050565b6000610d90826110c7565b610d9a81856110d2565b9350610daa818560208601611138565b610db38161116b565b840191505092915050565b6000610dcb6023836110d2565b91507f45524332303a207472616e7366657220746f20746865207a65726f206164647260008301527f65737300000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000610e316022836110d2565b91507f45524332303a20617070726f766520746f20746865207a65726f20616464726560008301527f73730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000610e97601b836110d2565b91507f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006000830152602082019050919050565b6000610ed76025836110d2565b91507f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000610f3d6024836110d2565b91507f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b610f9f81611121565b82525050565b610fae8161112b565b82525050565b6000602082019050610fc96000830184610d76565b92915050565b60006020820190508181036000830152610fe98184610d85565b905092915050565b6000602082019050818103600083015261100a81610dbe565b9050919050565b6000602082019050818103600083015261102a81610e24565b9050919050565b6000602082019050818103600083015261104a81610e8a565b9050919050565b6000602082019050818103600083015261106a81610eca565b9050919050565b6000602082019050818103600083015261108a81610f30565b9050919050565b60006020820190506110a66000830184610f96565b92915050565b60006020820190506110c16000830184610fa5565b92915050565b600081519050919050565b600082825260208201905092915050565b60006110ee82611101565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b8381101561115657808201518184015260208101905061113b565b83811115611165576000848401525b50505050565b6000601f19601f8301169050919050565b611185816110e3565b811461119057600080fd5b50565b61119c81611121565b81146111a757600080fd5b5056fe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220288d789c67c16fe7c02a4815c356c539a81f2058718e2acdd386adea4f75f30764736f6c634300060c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461016857806370a082311461019857806395d89b41146101c8578063a457c2d7146101e6578063a9059cbb14610216578063dd62ed3e14610246576100a9565b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100fc57806323b872dd1461011a578063313ce5671461014a575b600080fd5b6100b6610276565b6040516100c39190610fcf565b60405180910390f35b6100e660048036038101906100e19190610d3a565b610318565b6040516100f39190610fb4565b60405180910390f35b610104610336565b6040516101119190611091565b60405180910390f35b610134600480360381019061012f9190610ceb565b610340565b6040516101419190610fb4565b60405180910390f35b610152610419565b60405161015f91906110ac565b60405180910390f35b610182600480360381019061017d9190610d3a565b610430565b60405161018f9190610fb4565b60405180910390f35b6101b260048036038101906101ad9190610c86565b6104e3565b6040516101bf9190611091565b60405180910390f35b6101d061052b565b6040516101dd9190610fcf565b60405180910390f35b61020060048036038101906101fb9190610d3a565b6105cd565b60405161020d9190610fb4565b60405180910390f35b610230600480360381019061022b9190610d3a565b61069a565b60405161023d9190610fb4565b60405180910390f35b610260600480360381019061025b9190610caf565b6106b8565b60405161026d9190611091565b60405180910390f35b606060038054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561030e5780601f106102e35761010080835404028352916020019161030e565b820191906000526020600020905b8154815290600101906020018083116102f157829003601f168201915b5050505050905090565b600061032c610325610794565b848461079c565b6001905092915050565b6000600254905090565b600061034d848484610967565b61040e84610359610794565b610409856040518060600160405280602881526020016111d160289139600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006103bf610794565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610bfc9092919063ffffffff16565b61079c565b600190509392505050565b6000600560009054906101000a900460ff16905090565b60006104d961043d610794565b846104d4856001600061044e610794565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461073f90919063ffffffff16565b61079c565b6001905092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b606060048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105c35780601f10610598576101008083540402835291602001916105c3565b820191906000526020600020905b8154815290600101906020018083116105a657829003601f168201915b5050505050905090565b60006106906105da610794565b8461068b856040518060600160405280602581526020016111f96025913960016000610604610794565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610bfc9092919063ffffffff16565b61079c565b6001905092915050565b60006106ae6106a7610794565b8484610967565b6001905092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60008082840190508381101561078a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078190611031565b60405180910390fd5b8091505092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561080c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080390611071565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561087c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087390611011565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161095a9190611091565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ce90611051565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610a47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3e90610ff1565b60405180910390fd5b610a52838383610c57565b610abd816040518060600160405280602681526020016111ab602691396000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610bfc9092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610b50816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461073f90919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610bef9190611091565b60405180910390a3505050565b6000838311158290610c44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3b9190610fcf565b60405180910390fd5b5060008385039050809150509392505050565b505050565b600081359050610c6b8161117c565b92915050565b600081359050610c8081611193565b92915050565b600060208284031215610c9857600080fd5b6000610ca684828501610c5c565b91505092915050565b60008060408385031215610cc257600080fd5b6000610cd085828601610c5c565b9250506020610ce185828601610c5c565b9150509250929050565b600080600060608486031215610d0057600080fd5b6000610d0e86828701610c5c565b9350506020610d1f86828701610c5c565b9250506040610d3086828701610c71565b9150509250925092565b60008060408385031215610d4d57600080fd5b6000610d5b85828601610c5c565b9250506020610d6c85828601610c71565b9150509250929050565b610d7f816110f5565b82525050565b6000610d90826110c7565b610d9a81856110d2565b9350610daa818560208601611138565b610db38161116b565b840191505092915050565b6000610dcb6023836110d2565b91507f45524332303a207472616e7366657220746f20746865207a65726f206164647260008301527f65737300000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000610e316022836110d2565b91507f45524332303a20617070726f766520746f20746865207a65726f20616464726560008301527f73730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000610e97601b836110d2565b91507f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006000830152602082019050919050565b6000610ed76025836110d2565b91507f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000610f3d6024836110d2565b91507f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b610f9f81611121565b82525050565b610fae8161112b565b82525050565b6000602082019050610fc96000830184610d76565b92915050565b60006020820190508181036000830152610fe98184610d85565b905092915050565b6000602082019050818103600083015261100a81610dbe565b9050919050565b6000602082019050818103600083015261102a81610e24565b9050919050565b6000602082019050818103600083015261104a81610e8a565b9050919050565b6000602082019050818103600083015261106a81610eca565b9050919050565b6000602082019050818103600083015261108a81610f30565b9050919050565b60006020820190506110a66000830184610f96565b92915050565b60006020820190506110c16000830184610fa5565b92915050565b600081519050919050565b600082825260208201905092915050565b60006110ee82611101565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b8381101561115657808201518184015260208101905061113b565b83811115611165576000848401525b50505050565b6000601f19601f8301169050919050565b611185816110e3565b811461119057600080fd5b50565b61119c81611121565b81146111a757600080fd5b5056fe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220288d789c67c16fe7c02a4815c356c539a81f2058718e2acdd386adea4f75f30764736f6c634300060c0033
Deployed Bytecode Sourcemap
37448:245:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28558:83;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;30664:169;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;29633:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;31315:321;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;29485:83;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;32045:218;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;29796:119;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;28760:87;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;32766:269;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;30128:175;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;30366:151;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;28558:83;28595:13;28628:5;28621:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28558:83;:::o;30664:169::-;30747:4;30764:39;30773:12;:10;:12::i;:::-;30787:7;30796:6;30764:8;:39::i;:::-;30821:4;30814:11;;30664:169;;;;:::o;29633:100::-;29686:7;29713:12;;29706:19;;29633:100;:::o;31315:321::-;31421:4;31438:36;31448:6;31456:9;31467:6;31438:9;:36::i;:::-;31485:121;31494:6;31502:12;:10;:12::i;:::-;31516:89;31554:6;31516:89;;;;;;;;;;;;;;;;;:11;:19;31528:6;31516:19;;;;;;;;;;;;;;;:33;31536:12;:10;:12::i;:::-;31516:33;;;;;;;;;;;;;;;;:37;;:89;;;;;:::i;:::-;31485:8;:121::i;:::-;31624:4;31617:11;;31315:321;;;;;:::o;29485:83::-;29526:5;29551:9;;;;;;;;;;;29544:16;;29485:83;:::o;32045:218::-;32133:4;32150:83;32159:12;:10;:12::i;:::-;32173:7;32182:50;32221:10;32182:11;:25;32194:12;:10;:12::i;:::-;32182:25;;;;;;;;;;;;;;;:34;32208:7;32182:34;;;;;;;;;;;;;;;;:38;;:50;;;;:::i;:::-;32150:8;:83::i;:::-;32251:4;32244:11;;32045:218;;;;:::o;29796:119::-;29862:7;29889:9;:18;29899:7;29889:18;;;;;;;;;;;;;;;;29882:25;;29796:119;;;:::o;28760:87::-;28799:13;28832:7;28825:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28760:87;:::o;32766:269::-;32859:4;32876:129;32885:12;:10;:12::i;:::-;32899:7;32908:96;32947:15;32908:96;;;;;;;;;;;;;;;;;:11;:25;32920:12;:10;:12::i;:::-;32908:25;;;;;;;;;;;;;;;:34;32934:7;32908:34;;;;;;;;;;;;;;;;:38;;:96;;;;;:::i;:::-;32876:8;:129::i;:::-;33023:4;33016:11;;32766:269;;;;:::o;30128:175::-;30214:4;30231:42;30241:12;:10;:12::i;:::-;30255:9;30266:6;30231:9;:42::i;:::-;30291:4;30284:11;;30128:175;;;;:::o;30366:151::-;30455:7;30482:11;:18;30494:5;30482:18;;;;;;;;;;;;;;;:27;30501:7;30482:27;;;;;;;;;;;;;;;;30475:34;;30366:151;;;;:::o;4301:181::-;4359:7;4379:9;4395:1;4391;:5;4379:17;;4420:1;4415;:6;;4407:46;;;;;;;;;;;;:::i;:::-;;;;;;;;;4473:1;4466:8;;;4301:181;;;;:::o;711:106::-;764:15;799:10;792:17;;711:106;:::o;35913:346::-;36032:1;36015:19;;:5;:19;;;;36007:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;36113:1;36094:21;;:7;:21;;;;36086:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;36197:6;36167:11;:18;36179:5;36167:18;;;;;;;;;;;;;;;:27;36186:7;36167:27;;;;;;;;;;;;;;;:36;;;;36235:7;36219:32;;36228:5;36219:32;;;36244:6;36219:32;;;;;;:::i;:::-;;;;;;;;35913:346;;;:::o;33525:539::-;33649:1;33631:20;;:6;:20;;;;33623:70;;;;;;;;;;;;:::i;:::-;;;;;;;;;33733:1;33712:23;;:9;:23;;;;33704:71;;;;;;;;;;;;:::i;:::-;;;;;;;;;33788:47;33809:6;33817:9;33828:6;33788:20;:47::i;:::-;33868:71;33890:6;33868:71;;;;;;;;;;;;;;;;;:9;:17;33878:6;33868:17;;;;;;;;;;;;;;;;:21;;:71;;;;;:::i;:::-;33848:9;:17;33858:6;33848:17;;;;;;;;;;;;;;;:91;;;;33973:32;33998:6;33973:9;:20;33983:9;33973:20;;;;;;;;;;;;;;;;:24;;:32;;;;:::i;:::-;33950:9;:20;33960:9;33950:20;;;;;;;;;;;;;;;:55;;;;34038:9;34021:35;;34030:6;34021:35;;;34049:6;34021:35;;;;;;:::i;:::-;;;;;;;;33525:539;;;:::o;5204:192::-;5290:7;5323:1;5318;:6;;5326:12;5310:29;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;5350:9;5366:1;5362;:5;5350:17;;5387:1;5380:8;;;5204:192;;;;;:::o;37284:92::-;;;;:::o;5:130:-1:-;;85:6;72:20;63:29;;97:33;124:5;97:33;:::i;:::-;57:78;;;;:::o;142:130::-;;222:6;209:20;200:29;;234:33;261:5;234:33;:::i;:::-;194:78;;;;:::o;279:241::-;;383:2;371:9;362:7;358:23;354:32;351:2;;;399:1;396;389:12;351:2;434:1;451:53;496:7;487:6;476:9;472:22;451:53;:::i;:::-;441:63;;413:97;345:175;;;;:::o;527:366::-;;;648:2;636:9;627:7;623:23;619:32;616:2;;;664:1;661;654:12;616:2;699:1;716:53;761:7;752:6;741:9;737:22;716:53;:::i;:::-;706:63;;678:97;806:2;824:53;869:7;860:6;849:9;845:22;824:53;:::i;:::-;814:63;;785:98;610:283;;;;;:::o;900:491::-;;;;1038:2;1026:9;1017:7;1013:23;1009:32;1006:2;;;1054:1;1051;1044:12;1006:2;1089:1;1106:53;1151:7;1142:6;1131:9;1127:22;1106:53;:::i;:::-;1096:63;;1068:97;1196:2;1214:53;1259:7;1250:6;1239:9;1235:22;1214:53;:::i;:::-;1204:63;;1175:98;1304:2;1322:53;1367:7;1358:6;1347:9;1343:22;1322:53;:::i;:::-;1312:63;;1283:98;1000:391;;;;;:::o;1398:366::-;;;1519:2;1507:9;1498:7;1494:23;1490:32;1487:2;;;1535:1;1532;1525:12;1487:2;1570:1;1587:53;1632:7;1623:6;1612:9;1608:22;1587:53;:::i;:::-;1577:63;;1549:97;1677:2;1695:53;1740:7;1731:6;1720:9;1716:22;1695:53;:::i;:::-;1685:63;;1656:98;1481:283;;;;;:::o;1771:104::-;1848:21;1863:5;1848:21;:::i;:::-;1843:3;1836:34;1830:45;;:::o;1882:347::-;;1994:39;2027:5;1994:39;:::i;:::-;2045:71;2109:6;2104:3;2045:71;:::i;:::-;2038:78;;2121:52;2166:6;2161:3;2154:4;2147:5;2143:16;2121:52;:::i;:::-;2194:29;2216:6;2194:29;:::i;:::-;2189:3;2185:39;2178:46;;1974:255;;;;;:::o;2237:372::-;;2397:67;2461:2;2456:3;2397:67;:::i;:::-;2390:74;;2497:34;2493:1;2488:3;2484:11;2477:55;2566:5;2561:2;2556:3;2552:12;2545:27;2600:2;2595:3;2591:12;2584:19;;2383:226;;;:::o;2618:371::-;;2778:67;2842:2;2837:3;2778:67;:::i;:::-;2771:74;;2878:34;2874:1;2869:3;2865:11;2858:55;2947:4;2942:2;2937:3;2933:12;2926:26;2980:2;2975:3;2971:12;2964:19;;2764:225;;;:::o;2998:327::-;;3158:67;3222:2;3217:3;3158:67;:::i;:::-;3151:74;;3258:29;3254:1;3249:3;3245:11;3238:50;3316:2;3311:3;3307:12;3300:19;;3144:181;;;:::o;3334:374::-;;3494:67;3558:2;3553:3;3494:67;:::i;:::-;3487:74;;3594:34;3590:1;3585:3;3581:11;3574:55;3663:7;3658:2;3653:3;3649:12;3642:29;3699:2;3694:3;3690:12;3683:19;;3480:228;;;:::o;3717:373::-;;3877:67;3941:2;3936:3;3877:67;:::i;:::-;3870:74;;3977:34;3973:1;3968:3;3964:11;3957:55;4046:6;4041:2;4036:3;4032:12;4025:28;4081:2;4076:3;4072:12;4065:19;;3863:227;;;:::o;4098:113::-;4181:24;4199:5;4181:24;:::i;:::-;4176:3;4169:37;4163:48;;:::o;4218:107::-;4297:22;4313:5;4297:22;:::i;:::-;4292:3;4285:35;4279:46;;:::o;4332:210::-;;4453:2;4442:9;4438:18;4430:26;;4467:65;4529:1;4518:9;4514:17;4505:6;4467:65;:::i;:::-;4424:118;;;;:::o;4549:310::-;;4696:2;4685:9;4681:18;4673:26;;4746:9;4740:4;4736:20;4732:1;4721:9;4717:17;4710:47;4771:78;4844:4;4835:6;4771:78;:::i;:::-;4763:86;;4667:192;;;;:::o;4866:416::-;;5066:2;5055:9;5051:18;5043:26;;5116:9;5110:4;5106:20;5102:1;5091:9;5087:17;5080:47;5141:131;5267:4;5141:131;:::i;:::-;5133:139;;5037:245;;;:::o;5289:416::-;;5489:2;5478:9;5474:18;5466:26;;5539:9;5533:4;5529:20;5525:1;5514:9;5510:17;5503:47;5564:131;5690:4;5564:131;:::i;:::-;5556:139;;5460:245;;;:::o;5712:416::-;;5912:2;5901:9;5897:18;5889:26;;5962:9;5956:4;5952:20;5948:1;5937:9;5933:17;5926:47;5987:131;6113:4;5987:131;:::i;:::-;5979:139;;5883:245;;;:::o;6135:416::-;;6335:2;6324:9;6320:18;6312:26;;6385:9;6379:4;6375:20;6371:1;6360:9;6356:17;6349:47;6410:131;6536:4;6410:131;:::i;:::-;6402:139;;6306:245;;;:::o;6558:416::-;;6758:2;6747:9;6743:18;6735:26;;6808:9;6802:4;6798:20;6794:1;6783:9;6779:17;6772:47;6833:131;6959:4;6833:131;:::i;:::-;6825:139;;6729:245;;;:::o;6981:222::-;;7108:2;7097:9;7093:18;7085:26;;7122:71;7190:1;7179:9;7175:17;7166:6;7122:71;:::i;:::-;7079:124;;;;:::o;7210:214::-;;7333:2;7322:9;7318:18;7310:26;;7347:67;7411:1;7400:9;7396:17;7387:6;7347:67;:::i;:::-;7304:120;;;;:::o;7431:122::-;;7525:5;7519:12;7509:22;;7490:63;;;:::o;7561:163::-;;7676:6;7671:3;7664:19;7713:4;7708:3;7704:14;7689:29;;7657:67;;;;:::o;7732:91::-;;7794:24;7812:5;7794:24;:::i;:::-;7783:35;;7777:46;;;:::o;7830:85::-;;7903:5;7896:13;7889:21;7878:32;;7872:43;;;:::o;7922:121::-;;7995:42;7988:5;7984:54;7973:65;;7967:76;;;:::o;8050:72::-;;8112:5;8101:16;;8095:27;;;:::o;8129:81::-;;8200:4;8193:5;8189:16;8178:27;;8172:38;;;:::o;8218:268::-;8283:1;8290:101;8304:6;8301:1;8298:13;8290:101;;;8380:1;8375:3;8371:11;8365:18;8361:1;8356:3;8352:11;8345:39;8326:2;8323:1;8319:10;8314:15;;8290:101;;;8406:6;8403:1;8400:13;8397:2;;;8471:1;8462:6;8457:3;8453:16;8446:27;8397:2;8267:219;;;;:::o;8494:97::-;;8582:2;8578:7;8573:2;8566:5;8562:14;8558:28;8548:38;;8542:49;;;:::o;8599:117::-;8668:24;8686:5;8668:24;:::i;:::-;8661:5;8658:35;8648:2;;8707:1;8704;8697:12;8648:2;8642:74;:::o;8723:117::-;8792:24;8810:5;8792:24;:::i;:::-;8785:5;8782:35;8772:2;;8831:1;8828;8821:12;8772:2;8766:74;:::o
Swarm Source
ipfs://288d789c67c16fe7c02a4815c356c539a81f2058718e2acdd386adea4f75f307
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.