ETH Price: $2,148.30 (-0.92%)

Contract

0x56790ef8bE85c2905bb4e0C60a4E632b7Bb6652f
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Address179862492023-08-24 18:08:23944 days ago1692900503IN
0x56790ef8...b7Bb6652f
0 ETH0.0009759336.24108917

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer184577782023-10-29 18:59:59878 days ago1698605999
0x56790ef8...b7Bb6652f
0.00726448 ETH
Transfer184577782023-10-29 18:59:59878 days ago1698605999
0x56790ef8...b7Bb6652f
0.02179345 ETH
Transfer184577782023-10-29 18:59:59878 days ago1698605999
0x56790ef8...b7Bb6652f
0.02905794 ETH
Transfer183570792023-10-15 16:50:23892 days ago1697388623
0x56790ef8...b7Bb6652f
0.00810464 ETH
Transfer183570792023-10-15 16:50:23892 days ago1697388623
0x56790ef8...b7Bb6652f
0.02431393 ETH
Transfer183570792023-10-15 16:50:23892 days ago1697388623
0x56790ef8...b7Bb6652f
0.03241858 ETH
Transfer182809292023-10-05 1:07:59903 days ago1696468079
0x56790ef8...b7Bb6652f
0.00997872 ETH
Transfer182809292023-10-05 1:07:59903 days ago1696468079
0x56790ef8...b7Bb6652f
0.02993618 ETH
Transfer182809292023-10-05 1:07:59903 days ago1696468079
0x56790ef8...b7Bb6652f
0.03991491 ETH
Transfer181735912023-09-20 0:40:23918 days ago1695170423
0x56790ef8...b7Bb6652f
0.01187741 ETH
Transfer181735912023-09-20 0:40:23918 days ago1695170423
0x56790ef8...b7Bb6652f
0.03563224 ETH
Transfer181735912023-09-20 0:40:23918 days ago1695170423
0x56790ef8...b7Bb6652f
0.04750966 ETH
Transfer181652462023-09-18 20:37:23919 days ago1695069443
0x56790ef8...b7Bb6652f
0.00979463 ETH
Transfer181652462023-09-18 20:37:23919 days ago1695069443
0x56790ef8...b7Bb6652f
0.02938389 ETH
Transfer181652462023-09-18 20:37:23919 days ago1695069443
0x56790ef8...b7Bb6652f
0.03917852 ETH
Transfer180907662023-09-08 9:20:35929 days ago1694164835
0x56790ef8...b7Bb6652f
0.02057396 ETH
Transfer180907662023-09-08 9:20:35929 days ago1694164835
0x56790ef8...b7Bb6652f
0.06172189 ETH
Transfer180907662023-09-08 9:20:35929 days ago1694164835
0x56790ef8...b7Bb6652f
0.08229585 ETH
Transfer180773522023-09-06 12:17:59931 days ago1694002679
0x56790ef8...b7Bb6652f
0.01439719 ETH
Transfer180773522023-09-06 12:17:59931 days ago1694002679
0x56790ef8...b7Bb6652f
0.04319159 ETH
Transfer180773522023-09-06 12:17:59931 days ago1694002679
0x56790ef8...b7Bb6652f
0.05758878 ETH
Transfer180456262023-09-02 1:40:47936 days ago1693618847
0x56790ef8...b7Bb6652f
0.01144868 ETH
Transfer180456262023-09-02 1:40:47936 days ago1693618847
0x56790ef8...b7Bb6652f
0.03434604 ETH
Transfer180456262023-09-02 1:40:47936 days ago1693618847
0x56790ef8...b7Bb6652f
0.04579472 ETH
Transfer180241292023-08-30 1:25:23939 days ago1693358723
0x56790ef8...b7Bb6652f
0.01328821 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Splitter

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract Splitter {
    uint256 public constant PRECISION = 100_00;

    // Addresses for distribution
    address public ZKitty;
    address public ClipFinance;

    // Proportions
    uint256 public currentZKittyProportion;
    uint256 public currentClipFinanceProportion;

    // For multi-signature proportion change
    uint256 public customZKittyProportion;
    uint256 public customClipFinanceProportion;

    // Basic Multisig
    bool public ZKittyAgree;
    bool public ClipFinanceAgree;

    constructor(
        address _ZKitty,
        address _ClipFinance,
        uint256 _ZKittyProportion
    ) {
        ZKitty = _ZKitty;
        ClipFinance = _ClipFinance;

        currentZKittyProportion = _ZKittyProportion;
        currentClipFinanceProportion = PRECISION - _ZKittyProportion;
    }

    function setAddress(address _newAddress) external {
        if (msg.sender == ZKitty) {
            ZKitty = _newAddress;
        } else if (msg.sender == ClipFinance) {
            ClipFinance = _newAddress;
        } else {
            revert("Not authorized");
        }
    }

    function activatePhaseTwo() external {
        require(
            msg.sender == ZKitty || msg.sender == ClipFinance,
            "Not Allowed!"
        );
        currentZKittyProportion = 6000;
        currentClipFinanceProportion = 4000;
    }

    function setCustomFee(
        uint256 _customZKittyProportion,
        uint256 _customClipFinanceProportion
    ) external {
        require(
            msg.sender == ZKitty || msg.sender == ClipFinance,
            "Not Allowed!"
        );
        require(
            _customZKittyProportion + _customClipFinanceProportion <= PRECISION,
            "Invalid proportion"
        );
        ZKittyAgree = false;
        ClipFinanceAgree = false;
        customZKittyProportion = _customZKittyProportion;
        customClipFinanceProportion = _customClipFinanceProportion;
    }

    function approveChange() external {
        if (msg.sender == ZKitty) {
            ZKittyAgree = true;
        } else if (msg.sender == ClipFinance) {
            ClipFinanceAgree = true;
        } else {
            revert("Not authorized");
        }
        if (ZKittyAgree == true && ClipFinanceAgree == true) {
            ZKittyAgree = false;
            ClipFinanceAgree = false;
            currentZKittyProportion = customZKittyProportion;
            customClipFinanceProportion = customClipFinanceProportion;
        }
    }

    function distribute() public {
        uint256 balance = address(this).balance;

        uint256 ZKittyAmount = (balance * currentZKittyProportion) / PRECISION;
        uint256 ClipFinanceAmount = balance - ZKittyAmount;

        // Sending to ZKitty
        (bool successZKitty, ) = ZKitty.call{value: ZKittyAmount}("");
        require(successZKitty, "Transfer to ZKitty failed");

        // Sending to ClipFinance
        (bool successClipFinance, ) = ClipFinance.call{
            value: ClipFinanceAmount
        }("");
        require(successClipFinance, "Transfer to ClipFinance failed");
    }

    // Fallback and receive functions
    fallback() external payable {
        distribute();
    }

    receive() external payable {
        distribute();
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_ZKitty","type":"address"},{"internalType":"address","name":"_ClipFinance","type":"address"},{"internalType":"uint256","name":"_ZKittyProportion","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"ClipFinance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ClipFinanceAgree","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ZKitty","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ZKittyAgree","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activatePhaseTwo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"approveChange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentClipFinanceProportion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentZKittyProportion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"customClipFinanceProportion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"customZKittyProportion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"setAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_customZKittyProportion","type":"uint256"},{"internalType":"uint256","name":"_customClipFinanceProportion","type":"uint256"}],"name":"setCustomFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b5060405161088038038061088083398101604081905261002f91610098565b600080546001600160a01b038086166001600160a01b03199283161790925560018054928516929091169190911790556002819055610070816127106100d3565b600355506100f6915050565b80516001600160a01b038116811461009357600080fd5b919050565b6000806000606084860312156100ac578283fd5b6100b58461007c565b92506100c36020850161007c565b9150604084015190509250925092565b6000828210156100f157634e487b7160e01b81526011600452602481fd5b500390565b61077b806101056000396000f3fe6080604052600436106100e15760003560e01c8063ba801c2e1161007f578063dc190fbd11610059578063dc190fbd1461022e578063e30081a01461024e578063e4fc6b6d1461026e578063fd87781414610283576100f0565b8063ba801c2e146101c7578063ce73fee9146101e1578063daf0551214610219576100f0565b806333a8e3d6116100bb57806333a8e3d614610156578063341557d01461016c57806366b0f72414610182578063aaf5eb68146101b1576100f0565b80630fdb1cab146100f8578063142e1f8f146101185780632d1dd4771461012d576100f0565b366100f0576100ee610299565b005b6100ee610299565b34801561010457600080fd5b506100ee6101133660046106a0565b61041e565b34801561012457600080fd5b506100ee6104e2565b34801561013957600080fd5b5061014360055481565b6040519081526020015b60405180910390f35b34801561016257600080fd5b5061014360025481565b34801561017857600080fd5b5061014360045481565b34801561018e57600080fd5b506006546101a190610100900460ff1681565b604051901515815260200161014d565b3480156101bd57600080fd5b5061014361271081565b3480156101d357600080fd5b506006546101a19060ff1681565b3480156101ed57600080fd5b50600054610201906001600160a01b031681565b6040516001600160a01b03909116815260200161014d565b34801561022557600080fd5b506100ee61054e565b34801561023a57600080fd5b50600154610201906001600160a01b031681565b34801561025a57600080fd5b506100ee610269366004610672565b610610565b34801561027a57600080fd5b506100ee610299565b34801561028f57600080fd5b5061014360035481565b6002544790600090612710906102af90846106f9565b6102b991906106d9565b905060006102c78284610718565b6000805460405192935090916001600160a01b039091169084908381818185875af1925050503d8060008114610319576040519150601f19603f3d011682016040523d82523d6000602084013e61031e565b606091505b50509050806103745760405162461bcd60e51b815260206004820152601960248201527f5472616e7366657220746f205a4b69747479206661696c65640000000000000060448201526064015b60405180910390fd5b6001546040516000916001600160a01b03169084908381818185875af1925050503d80600081146103c1576040519150601f19603f3d011682016040523d82523d6000602084013e6103c6565b606091505b50509050806104175760405162461bcd60e51b815260206004820152601e60248201527f5472616e7366657220746f20436c697046696e616e6365206661696c65640000604482015260640161036b565b5050505050565b6000546001600160a01b031633148061044157506001546001600160a01b031633145b61047c5760405162461bcd60e51b815260206004820152600c60248201526b4e6f7420416c6c6f7765642160a01b604482015260640161036b565b61271061048982846106c1565b11156104cc5760405162461bcd60e51b815260206004820152601260248201527124b73b30b634b210383937b837b93a34b7b760711b604482015260640161036b565b6006805461ffff19169055600491909155600555565b6000546001600160a01b031633148061050557506001546001600160a01b031633145b6105405760405162461bcd60e51b815260206004820152600c60248201526b4e6f7420416c6c6f7765642160a01b604482015260640161036b565b611770600255610fa0600355565b6000546001600160a01b0316331415610573576006805460ff191660011790556105d3565b6001546001600160a01b031633141561059a576006805461ff0019166101001790556105d3565b60405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015260640161036b565b60065460ff16151560011480156105f7575060065460ff6101009091041615156001145b1561060e576006805461ffff191690556004546002555b565b6000546001600160a01b031633141561064157600080546001600160a01b0319166001600160a01b03831617905550565b6001546001600160a01b031633141561059a57600180546001600160a01b0319166001600160a01b03831617905550565b600060208284031215610683578081fd5b81356001600160a01b0381168114610699578182fd5b9392505050565b600080604083850312156106b2578081fd5b50508035926020909101359150565b600082198211156106d4576106d461072f565b500190565b6000826106f457634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156107135761071361072f565b500290565b60008282101561072a5761072a61072f565b500390565b634e487b7160e01b600052601160045260246000fdfea264697066735822122065402a521edefffb4ae3d9c72e0b2bd5e4509e1a0a05bf255309cc0df332354a64736f6c63430008040033000000000000000000000000cad3e8a8a2d3959a90674ada99feade204826202000000000000000000000000dc12ea64fbe3a96a4ac47113f63e42d6de162a770000000000000000000000000000000000000000000000000000000000001d4c

Deployed Bytecode

0x6080604052600436106100e15760003560e01c8063ba801c2e1161007f578063dc190fbd11610059578063dc190fbd1461022e578063e30081a01461024e578063e4fc6b6d1461026e578063fd87781414610283576100f0565b8063ba801c2e146101c7578063ce73fee9146101e1578063daf0551214610219576100f0565b806333a8e3d6116100bb57806333a8e3d614610156578063341557d01461016c57806366b0f72414610182578063aaf5eb68146101b1576100f0565b80630fdb1cab146100f8578063142e1f8f146101185780632d1dd4771461012d576100f0565b366100f0576100ee610299565b005b6100ee610299565b34801561010457600080fd5b506100ee6101133660046106a0565b61041e565b34801561012457600080fd5b506100ee6104e2565b34801561013957600080fd5b5061014360055481565b6040519081526020015b60405180910390f35b34801561016257600080fd5b5061014360025481565b34801561017857600080fd5b5061014360045481565b34801561018e57600080fd5b506006546101a190610100900460ff1681565b604051901515815260200161014d565b3480156101bd57600080fd5b5061014361271081565b3480156101d357600080fd5b506006546101a19060ff1681565b3480156101ed57600080fd5b50600054610201906001600160a01b031681565b6040516001600160a01b03909116815260200161014d565b34801561022557600080fd5b506100ee61054e565b34801561023a57600080fd5b50600154610201906001600160a01b031681565b34801561025a57600080fd5b506100ee610269366004610672565b610610565b34801561027a57600080fd5b506100ee610299565b34801561028f57600080fd5b5061014360035481565b6002544790600090612710906102af90846106f9565b6102b991906106d9565b905060006102c78284610718565b6000805460405192935090916001600160a01b039091169084908381818185875af1925050503d8060008114610319576040519150601f19603f3d011682016040523d82523d6000602084013e61031e565b606091505b50509050806103745760405162461bcd60e51b815260206004820152601960248201527f5472616e7366657220746f205a4b69747479206661696c65640000000000000060448201526064015b60405180910390fd5b6001546040516000916001600160a01b03169084908381818185875af1925050503d80600081146103c1576040519150601f19603f3d011682016040523d82523d6000602084013e6103c6565b606091505b50509050806104175760405162461bcd60e51b815260206004820152601e60248201527f5472616e7366657220746f20436c697046696e616e6365206661696c65640000604482015260640161036b565b5050505050565b6000546001600160a01b031633148061044157506001546001600160a01b031633145b61047c5760405162461bcd60e51b815260206004820152600c60248201526b4e6f7420416c6c6f7765642160a01b604482015260640161036b565b61271061048982846106c1565b11156104cc5760405162461bcd60e51b815260206004820152601260248201527124b73b30b634b210383937b837b93a34b7b760711b604482015260640161036b565b6006805461ffff19169055600491909155600555565b6000546001600160a01b031633148061050557506001546001600160a01b031633145b6105405760405162461bcd60e51b815260206004820152600c60248201526b4e6f7420416c6c6f7765642160a01b604482015260640161036b565b611770600255610fa0600355565b6000546001600160a01b0316331415610573576006805460ff191660011790556105d3565b6001546001600160a01b031633141561059a576006805461ff0019166101001790556105d3565b60405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015260640161036b565b60065460ff16151560011480156105f7575060065460ff6101009091041615156001145b1561060e576006805461ffff191690556004546002555b565b6000546001600160a01b031633141561064157600080546001600160a01b0319166001600160a01b03831617905550565b6001546001600160a01b031633141561059a57600180546001600160a01b0319166001600160a01b03831617905550565b600060208284031215610683578081fd5b81356001600160a01b0381168114610699578182fd5b9392505050565b600080604083850312156106b2578081fd5b50508035926020909101359150565b600082198211156106d4576106d461072f565b500190565b6000826106f457634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156107135761071361072f565b500290565b60008282101561072a5761072a61072f565b500390565b634e487b7160e01b600052601160045260246000fdfea264697066735822122065402a521edefffb4ae3d9c72e0b2bd5e4509e1a0a05bf255309cc0df332354a64736f6c63430008040033

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

000000000000000000000000cad3e8a8a2d3959a90674ada99feade204826202000000000000000000000000dc12ea64fbe3a96a4ac47113f63e42d6de162a770000000000000000000000000000000000000000000000000000000000001d4c

-----Decoded View---------------
Arg [0] : _ZKitty (address): 0xcAD3e8A8A2D3959a90674AdA99feADE204826202
Arg [1] : _ClipFinance (address): 0xdC12ea64fbe3A96a4AC47113F63E42d6de162A77
Arg [2] : _ZKittyProportion (uint256): 7500

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000cad3e8a8a2d3959a90674ada99feade204826202
Arg [1] : 000000000000000000000000dc12ea64fbe3a96a4ac47113f63e42d6de162a77
Arg [2] : 0000000000000000000000000000000000000000000000000000000000001d4c


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.