是否有 ERC/IERC20 功能或实用程序可确保收到的付款以特定令牌计价?
receive() external payable virtual {
IERC20 token = IERC20(address(0x123...789));
require(
paymentToken == MYtoken,
"Payment Must be MY token"
);
emit PaymentReceived(_msgSender(), msg.value);