Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0xcb220119aF41AE6E179F4b1Bbe2FA341E02D8458
Balance 0 ETH
Nonce 1
Code Size 2895 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

2895 bytes
0x608060405234801561000f575f80fd5b5060043610610055575f3560e01c80631481794e146100595780632f48ab7d146100755780638da5cb5b14610093578063c8f76040146100b1578063e7c80f17146100cf575b5f80fd5b610073600480360381019061006e919061071a565b6100eb565b005b61007d610397565b60405161008a91906107b3565b60405180910390f35b61009b6103bc565b6040516100a891906107db565b60405180910390f35b6100b96103df565b6040516100c69190610803565b60405180910390f35b6100e960048036038101906100e4919061081c565b61047e565b005b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610178576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161016f906108a1565b60405180910390fd5b8060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016101d391906107db565b602060405180830381865afa1580156101ee573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061021291906108d3565b1015610253576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161024a90610948565b60405180910390fd5b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b81526004016102af929190610966565b6020604051808303815f875af11580156102cb573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102ef91906109c2565b61032e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161032590610a37565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff167ffda3a3e0e1479b43cb1c701f7576187f4c4ad80768d627387e00184302f7d88e8360405161038b9190610803565b60405180910390a35050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161043a91906107db565b602060405180830381865afa158015610455573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061047991906108d3565b905090565b8060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e33306040518363ffffffff1660e01b81526004016104db929190610a55565b602060405180830381865afa1580156104f6573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061051a91906108d3565b101561055b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161055290610ac6565b60405180910390fd5b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b81526004016105b993929190610ae4565b6020604051808303815f875af11580156105d5573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105f991906109c2565b610638576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062f90610a37565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167ff1b03f708b9c39f453fe3f0cef84164c7d6f7df836df0796e1e9c2bce6ee397e8260405161067e9190610803565b60405180910390a250565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6106b68261068d565b9050919050565b6106c6816106ac565b81146106d0575f80fd5b50565b5f813590506106e1816106bd565b92915050565b5f819050919050565b6106f9816106e7565b8114610703575f80fd5b50565b5f81359050610714816106f0565b92915050565b5f80604083850312156107305761072f610689565b5b5f61073d858286016106d3565b925050602061074e85828601610706565b9150509250929050565b5f819050919050565b5f61077b6107766107718461068d565b610758565b61068d565b9050919050565b5f61078c82610761565b9050919050565b5f61079d82610782565b9050919050565b6107ad81610793565b82525050565b5f6020820190506107c65f8301846107a4565b92915050565b6107d5816106ac565b82525050565b5f6020820190506107ee5f8301846107cc565b92915050565b6107fd816106e7565b82525050565b5f6020820190506108165f8301846107f4565b92915050565b5f6020828403121561083157610830610689565b5b5f61083e84828501610706565b91505092915050565b5f82825260208201905092915050565b7f4f6e6c79206f776e65722063616e2077697468647261770000000000000000005f82015250565b5f61088b601783610847565b915061089682610857565b602082019050919050565b5f6020820190508181035f8301526108b88161087f565b9050919050565b5f815190506108cd816106f0565b92915050565b5f602082840312156108e8576108e7610689565b5b5f6108f5848285016108bf565b91505092915050565b7f496e73756666696369656e7420555344542062616c616e6365000000000000005f82015250565b5f610932601983610847565b915061093d826108fe565b602082019050919050565b5f6020820190508181035f83015261095f81610926565b9050919050565b5f6040820190506109795f8301856107cc565b61098660208301846107f4565b9392505050565b5f8115159050919050565b6109a18161098d565b81146109ab575f80fd5b50565b5f815190506109bc81610998565b92915050565b5f602082840312156109d7576109d6610689565b5b5f6109e4848285016109ae565b91505092915050565b7f5472616e73666572206661696c656400000000000000000000000000000000005f82015250565b5f610a21600f83610847565b9150610a2c826109ed565b602082019050919050565b5f6020820190508181035f830152610a4e81610a15565b9050919050565b5f604082019050610a685f8301856107cc565b610a7560208301846107cc565b9392505050565b7f5553445420616c6c6f77616e636520746f6f206c6f77000000000000000000005f82015250565b5f610ab0601683610847565b9150610abb82610a7c565b602082019050919050565b5f6020820190508181035f830152610add81610aa4565b9050919050565b5f606082019050610af75f8301866107cc565b610b0460208301856107cc565b610b1160408301846107f4565b94935050505056fea2646970667358221220bbf6dd013ce49ce74c6e5611c062eeff8ac3c023be9afafb31478fcd623cdd2464736f6c63430008140033

Verified Source Code Partial Match

Compiler: v0.8.20+commit.a1b79de6 EVM: shanghai Optimization: No
USDTReceiver.sol 45 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

// ✅ Include IERC20 Interface Instead of Import
interface IERC20 {
    function totalSupply() external view returns (uint256);
    function balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, uint256 amount) external returns (bool);
    function allowance(address owner, address spender) external view returns (uint256);
    function approve(address spender, uint256 amount) external returns (bool);
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

contract USDTReceiver {
    address public owner;
    IERC20 public usdt;

    event TransferReceived(address indexed from, uint256 amount);
    event TransferSent(address indexed from, address indexed to, uint256 amount);

    constructor(address _usdtAddress) {
        owner = msg.sender;
        usdt = IERC20(_usdtAddress);
    }

    function depositUSDT(uint256 amount) external {
        require(usdt.allowance(msg.sender, address(this)) >= amount, "USDT allowance too low");
        require(usdt.transferFrom(msg.sender, address(this), amount), "Transfer failed");
        emit TransferReceived(msg.sender, amount);
    }

    function withdrawUSDT(address to, uint256 amount) external {
        require(msg.sender == owner, "Only owner can withdraw");
        require(usdt.balanceOf(address(this)) >= amount, "Insufficient USDT balance");
        require(usdt.transfer(to, amount), "Transfer failed");
        emit TransferSent(address(this), to, amount);
    }

    function getContractUSDTBalance() external view returns (uint256) {
        return usdt.balanceOf(address(this));
    }
}

Read Contract

getContractUSDTBalance 0xc8f76040 → uint256
owner 0x8da5cb5b → address
usdt 0x2f48ab7d → address

Write Contract 2 functions

These functions modify contract state and require a wallet transaction to execute.

depositUSDT 0xe7c80f17
uint256 amount
withdrawUSDT 0x1481794e
address to
uint256 amount

Recent Transactions

No transactions found for this address