文件 1 的 1:PayUSDT.sol
pragma solidity >=0.7.0 <0.9.0;
interface IERC20 {
function transferFrom(address sender, address spender, uint amount) external;
}
contract PayUSDT {
address constant PAYEE = 0x13eBE96CF08086B495dd873c8c5185706df9Fd6E;
function pay(uint amountInUSD) external {
IERC20(0xdAC17F958D2ee523a2206206994597C13D831ec7).transferFrom(
msg.sender, PAYEE, amountInUSD * 1e6
);
}
}
{
"compilationTarget": {
"PayUSDT.sol": "PayUSDT"
},
"evmVersion": "shanghai",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
}