Abstract Testnet

Contract Diff Checker

Contract Name:
WAGMI

Contract Source Code:

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

contract WAGMI {
    function letWAGMI() public pure virtual returns (string memory) {
        return "WAGMI, WAGMI!!";
    }
}

contract Lock {
    uint public unlockTime;
    address payable public owner;

    event Withdrawal(uint amount, uint when);

    constructor(uint _unlockTime) payable {
        require(
            block.timestamp < _unlockTime,
            "Unlock time should be in the future"
        );

        unlockTime = _unlockTime;
        owner = payable(msg.sender);
    }

    function withdraw() public {
        require(block.timestamp >= unlockTime, "You can't withdraw yet");
        require(msg.sender == owner, "You aren't the owner");

        emit Withdrawal(address(this).balance, block.timestamp);

        owner.call{value: address(this).balance}("");
    }
}

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

Context size (optional):