ETH Price: $1,980.37 (-4.57%)

Contract

0x2f485f33c09b02Bc8419cD8ae70E3B52294c01Ae
 

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
Split229501522025-07-19 2:04:23230 days ago1752890663IN
0x2f485f33...2294c01Ae
0 ETH0.000226153.08900628

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
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:
PaymentSplitter

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
istanbul EvmVersion, MIT license
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

interface IERC20 {
	function balanceOf(address account) external view returns (uint256);
	function transfer(address recipient, uint256 amount) external returns (bool);
}

contract PaymentSplitter {

	uint256 public constant MAX_SPLIT = 10000;

	address public immutable ADDRESS_1;
	address public immutable ADDRESS_2;

	uint256 public immutable SPLIT_1;
	uint256 public immutable SPLIT_2;


	constructor(address _address1, uint256 _split1, address _address2, uint256 _split2) {
		ADDRESS_1 = _address1;
		ADDRESS_2 = _address2;
		SPLIT_1 = _split1;
		SPLIT_2 = _split2;
	}

	function split(address _token) external {
		uint256 balance = IERC20(_token).balanceOf(address(this));
		uint256 split1 = balance * SPLIT_1 / MAX_SPLIT;
		uint256 split2 = balance * SPLIT_2 / MAX_SPLIT;
		IERC20(_token).transfer(ADDRESS_1, split1);
		IERC20(_token).transfer(ADDRESS_2, split2);
	}

	function splitETH() external {
		uint256 balance = address(this).balance;
		uint256 split1 = balance * SPLIT_1 / MAX_SPLIT;
		uint256 split2 = balance * SPLIT_2 / MAX_SPLIT;
		_sendETH(ADDRESS_1, split1);
		_sendETH(ADDRESS_2, split2);
	}

	function _sendETH(address _recipient, uint256 _amount) internal {
		(bool success, ) = _recipient.call{value: _amount}("");
		require(success, "ETH transfer failed");
	}

	receive() external payable {}
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_address1","type":"address"},{"internalType":"uint256","name":"_split1","type":"uint256"},{"internalType":"address","name":"_address2","type":"address"},{"internalType":"uint256","name":"_split2","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ADDRESS_1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ADDRESS_2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SPLIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SPLIT_1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SPLIT_2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"split","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"splitETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

61010060405234801561001157600080fd5b506040516107533803806107538339810160408190526100309161006a565b6001600160a01b03938416608052921660a05260c05260e0526100ae565b80516001600160a01b038116811461006557600080fd5b919050565b6000806000806080858703121561008057600080fd5b6100898561004e565b93506020850151925061009e6040860161004e565b6060959095015193969295505050565b60805160a05160c05160e05161063661011d600039600081816101a60152818161027a015261042101526000818160b40152818161023f01526103e601526000818161017201528181610358015261048101526000818160fb015281816102c0015261045701526106366000f3fe6080604052600436106100745760003560e01c8063b9840f271161004e578063b9840f2714610135578063d1aa25d01461014b578063de97536b14610160578063f07d813f1461019457600080fd5b806356fa47f014610080578063a60c1876146100a2578063b08da342146100e957600080fd5b3661007b57005b600080fd5b34801561008c57600080fd5b506100a061009b366004610548565b6101c8565b005b3480156100ae57600080fd5b506100d67f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b3480156100f557600080fd5b5061011d7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100e0565b34801561014157600080fd5b506100d661271081565b34801561015757600080fd5b506100a06103db565b34801561016c57600080fd5b5061011d7f000000000000000000000000000000000000000000000000000000000000000081565b3480156101a057600080fd5b506100d67f000000000000000000000000000000000000000000000000000000000000000081565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561020f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102339190610578565b905060006127106102647f000000000000000000000000000000000000000000000000000000000000000084610591565b61026e91906105bc565b9050600061271061029f7f000000000000000000000000000000000000000000000000000000000000000085610591565b6102a991906105bc565b60405163a9059cbb60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018590529192509085169063a9059cbb906044016020604051808303816000875af115801561031c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061034091906105de565b5060405163a9059cbb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820183905285169063a9059cbb906044016020604051808303816000875af11580156103b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103d491906105de565b5050505050565b47600061271061040b7f000000000000000000000000000000000000000000000000000000000000000084610591565b61041591906105bc565b905060006127106104467f000000000000000000000000000000000000000000000000000000000000000085610591565b61045091906105bc565b905061047c7f0000000000000000000000000000000000000000000000000000000000000000836104ab565b6104a67f0000000000000000000000000000000000000000000000000000000000000000826104ab565b505050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146104f8576040519150601f19603f3d011682016040523d82523d6000602084013e6104fd565b606091505b50509050806104a65760405162461bcd60e51b8152602060048201526013602482015272115512081d1c985b9cd9995c8819985a5b1959606a1b604482015260640160405180910390fd5b60006020828403121561055a57600080fd5b81356001600160a01b038116811461057157600080fd5b9392505050565b60006020828403121561058a57600080fd5b5051919050565b80820281158282048414176105b657634e487b7160e01b600052601160045260246000fd5b92915050565b6000826105d957634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156105f057600080fd5b8151801515811461057157600080fdfea2646970667358221220fc97e8dcd7b1efd4895322a050c56fc0b6ecde00d7ea9b8baa9f65263e79d9dc64736f6c63430008110033000000000000000000000000e30ed74c6633a1b0d34a71c50889f9f0fdb7d68a00000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000d8c8ba879f5e5d422e809347f4de5298079440fd0000000000000000000000000000000000000000000000000000000000002328

Deployed Bytecode

0x6080604052600436106100745760003560e01c8063b9840f271161004e578063b9840f2714610135578063d1aa25d01461014b578063de97536b14610160578063f07d813f1461019457600080fd5b806356fa47f014610080578063a60c1876146100a2578063b08da342146100e957600080fd5b3661007b57005b600080fd5b34801561008c57600080fd5b506100a061009b366004610548565b6101c8565b005b3480156100ae57600080fd5b506100d67f00000000000000000000000000000000000000000000000000000000000003e881565b6040519081526020015b60405180910390f35b3480156100f557600080fd5b5061011d7f000000000000000000000000e30ed74c6633a1b0d34a71c50889f9f0fdb7d68a81565b6040516001600160a01b0390911681526020016100e0565b34801561014157600080fd5b506100d661271081565b34801561015757600080fd5b506100a06103db565b34801561016c57600080fd5b5061011d7f000000000000000000000000d8c8ba879f5e5d422e809347f4de5298079440fd81565b3480156101a057600080fd5b506100d67f000000000000000000000000000000000000000000000000000000000000232881565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561020f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102339190610578565b905060006127106102647f00000000000000000000000000000000000000000000000000000000000003e884610591565b61026e91906105bc565b9050600061271061029f7f000000000000000000000000000000000000000000000000000000000000232885610591565b6102a991906105bc565b60405163a9059cbb60e01b81526001600160a01b037f000000000000000000000000e30ed74c6633a1b0d34a71c50889f9f0fdb7d68a81166004830152602482018590529192509085169063a9059cbb906044016020604051808303816000875af115801561031c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061034091906105de565b5060405163a9059cbb60e01b81526001600160a01b037f000000000000000000000000d8c8ba879f5e5d422e809347f4de5298079440fd811660048301526024820183905285169063a9059cbb906044016020604051808303816000875af11580156103b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103d491906105de565b5050505050565b47600061271061040b7f00000000000000000000000000000000000000000000000000000000000003e884610591565b61041591906105bc565b905060006127106104467f000000000000000000000000000000000000000000000000000000000000232885610591565b61045091906105bc565b905061047c7f000000000000000000000000e30ed74c6633a1b0d34a71c50889f9f0fdb7d68a836104ab565b6104a67f000000000000000000000000d8c8ba879f5e5d422e809347f4de5298079440fd826104ab565b505050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146104f8576040519150601f19603f3d011682016040523d82523d6000602084013e6104fd565b606091505b50509050806104a65760405162461bcd60e51b8152602060048201526013602482015272115512081d1c985b9cd9995c8819985a5b1959606a1b604482015260640160405180910390fd5b60006020828403121561055a57600080fd5b81356001600160a01b038116811461057157600080fd5b9392505050565b60006020828403121561058a57600080fd5b5051919050565b80820281158282048414176105b657634e487b7160e01b600052601160045260246000fd5b92915050565b6000826105d957634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156105f057600080fd5b8151801515811461057157600080fdfea2646970667358221220fc97e8dcd7b1efd4895322a050c56fc0b6ecde00d7ea9b8baa9f65263e79d9dc64736f6c63430008110033

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

000000000000000000000000e30ed74c6633a1b0d34a71c50889f9f0fdb7d68a00000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000d8c8ba879f5e5d422e809347f4de5298079440fd0000000000000000000000000000000000000000000000000000000000002328

-----Decoded View---------------
Arg [0] : _address1 (address): 0xe30ED74c6633a1B0D34a71c50889f9F0fDb7D68A
Arg [1] : _split1 (uint256): 1000
Arg [2] : _address2 (address): 0xD8C8bA879f5e5D422e809347F4DE5298079440fD
Arg [3] : _split2 (uint256): 9000

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000e30ed74c6633a1b0d34a71c50889f9f0fdb7d68a
Arg [1] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [2] : 000000000000000000000000d8c8ba879f5e5d422e809347f4de5298079440fd
Arg [3] : 0000000000000000000000000000000000000000000000000000000000002328


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