Skip to content
Verified contractExactMIT

USDTPayment

Address0x9c2c353e5ae9a6116f5cefe4943e45e329e187cb
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.8.20

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.20+commit.a1b79de6
Language
solidity
Optimization
No
License
MIT
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,472,626
Creation transaction
0x1cc69e131f…546afc04c8

Payment.sol


 // SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

interface IERC20 {
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

contract USDTPayment {
    address public constant USDT =
        0xdAC17F958D2ee523a2206206994597C13D831ec7;

    address public constant RECEIVER =
        0x1fE18aaBA7eb39d8f9593c844080573b557f652B;

    uint256 public constant AMOUNT = 5_000_000;

    event PaymentMade(address indexed payer, uint256 amount);

    function pay5USDT() external {
        bool success = IERC20(USDT).transferFrom(
            msg.sender,
            RECEIVER,
            AMOUNT
        );

        require(success, "USDT transfer failed");
        emit PaymentMade(msg.sender, AMOUNT);
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.