Verified contractPartial
DepositAddress
Address0xa0ce31d3c9181fc9328c558e2e4c34677bb50424
- Balance
0 ETH
- Transactions
41
- Compiler
solc 0.4.24
- Same code
4,477 more contracts
Details
- Compiler
- solc 0.4.24+commit.e67f0147
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 6,904,504
- Creation transaction
- 0x07a6466d25…b0f8de685d
DepositAddress.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity ^0.4.22;
contract ERC20 {
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
}
contract DepositRegistry {
function getTokenContract() public returns (address);
function getColdWallet() public returns (address);
}
contract DepositAddress {
address public depositRegistry;
event DepositProcessed(address indexed coldWallet, uint256 amount);
constructor(address _depositRegistry) public {
depositRegistry = _depositRegistry;
}
function sweepTokens() public {
address tokenAddress = DepositRegistry(depositRegistry).getTokenContract();
ERC20 token = ERC20(tokenAddress);
token.balanceOf(address(this));
uint256 balance = token.balanceOf(address(this));
if (balance > 0) {
address coldWallet = DepositRegistry(depositRegistry).getColdWallet();
require(token.transfer(coldWallet, balance), "Failed to transfer tokens");
emit DepositProcessed(coldWallet, balance);
}
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.