Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 10 from a total of 10 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Split ETH | 18539988 | 439 days ago | IN | 0 ETH | 0.00235087 | ||||
Split ETH | 18533230 | 440 days ago | IN | 0 ETH | 0.00166503 | ||||
Split ETH | 18526112 | 441 days ago | IN | 0 ETH | 0.00167346 | ||||
Split ETH | 18516080 | 442 days ago | IN | 0 ETH | 0.00166533 | ||||
Split ETH | 18514446 | 443 days ago | IN | 0 ETH | 0.00262269 | ||||
Split ETH | 18513664 | 443 days ago | IN | 0 ETH | 0.00265602 | ||||
Split ETH | 18513599 | 443 days ago | IN | 0 ETH | 0.00253643 | ||||
Transfer Ownersh... | 18511398 | 443 days ago | IN | 0 ETH | 0.00068852 | ||||
Split ETH | 18511371 | 443 days ago | IN | 0 ETH | 0.00199046 | ||||
Transfer | 18511367 | 443 days ago | IN | 0.1 ETH | 0.00051888 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
18539988 | 439 days ago | 0.23135392 ETH | ||||
18539988 | 439 days ago | 0.23135392 ETH | ||||
18539988 | 439 days ago | 1.38812354 ETH | ||||
18539238 | 439 days ago | 0.09217297 ETH | ||||
18539094 | 439 days ago | 0.11091806 ETH | ||||
18539017 | 439 days ago | 0.12119441 ETH | ||||
18538891 | 439 days ago | 0.14106587 ETH | ||||
18538234 | 439 days ago | 0.05991212 ETH | ||||
18537374 | 439 days ago | 0.06659105 ETH | ||||
18537071 | 439 days ago | 0.10045149 ETH | ||||
18536113 | 440 days ago | 0.29376385 ETH | ||||
18535588 | 440 days ago | 0.08428066 ETH | ||||
18535325 | 440 days ago | 0.11643291 ETH | ||||
18535002 | 440 days ago | 0.18371239 ETH | ||||
18534713 | 440 days ago | 0.07784735 ETH | ||||
18534560 | 440 days ago | 0.08088325 ETH | ||||
18534245 | 440 days ago | 0.09242854 ETH | ||||
18534038 | 440 days ago | 0.22917639 ETH | ||||
18533230 | 440 days ago | 0.34425149 ETH | ||||
18533230 | 440 days ago | 0.34425149 ETH | ||||
18533230 | 440 days ago | 2.06550894 ETH | ||||
18533002 | 440 days ago | 0.1305953 ETH | ||||
18531924 | 440 days ago | 0.14484915 ETH | ||||
18531259 | 440 days ago | 0.13705823 ETH | ||||
18531062 | 440 days ago | 0.12591793 ETH |
Loading...
Loading
Contract Name:
Cock_COOP_Splitter
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-11-06 */ // SPDX-License-Identifier: MIT pragma solidity 0.8.19; contract Cock_COOP_Splitter { address public owner; // Initialize ratios and wallet addresses as state variables uint256 public xbcCoopRatio; uint256 public bakaawRatio; uint256 public futureBirdsRatio; address payable public xbcCoopAddress; address payable public bakaawAddress; address payable public futureBirdsAddress; uint256 public constant MASTER_RATIO_DIVISOR = 1000; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); modifier onlyOwner() { require(owner == msg.sender, "Caller is not the owner."); _; } constructor() { owner = msg.sender; // Set initial hardcoded values xbcCoopRatio = 750; // Ratio for XBC Coop bakaawRatio = 125; // Ratio for Bakaaw futureBirdsRatio = 125; // Ratio for Future Birds xbcCoopAddress = payable(0x6eB5A3fE3A73f8FddCc05714285d14B9770437e0); // XBC Coop Address bakaawAddress = payable(0xE01c9dE5751b9f8EcE6F2D1B28B6444f0b0A3D14); // Bakaaw Address futureBirdsAddress = payable(0xE01c9dE5751b9f8EcE6F2D1B28B6444f0b0A3D14); // Future Birds Address } receive() external payable {} // Update the fee ratios function updateRatios( uint256 newBakaawRatio, uint256 newFutureBirdsRatio) public onlyOwner { uint256 totalRatio = xbcCoopRatio + newBakaawRatio + newFutureBirdsRatio; require(totalRatio == MASTER_RATIO_DIVISOR, "Total ratio must be 1000."); bakaawRatio = newBakaawRatio; futureBirdsRatio = newFutureBirdsRatio; } // Update the wallet addresses function updateWalletAddresses(address payable newBakaaw, address payable newFutureBirds) public onlyOwner { bakaawAddress = newBakaaw; futureBirdsAddress = newFutureBirds; } // Split ETH between XBC Coop, Bakaaw, and Future birds function splitETH() public { uint256 balance = address(this).balance; uint256 xbcCoopShare = (balance * xbcCoopRatio) / MASTER_RATIO_DIVISOR; uint256 bakaawShare = (balance * bakaawRatio) / MASTER_RATIO_DIVISOR; uint256 futureBirdsShare = balance - xbcCoopShare - bakaawShare; // Remainder to avoid rounding errors _safeTransfer(xbcCoopAddress, xbcCoopShare); _safeTransfer(bakaawAddress, bakaawShare); _safeTransfer(futureBirdsAddress, futureBirdsShare); } function _safeTransfer(address payable recipient, uint256 amount) private { (bool success, ) = recipient.call{value: amount, gas: 40000}(""); require(success, "Transfer failed"); } function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0), "New owner is the zero address"); emit OwnershipTransferred(owner, newOwner); owner = newOwner; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"MASTER_RATIO_DIVISOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bakaawAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bakaawRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"futureBirdsAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"futureBirdsRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"splitETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newBakaawRatio","type":"uint256"},{"internalType":"uint256","name":"newFutureBirdsRatio","type":"uint256"}],"name":"updateRatios","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newBakaaw","type":"address"},{"internalType":"address payable","name":"newFutureBirds","type":"address"}],"name":"updateWalletAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"xbcCoopAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"xbcCoopRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b50600080546001600160a01b031990811633179091556102ee600155607d6002819055600355600480548216736eb5a3fe3a73f8fddcc05714285d14b9770437e017905560058054821673e01c9de5751b9f8ece6f2d1b28b6444f0b0a3d14908117909155600680549092161790556106d28061008e6000396000f3fe6080604052600436106100ab5760003560e01c8063d1aa25d011610064578063d1aa25d014610190578063db433efa146101a5578063e70bc589146101c5578063f2fde38b146101db578063fa7cfb09146101fb578063fcf533a11461021157600080fd5b806338edd666146100b7578063535ffa8e146100f45780635747ca1a146101185780638da5cb5b14610138578063a8c0664214610158578063bd1e47041461016e57600080fd5b366100b257005b600080fd5b3480156100c357600080fd5b506006546100d7906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561010057600080fd5b5061010a60015481565b6040519081526020016100eb565b34801561012457600080fd5b506005546100d7906001600160a01b031681565b34801561014457600080fd5b506000546100d7906001600160a01b031681565b34801561016457600080fd5b5061010a60035481565b34801561017a57600080fd5b5061018e61018936600461056b565b610231565b005b34801561019c57600080fd5b5061018e610292565b3480156101b157600080fd5b5061018e6101c03660046105a4565b610335565b3480156101d157600080fd5b5061010a60025481565b3480156101e757600080fd5b5061018e6101f63660046105c6565b6103d9565b34801561020757600080fd5b5061010a6103e881565b34801561021d57600080fd5b506004546100d7906001600160a01b031681565b6000546001600160a01b031633146102645760405162461bcd60e51b815260040161025b906105ea565b60405180910390fd5b600580546001600160a01b039384166001600160a01b03199182161790915560068054929093169116179055565b60015447906000906103e8906102a89084610637565b6102b29190610654565b905060006103e8600254846102c79190610637565b6102d19190610654565b90506000816102e08486610676565b6102ea9190610676565b600454909150610303906001600160a01b0316846104b4565b600554610319906001600160a01b0316836104b4565b60065461032f906001600160a01b0316826104b4565b50505050565b6000546001600160a01b0316331461035f5760405162461bcd60e51b815260040161025b906105ea565b600081836001546103709190610689565b61037a9190610689565b90506103e881146103cd5760405162461bcd60e51b815260206004820152601960248201527f546f74616c20726174696f206d75737420626520313030302e00000000000000604482015260640161025b565b50600291909155600355565b6000546001600160a01b031633146104035760405162461bcd60e51b815260040161025b906105ea565b6001600160a01b0381166104595760405162461bcd60e51b815260206004820152601d60248201527f4e6577206f776e657220697320746865207a65726f2061646472657373000000604482015260640161025b565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000826001600160a01b031682619c4090604051600060405180830381858888f193505050503d8060008114610506576040519150601f19603f3d011682016040523d82523d6000602084013e61050b565b606091505b505090508061054e5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015260640161025b565b505050565b6001600160a01b038116811461056857600080fd5b50565b6000806040838503121561057e57600080fd5b823561058981610553565b9150602083013561059981610553565b809150509250929050565b600080604083850312156105b757600080fd5b50508035926020909101359150565b6000602082840312156105d857600080fd5b81356105e381610553565b9392505050565b60208082526018908201527f43616c6c6572206973206e6f7420746865206f776e65722e0000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761064e5761064e610621565b92915050565b60008261067157634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561064e5761064e610621565b8082018082111561064e5761064e61062156fea2646970667358221220c500291227107f476ce76f98d57172b957545f00fa77e70d5d9e5fd36cb3d59564736f6c63430008130033
Deployed Bytecode
0x6080604052600436106100ab5760003560e01c8063d1aa25d011610064578063d1aa25d014610190578063db433efa146101a5578063e70bc589146101c5578063f2fde38b146101db578063fa7cfb09146101fb578063fcf533a11461021157600080fd5b806338edd666146100b7578063535ffa8e146100f45780635747ca1a146101185780638da5cb5b14610138578063a8c0664214610158578063bd1e47041461016e57600080fd5b366100b257005b600080fd5b3480156100c357600080fd5b506006546100d7906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561010057600080fd5b5061010a60015481565b6040519081526020016100eb565b34801561012457600080fd5b506005546100d7906001600160a01b031681565b34801561014457600080fd5b506000546100d7906001600160a01b031681565b34801561016457600080fd5b5061010a60035481565b34801561017a57600080fd5b5061018e61018936600461056b565b610231565b005b34801561019c57600080fd5b5061018e610292565b3480156101b157600080fd5b5061018e6101c03660046105a4565b610335565b3480156101d157600080fd5b5061010a60025481565b3480156101e757600080fd5b5061018e6101f63660046105c6565b6103d9565b34801561020757600080fd5b5061010a6103e881565b34801561021d57600080fd5b506004546100d7906001600160a01b031681565b6000546001600160a01b031633146102645760405162461bcd60e51b815260040161025b906105ea565b60405180910390fd5b600580546001600160a01b039384166001600160a01b03199182161790915560068054929093169116179055565b60015447906000906103e8906102a89084610637565b6102b29190610654565b905060006103e8600254846102c79190610637565b6102d19190610654565b90506000816102e08486610676565b6102ea9190610676565b600454909150610303906001600160a01b0316846104b4565b600554610319906001600160a01b0316836104b4565b60065461032f906001600160a01b0316826104b4565b50505050565b6000546001600160a01b0316331461035f5760405162461bcd60e51b815260040161025b906105ea565b600081836001546103709190610689565b61037a9190610689565b90506103e881146103cd5760405162461bcd60e51b815260206004820152601960248201527f546f74616c20726174696f206d75737420626520313030302e00000000000000604482015260640161025b565b50600291909155600355565b6000546001600160a01b031633146104035760405162461bcd60e51b815260040161025b906105ea565b6001600160a01b0381166104595760405162461bcd60e51b815260206004820152601d60248201527f4e6577206f776e657220697320746865207a65726f2061646472657373000000604482015260640161025b565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000826001600160a01b031682619c4090604051600060405180830381858888f193505050503d8060008114610506576040519150601f19603f3d011682016040523d82523d6000602084013e61050b565b606091505b505090508061054e5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015260640161025b565b505050565b6001600160a01b038116811461056857600080fd5b50565b6000806040838503121561057e57600080fd5b823561058981610553565b9150602083013561059981610553565b809150509250929050565b600080604083850312156105b757600080fd5b50508035926020909101359150565b6000602082840312156105d857600080fd5b81356105e381610553565b9392505050565b60208082526018908201527f43616c6c6572206973206e6f7420746865206f776e65722e0000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761064e5761064e610621565b92915050565b60008261067157634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561064e5761064e610621565b8082018082111561064e5761064e61062156fea2646970667358221220c500291227107f476ce76f98d57172b957545f00fa77e70d5d9e5fd36cb3d59564736f6c63430008130033
Deployed Bytecode Sourcemap
60:2925:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;385:41;;;;;;;;;;-1:-1:-1;385:41:0;;;;-1:-1:-1;;;;;385:41:0;;;;;;-1:-1:-1;;;;;194:32:1;;;176:51;;164:2;149:18;385:41:0;;;;;;;;191:27;;;;;;;;;;;;;;;;;;;384:25:1;;;372:2;357:18;191:27:0;238:177:1;342:36:0;;;;;;;;;;-1:-1:-1;342:36:0;;;;-1:-1:-1;;;;;342:36:0;;;95:20;;;;;;;;;;-1:-1:-1;95:20:0;;;;-1:-1:-1;;;;;95:20:0;;;258:31;;;;;;;;;;;;;;;;1741:197;;;;;;;;;;-1:-1:-1;1741:197:0;;;;;:::i;:::-;;:::i;:::-;;2007:529;;;;;;;;;;;;;:::i;1332:365::-;;;;;;;;;;-1:-1:-1;1332:365:0;;;;;:::i;:::-;;:::i;225:26::-;;;;;;;;;;;;;;;;2755:225;;;;;;;;;;-1:-1:-1;2755:225:0;;;;;:::i;:::-;;:::i;435:51::-;;;;;;;;;;;;482:4;435:51;;298:37;;;;;;;;;;-1:-1:-1;298:37:0;;;;-1:-1:-1;;;;;298:37:0;;;1741:197;627:5;;-1:-1:-1;;;;;627:5:0;636:10;627:19;619:56;;;;-1:-1:-1;;;619:56:0;;;;;;;:::i;:::-;;;;;;;;;1859:13:::1;:25:::0;;-1:-1:-1;;;;;1859:25:0;;::::1;-1:-1:-1::0;;;;;;1859:25:0;;::::1;;::::0;;;1895:18:::1;:35:::0;;;;;::::1;::::0;::::1;;::::0;;1741:197::o;2007:529::-;2131:12;;2063:21;;2045:15;;482:4;;2121:22;;2063:21;2121:22;:::i;:::-;2120:47;;;;:::i;:::-;2097:70;;2178:19;482:4;2211:11;;2201:7;:21;;;;:::i;:::-;2200:46;;;;:::i;:::-;2178:68;-1:-1:-1;2257:24:0;2178:68;2284:22;2294:12;2284:7;:22;:::i;:::-;:36;;;;:::i;:::-;2385:14;;2257:63;;-1:-1:-1;2371:43:0;;-1:-1:-1;;;;;2385:14:0;2401:12;2371:13;:43::i;:::-;2439:13;;2425:41;;-1:-1:-1;;;;;2439:13:0;2454:11;2425:13;:41::i;:::-;2491:18;;2477:51;;-1:-1:-1;;;;;2491:18:0;2511:16;2477:13;:51::i;:::-;2034:502;;;;2007:529::o;1332:365::-;627:5;;-1:-1:-1;;;;;627:5:0;636:10;627:19;619:56;;;;-1:-1:-1;;;619:56:0;;;;;;;:::i;:::-;1436:18:::1;1489:19;1472:14;1457:12;;:29;;;;:::i;:::-;:51;;;;:::i;:::-;1436:72;;482:4;1527:10;:34;1519:72;;;::::0;-1:-1:-1;;;1519:72:0;;3055:2:1;1519:72:0::1;::::0;::::1;3037:21:1::0;3094:2;3074:18;;;3067:30;3133:27;3113:18;;;3106:55;3178:18;;1519:72:0::1;2853:349:1::0;1519:72:0::1;-1:-1:-1::0;1612:11:0::1;:28:::0;;;;1651:16:::1;:38:::0;1332:365::o;2755:225::-;627:5;;-1:-1:-1;;;;;627:5:0;636:10;627:19;619:56;;;;-1:-1:-1;;;619:56:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;2836:22:0;::::1;2828:64;;;::::0;-1:-1:-1;;;2828:64:0;;3409:2:1;2828:64:0::1;::::0;::::1;3391:21:1::0;3448:2;3428:18;;;3421:30;3487:31;3467:18;;;3460:59;3536:18;;2828:64:0::1;3207:353:1::0;2828:64:0::1;2929:5;::::0;;2908:37:::1;::::0;-1:-1:-1;;;;;2908:37:0;;::::1;::::0;2929:5;::::1;::::0;2908:37:::1;::::0;::::1;2956:5;:16:::0;;-1:-1:-1;;;;;;2956:16:0::1;-1:-1:-1::0;;;;;2956:16:0;;;::::1;::::0;;;::::1;::::0;;2755:225::o;2544:203::-;2630:12;2648:9;-1:-1:-1;;;;;2648:14:0;2670:6;2683:5;2648:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2629:64;;;2712:7;2704:35;;;;-1:-1:-1;;;2704:35:0;;3977:2:1;2704:35:0;;;3959:21:1;4016:2;3996:18;;;3989:30;-1:-1:-1;;;4035:18:1;;;4028:45;4090:18;;2704:35:0;3775:339:1;2704:35:0;2618:129;2544:203;;:::o;628:139:1:-;-1:-1:-1;;;;;711:31:1;;701:42;;691:70;;757:1;754;747:12;691:70;628:139;:::o;772:420::-;856:6;864;917:2;905:9;896:7;892:23;888:32;885:52;;;933:1;930;923:12;885:52;972:9;959:23;991:39;1024:5;991:39;:::i;:::-;1049:5;-1:-1:-1;1106:2:1;1091:18;;1078:32;1119:41;1078:32;1119:41;:::i;:::-;1179:7;1169:17;;;772:420;;;;;:::o;1197:248::-;1265:6;1273;1326:2;1314:9;1305:7;1301:23;1297:32;1294:52;;;1342:1;1339;1332:12;1294:52;-1:-1:-1;;1365:23:1;;;1435:2;1420:18;;;1407:32;;-1:-1:-1;1197:248:1:o;1450:255::-;1509:6;1562:2;1550:9;1541:7;1537:23;1533:32;1530:52;;;1578:1;1575;1568:12;1530:52;1617:9;1604:23;1636:39;1669:5;1636:39;:::i;:::-;1694:5;1450:255;-1:-1:-1;;;1450:255:1:o;1710:348::-;1912:2;1894:21;;;1951:2;1931:18;;;1924:30;1990:26;1985:2;1970:18;;1963:54;2049:2;2034:18;;1710:348::o;2063:127::-;2124:10;2119:3;2115:20;2112:1;2105:31;2155:4;2152:1;2145:15;2179:4;2176:1;2169:15;2195:168;2268:9;;;2299;;2316:15;;;2310:22;;2296:37;2286:71;;2337:18;;:::i;:::-;2195:168;;;;:::o;2368:217::-;2408:1;2434;2424:132;;2478:10;2473:3;2469:20;2466:1;2459:31;2513:4;2510:1;2503:15;2541:4;2538:1;2531:15;2424:132;-1:-1:-1;2570:9:1;;2368:217::o;2590:128::-;2657:9;;;2678:11;;;2675:37;;;2692:18;;:::i;2723:125::-;2788:9;;;2809:10;;;2806:36;;;2822:18;;:::i
Swarm Source
ipfs://c500291227107f476ce76f98d57172b957545f00fa77e70d5d9e5fd36cb3d595
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.