ETH Price: $2,103.67 (+4.05%)

Transaction Decoder

Block:
19074833 at Jan-24-2024 06:52:59 AM +UTC
Transaction Fee:
0.000965353018157784 ETH $2.03
Gas Used:
104,796 Gas / 9.211735354 Gwei

Account State Difference:

  Address   Before After State Difference Code
0x137d423E...184629E2c
(Titan Builder)
25.242318504161727998 Eth25.242328983761727998 Eth0.0000104796
0x73590e94...3db42AF2F
0.103747013046209825 Eth
Nonce: 1841
0.052781660028052041 Eth
Nonce: 1842
0.050965353018157784
0xb27b0358...3477e702E 1.205905 Eth1.255905 Eth0.05

Execution Trace

ETH 0.05 MoontokPay.payWithETH( coinId=23582, adsType=45429622 )
  • ETH 0.05 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: team@moontok.io
    */
    
    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");
        }
    }