More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 16818685 | 686 days ago | IN | 9.6 ETH | 0.00091543 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
16818685 | 686 days ago | 5.76 ETH | ||||
16818685 | 686 days ago | 3.84 ETH | ||||
16786970 | 690 days ago | 0.001257 ETH | ||||
16786970 | 690 days ago | 0.000838 ETH | ||||
16786970 | 690 days ago | 0.002095 ETH | ||||
16786969 | 690 days ago | 0.0012 ETH | ||||
16786969 | 690 days ago | 0.0008 ETH | ||||
16786969 | 690 days ago | 0.002 ETH | ||||
16776369 | 692 days ago | 0.00129 ETH | ||||
16776369 | 692 days ago | 0.00086 ETH | ||||
16776369 | 692 days ago | 0.00215 ETH | ||||
16756445 | 695 days ago | 0.00156 ETH | ||||
16756445 | 695 days ago | 0.00104 ETH | ||||
16756445 | 695 days ago | 0.0026 ETH | ||||
16756440 | 695 days ago | 0.001305 ETH | ||||
16756440 | 695 days ago | 0.00087 ETH | ||||
16756440 | 695 days ago | 0.002175 ETH | ||||
16750528 | 695 days ago | 0.00177 ETH | ||||
16750528 | 695 days ago | 0.00118 ETH | ||||
16750528 | 695 days ago | 0.00295 ETH | ||||
16750524 | 695 days ago | 0.001302 ETH | ||||
16750524 | 695 days ago | 0.000868 ETH | ||||
16750524 | 695 days ago | 0.00217 ETH | ||||
16749275 | 696 days ago | 0.00130499 ETH | ||||
16749275 | 696 days ago | 0.00086999 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
SplitFee
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; error SplitFee__InvalidOwnerFeePercentage(uint8 ownerFeePercentage); error SplitFee__ZeroAddressProhibited(); /** * @title Split Fee * @author DeployLabs.io * * @dev The purpose of this contract is to split the fee between the owner and the artist. */ contract SplitFee { address payable private i_owner; address payable private i_artist; uint8 private i_ownerFeePercentage; constructor(address payable owner, address payable artist, uint8 ownerFeePercentage) { if (owner == address(0) || artist == address(0)) revert SplitFee__ZeroAddressProhibited(); i_owner = owner; i_artist = artist; if (ownerFeePercentage > 100) revert SplitFee__InvalidOwnerFeePercentage(ownerFeePercentage); i_ownerFeePercentage = ownerFeePercentage; } receive() external payable { uint256 ownerFee = (msg.value * i_ownerFeePercentage) / 100; uint256 artistFee = msg.value - ownerFee; i_owner.transfer(ownerFee); i_artist.transfer(artistFee); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address payable","name":"owner","type":"address"},{"internalType":"address payable","name":"artist","type":"address"},{"internalType":"uint8","name":"ownerFeePercentage","type":"uint8"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint8","name":"ownerFeePercentage","type":"uint8"}],"name":"SplitFee__InvalidOwnerFeePercentage","type":"error"},{"inputs":[],"name":"SplitFee__ZeroAddressProhibited","type":"error"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b5060405161054738038061054783398181016040528101906100329190610259565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614806100995750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b156100d0576040517f3e72ddd800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b826000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060648160ff16111561019a57806040517f3d3fc78300000000000000000000000000000000000000000000000000000000815260040161019191906102bb565b60405180910390fd5b80600160146101000a81548160ff021916908360ff1602179055505050506102d6565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006101ed826101c2565b9050919050565b6101fd816101e2565b811461020857600080fd5b50565b60008151905061021a816101f4565b92915050565b600060ff82169050919050565b61023681610220565b811461024157600080fd5b50565b6000815190506102538161022d565b92915050565b600080600060608486031215610272576102716101bd565b5b60006102808682870161020b565b93505060206102918682870161020b565b92505060406102a286828701610244565b9150509250925092565b6102b581610220565b82525050565b60006020820190506102d060008301846102ac565b92915050565b610262806102e56000396000f3fe6080604052366101185760006064600160149054906101000a900460ff1660ff163461002b9190610156565b61003591906101c7565b90506000813461004591906101f8565b905060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050501580156100ad573d6000803e3d6000fd5b50600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610116573d6000803e3d6000fd5b005b600080fd5b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006101618261011d565b915061016c8361011d565b925082820261017a8161011d565b9150828204841483151761019157610190610127565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006101d28261011d565b91506101dd8361011d565b9250826101ed576101ec610198565b5b828204905092915050565b60006102038261011d565b915061020e8361011d565b925082820390508181111561022657610225610127565b5b9291505056fea264697066735822122071e8640340528975b44e9344ed1d83986f53908e8c861a451036e5892f5d319264736f6c63430008110033000000000000000000000000f4a952daccb6ed11497dc1a7ca325018f0ee19db00000000000000000000000015dda3cb9a0e9ce0faf1ed80b1d072b68c2a05760000000000000000000000000000000000000000000000000000000000000028
Deployed Bytecode
0x6080604052366101185760006064600160149054906101000a900460ff1660ff163461002b9190610156565b61003591906101c7565b90506000813461004591906101f8565b905060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050501580156100ad573d6000803e3d6000fd5b50600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610116573d6000803e3d6000fd5b005b600080fd5b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006101618261011d565b915061016c8361011d565b925082820261017a8161011d565b9150828204841483151761019157610190610127565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006101d28261011d565b91506101dd8361011d565b9250826101ed576101ec610198565b5b828204905092915050565b60006102038261011d565b915061020e8361011d565b925082820390508181111561022657610225610127565b5b9291505056fea264697066735822122071e8640340528975b44e9344ed1d83986f53908e8c861a451036e5892f5d319264736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f4a952daccb6ed11497dc1a7ca325018f0ee19db00000000000000000000000015dda3cb9a0e9ce0faf1ed80b1d072b68c2a05760000000000000000000000000000000000000000000000000000000000000028
-----Decoded View---------------
Arg [0] : owner (address): 0xf4A952DacCb6Ed11497Dc1A7ca325018F0Ee19DB
Arg [1] : artist (address): 0x15DDa3CB9A0E9cE0faF1ed80b1d072B68C2a0576
Arg [2] : ownerFeePercentage (uint8): 40
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000f4a952daccb6ed11497dc1a7ca325018f0ee19db
Arg [1] : 00000000000000000000000015dda3cb9a0e9ce0faf1ed80b1d072b68c2a0576
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000028
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $3,066.52 | 0.0101 | $30.82 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.