Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0xC683c9538AdC3B49b34B31f49DeF6a770A4e64F0
Balance 0 ETH
Nonce 1
Code Size 1288 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

1288 bytes
0x608060405260043610610063575f3560e01c80638da5cb5b116100415780638da5cb5b146100af5780639fbc8713146100fd578063f2fde38b14610129575f5ffd5b806329dc4d9b146100675780633b55fad914610088578063715018a61461009b575b5f5ffd5b348015610072575f5ffd5b5061008661008136600461048a565b610148565b005b6100866100963660046104aa565b6101e4565b3480156100a6575f5ffd5b50610086610321565b3480156100ba575f5ffd5b505f5473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b348015610108575f5ffd5b506001546100d49073ffffffffffffffffffffffffffffffffffffffff1681565b348015610134575f5ffd5b5061008661014336600461048a565b610334565b61015061039c565b73ffffffffffffffffffffffffffffffffffffffff811661019d576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b345f0361021d576040517fc065426400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001546040515f9173ffffffffffffffffffffffffffffffffffffffff169034908381818185875af1925050503d805f8114610274576040519150601f19603f3d011682016040523d82523d5f602084013e610279565b606091505b50509050806102b4576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f6f8b8ba815971a08c087bc53e4ecf4b05c476d05cdd7172285762378e08b86443460405161031491815260200190565b60405180910390a4505050565b61032961039c565b6103325f6103ee565b565b61033c61039c565b73ffffffffffffffffffffffffffffffffffffffff8116610390576040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081525f60048201526024015b60405180910390fd5b610399816103ee565b50565b5f5473ffffffffffffffffffffffffffffffffffffffff163314610332576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610387565b5f805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610485575f5ffd5b919050565b5f6020828403121561049a575f5ffd5b6104a382610462565b9392505050565b5f5f604083850312156104bb575f5ffd5b6104c483610462565b94602093909301359350505056fea2646970667358221220993130d0c41130b864531bdea2509075e2c89b9886282966e647ba1124549e0864736f6c634300081c0033

Verified Source Code Partial Match

Compiler: v0.8.28+commit.7893614a EVM: cancun Optimization: Yes (20000 runs)
RoyaltyRemittanceV2.sol 181 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20 ^0.8.7;

// lib/openzeppelin-contracts/contracts/utils/Context.sol

// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

// lib/openzeppelin-contracts/contracts/access/Ownable.sol

// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is set to the address provided by the deployer. This can
 * later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// src/RoyaltyRemittanceV2.sol

/**
 * @title Royalty Remittance V2
 * @notice A contract that allows users to remit royalties to a receiver
 * @author wizrd0x
 */
contract RoyaltyRemittanceV2 is Ownable {
    address public royaltyReceiver;

    event RoyaltyRemitted(
        address indexed sender,
        address indexed tokenAddress,
        uint256 indexed tokenId,
        uint256 amount
    );

    error MustBeGreaterThanZero();
    error TransferFailed();
    error InvalidAddress();

    constructor(address _royaltyReceiver) Ownable(msg.sender) {
        if (_royaltyReceiver == address(0)) revert InvalidAddress();
        royaltyReceiver = _royaltyReceiver;
    }

    /**
     * @notice Updates the royalty receiver address
     * @param newReceiver The new address to receive royalties
     */
    function updateRoyaltyReceiver(address newReceiver) external onlyOwner {
        if (newReceiver == address(0)) revert InvalidAddress();
        royaltyReceiver = newReceiver;
    }

    /**
     * @notice Allows a user to remediate missing royalty payments
     * @param tokenAddress The address of the token contract
     * @param tokenId The ID of the token
     */
    function remediateRoyalty(
        address tokenAddress,
        uint256 tokenId
    ) external payable {
        if (msg.value == 0) revert MustBeGreaterThanZero();

        (bool success, ) = payable(royaltyReceiver).call{value: msg.value}("");
        if (!success) revert TransferFailed();

        emit RoyaltyRemitted(msg.sender, tokenAddress, tokenId, msg.value);
    }
}

Read Contract

owner 0x8da5cb5b → address
royaltyReceiver 0x9fbc8713 → address

Write Contract 4 functions

These functions modify contract state and require a wallet transaction to execute.

remediateRoyalty 0x3b55fad9
address tokenAddress
uint256 tokenId
renounceOwnership 0x715018a6
No parameters
transferOwnership 0xf2fde38b
address newOwner
updateRoyaltyReceiver 0x29dc4d9b
address newReceiver

Recent Transactions

No transactions found for this address