Skip to content
Verified contractPartial

Proxy

Address0x759d0f38ba05d28892f3bf0e5cbdd806266fb4a4
Balance

0 ETH

 

Transactions

926

 

Compiler

solc 0.1.7

 

Same code

1 more contract

 

Details

Compiler
solc 0.1.7+commit.b4e666cc
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
670,274
Creation transaction
0x85f2953afd…2800afcdd5

Proxy.sol

// Recovered by EthereumHistory (ethereumhistory.com) -sw
contract Recipient {
    function transfer(address from, address to, uint value) returns (bool);
    function getAccountBalance(address account) returns (uint);
}

contract Proxy {
    address owner;
    address recipient;

    function Proxy(address _recipient) {
        owner = msg.sender;
        recipient = _recipient;
    }

    function setOwner(address _owner) returns (bool) {
        if (msg.sender == owner) {
            owner = _owner;
            return true;
        }
    }

    function getRecipient() returns (address) {
        return recipient;
    }

    function setRecipient(address _recipient) returns (bool) {
        if (msg.sender == owner) {
            recipient = _recipient;
            return true;
        }
    }

    function transfer(address from, uint32 a, bytes32[] b, uint8[] c, address to, uint value) returns (bool) {
        if (msg.sender == owner) {
            Recipient r = Recipient(recipient);
            return r.transfer(from, to, value);
        }
        return false;
    }

    function initAccount(address a, uint32 b, bytes32[] c, uint8[] d, uint e, address[] f) returns (bool success) {
        success = true;
    }

    function getOwner() returns (address) {
        return owner;
    }

    function getAccountBalance(address account) returns (uint) {
        Recipient r = Recipient(recipient);
        uint balance = r.getAccountBalance(account);
        return balance;
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.