ETH Price: $3,422.76 (+3.08%)

Contract

0xa34f46f4a07EC97Be70943D3E75B8a9EC43eCC58
 

Overview

ETH Balance

0.018275 ETH

Eth Value

$62.55 (@ $3,422.76/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer151198672022-07-11 6:55:07866 days ago1657522507IN
0xa34f46f4...EC43eCC58
0.1029 ETH0.0003787916.92270317
Transfer149628492022-06-14 17:14:36893 days ago1655226876IN
0xa34f46f4...EC43eCC58
0.41576999 ETH0.0017762479.35321368
Transfer148974832022-06-03 13:55:02904 days ago1654264502IN
0xa34f46f4...EC43eCC58
0.41103999 ETH0.0012972757.95528912
Withdraw148498542022-05-26 19:42:37912 days ago1653594157IN
0xa34f46f4...EC43eCC58
0 ETH0.0035827570.95264547
Transfer148454192022-05-26 2:34:09912 days ago1653532449IN
0xa34f46f4...EC43eCC58
0.1328 ETH0.001035246.24742649
Transfer148196552022-05-21 21:46:32916 days ago1653169592IN
0xa34f46f4...EC43eCC58
0.44022 ETH0.0003403815.20656975
Transfer147751102022-05-14 18:11:50924 days ago1652551910IN
0xa34f46f4...EC43eCC58
1.14406 ETH0.0009331641.6888086
Transfer147295062022-05-07 11:24:09931 days ago1651922649IN
0xa34f46f4...EC43eCC58
0.82775 ETH0.0007939635.47004879
Transfer146981532022-05-02 11:59:17936 days ago1651492757IN
0xa34f46f4...EC43eCC58
6.9590999 ETH0.0013761961.48108561
Transfer146547972022-04-25 16:17:12943 days ago1650903432IN
0xa34f46f4...EC43eCC58
9.74744637 ETH0.0027364122.24828044
Transfer146188792022-04-20 0:55:08948 days ago1650416108IN
0xa34f46f4...EC43eCC58
5.91983385 ETH0.0011085849.52590243
0x60806040146093792022-04-18 13:13:08950 days ago1650287588IN
 Create: RoyaltySplitter
0 ETH0.0111105234.01146372

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
212084822024-11-17 16:00:116 days ago1731859211
0xa34f46f4...EC43eCC58
0.0032 ETH
208856882024-10-03 14:49:1151 days ago1727966951
0xa34f46f4...EC43eCC58
0.00065 ETH
207868582024-09-19 19:53:5965 days ago1726775639
0xa34f46f4...EC43eCC58
0.0079 ETH
207204792024-09-10 13:21:5974 days ago1725974519
0xa34f46f4...EC43eCC58
0.001525 ETH
197120692024-04-22 16:15:35215 days ago1713802535
0xa34f46f4...EC43eCC58
0.005 ETH
173229622023-05-23 15:57:35550 days ago1684857455
0xa34f46f4...EC43eCC58
0.03094605 ETH
173229622023-05-23 15:57:35550 days ago1684857455
0xa34f46f4...EC43eCC58
0.07220745 ETH
172528622023-05-13 18:35:11560 days ago1684002911
0xa34f46f4...EC43eCC58
0.0095 ETH
170743962023-04-18 15:18:11585 days ago1681831091
0xa34f46f4...EC43eCC58
0.00125 ETH
169494022023-03-31 19:57:11603 days ago1680292631
0xa34f46f4...EC43eCC58
0.000525 ETH
169493912023-03-31 19:54:47603 days ago1680292487
0xa34f46f4...EC43eCC58
0.00025 ETH
169344152023-03-29 17:25:35605 days ago1680110735
0xa34f46f4...EC43eCC58
0.005 ETH
168846732023-03-22 17:40:23612 days ago1679506823
0xa34f46f4...EC43eCC58
0.00029 ETH
168846642023-03-22 17:38:35612 days ago1679506715
0xa34f46f4...EC43eCC58
0.005 ETH
167877372023-03-09 2:39:35625 days ago1678329575
0xa34f46f4...EC43eCC58
0.0055 ETH
167877372023-03-09 2:39:35625 days ago1678329575
0xa34f46f4...EC43eCC58
0.000739 ETH
167494102023-03-03 17:17:35631 days ago1677863855
0xa34f46f4...EC43eCC58
0.005 ETH
167456042023-03-03 4:28:11631 days ago1677817691
0xa34f46f4...EC43eCC58
0.005 ETH
166789442023-02-21 19:26:35641 days ago1677007595
0xa34f46f4...EC43eCC58
0.0177395 ETH
165644902023-02-05 18:51:47657 days ago1675623107
0xa34f46f4...EC43eCC58
0.00498 ETH
162982952022-12-30 14:51:23694 days ago1672411883
0xa34f46f4...EC43eCC58
0.0114 ETH
162502642022-12-23 21:58:11700 days ago1671832691
0xa34f46f4...EC43eCC58
0.0145 ETH
162498272022-12-23 20:30:35701 days ago1671827435
0xa34f46f4...EC43eCC58
0.00599 ETH
162293582022-12-21 0:01:35703 days ago1671580895
0xa34f46f4...EC43eCC58
0.00649 ETH
162241092022-12-20 6:27:23704 days ago1671517643
0xa34f46f4...EC43eCC58
0.004 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RoyaltySplitter

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2022-05-06
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

contract RoyaltySplitter {
    event Deposit(address sender, uint256 amount);

    address user1;
    address user2;
    uint256 user1Fraction;

    constructor(
        address u1,
        address u2,
        uint256 fraction
    ) {
        user1 = u1;
        user2 = u2;
        user1Fraction = fraction;
    }

    receive() external payable {
        emit Deposit(msg.sender, msg.value);
    }

    function withdraw() external {
        require(
            msg.sender == user1 || msg.sender == user2,
            "Only user1 or user2 can withdraw"
        );
        uint256 u1total = (address(this).balance * user1Fraction) / 100;
        (bool success, ) = user1.call{value: u1total}("");
        require(success, "failed to receive ether");
        (success, ) = user2.call{value: address(this).balance}("");
        require(success, "failed to receive ether");
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"u1","type":"address"},{"internalType":"address","name":"u2","type":"address"},{"internalType":"uint256","name":"fraction","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b5060405161048338038061048383398101604081905261002f91610083565b600080546001600160a01b039485166001600160a01b03199182161790915560018054939094169216919091179091556002556100bf565b80516001600160a01b038116811461007e57600080fd5b919050565b60008060006060848603121561009857600080fd5b6100a184610067565b92506100af60208501610067565b9150604084015190509250925092565b6103b5806100ce6000396000f3fe6080604052600436106100225760003560e01c80633ccfd60b1461006657600080fd5b3661006157604080513381523460208201527fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c910160405180910390a1005b600080fd5b34801561007257600080fd5b5061007b61007d565b005b60005473ffffffffffffffffffffffffffffffffffffffff163314806100ba575060015473ffffffffffffffffffffffffffffffffffffffff1633145b610125576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f6e6c79207573657231206f722075736572322063616e20776974686472617760448201526064015b60405180910390fd5b600060646002544761013791906102e0565b6101419190610344565b60008054604051929350909173ffffffffffffffffffffffffffffffffffffffff9091169083908381818185875af1925050503d80600081146101a0576040519150601f19603f3d011682016040523d82523d6000602084013e6101a5565b606091505b5050905080610210576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f6661696c656420746f2072656365697665206574686572000000000000000000604482015260640161011c565b60015460405173ffffffffffffffffffffffffffffffffffffffff909116904790600081818185875af1925050503d806000811461026a576040519150601f19603f3d011682016040523d82523d6000602084013e61026f565b606091505b505080915050806102dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f6661696c656420746f2072656365697665206574686572000000000000000000604482015260640161011c565b5050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561033f577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b500290565b60008261037a577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b50049056fea2646970667358221220048a60cde79514ef8072e05aec97f607a80722baca102553d1ea05233ceaa9aa64736f6c634300080d0033000000000000000000000000a9e9b97cb9febd4cd2ac2ee8dbca07ce0606184e00000000000000000000000086622a3ee0eefb1df947661f29027f7a432d97710000000000000000000000000000000000000000000000000000000000000046

Deployed Bytecode

0x6080604052600436106100225760003560e01c80633ccfd60b1461006657600080fd5b3661006157604080513381523460208201527fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c910160405180910390a1005b600080fd5b34801561007257600080fd5b5061007b61007d565b005b60005473ffffffffffffffffffffffffffffffffffffffff163314806100ba575060015473ffffffffffffffffffffffffffffffffffffffff1633145b610125576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f6e6c79207573657231206f722075736572322063616e20776974686472617760448201526064015b60405180910390fd5b600060646002544761013791906102e0565b6101419190610344565b60008054604051929350909173ffffffffffffffffffffffffffffffffffffffff9091169083908381818185875af1925050503d80600081146101a0576040519150601f19603f3d011682016040523d82523d6000602084013e6101a5565b606091505b5050905080610210576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f6661696c656420746f2072656365697665206574686572000000000000000000604482015260640161011c565b60015460405173ffffffffffffffffffffffffffffffffffffffff909116904790600081818185875af1925050503d806000811461026a576040519150601f19603f3d011682016040523d82523d6000602084013e61026f565b606091505b505080915050806102dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f6661696c656420746f2072656365697665206574686572000000000000000000604482015260640161011c565b5050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561033f577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b500290565b60008261037a577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b50049056fea2646970667358221220048a60cde79514ef8072e05aec97f607a80722baca102553d1ea05233ceaa9aa64736f6c634300080d0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000a9e9b97cb9febd4cd2ac2ee8dbca07ce0606184e00000000000000000000000086622a3ee0eefb1df947661f29027f7a432d97710000000000000000000000000000000000000000000000000000000000000046

-----Decoded View---------------
Arg [0] : u1 (address): 0xA9e9B97CB9fEbd4CD2AC2eE8dbCa07Ce0606184E
Arg [1] : u2 (address): 0x86622A3ee0EeFB1dF947661f29027f7a432D9771
Arg [2] : fraction (uint256): 70

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000a9e9b97cb9febd4cd2ac2ee8dbca07ce0606184e
Arg [1] : 00000000000000000000000086622a3ee0eefb1df947661f29027f7a432d9771
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000046


Deployed Bytecode Sourcemap

60:912:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;440:30;;;448:10;188:74:1;;460:9:0;293:2:1;278:18;;271:34;440:30:0;;161:18:1;440:30:0;;;;;;;60:912;;;;;486:483;;;;;;;;;;;;;:::i;:::-;;;562:5;;;;548:10;:19;;:42;;-1:-1:-1;585:5:0;;;;571:10;:19;548:42;526:124;;;;;;;518:2:1;526:124:0;;;500:21:1;;;537:18;;;530:30;596:34;576:18;;;569:62;648:18;;526:124:0;;;;;;;;;661:15;721:3;704:13;;680:21;:37;;;;:::i;:::-;679:45;;;;:::i;:::-;736:12;754:5;;:30;;661:63;;-1:-1:-1;736:12:0;;754:5;;;;;661:63;;736:12;754:30;736:12;754:30;661:63;754:5;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;735:49;;;803:7;795:43;;;;;;;1755:2:1;795:43:0;;;1737:21:1;1794:2;1774:18;;;1767:30;1833:25;1813:18;;;1806:53;1876:18;;795:43:0;1553:347:1;795:43:0;863:5;;:44;;:5;;;;;881:21;;863:44;;;;881:21;863:5;:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;849:58;;;;;926:7;918:43;;;;;;;1755:2:1;918:43:0;;;1737:21:1;1794:2;1774:18;;;1767:30;1833:25;1813:18;;;1806:53;1876:18;;918:43:0;1553:347:1;918:43:0;515:454;;486:483::o;677:382:1:-;717:7;843:1;775:66;771:74;768:1;765:81;760:1;753:9;746:17;742:105;739:285;;;880:77;877:1;870:88;981:4;978:1;971:15;1009:4;1006:1;999:15;739:285;-1:-1:-1;1044:9:1;;677:382::o;1064:274::-;1104:1;1130;1120:189;;1165:77;1162:1;1155:88;1266:4;1263:1;1256:15;1294:4;1291:1;1284:15;1120:189;-1:-1:-1;1323:9:1;;1064:274::o

Swarm Source

ipfs://048a60cde79514ef8072e05aec97f607a80722baca102553d1ea05233ceaa9aa

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.