More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 1,358 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 20555334 | 80 days ago | IN | 0 ETH | 0.00005467 | ||||
Approve | 20554953 | 80 days ago | IN | 0 ETH | 0.00009355 | ||||
Approve | 20152567 | 137 days ago | IN | 0 ETH | 0.00013226 | ||||
Approve | 20145286 | 138 days ago | IN | 0 ETH | 0.00009305 | ||||
Approve | 19816120 | 184 days ago | IN | 0 ETH | 0.00017857 | ||||
Approve | 18299096 | 396 days ago | IN | 0 ETH | 0.00017127 | ||||
Approve | 18269589 | 400 days ago | IN | 0 ETH | 0.00038622 | ||||
Transfer | 17655598 | 486 days ago | IN | 0 ETH | 0.00141209 | ||||
Transfer | 17655504 | 486 days ago | IN | 0 ETH | 0.00092447 | ||||
Transfer | 17655495 | 486 days ago | IN | 0 ETH | 0.00064804 | ||||
Approve | 16901839 | 593 days ago | IN | 0 ETH | 0.00034477 | ||||
Approve | 16504958 | 648 days ago | IN | 0 ETH | 0.00077249 | ||||
Transfer | 16293325 | 678 days ago | IN | 0 ETH | 0.0006818 | ||||
Approve | 16158109 | 697 days ago | IN | 0 ETH | 0.00038036 | ||||
Approve | 16158108 | 697 days ago | IN | 0 ETH | 0.00036622 | ||||
Approve | 15940051 | 727 days ago | IN | 0 ETH | 0.00324854 | ||||
Approve | 15592168 | 776 days ago | IN | 0 ETH | 0.00035239 | ||||
Approve | 15305951 | 821 days ago | IN | 0 ETH | 0.00041928 | ||||
Liquidate Unclai... | 15150459 | 845 days ago | IN | 0 ETH | 0.00064914 | ||||
Approve | 14927723 | 882 days ago | IN | 0 ETH | 0.00246495 | ||||
Approve | 14471113 | 955 days ago | IN | 0 ETH | 0.00126772 | ||||
Approve | 14385414 | 968 days ago | IN | 0 ETH | 0.00083322 | ||||
Approve | 14242938 | 990 days ago | IN | 0 ETH | 0.00078843 | ||||
Approve | 13917344 | 1041 days ago | IN | 0 ETH | 0.00416907 | ||||
Approve | 13917343 | 1041 days ago | IN | 0 ETH | 0.0030284 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
15150459 | 845 days ago | 10.6198481 ETH | ||||
13915146 | 1041 days ago | 0.27603605 ETH | ||||
12926569 | 1195 days ago | 0.00115019 ETH | ||||
12901707 | 1199 days ago | 0.00488652 ETH | ||||
12833494 | 1210 days ago | 0.00145581 ETH | ||||
12794480 | 1216 days ago | 0.02060945 ETH | ||||
12711470 | 1229 days ago | 0.00602383 ETH | ||||
12710918 | 1229 days ago | 0.00022871 ETH | ||||
12700744 | 1231 days ago | 0.11908307 ETH | ||||
12672604 | 1235 days ago | 0.01582992 ETH | ||||
12672135 | 1235 days ago | 0.04691716 ETH | ||||
12670367 | 1235 days ago | 0.01229835 ETH | ||||
12665476 | 1236 days ago | 0.00119864 ETH | ||||
12665457 | 1236 days ago | 0.01120003 ETH | ||||
12665441 | 1236 days ago | 0.00654236 ETH | ||||
12665440 | 1236 days ago | 0.00127425 ETH | ||||
12659377 | 1237 days ago | 0.02051454 ETH | ||||
12623911 | 1243 days ago | 0.02094507 ETH | ||||
12603234 | 1246 days ago | 0.06979716 ETH | ||||
12601399 | 1246 days ago | 0.02092269 ETH | ||||
12581670 | 1249 days ago | 0.03465414 ETH | ||||
12575693 | 1250 days ago | 0.03160458 ETH | ||||
12571540 | 1251 days ago | 0.00065829 ETH | ||||
12570005 | 1251 days ago | 0.07290387 ETH | ||||
12568935 | 1251 days ago | 0.00970911 ETH |
Loading...
Loading
Contract Name:
Dogstonks
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import '@openzeppelin/contracts/utils/Address.sol'; import '@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol'; import '@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol'; import '@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol'; import './ERC20.sol'; /** * @notice ERC20 token with cost basis tracking and restricted loss-taking */ contract Dogstonks is ERC20 { using Address for address payable; string public override name = 'DOGSTONKS (dogstonks.com)'; string public override symbol = 'DOGSTONKS'; address private constant UNISWAP_ROUTER = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; address private constant WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; uint private constant SUPPLY = 1e12 ether; address private _owner; address private _pair; uint private _openedAt; uint private _closedAt; mapping (address => uint) private _basisOf; mapping (address => uint) public cooldownOf; uint private _initialBasis; uint private _ath; uint private _athTimestamp; struct Minting { address recipient; uint amount; } /** * @notice deploy */ constructor () payable { _owner = msg.sender; // setup uniswap pair and store address _pair = IUniswapV2Factory( IUniswapV2Router02(UNISWAP_ROUTER).factory() ).createPair(WETH, address(this)); // prepare to add liquidity _approve(address(this), UNISWAP_ROUTER, SUPPLY); // prepare to remove liquidity IERC20(_pair).approve(UNISWAP_ROUTER, type(uint).max); } receive () external payable {} /** * @notice get cost basis for given address * @param account address to query * @return cost basis */ function basisOf ( address account ) public view returns (uint) { uint basis = _basisOf[account]; if (basis == 0 && balanceOf(account) > 0) { basis = _initialBasis; } return basis; } /** * @notice mint team tokens prior to opening of trade * @param mintings structured minting data (recipient, amount) */ function mint ( Minting[] calldata mintings ) external { require(msg.sender == _owner, 'ERR: sender must be owner'); require(_openedAt == 0, 'ERR: already opened'); uint mintedSupply; for (uint i; i < mintings.length; i++) { Minting memory m = mintings[i]; uint amount = m.amount; address recipient = m.recipient; mintedSupply += amount; _balances[recipient] += amount; emit Transfer(address(0), recipient, amount); } _totalSupply += mintedSupply; } /** * @notice open trading * @dev sender must be owner * @dev trading must not yet have been opened */ function open () external { require(msg.sender == _owner, 'ERR: sender must be owner'); require(_openedAt == 0, 'ERR: already opened'); _openedAt = block.timestamp; // add liquidity, set initial cost basis _mint(address(this), SUPPLY - totalSupply()); _initialBasis = (1 ether) * address(this).balance / balanceOf(address(this)); IUniswapV2Router02( UNISWAP_ROUTER ).addLiquidityETH{ value: address(this).balance }( address(this), balanceOf(address(this)), 0, 0, address(this), block.timestamp ); } /** * @notice close trading * @dev trading must not yet have been closed * @dev minimum time since open must have elapsed */ function close () external { require(_openedAt != 0, 'ERR: not yet opened'); require(_closedAt == 0, 'ERR: already closed'); require(block.timestamp > _openedAt + (1 days), 'ERR: too soon'); _closedAt = block.timestamp; require( block.timestamp > _athTimestamp + (1 weeks), 'ERR: recent ATH' ); (uint token, ) = IUniswapV2Router02( UNISWAP_ROUTER ).removeLiquidityETH( address(this), IERC20(_pair).balanceOf(address(this)), 0, 0, address(this), block.timestamp ); _burn(address(this), token); } /** * @notice exchange DOGSTONKS for proportion of ETH in contract * @dev trading must have been closed */ function liquidate () external { require(_closedAt > 0, 'ERR: not yet closed'); uint balance = balanceOf(msg.sender); require(balance != 0, 'ERR: zero balance'); uint payout = address(this).balance * balance / totalSupply(); _burn(msg.sender, balance); payable(msg.sender).sendValue(payout); } /** * @notice withdraw remaining ETH from contract * @dev trading must have been closed * @dev minimum time since close must have elapsed */ function liquidateUnclaimed () external { require(_closedAt > 0, 'ERR: not yet closed'); require(block.timestamp > _closedAt + (52 weeks), 'ERR: too soon'); payable(_owner).sendValue(address(this).balance); } function _beforeTokenTransfer ( address from, address to, uint amount ) override internal { super._beforeTokenTransfer(from, to, amount); // ignore minting and burning if (from == address(0) || to == address(0)) return; // ignore add/remove liquidity if (from == address(this) || to == address(this)) return; if (from == UNISWAP_ROUTER || to == UNISWAP_ROUTER) return; require(_openedAt > 0); require( msg.sender == UNISWAP_ROUTER || msg.sender == _pair, 'ERR: sender must be uniswap' ); require(amount <= 5e9 ether /* revert message not returned by Uniswap */); address[] memory path = new address[](2); if (from == _pair) { require(cooldownOf[to] < block.timestamp /* revert message not returned by Uniswap */); cooldownOf[to] = block.timestamp + (5 minutes); path[0] = WETH; path[1] = address(this); uint[] memory amounts = IUniswapV2Router02(UNISWAP_ROUTER).getAmountsIn( amount, path ); uint balance = balanceOf(to); uint fromBasis = (1 ether) * amounts[0] / amount; _basisOf[to] = (fromBasis * amount + basisOf(to) * balance) / (amount + balance); if (fromBasis > _ath) { _ath = fromBasis; _athTimestamp = block.timestamp; } } else if (to == _pair) { // blacklist Vitalik Buterin require(from != 0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B /* revert message not returned by Uniswap */); require(cooldownOf[from] < block.timestamp /* revert message not returned by Uniswap */); cooldownOf[from] = block.timestamp + (5 minutes); path[0] = address(this); path[1] = WETH; uint[] memory amounts = IUniswapV2Router02(UNISWAP_ROUTER).getAmountsOut( amount, path ); require(basisOf(from) <= (1 ether) * amounts[1] / amount /* revert message not returned by Uniswap */); } } }
// SPDX-License-Identifier: MIT pragma solidity ^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); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
pragma solidity >=0.5.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; 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; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "@openzeppelin/contracts/utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) internal _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 internal _totalSupply; /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); _approve(sender, _msgSender(), currentAllowance - amount); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); _balances[sender] = senderBalance - amount; _balances[recipient] += 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: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); _balances[account] = accountBalance - amount; _totalSupply -= 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 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 { } }
pragma solidity >=0.6.2; 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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"payable","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":[{"internalType":"address","name":"account","type":"address"}],"name":"basisOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"close","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"cooldownOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"liquidateUnclaimed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct Dogstonks.Minting[]","name":"mintings","type":"tuple[]"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"open","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c0604052601960808190527f444f4753544f4e4b532028646f6773746f6e6b732e636f6d290000000000000060a0908152620000409160039190620003c4565b5060408051808201909152600980825268444f4753544f4e4b5360b81b60209092019182526200007391600491620003c4565b50600580546001600160a01b031916331790556040805163c45a015560e01b81529051737a250d5630b4cf539739df2c5dacb4c659f2488d9163c45a0155916004808301926020929190829003018186803b158015620000d257600080fd5b505afa158015620000e7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200010d91906200046a565b6040516364e329cb60e11b815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc260048201523060248201526001600160a01b03919091169063c9c6539690604401602060405180830381600087803b1580156200016b57600080fd5b505af115801562000180573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001a691906200046a565b600680546001600160a01b0319166001600160a01b0392909216919091179055620001f430737a250d5630b4cf539739df2c5dacb4c659f2488d6c0c9f2c9cd04674edea4000000062000298565b60065460405163095ea7b360e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d600482015260001960248201526001600160a01b039091169063095ea7b390604401602060405180830381600087803b1580156200025657600080fd5b505af11580156200026b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200029191906200049a565b50620004f9565b6001600160a01b038316620003005760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084015b60405180910390fd5b6001600160a01b038216620003635760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401620002f7565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b828054620003d290620004bc565b90600052602060002090601f016020900481019282620003f6576000855562000441565b82601f106200041157805160ff191683800117855562000441565b8280016001018555821562000441579182015b828111156200044157825182559160200191906001019062000424565b506200044f92915062000453565b5090565b5b808211156200044f576000815560010162000454565b6000602082840312156200047c578081fd5b81516001600160a01b038116811462000493578182fd5b9392505050565b600060208284031215620004ac578081fd5b8151801515811462000493578182fd5b600181811c90821680620004d157607f821691505b60208210811415620004f357634e487b7160e01b600052602260045260246000fd5b50919050565b611d0880620005096000396000f3fe6080604052600436106100f75760003560e01c80634e7a6a021161008a578063a9059cbb11610059578063a9059cbb14610285578063b33a7a17146102a5578063dd62ed3e146102d2578063fcfff16f1461031857600080fd5b80634e7a6a02146101fa57806370a082311461021a5780637e0b42011461025057806395d89b411461027057600080fd5b806328a07025116100c657806328a070251461019d5780632fc01391146101b4578063313ce567146101c957806343d726d6146101e557600080fd5b806306fdde0314610103578063095ea7b31461012e57806318160ddd1461015e57806323b872dd1461017d57600080fd5b366100fe57005b600080fd5b34801561010f57600080fd5b5061011861032d565b6040516101259190611ae8565b60405180910390f35b34801561013a57600080fd5b5061014e6101493660046118ae565b6103bb565b6040519015158152602001610125565b34801561016a57600080fd5b506002545b604051908152602001610125565b34801561018957600080fd5b5061014e610198366004611873565b6103d1565b3480156101a957600080fd5b506101b2610487565b005b3480156101c057600080fd5b506101b2610559565b3480156101d557600080fd5b5060405160128152602001610125565b3480156101f157600080fd5b506101b2610608565b34801561020657600080fd5b5061016f610215366004611820565b610857565b34801561022657600080fd5b5061016f610235366004611820565b6001600160a01b031660009081526020819052604090205490565b34801561025c57600080fd5b506101b261026b3660046118d7565b6108a4565b34801561027c57600080fd5b50610118610a36565b34801561029157600080fd5b5061014e6102a03660046118ae565b610a43565b3480156102b157600080fd5b5061016f6102c0366004611820565b600a6020526000908152604090205481565b3480156102de57600080fd5b5061016f6102ed366004611841565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561032457600080fd5b506101b2610a50565b6003805461033a90611c30565b80601f016020809104026020016040519081016040528092919081815260200182805461036690611c30565b80156103b35780601f10610388576101008083540402835291602001916103b3565b820191906000526020600020905b81548152906001019060200180831161039657829003601f168201915b505050505081565b60006103c8338484610c00565b50600192915050565b60006103de848484610d25565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156104685760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61047c85336104778685611c19565b610c00565b506001949350505050565b6000600854116104cf5760405162461bcd60e51b81526020600482015260136024820152721154948e881b9bdd081e595d0818db1bdcd959606a1b604482015260640161045f565b33600090815260208190526040902054806105205760405162461bcd60e51b81526020600482015260116024820152704552523a207a65726f2062616c616e636560781b604482015260640161045f565b600061052b60025490565b6105358347611bfa565b61053f9190611bda565b905061054b3383610ef6565b610555338261103f565b5050565b6000600854116105a15760405162461bcd60e51b81526020600482015260136024820152721154948e881b9bdd081e595d0818db1bdcd959606a1b604482015260640161045f565b6008546105b2906301dfe200611bc2565b42116105f05760405162461bcd60e51b815260206004820152600d60248201526c22a9291d103a37b79039b7b7b760991b604482015260640161045f565b600554610606906001600160a01b03164761103f565b565b60075461064d5760405162461bcd60e51b81526020600482015260136024820152721154948e881b9bdd081e595d081bdc195b9959606a1b604482015260640161045f565b600854156106935760405162461bcd60e51b81526020600482015260136024820152721154948e88185b1c9958591e4818db1bdcd959606a1b604482015260640161045f565b6007546106a39062015180611bc2565b42116106e15760405162461bcd60e51b815260206004820152600d60248201526c22a9291d103a37b79039b7b7b760991b604482015260640161045f565b42600855600d546106f59062093a80611bc2565b42116107355760405162461bcd60e51b815260206004820152600f60248201526e08aa4a47440e4cac6cadce84082a89608b1b604482015260640161045f565b6006546040516370a0823160e01b81523060048201819052600092737a250d5630b4cf539739df2c5dacb4c659f2488d926302751cec92916001600160a01b0316906370a082319060240160206040518083038186803b15801561079857600080fd5b505afa1580156107ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d09190611a45565b60008030426040518763ffffffff1660e01b81526004016107f696959493929190611aad565b6040805180830381600087803b15801561080f57600080fd5b505af1158015610823573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108479190611a5d565b5090506108543082610ef6565b50565b6001600160a01b0381166000908152600960205260408120548015801561089457506001600160a01b038316600090815260208190526040812054115b1561089e5750600b545b92915050565b6005546001600160a01b031633146108fa5760405162461bcd60e51b815260206004820152601960248201527822a9291d1039b2b73232b91036bab9ba1031329037bbb732b960391b604482015260640161045f565b600754156109405760405162461bcd60e51b81526020600482015260136024820152721154948e88185b1c9958591e481bdc195b9959606a1b604482015260640161045f565b6000805b82811015610a1957600084848381811061096e57634e487b7160e01b600052603260045260246000fd5b90506040020180360381019061098491906119ef565b60208101518151919250906109998286611bc2565b945081600080836001600160a01b03166001600160a01b0316815260200190815260200160002060008282546109cf9190611bc2565b90915550506040518281526001600160a01b03821690600090600080516020611cb38339815191529060200160405180910390a35050508080610a1190611c6b565b915050610944565b508060026000828254610a2c9190611bc2565b9091555050505050565b6004805461033a90611c30565b60006103c8338484610d25565b6005546001600160a01b03163314610aa65760405162461bcd60e51b815260206004820152601960248201527822a9291d1039b2b73232b91036bab9ba1031329037bbb732b960391b604482015260640161045f565b60075415610aec5760405162461bcd60e51b81526020600482015260136024820152721154948e88185b1c9958591e481bdc195b9959606a1b604482015260640161045f565b42600755610b1930610afd60025490565b610b14906c0c9f2c9cd04674edea40000000611c19565b611158565b30600090815260208190526040902054610b3b47670de0b6b3a7640000611bfa565b610b459190611bda565b600b55737a250d5630b4cf539739df2c5dacb4c659f2488d63f305d7194730610b83816001600160a01b031660009081526020819052604090205490565b60008030426040518863ffffffff1660e01b8152600401610ba996959493929190611aad565b6060604051808303818588803b158015610bc257600080fd5b505af1158015610bd6573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610bfb9190611a80565b505050565b6001600160a01b038316610c625760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161045f565b6001600160a01b038216610cc35760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161045f565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610d895760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161045f565b6001600160a01b038216610deb5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161045f565b610df6838383611231565b6001600160a01b03831660009081526020819052604090205481811015610e6e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161045f565b610e788282611c19565b6001600160a01b038086166000908152602081905260408082209390935590851681529081208054849290610eae908490611bc2565b92505081905550826001600160a01b0316846001600160a01b0316600080516020611cb383398151915284604051610ee891815260200190565b60405180910390a350505050565b6001600160a01b038216610f565760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161045f565b610f6282600083611231565b6001600160a01b03821660009081526020819052604090205481811015610fd65760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161045f565b610fe08282611c19565b6001600160a01b0384166000908152602081905260408120919091556002805484929061100e908490611c19565b90915550506040518281526000906001600160a01b03851690600080516020611cb383398151915290602001610d18565b8047101561108f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161045f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146110dc576040519150601f19603f3d011682016040523d82523d6000602084013e6110e1565b606091505b5050905080610bfb5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161045f565b6001600160a01b0382166111ae5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161045f565b6111ba60008383611231565b80600260008282546111cc9190611bc2565b90915550506001600160a01b038216600090815260208190526040812080548392906111f9908490611bc2565b90915550506040518181526001600160a01b03831690600090600080516020611cb38339815191529060200160405180910390a35050565b6001600160a01b038316158061124e57506001600160a01b038216155b1561125857505050565b6001600160a01b03831630148061127757506001600160a01b03821630145b1561128157505050565b6001600160a01b038316737a250d5630b4cf539739df2c5dacb4c659f2488d14806112c857506001600160a01b038216737a250d5630b4cf539739df2c5dacb4c659f2488d145b156112d257505050565b6000600754116112e157600080fd5b33737a250d5630b4cf539739df2c5dacb4c659f2488d148061130d57506006546001600160a01b031633145b6113595760405162461bcd60e51b815260206004820152601b60248201527f4552523a2073656e646572206d75737420626520756e69737761700000000000604482015260640161045f565b6b1027e72f1f1281308800000081111561137257600080fd5b604080516002808252606082018352600092602083019080368337019050506006549091506001600160a01b03858116911614156115f5576001600160a01b0383166000908152600a602052604090205442116113ce57600080fd5b6113da4261012c611bc2565b6001600160a01b0384166000908152600a6020526040812091909155815173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc291839161142a57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b031681525050308160018151811061146c57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03909216602092830291909101909101526040516307c0329d60e21b8152600090737a250d5630b4cf539739df2c5dacb4c659f2488d90631f00ca74906114c09086908690600401611b3b565b60006040518083038186803b1580156114d857600080fd5b505afa1580156114ec573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115149190810190611947565b90506000611537856001600160a01b031660009081526020819052604090205490565b90506000848360008151811061155d57634e487b7160e01b600052603260045260246000fd5b6020026020010151670de0b6b3a76400006115789190611bfa565b6115829190611bda565b905061158e8286611bc2565b8261159888610857565b6115a29190611bfa565b6115ac8784611bfa565b6115b69190611bc2565b6115c09190611bda565b6001600160a01b038716600090815260096020526040902055600c548111156115ed57600c81905542600d555b5050506117fe565b6006546001600160a01b03848116911614156117fe5773ab5801a7d398351b8be11c439e05c5b3259aec9b6001600160a01b038516141561163557600080fd5b6001600160a01b0384166000908152600a6020526040902054421161165957600080fd5b6116654261012c611bc2565b6001600160a01b0385166000908152600a60205260408120919091558151309183916116a157634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816001815181106116f757634e487b7160e01b600052603260045260246000fd5b6001600160a01b039092166020928302919091019091015260405163d06ca61f60e01b8152600090737a250d5630b4cf539739df2c5dacb4c659f2488d9063d06ca61f9061174b9086908690600401611b3b565b60006040518083038186803b15801561176357600080fd5b505afa158015611777573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261179f9190810190611947565b905082816001815181106117c357634e487b7160e01b600052603260045260246000fd5b6020026020010151670de0b6b3a76400006117de9190611bfa565b6117e89190611bda565b6117f186610857565b11156117fc57600080fd5b505b50505050565b80356001600160a01b038116811461181b57600080fd5b919050565b600060208284031215611831578081fd5b61183a82611804565b9392505050565b60008060408385031215611853578081fd5b61185c83611804565b915061186a60208401611804565b90509250929050565b600080600060608486031215611887578081fd5b61189084611804565b925061189e60208501611804565b9150604084013590509250925092565b600080604083850312156118c0578182fd5b6118c983611804565b946020939093013593505050565b600080602083850312156118e9578182fd5b823567ffffffffffffffff80821115611900578384fd5b818501915085601f830112611913578384fd5b813581811115611921578485fd5b8660208260061b8501011115611935578485fd5b60209290920196919550909350505050565b60006020808385031215611959578182fd5b825167ffffffffffffffff80821115611970578384fd5b818501915085601f830112611983578384fd5b81518181111561199557611995611c9c565b8060051b91506119a6848301611b91565b8181528481019084860184860187018a10156119c0578788fd5b8795505b838610156119e25780518352600195909501949186019186016119c4565b5098975050505050505050565b600060408284031215611a00578081fd5b6040516040810181811067ffffffffffffffff82111715611a2357611a23611c9c565b604052611a2f83611804565b8152602083013560208201528091505092915050565b600060208284031215611a56578081fd5b5051919050565b60008060408385031215611a6f578182fd5b505080516020909101519092909150565b600080600060608486031215611a94578283fd5b8351925060208401519150604084015190509250925092565b6001600160a01b039687168152602081019590955260408501939093526060840191909152909216608082015260a081019190915260c00190565b6000602080835283518082850152825b81811015611b1457858101830151858201604001528201611af8565b81811115611b255783604083870101525b50601f01601f1916929092016040019392505050565b60006040820184835260206040818501528185518084526060860191508287019350845b81811015611b845784516001600160a01b031683529383019391830191600101611b5f565b5090979650505050505050565b604051601f8201601f1916810167ffffffffffffffff81118282101715611bba57611bba611c9c565b604052919050565b60008219821115611bd557611bd5611c86565b500190565b600082611bf557634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611c1457611c14611c86565b500290565b600082821015611c2b57611c2b611c86565b500390565b600181811c90821680611c4457607f821691505b60208210811415611c6557634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611c7f57611c7f611c86565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212208059f01a8b121e51d363a4623c5ef798e006fee713661b384c50d2e320dd25b764736f6c63430008040033
Deployed Bytecode
0x6080604052600436106100f75760003560e01c80634e7a6a021161008a578063a9059cbb11610059578063a9059cbb14610285578063b33a7a17146102a5578063dd62ed3e146102d2578063fcfff16f1461031857600080fd5b80634e7a6a02146101fa57806370a082311461021a5780637e0b42011461025057806395d89b411461027057600080fd5b806328a07025116100c657806328a070251461019d5780632fc01391146101b4578063313ce567146101c957806343d726d6146101e557600080fd5b806306fdde0314610103578063095ea7b31461012e57806318160ddd1461015e57806323b872dd1461017d57600080fd5b366100fe57005b600080fd5b34801561010f57600080fd5b5061011861032d565b6040516101259190611ae8565b60405180910390f35b34801561013a57600080fd5b5061014e6101493660046118ae565b6103bb565b6040519015158152602001610125565b34801561016a57600080fd5b506002545b604051908152602001610125565b34801561018957600080fd5b5061014e610198366004611873565b6103d1565b3480156101a957600080fd5b506101b2610487565b005b3480156101c057600080fd5b506101b2610559565b3480156101d557600080fd5b5060405160128152602001610125565b3480156101f157600080fd5b506101b2610608565b34801561020657600080fd5b5061016f610215366004611820565b610857565b34801561022657600080fd5b5061016f610235366004611820565b6001600160a01b031660009081526020819052604090205490565b34801561025c57600080fd5b506101b261026b3660046118d7565b6108a4565b34801561027c57600080fd5b50610118610a36565b34801561029157600080fd5b5061014e6102a03660046118ae565b610a43565b3480156102b157600080fd5b5061016f6102c0366004611820565b600a6020526000908152604090205481565b3480156102de57600080fd5b5061016f6102ed366004611841565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561032457600080fd5b506101b2610a50565b6003805461033a90611c30565b80601f016020809104026020016040519081016040528092919081815260200182805461036690611c30565b80156103b35780601f10610388576101008083540402835291602001916103b3565b820191906000526020600020905b81548152906001019060200180831161039657829003601f168201915b505050505081565b60006103c8338484610c00565b50600192915050565b60006103de848484610d25565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156104685760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61047c85336104778685611c19565b610c00565b506001949350505050565b6000600854116104cf5760405162461bcd60e51b81526020600482015260136024820152721154948e881b9bdd081e595d0818db1bdcd959606a1b604482015260640161045f565b33600090815260208190526040902054806105205760405162461bcd60e51b81526020600482015260116024820152704552523a207a65726f2062616c616e636560781b604482015260640161045f565b600061052b60025490565b6105358347611bfa565b61053f9190611bda565b905061054b3383610ef6565b610555338261103f565b5050565b6000600854116105a15760405162461bcd60e51b81526020600482015260136024820152721154948e881b9bdd081e595d0818db1bdcd959606a1b604482015260640161045f565b6008546105b2906301dfe200611bc2565b42116105f05760405162461bcd60e51b815260206004820152600d60248201526c22a9291d103a37b79039b7b7b760991b604482015260640161045f565b600554610606906001600160a01b03164761103f565b565b60075461064d5760405162461bcd60e51b81526020600482015260136024820152721154948e881b9bdd081e595d081bdc195b9959606a1b604482015260640161045f565b600854156106935760405162461bcd60e51b81526020600482015260136024820152721154948e88185b1c9958591e4818db1bdcd959606a1b604482015260640161045f565b6007546106a39062015180611bc2565b42116106e15760405162461bcd60e51b815260206004820152600d60248201526c22a9291d103a37b79039b7b7b760991b604482015260640161045f565b42600855600d546106f59062093a80611bc2565b42116107355760405162461bcd60e51b815260206004820152600f60248201526e08aa4a47440e4cac6cadce84082a89608b1b604482015260640161045f565b6006546040516370a0823160e01b81523060048201819052600092737a250d5630b4cf539739df2c5dacb4c659f2488d926302751cec92916001600160a01b0316906370a082319060240160206040518083038186803b15801561079857600080fd5b505afa1580156107ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d09190611a45565b60008030426040518763ffffffff1660e01b81526004016107f696959493929190611aad565b6040805180830381600087803b15801561080f57600080fd5b505af1158015610823573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108479190611a5d565b5090506108543082610ef6565b50565b6001600160a01b0381166000908152600960205260408120548015801561089457506001600160a01b038316600090815260208190526040812054115b1561089e5750600b545b92915050565b6005546001600160a01b031633146108fa5760405162461bcd60e51b815260206004820152601960248201527822a9291d1039b2b73232b91036bab9ba1031329037bbb732b960391b604482015260640161045f565b600754156109405760405162461bcd60e51b81526020600482015260136024820152721154948e88185b1c9958591e481bdc195b9959606a1b604482015260640161045f565b6000805b82811015610a1957600084848381811061096e57634e487b7160e01b600052603260045260246000fd5b90506040020180360381019061098491906119ef565b60208101518151919250906109998286611bc2565b945081600080836001600160a01b03166001600160a01b0316815260200190815260200160002060008282546109cf9190611bc2565b90915550506040518281526001600160a01b03821690600090600080516020611cb38339815191529060200160405180910390a35050508080610a1190611c6b565b915050610944565b508060026000828254610a2c9190611bc2565b9091555050505050565b6004805461033a90611c30565b60006103c8338484610d25565b6005546001600160a01b03163314610aa65760405162461bcd60e51b815260206004820152601960248201527822a9291d1039b2b73232b91036bab9ba1031329037bbb732b960391b604482015260640161045f565b60075415610aec5760405162461bcd60e51b81526020600482015260136024820152721154948e88185b1c9958591e481bdc195b9959606a1b604482015260640161045f565b42600755610b1930610afd60025490565b610b14906c0c9f2c9cd04674edea40000000611c19565b611158565b30600090815260208190526040902054610b3b47670de0b6b3a7640000611bfa565b610b459190611bda565b600b55737a250d5630b4cf539739df2c5dacb4c659f2488d63f305d7194730610b83816001600160a01b031660009081526020819052604090205490565b60008030426040518863ffffffff1660e01b8152600401610ba996959493929190611aad565b6060604051808303818588803b158015610bc257600080fd5b505af1158015610bd6573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610bfb9190611a80565b505050565b6001600160a01b038316610c625760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161045f565b6001600160a01b038216610cc35760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161045f565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610d895760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161045f565b6001600160a01b038216610deb5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161045f565b610df6838383611231565b6001600160a01b03831660009081526020819052604090205481811015610e6e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161045f565b610e788282611c19565b6001600160a01b038086166000908152602081905260408082209390935590851681529081208054849290610eae908490611bc2565b92505081905550826001600160a01b0316846001600160a01b0316600080516020611cb383398151915284604051610ee891815260200190565b60405180910390a350505050565b6001600160a01b038216610f565760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161045f565b610f6282600083611231565b6001600160a01b03821660009081526020819052604090205481811015610fd65760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161045f565b610fe08282611c19565b6001600160a01b0384166000908152602081905260408120919091556002805484929061100e908490611c19565b90915550506040518281526000906001600160a01b03851690600080516020611cb383398151915290602001610d18565b8047101561108f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161045f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146110dc576040519150601f19603f3d011682016040523d82523d6000602084013e6110e1565b606091505b5050905080610bfb5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161045f565b6001600160a01b0382166111ae5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161045f565b6111ba60008383611231565b80600260008282546111cc9190611bc2565b90915550506001600160a01b038216600090815260208190526040812080548392906111f9908490611bc2565b90915550506040518181526001600160a01b03831690600090600080516020611cb38339815191529060200160405180910390a35050565b6001600160a01b038316158061124e57506001600160a01b038216155b1561125857505050565b6001600160a01b03831630148061127757506001600160a01b03821630145b1561128157505050565b6001600160a01b038316737a250d5630b4cf539739df2c5dacb4c659f2488d14806112c857506001600160a01b038216737a250d5630b4cf539739df2c5dacb4c659f2488d145b156112d257505050565b6000600754116112e157600080fd5b33737a250d5630b4cf539739df2c5dacb4c659f2488d148061130d57506006546001600160a01b031633145b6113595760405162461bcd60e51b815260206004820152601b60248201527f4552523a2073656e646572206d75737420626520756e69737761700000000000604482015260640161045f565b6b1027e72f1f1281308800000081111561137257600080fd5b604080516002808252606082018352600092602083019080368337019050506006549091506001600160a01b03858116911614156115f5576001600160a01b0383166000908152600a602052604090205442116113ce57600080fd5b6113da4261012c611bc2565b6001600160a01b0384166000908152600a6020526040812091909155815173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc291839161142a57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b031681525050308160018151811061146c57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03909216602092830291909101909101526040516307c0329d60e21b8152600090737a250d5630b4cf539739df2c5dacb4c659f2488d90631f00ca74906114c09086908690600401611b3b565b60006040518083038186803b1580156114d857600080fd5b505afa1580156114ec573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115149190810190611947565b90506000611537856001600160a01b031660009081526020819052604090205490565b90506000848360008151811061155d57634e487b7160e01b600052603260045260246000fd5b6020026020010151670de0b6b3a76400006115789190611bfa565b6115829190611bda565b905061158e8286611bc2565b8261159888610857565b6115a29190611bfa565b6115ac8784611bfa565b6115b69190611bc2565b6115c09190611bda565b6001600160a01b038716600090815260096020526040902055600c548111156115ed57600c81905542600d555b5050506117fe565b6006546001600160a01b03848116911614156117fe5773ab5801a7d398351b8be11c439e05c5b3259aec9b6001600160a01b038516141561163557600080fd5b6001600160a01b0384166000908152600a6020526040902054421161165957600080fd5b6116654261012c611bc2565b6001600160a01b0385166000908152600a60205260408120919091558151309183916116a157634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816001815181106116f757634e487b7160e01b600052603260045260246000fd5b6001600160a01b039092166020928302919091019091015260405163d06ca61f60e01b8152600090737a250d5630b4cf539739df2c5dacb4c659f2488d9063d06ca61f9061174b9086908690600401611b3b565b60006040518083038186803b15801561176357600080fd5b505afa158015611777573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261179f9190810190611947565b905082816001815181106117c357634e487b7160e01b600052603260045260246000fd5b6020026020010151670de0b6b3a76400006117de9190611bfa565b6117e89190611bda565b6117f186610857565b11156117fc57600080fd5b505b50505050565b80356001600160a01b038116811461181b57600080fd5b919050565b600060208284031215611831578081fd5b61183a82611804565b9392505050565b60008060408385031215611853578081fd5b61185c83611804565b915061186a60208401611804565b90509250929050565b600080600060608486031215611887578081fd5b61189084611804565b925061189e60208501611804565b9150604084013590509250925092565b600080604083850312156118c0578182fd5b6118c983611804565b946020939093013593505050565b600080602083850312156118e9578182fd5b823567ffffffffffffffff80821115611900578384fd5b818501915085601f830112611913578384fd5b813581811115611921578485fd5b8660208260061b8501011115611935578485fd5b60209290920196919550909350505050565b60006020808385031215611959578182fd5b825167ffffffffffffffff80821115611970578384fd5b818501915085601f830112611983578384fd5b81518181111561199557611995611c9c565b8060051b91506119a6848301611b91565b8181528481019084860184860187018a10156119c0578788fd5b8795505b838610156119e25780518352600195909501949186019186016119c4565b5098975050505050505050565b600060408284031215611a00578081fd5b6040516040810181811067ffffffffffffffff82111715611a2357611a23611c9c565b604052611a2f83611804565b8152602083013560208201528091505092915050565b600060208284031215611a56578081fd5b5051919050565b60008060408385031215611a6f578182fd5b505080516020909101519092909150565b600080600060608486031215611a94578283fd5b8351925060208401519150604084015190509250925092565b6001600160a01b039687168152602081019590955260408501939093526060840191909152909216608082015260a081019190915260c00190565b6000602080835283518082850152825b81811015611b1457858101830151858201604001528201611af8565b81811115611b255783604083870101525b50601f01601f1916929092016040019392505050565b60006040820184835260206040818501528185518084526060860191508287019350845b81811015611b845784516001600160a01b031683529383019391830191600101611b5f565b5090979650505050505050565b604051601f8201601f1916810167ffffffffffffffff81118282101715611bba57611bba611c9c565b604052919050565b60008219821115611bd557611bd5611c86565b500190565b600082611bf557634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611c1457611c14611c86565b500290565b600082821015611c2b57611c2b611c86565b500390565b600181811c90821680611c4457607f821691505b60208210811415611c6557634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611c7f57611c7f611c86565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212208059f01a8b121e51d363a4623c5ef798e006fee713661b384c50d2e320dd25b764736f6c63430008040033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ 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.