Skip to content
Verified contractPartial

DepositWallet

Address0x5698b1b1db30e2c9d98a37aa96e2ca7490a00719
Balance

0 ETH

 

Transactions

97

 

Compiler

solc 0.4.23

 

Same code

2,079 more contracts

 

Details

Compiler
solc 0.4.23+commit.124ca40d
Language
solidity
Optimization
No
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
7,217,002
Creation transaction
0x5d60d1500f…0cddbad25d

DepositWallet.sol

// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity ^0.4.22;

contract ERC20Interface {
    function transfer(address to, uint256 value) public returns (bool);
}

contract WalletParent {
    function deposit() public payable;
    function getHotWallet() public returns (address);
}

contract DepositWallet {
    address parent;

    constructor() public {
        parent = msg.sender;
    }

    function () public payable {
        WalletParent(parent).deposit.value(msg.value)();
    }

    function withdraw(uint256 amount) public {
        WalletParent(parent).deposit.value(amount)();
    }

    function withdrawERC20Token(address token, uint256 amount) public {
        ERC20Interface(token).transfer(WalletParent(parent).getHotWallet(), amount);
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": false
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.