Verified contractExactMIT
PayForMinting
Address0xbd5b765d01b3c0eb652b8b3234d81db2aba3ba63
- Balance
0.02 ETH
- Transactions
2,611
- Compiler
solc 0.8.15
- Same code
Only this contract
Details
- Compiler
- solc 0.8.15+commit.e14f2714
- Language
- solidity
- Optimization
- No
- EVM version
- london
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 15,012,040
- Creation transaction
- 0x6fbf0d31cb…d8341bf3c4
PayForMinting.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
contract PayForMinting {
address payable private owner = payable(0x3A8e15F4c536EA4C86b37A780b99C2D230a285bb);
uint256 public constant costToCustomize = 40000000000000000;
uint256 public constant costToMint = 20000000000000000;
event PaidForMinting(string indexed dragonWalletIndexed, string dragonWallet, uint8 paymentLevel);
event CollectedFunds(uint256 amount);
/// @param dragonWallet The Dragon Wallet string that is receiving payment.
function payForMinting(string calldata dragonWallet) external payable {
require(msg.value == costToCustomize || msg.value == costToMint);
emit PaidForMinting(dragonWallet, dragonWallet, msg.value == costToCustomize ? 2 : 1);
}
function claimFunds() external {
uint256 balance = address(this).balance;
owner.transfer(balance);
emit CollectedFunds(balance);
}
}
Compiler settingsShow
{
"metadata": {
"bytecodeHash": "ipfs"
},
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": false
},
"evmVersion": "london",
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.