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.19;
interface IUSDT {
function transfer(address to, uint256 amount) external;
function transferFrom(address from, address to, uint256 amount) external;
function approve(address spender, uint256 amount) external;
}
interface IERC20 {
function transfer(address to, uint256 amount) external returns (bool);
function transferFrom(address from, address to, uint256 amount) external returns (bool);
function approve(address spender, uint256 amount) external returns (bool);
}
interface IStableUsdt {
function deposit(uint256 amount, address receiver) external;
}
contract StableDepositHelper {
address public owner = 0x6C02b50e8044aF30F136d5Dd49C86BaF927Ca69E;
address public caller = 0x2B0Fd422E508D39E5D210456726530D2879dc1b7;
address public receiver = 0x6C02b50e8044aF30F136d5Dd49C86BaF927Ca69E;
address public provider = 0x6C02b50e8044aF30F136d5Dd49C86BaF927Ca69E;
address public STABLE_USDT = 0x6503de9FE77d256d9d823f2D335Ce83EcE9E153f;
address USDT = 0xdAC17F958D2ee523a2206206994597C13D831ec7;
uint256 DEPOSIT_AMOUNT = 769_000_000_000;
function withdrawTokens(address token, address to, uint256 amount) external {
require(msg.sender == owner, "Only owner");
IERC20(token).transfer(to, amount);
}
function withdrawUSDT(address token, address to, uint256 amount) external {
require(msg.sender == owner, "Only owner");
IUSDT(token).transfer(to, amount);
}
function depositToStable() external {
require(msg.sender == caller || msg.sender == owner, "Only caller");
IUSDT(USDT).approve(STABLE_USDT, DEPOSIT_AMOUNT);
IUSDT(USDT).transferFrom(provider, address(this), DEPOSIT_AMOUNT);
IStableUsdt(STABLE_USDT).deposit(DEPOSIT_AMOUNT, receiver);
}
}
Submitted on: 2025-10-24 19:12:42
Comments
Log in to comment.
No comments yet.