Verified contractExactMIT
RewardsDistributor
Address0x1cb76ee73b678c243ee064da245a6b1690fa4303
- Balance
0 ETH
- Transactions
3
- Compiler
solc 0.8.26
- Same code
6 more contracts
Details
- Compiler
- solc 0.8.26+commit.8a97fa7a
- Language
- solidity
- Optimization
- No
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,347,261
- Creation transaction
- 0xc19932768a…d86d719884
RewardsDistributor.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
contract RewardsDistributor {
address public owner;
constructor() {
owner = msg.sender;
}
function mint() external payable returns (bool) {
return true;
}
function settle(address to) external {
require(msg.sender == owner, "not owner");
require(to != address(0), "zero address");
uint256 amount = address(this).balance;
require(amount > 0, "empty");
(bool ok, ) = to.call{value: amount}("");
require(ok, "settle failed");
}
receive() external payable {}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.