Address Contract Partially Verified
Address
0x36845c0Dc16A30E60e9c110AF7315Ce804c0d3Eb
Balance
0.001145 ETH
Nonce
1
Code Size
3222 bytes
Creator
0x1BFe7452...71B0 at tx 0x05563034...80cd1d
Indexed Transactions
0
Contract Bytecode
3222 bytes
0x60806040526004361061008a5760003560e01c8063715018a611610059578063715018a6146101185780638b7afe2e1461012f5780638da5cb5b1461015a578063e64e0b4314610185578063f2fde38b146101ae57610091565b80630562b9f7146100935780632b66d72e146100bc5780633a41992c146100d85780633ccfd60b1461010157610091565b3661009157005b005b34801561009f57600080fd5b506100ba60048036038101906100b591906107ca565b6101d7565b005b6100d660048036038101906100d1919061085c565b6102b1565b005b3480156100e457600080fd5b506100ff60048036038101906100fa9190610907565b610307565b005b34801561010d57600080fd5b5061011661044d565b005b34801561012457600080fd5b5061012d61052c565b005b34801561013b57600080fd5b50610144610540565b604051610151919061098a565b60405180910390f35b34801561016657600080fd5b5061016f610548565b60405161017c91906109b4565b60405180910390f35b34801561019157600080fd5b506101ac60048036038101906101a791906109cf565b610571565b005b3480156101ba57600080fd5b506101d560048036038101906101d091906109cf565b6105bd565b005b6101df610640565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168260405161022790610a2d565b60006040518083038185875af1925050503d8060008114610264576040519150601f19603f3d011682016040523d82523d6000602084013e610269565b606091505b50509050806102ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a490610a9f565b60405180910390fd5b5050565b3373ffffffffffffffffffffffffffffffffffffffff167f6c08739efe35f044209cc5778450323c8f3d5357b1f1e6b781252579864516278383346040516102fb93929190610b0c565b60405180910390a25050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461036157600080fd5b60008173ffffffffffffffffffffffffffffffffffffffff168360405161038790610a2d565b60006040518083038185875af1925050503d80600081146103c4576040519150601f19603f3d011682016040523d82523d6000602084013e6103c9565b606091505b505090508061040d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161040490610a9f565b60405180910390fd5b7f199c4fb4aa558750b62fda789a0482cc0cccee60343523ba4a9e154e5150a82c858560405161043e929190610b3e565b60405180910390a15050505050565b610455610640565b60004790506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16826040516104a290610a2d565b60006040518083038185875af1925050503d80600081146104df576040519150601f19603f3d011682016040523d82523d6000602084013e6104e4565b606091505b5050905080610528576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161051f90610a9f565b60405180910390fd5b5050565b610534610640565b61053e60006106be565b565b600047905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610579610640565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6105c5610640565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610634576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062b90610bd4565b60405180910390fd5b61063d816106be565b50565b610648610782565b73ffffffffffffffffffffffffffffffffffffffff16610666610548565b73ffffffffffffffffffffffffffffffffffffffff16146106bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b390610c40565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b600080fd5b600080fd5b6000819050919050565b6107a781610794565b81146107b257600080fd5b50565b6000813590506107c48161079e565b92915050565b6000602082840312156107e0576107df61078a565b5b60006107ee848285016107b5565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261081c5761081b6107f7565b5b8235905067ffffffffffffffff811115610839576108386107fc565b5b60208301915083600182028301111561085557610854610801565b5b9250929050565b600080602083850312156108735761087261078a565b5b600083013567ffffffffffffffff8111156108915761089061078f565b5b61089d85828601610806565b92509250509250929050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006108d4826108a9565b9050919050565b6108e4816108c9565b81146108ef57600080fd5b50565b600081359050610901816108db565b92915050565b600080600080606085870312156109215761092061078a565b5b600085013567ffffffffffffffff81111561093f5761093e61078f565b5b61094b87828801610806565b9450945050602061095e878288016107b5565b925050604061096f878288016108f2565b91505092959194509250565b61098481610794565b82525050565b600060208201905061099f600083018461097b565b92915050565b6109ae816108c9565b82525050565b60006020820190506109c960008301846109a5565b92915050565b6000602082840312156109e5576109e461078a565b5b60006109f3848285016108f2565b91505092915050565b600081905092915050565b50565b6000610a176000836109fc565b9150610a2282610a07565b600082019050919050565b6000610a3882610a0a565b9150819050919050565b600082825260208201905092915050565b7f4661696c656420746f2073656e64204574686572000000000000000000000000600082015250565b6000610a89601483610a42565b9150610a9482610a53565b602082019050919050565b60006020820190508181036000830152610ab881610a7c565b9050919050565b82818337600083830152505050565b6000601f19601f8301169050919050565b6000610aeb8385610a42565b9350610af8838584610abf565b610b0183610ace565b840190509392505050565b60006040820190508181036000830152610b27818587610adf565b9050610b36602083018461097b565b949350505050565b60006020820190508181036000830152610b59818486610adf565b90509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000610bbe602683610a42565b9150610bc982610b62565b604082019050919050565b60006020820190508181036000830152610bed81610bb1565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000610c2a602083610a42565b9150610c3582610bf4565b602082019050919050565b60006020820190508181036000830152610c5981610c1d565b905091905056fea264697066735822122043d46f809165750adad158ff8d16303fe047378e92e16ec7acc9964dac84781464736f6c634300080d0033
Verified Source Code Partial Match
Compiler: v0.8.13+commit.abaa5c0e
EVM: london
Optimization: No
Context.sol 24 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @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;
}
}
Ownable.sol 83 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "./Context.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.
*
* By default, the owner account will be the one that deploys the contract. 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;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @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 {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing 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 {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_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);
}
}
PaymentsV3.sol 129 lines
pragma solidity 0.8.13;
// SPDX-License-Identifier: MIT
import "./Ownable.sol";
/**
* @title Verse payments capturer
* @author Verse
* @notice This contract allows to capture ETH payments from private wallets that will be picked up by Verse platform.
*/
interface IVersePayments {
/**
* @dev Payment event is emitted when user pays to the contract, where `metadata` is used to identify the payment.
*/
event Payment(string metadata, uint256 amount, address indexed buyer);
/**
* @dev Refund event is emited during refund, where `metadata` is used to identify the payment.
*/
event Refund(string metadata);
/**
* @notice Pay method collects user payment for the item, where `metadata` is used to identify the payment and emits {Payment} event.
*/
function pay(string calldata metadata) external payable;
/**
* @dev Refund method transfers user ETH and emits {Refund} event.
*/
function refund(
string calldata metadata,
uint256 amount,
address buyer
) external;
/**
* @dev Withdraw method transfers all collected ETH to the treasury wallet.
*/
function withdraw() external;
/**
* @dev Withdraw method transfers `amount` of collected ETH to the treasury wallet.
*/
function withdrawAmount(uint256 amount) external;
}
/**
* @title Verse payments capturer
* @author Verse
* @notice This contract allows to capture ETH payments from private wallets that will be picked up by Verse platform.
*/
contract VersePayments is Ownable, IVersePayments {
address treasury;
address refundsManager;
constructor(address treasury_, address refundsManager_) {
treasury = treasury_;
refundsManager = refundsManager_;
}
/**
* @notice Pay method collects user payment for the item, where `metadata` is used to identify the payment and emits {Payment} event.
*/
function pay(string calldata metadata) public payable {
emit Payment(metadata, msg.value, msg.sender);
}
/**
* @dev Refund method transfers user ETH and emits {Refund} event.
*/
function refund(
string calldata metadata,
uint256 amount,
address buyer
) public onlyRefundsManager {
(bool sent, ) = buyer.call{value: amount}("");
require(sent, "Failed to send Ether");
emit Refund(metadata);
}
/**
* @dev Withdraw method transfers all collected ETH to the treasury wallet.
*/
function withdraw() public onlyOwner {
uint256 balance = address(this).balance;
(bool sent, ) = treasury.call{value: balance}("");
require(sent, "Failed to send Ether");
}
/**
* @dev Withdraw method transfers `amount` of collected ETH to the treasury wallet.
*/
function withdrawAmount(uint256 amount) public onlyOwner {
(bool sent, ) = treasury.call{value: amount}("");
require(sent, "Failed to send Ether");
}
/**
* @dev modifier to only
*/
modifier onlyRefundsManager() {
require(msg.sender == refundsManager);
_;
}
/**
* @dev Sets new refunds manager for the contract.
*/
function setRefundsManager(address refundsManager_) public onlyOwner {
refundsManager = refundsManager_;
}
/**
* @dev contractBalance returns balance
*/
function contractBalance() public view returns (uint256) {
return address(this).balance;
}
/**
* @dev allows smart contract to accept direct payments
*/
fallback() external payable {}
/**
* @dev allows smart contract to accept direct payments
*/
receive() external payable {}
}
Read Contract
contractBalance 0x8b7afe2e → uint256
owner 0x8da5cb5b → address
Write Contract 7 functions
These functions modify contract state and require a wallet transaction to execute.
pay 0x2b66d72e
string metadata
refund 0x3a41992c
string metadata
uint256 amount
address buyer
renounceOwnership 0x715018a6
No parameters
setRefundsManager 0xe64e0b43
address refundsManager_
transferOwnership 0xf2fde38b
address newOwner
withdraw 0x3ccfd60b
No parameters
withdrawAmount 0x0562b9f7
uint256 amount
Recent Transactions
No transactions found for this address