Discover more of Apescan's tools and services in one place.
Contract Source Code:
File 1 of 1 : GasZipV2.sol
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.17; contract GasZipV2 { event Deposit(address from, uint256 chains, uint256 amount, bytes32 to); address public owner; constructor(address _owner) { owner = _owner; } function deposit(uint256 chains, bytes32 to) payable external { require(msg.value != 0, "No Value"); emit Deposit(msg.sender, chains, msg.value, to); } function deposit(uint256 chains, address to) payable external { require(msg.value != 0, "No Value"); emit Deposit(msg.sender, chains, msg.value, bytes32(bytes20(uint160(to)))); } function withdraw(address token) external { require(msg.sender == owner); if (token == address(0)) { owner.call{value: address(this).balance}(""); } else { IERC20(token).transfer(owner, IERC20(token).balanceOf(address(this))); } } function newOwner(address _owner) external { require(msg.sender == owner); owner = _owner; } } interface IERC20 { function balanceOf(address) external view returns (uint256); function transfer(address, uint256) external returns (bool); }
Please enter a contract address above to load the contract details and source code.
Please DO NOT store any passwords or private keys here. A private note (up to 100 characters) can be saved and is useful for transaction tracking.
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.