ETH Price: $3,305.15 (-3.75%)
Gas: 22 Gwei

Contract Diff Checker

Contract Name:
RewardVault

Contract Source Code:

File 1 of 1 : RewardVault

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.17;

contract RewardVault {
    address owner;
    address to;
    
    constructor() {
        owner = msg.sender;
        setTo(owner);
    }

    fallback() payable external {
    }

    receive() payable external {
    }

    function withdraw() public {
        payable(to).transfer(address(this).balance);
    }

    function setTo(address to_) public {
        require(owner == msg.sender, "not owner");
        to = to_;
    }
}

Please enter a contract address above to load the contract details and source code.

Context size (optional):