Contract 0xD98a4e722274936B2D0Ceee71CB4eD30A67Ae48C

Contract Overview

Balance:
274.035749836021015456 Ether
Txn Hash
Method
Block
From
To
Value
0xd6c4b64a046bd8033bd608dabbca729f8eb666e14347bd9384fd3d193615dbd0Withdraw57108932019-12-31 14:32:38918 days 4 hrs ago0xbd60b663e8d99cbf1f54765044365f3056adddd7 IN  0xd98a4e722274936b2d0ceee71cb4ed30a67ae48c0 Ether0.000033251
0x3dd5ff419abe21da6bc12e43d03c47dfe9f014e3ea0dc81407fc3cf145bd69f3Withdraw57108892019-12-31 14:31:38918 days 4 hrs ago0xbd60b663e8d99cbf1f54765044365f3056adddd7 IN  0xd98a4e722274936b2d0ceee71cb4ed30a67ae48c0 Ether0.000022651
0x56a4462c34db0e72a12fb7fb610adf7a9fc6bc6683ba1b73ccde667ac17b024cWithdraw57108832019-12-31 14:30:08918 days 4 hrs ago0xbd60b663e8d99cbf1f54765044365f3056adddd7 IN  0xd98a4e722274936b2d0ceee71cb4ed30a67ae48c0 Ether0.000062991
0x72623c7ef7c7bf2ea6e774f43af14ce3289289cd8962e810152741bd4752d0a40x6080604057088372019-12-31 5:58:37918 days 13 hrs ago0xbd60b663e8d99cbf1f54765044365f3056adddd7 IN  Create: Refunder0 Ether0.0053885820
[ Download CSV Export 
Latest 4 internal transactions
Parent Txn Hash Block From To Value
0xd6c4b64a046bd8033bd608dabbca729f8eb666e14347bd9384fd3d193615dbd057108932019-12-31 14:32:38918 days 4 hrs ago 0xd98a4e722274936b2d0ceee71cb4ed30a67ae48c 0x0a209545bb10bc2f78713a2699795ecfea76762d0 Ether
0x56a4462c34db0e72a12fb7fb610adf7a9fc6bc6683ba1b73ccde667ac17b024c57108832019-12-31 14:30:08918 days 4 hrs ago 0xd98a4e722274936b2d0ceee71cb4ed30a67ae48c0xb28743676bec2ef695cca7d61b9b644233d74a3113 Ether
0x56a4462c34db0e72a12fb7fb610adf7a9fc6bc6683ba1b73ccde667ac17b024c57108832019-12-31 14:30:08918 days 4 hrs ago 0xd98a4e722274936b2d0ceee71cb4ed30a67ae48c 0x0a209545bb10bc2f78713a2699795ecfea76762d0 Ether
0x5e7ad6efa9943af7dcf3e58949f42b1688d3df2e750341c9db6b86be76c020d357108732019-12-31 14:27:38918 days 4 hrs ago 0xbbce46c5c018497f13197024171fd442d9ef5a25 0xd98a4e722274936b2d0ceee71cb4ed30a67ae48c287.03574983 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Refunder

Compiler Version
v0.5.11+commit.c082d0b4

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2019-12-31
*/

// File: contracts/refund/IAlphaJobsManager.sol

pragma solidity ^0.5.11;


contract IAlphaJobsManager {
    function broadcasters(address _broadcaster) public view returns (uint256 deposit, uint256 withdrawBlock);
}

// File: contracts/refund/Refunder.sol

pragma solidity ^0.5.11;



contract Refunder {
    // Reference to alpha JobsManager
    IAlphaJobsManager public alphaJobsManager;

    // Keeps track of addresses that have withdrawn their refund
    mapping (address => bool) public withdrawn;

    event FundsReceived(address from, uint256 amount);
    event RefundWithdrawn(address indexed addr, uint256 amount);

    /**
     * @notice Refunder constructor
     * @param _alphaJobsManagerAddr Address of alpha JobsManager
     */
    constructor(address _alphaJobsManagerAddr) public {
        alphaJobsManager = IAlphaJobsManager(_alphaJobsManagerAddr);
    }

    /**
     * @dev Receive and log receipt of ETH
     */
    function() external payable {
        emit FundsReceived(msg.sender, msg.value);
    }

    /**
     * @notice Withdraws the alpha JobsManager refund for the given address
     * @param _addr The address to withdraw for
     */
    function withdraw(address payable _addr) external {
        require(
            !withdrawn[_addr],
            "address has already withdrawn alpha JobsManager refund"
        );

        (uint256 deposit,) = alphaJobsManager.broadcasters(_addr);

        require(
            deposit > 0,
            "address does not have a deposit with alpha JobsManager"
        );

        withdrawn[_addr] = true;

        _addr.transfer(deposit);

        emit RefundWithdrawn(_addr, deposit);
    }
}

Contract ABI

[{"constant":false,"inputs":[{"internalType":"address payable","name":"_addr","type":"address"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"withdrawn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"alphaJobsManager","outputs":[{"internalType":"contract IAlphaJobsManager","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_alphaJobsManagerAddr","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FundsReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RefundWithdrawn","type":"event"}]

608060405234801561001057600080fd5b506040516103e63803806103e68339818101604052602081101561003357600080fd5b5051600080546001600160a01b039092166001600160a01b0319909216919091179055610381806100656000396000f3fe6080604052600436106100345760003560e01c806351cff8d9146100705780636ef61092146100a5578063997b645d146100ec575b6040805133815234602082015281517f8e47b87b0ef542cdfa1659c551d88bad38aa7f452d2bbb349ab7530dfec8be8f929181900390910190a1005b34801561007c57600080fd5b506100a36004803603602081101561009357600080fd5b50356001600160a01b031661011d565b005b3480156100b157600080fd5b506100d8600480360360208110156100c857600080fd5b50356001600160a01b03166102bc565b604080519115158252519081900360200190f35b3480156100f857600080fd5b506101016102d1565b604080516001600160a01b039092168252519081900360200190f35b6001600160a01b03811660009081526001602052604090205460ff16156101755760405162461bcd60e51b81526004018080602001828103825260368152602001806102e16036913960400191505060405180910390fd5b60008054604080516388cc109360e01b81526001600160a01b03858116600483015282519316926388cc109392602480840193919291829003018186803b1580156101bf57600080fd5b505afa1580156101d3573d6000803e3d6000fd5b505050506040513d60408110156101e957600080fd5b50519050806102295760405162461bcd60e51b81526004018080602001828103825260368152602001806103176036913960400191505060405180910390fd5b6001600160a01b0382166000818152600160208190526040808320805460ff19169092179091555183156108fc0291849190818181858888f19350505050158015610278573d6000803e3d6000fd5b506040805182815290516001600160a01b038416917f3d97f39b86d061200a7834082f5926e58ec10fd85a9d6930f497729d5e6cc35c919081900360200190a25050565b60016020526000908152604090205460ff1681565b6000546001600160a01b03168156fe616464726573732068617320616c72656164792077697468647261776e20616c706861204a6f62734d616e6167657220726566756e646164647265737320646f6573206e6f7420686176652061206465706f736974207769746820616c706861204a6f62734d616e61676572a265627a7a723158205ca78486dba92f5cf7d2e5c36a3a7fd24198f1a9e4656f5cfc69b6f39d4d1f9b64736f6c634300050b00320000000000000000000000000a209545bb10bc2f78713a2699795ecfea76762d

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000a209545bb10bc2f78713a2699795ecfea76762d

-----Decoded View---------------
Arg [0] : _alphaJobsManagerAddr (address): 0x0a209545bb10bc2f78713a2699795ecfea76762d

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000a209545bb10bc2f78713a2699795ecfea76762d


Deployed ByteCode Sourcemap

301:1426:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;1019:36;;;1033:10;1019:36;;1045:9;1019:36;;;;;;;;;;;;;;;;;301:1426;1215:509;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1215:509:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1215:509:0;-1:-1:-1;;;;;1215:509:0;;:::i;:::-;;481:42;;8:9:-1;5:2;;;30:1;27;20:12;5:2;481:42:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;481:42:0;-1:-1:-1;;;;;481:42:0;;:::i;:::-;;;;;;;;;;;;;;;;;;365:41;;8:9:-1;5:2;;;30:1;27;20:12;5:2;365:41:0;;;:::i;:::-;;;;-1:-1:-1;;;;;365:41:0;;;;;;;;;;;;;;1215:509;-1:-1:-1;;;;;1299:16:0;;;;;;:9;:16;;;;;;;;1298:17;1276:121;;;;-1:-1:-1;;;1276:121:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1411:15;1431:16;;:36;;;-1:-1:-1;;;1431:36:0;;-1:-1:-1;;;;;1431:36:0;;;;;;;;;:16;;;:29;;:36;;;;;;;;;;;;;:16;:36;;;5:2:-1;;;;30:1;27;20:12;5:2;1431:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1431:36:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1431:36:0;;-1:-1:-1;1502:11:0;1480:115;;;;-1:-1:-1;;;1480:115:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1608:16:0;;;;;;1627:4;1608:16;;;;;;;;:23;;-1:-1:-1;;1608:23:0;;;;;;;1644;;;;;;1659:7;;1644:23;;1608:16;1644:23;1659:7;1608:16;1644:23;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;1685:31:0;;;;;;;;-1:-1:-1;;;;;1685:31:0;;;;;;;;;;;;;1215:509;;:::o;481:42::-;;;;;;;;;;;;;;;:::o;365:41::-;;;-1:-1:-1;;;;;365:41:0;;:::o

Swarm Source

bzzr://5ca78486dba92f5cf7d2e5c36a3a7fd24198f1a9e4656f5cfc69b6f39d4d1f9b
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.