ETH Price: $2,426.24 (+0.63%)
Gas: 3.39 Gwei

Transaction Decoder

Block:
20649387 at Aug-31-2024 03:16:35 PM +UTC
Transaction Fee:
0.000078246244958508 ETH $0.19
Gas Used:
104,796 Gas / 0.746652973 Gwei

Account State Difference:

  Address   Before After State Difference Code
0x137d423E...184629E2c
0x39a513eB...494AA7D10
0.067263935950354149 Eth
Nonce: 20
0.007185689705395641 Eth
Nonce: 21
0.060078246244958508
(Titan Builder)
8.132606924869451588 Eth8.132607029665451588 Eth0.000000104796
0xb27b0358...3477e702E 0.499893066814781 Eth0.559893066814781 Eth0.06

Execution Trace

ETH 0.06 MoontokPay.payWithETH( coinId=47178, adsType=70104386 )
  • ETH 0.06 0xb27b03580c193d324931acb143f6a1f3477e702e.CALL( )
    /**
    Moontok.io Ads Payment
    
    Website: https://www.moontok.io
    TG Channel: https://t.me/Moontok_Channel
    TG Group: https://t.me/Moontok_Group
    TG Alert: https://t.me/moontok_listing
    Tiktok: https://www.tiktok.com/@moontokofficial
    Twitter: http://twitter.com/MoontokOfficial
    Email: [email protected]
    */
    
    pragma solidity ^0.6.12;
    
    // SPDX-License-Identifier: Unlicensed
    
    abstract contract Context {
        function _msgSender() internal view virtual returns (address payable) {
            return msg.sender;
        }
    
        function _msgData() internal view virtual returns (bytes memory) {
            this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
            return msg.data;
        }
    }
    
    contract Ownable is Context {
        address payable private _owner;
        address private _previousOwner;
        uint256 private _lockTime;
    
        event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
    
        /**
         * @dev Initializes the contract setting the deployer as the initial owner.
         */
        constructor () internal {
            _owner = msg.sender;
            emit OwnershipTransferred(address(0), _owner);
        }
    
        /**
         * @dev Returns the address of the current owner.
         */
        function owner() public view returns (address payable) {
            return _owner;
        }
    
        /**
         * @dev Throws if called by any account other than the owner.
         */
        modifier onlyOwner() {
            require(_owner == _msgSender(), "Ownable: caller is not the owner");
            _;
        }
    }
    
    contract MoontokPay is Context, Ownable {
        
        //record
        struct BuyData {
            uint256 coinId;
            uint256 adsType;
            uint256 amount;
        }
        uint256 private currentBuyIndex;
        mapping (uint256 => BuyData) private buyRecord;
    
        constructor () public {
            currentBuyIndex = 1;
        }
        
        //toplist support
        function getBuyCount() public view returns (uint256) {
            return currentBuyIndex;
        }
        
        function getBuyRecord(uint256 idx) public view returns (uint256, uint256, uint256) {
            require(idx <= currentBuyIndex, "Index out of bounds");
            
            return (buyRecord[idx].coinId, buyRecord[idx].adsType, buyRecord[idx].amount);
        }
        
        function payWithETH(uint256 coinId, uint256 adsType) external payable {
            require(coinId > 0, "Invalid coin ID");
            require(msg.value >= 0.01 ether);
            
            bool success = owner().send(msg.value);
            require(success, "Money transfer failed");
            
            buyRecord[currentBuyIndex] = BuyData(coinId, adsType, msg.value);
            ++currentBuyIndex;
        }
        
         
        //to recieve ETH from uniswapV2Router when swaping
        receive() external payable {
             bool success = owner().send(msg.value);
             require(success, "Money transfer failed");
        }
    }