More Info
Private Name Tags
ContractCreator
Latest 7 from a total of 7 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Distribute | 16356618 | 631 days ago | IN | 0 ETH | 0.00101749 | ||||
Distribute | 16086869 | 669 days ago | IN | 0 ETH | 0.00081207 | ||||
Distribute | 16078793 | 670 days ago | IN | 0 ETH | 0.00071165 | ||||
Distribute | 15956965 | 687 days ago | IN | 0 ETH | 0.0008486 | ||||
Distribute | 15904477 | 694 days ago | IN | 0 ETH | 0.0019395 | ||||
Transfer | 15904472 | 694 days ago | IN | 0.0001 ETH | 0.00031122 | ||||
0x60806040 | 15904464 | 694 days ago | IN | 0 ETH | 0.00520575 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
16565917 | 602 days ago | 0.000055 ETH | ||||
16356618 | 631 days ago | 0.1358875 ETH | ||||
16356618 | 631 days ago | 0.1358875 ETH | ||||
16356618 | 631 days ago | 0.1358875 ETH | ||||
16356618 | 631 days ago | 0.1358875 ETH | ||||
16149776 | 660 days ago | 0.00045 ETH | ||||
16142269 | 661 days ago | 0.001285 ETH | ||||
16142233 | 661 days ago | 0.045 ETH | ||||
16141453 | 661 days ago | 0.0005 ETH | ||||
16114511 | 665 days ago | 0.001 ETH | ||||
16103738 | 666 days ago | 0.02 ETH | ||||
16095118 | 668 days ago | 0.005 ETH | ||||
16094945 | 668 days ago | 0.0004 ETH | ||||
16094906 | 668 days ago | 0.02 ETH | ||||
16094851 | 668 days ago | 0.005 ETH | ||||
16094847 | 668 days ago | 0.0265 ETH | ||||
16094838 | 668 days ago | 0.01 ETH | ||||
16094837 | 668 days ago | 0.01 ETH | ||||
16094835 | 668 days ago | 0.02 ETH | ||||
16094831 | 668 days ago | 0.02 ETH | ||||
16094825 | 668 days ago | 0.05 ETH | ||||
16094822 | 668 days ago | 0.02 ETH | ||||
16094820 | 668 days ago | 0.04 ETH | ||||
16094815 | 668 days ago | 0.04 ETH | ||||
16094146 | 668 days ago | 0.0265 ETH |
Loading...
Loading
Contract Name:
SimplePaymentSplitter
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-11-05 */ //SPDX-License-Identifier: MIT License pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval( address indexed owner, address indexed spender, uint256 value ); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) contract SimplePaymentSplitter { address payable gitcoinAddress = payable(0xde21F729137C5Af1b01d73aF1dC21eFfa2B8a0d6); address payable owner2 = payable(0x69c9F10c96B25fbB6Ad036CF8e5b578000b5565f); address payable owner3 = payable(0xB9C9a5f66DF622Fa2242e33Bb23d8c7Da964b2Cb); address payable owner4 = payable(0x0a17A826E7488daf0bfAF4D43de9E1DEC6a014f9); function distribute() public { uint256 amount = address(this).balance / 4; (bool success, ) = gitcoinAddress.call{value: amount}(""); require(success, "Gitcoin issue"); owner2.transfer(amount); owner3.transfer(amount); owner4.transfer(amount); } // Allows distribution of weth or any erc20 owned by this contract function distributeERC20(address erc20ContractAddress) public { IERC20 TokenContract = IERC20(erc20ContractAddress); uint256 amount = TokenContract.balanceOf(address(this)) / 4; TokenContract.transfer(gitcoinAddress, amount); TokenContract.transfer(owner2, amount); TokenContract.transfer(owner3, amount); TokenContract.transfer(owner4, amount); } // Receive any ether sent to the contract. receive() external payable {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"name":"distribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc20ContractAddress","type":"address"}],"name":"distributeERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052600080546001600160a01b031990811673de21f729137c5af1b01d73af1dc21effa2b8a0d6179091556001805482167369c9f10c96b25fbb6ad036cf8e5b578000b5565f17905560028054821673b9c9a5f66df622fa2242e33bb23d8c7da964b2cb17905560038054909116730a17a826e7488daf0bfaf4d43de9e1dec6a014f917905534801561009457600080fd5b506104f4806100a46000396000f3fe60806040526004361061002d5760003560e01c8063bce5826914610039578063e4fc6b6d1461005b57600080fd5b3661003457005b600080fd5b34801561004557600080fd5b50610059610054366004610431565b610070565b005b34801561006757600080fd5b506100596102d3565b6040516370a0823160e01b8152306004808301919091528291600091906001600160a01b038416906370a0823190602401602060405180830381865afa1580156100be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e29190610461565b6100ec919061047a565b60005460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810183905291925083169063a9059cbb906044016020604051808303816000875af1158015610141573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610165919061049c565b5060015460405163a9059cbb60e01b81526001600160a01b039182166004820152602481018390529083169063a9059cbb906044016020604051808303816000875af11580156101b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101dd919061049c565b5060025460405163a9059cbb60e01b81526001600160a01b039182166004820152602481018390529083169063a9059cbb906044016020604051808303816000875af1158015610231573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610255919061049c565b5060035460405163a9059cbb60e01b81526001600160a01b039182166004820152602481018390529083169063a9059cbb906044016020604051808303816000875af11580156102a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102cd919061049c565b50505050565b60006102e060044761047a565b6000805460405192935090916001600160a01b039091169083908381818185875af1925050503d8060008114610332576040519150601f19603f3d011682016040523d82523d6000602084013e610337565b606091505b505090508061037c5760405162461bcd60e51b815260206004820152600d60248201526c476974636f696e20697373756560981b604482015260640160405180910390fd5b6001546040516001600160a01b039091169083156108fc029084906000818181858888f193505050501580156103b6573d6000803e3d6000fd5b506002546040516001600160a01b039091169083156108fc029084906000818181858888f193505050501580156103f1573d6000803e3d6000fd5b506003546040516001600160a01b039091169083156108fc029084906000818181858888f1935050505015801561042c573d6000803e3d6000fd5b505050565b60006020828403121561044357600080fd5b81356001600160a01b038116811461045a57600080fd5b9392505050565b60006020828403121561047357600080fd5b5051919050565b60008261049757634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156104ae57600080fd5b8151801515811461045a57600080fdfea2646970667358221220020232a76a922d014424ec5c0fa86c1931c36097952b6c81761fb189668c0f6164736f6c63430008110033
Deployed Bytecode
0x60806040526004361061002d5760003560e01c8063bce5826914610039578063e4fc6b6d1461005b57600080fd5b3661003457005b600080fd5b34801561004557600080fd5b50610059610054366004610431565b610070565b005b34801561006757600080fd5b506100596102d3565b6040516370a0823160e01b8152306004808301919091528291600091906001600160a01b038416906370a0823190602401602060405180830381865afa1580156100be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e29190610461565b6100ec919061047a565b60005460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810183905291925083169063a9059cbb906044016020604051808303816000875af1158015610141573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610165919061049c565b5060015460405163a9059cbb60e01b81526001600160a01b039182166004820152602481018390529083169063a9059cbb906044016020604051808303816000875af11580156101b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101dd919061049c565b5060025460405163a9059cbb60e01b81526001600160a01b039182166004820152602481018390529083169063a9059cbb906044016020604051808303816000875af1158015610231573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610255919061049c565b5060035460405163a9059cbb60e01b81526001600160a01b039182166004820152602481018390529083169063a9059cbb906044016020604051808303816000875af11580156102a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102cd919061049c565b50505050565b60006102e060044761047a565b6000805460405192935090916001600160a01b039091169083908381818185875af1925050503d8060008114610332576040519150601f19603f3d011682016040523d82523d6000602084013e610337565b606091505b505090508061037c5760405162461bcd60e51b815260206004820152600d60248201526c476974636f696e20697373756560981b604482015260640160405180910390fd5b6001546040516001600160a01b039091169083156108fc029084906000818181858888f193505050501580156103b6573d6000803e3d6000fd5b506002546040516001600160a01b039091169083156108fc029084906000818181858888f193505050501580156103f1573d6000803e3d6000fd5b506003546040516001600160a01b039091169083156108fc029084906000818181858888f1935050505015801561042c573d6000803e3d6000fd5b505050565b60006020828403121561044357600080fd5b81356001600160a01b038116811461045a57600080fd5b9392505050565b60006020828403121561047357600080fd5b5051919050565b60008261049757634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156104ae57600080fd5b8151801515811461045a57600080fdfea2646970667358221220020232a76a922d014424ec5c0fa86c1931c36097952b6c81761fb189668c0f6164736f6c63430008110033
Deployed Bytecode Sourcemap
3056:1295:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3853:410;;;;;;;;;;-1:-1:-1;3853:410:0;;;;;:::i;:::-;;:::i;:::-;;3465:306;;;;;;;;;;;;;:::i;3853:410::-;4007:38;;-1:-1:-1;;;4007:38:0;;4039:4;4048:1;4007:38;;;451:51:1;;;;3958:20:0;;3928;;4048:1;-1:-1:-1;;;;;4007:23:0;;;;;424:18:1;;4007:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:42;;;;:::i;:::-;4085:14;;4062:46;;-1:-1:-1;;;4062:46:0;;-1:-1:-1;;;;;4085:14:0;;;4062:46;;;1106:51:1;1173:18;;;1166:34;;;3990:59:0;;-1:-1:-1;4062:22:0;;;;;1079:18:1;;4062:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;4142:6:0;;4119:38;;-1:-1:-1;;;4119:38:0;;-1:-1:-1;;;;;4142:6:0;;;4119:38;;;1106:51:1;1173:18;;;1166:34;;;4119:22:0;;;;;;1079:18:1;;4119:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;4191:6:0;;4168:38;;-1:-1:-1;;;4168:38:0;;-1:-1:-1;;;;;4191:6:0;;;4168:38;;;1106:51:1;1173:18;;;1166:34;;;4168:22:0;;;;;;1079:18:1;;4168:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;4240:6:0;;4217:38;;-1:-1:-1;;;4217:38:0;;-1:-1:-1;;;;;4240:6:0;;;4217:38;;;1106:51:1;1173:18;;;1166:34;;;4217:22:0;;;;;;1079:18:1;;4217:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;3915:348;;3853:410;:::o;3465:306::-;3505:14;3522:25;3546:1;3522:21;:25;:::i;:::-;3561:12;3579:14;;:38;;3505:42;;-1:-1:-1;3561:12:0;;-1:-1:-1;;;;;3579:14:0;;;;3505:42;;3561:12;3579:38;3561:12;3579:38;3505:42;3579:14;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3560:57;;;3636:7;3628:33;;;;-1:-1:-1;;;3628:33:0;;1905:2:1;3628:33:0;;;1887:21:1;1944:2;1924:18;;;1917:30;-1:-1:-1;;;1963:18:1;;;1956:43;2016:18;;3628:33:0;;;;;;;;3672:6;;:23;;-1:-1:-1;;;;;3672:6:0;;;;:23;;;;;3688:6;;3672;:23;:6;:23;3688:6;3672;:23;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3706:6:0;;:23;;-1:-1:-1;;;;;3706:6:0;;;;:23;;;;;3722:6;;3706;:23;:6;:23;3722:6;3706;:23;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3740:6:0;;:23;;-1:-1:-1;;;;;3740:6:0;;;;:23;;;;;3756:6;;3740;:23;:6;:23;3756:6;3740;:23;;;;;;;;;;;;;;;;;;;;;3494:277;;3465:306::o;14:286:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;168:23;;-1:-1:-1;;;;;220:31:1;;210:42;;200:70;;266:1;263;256:12;200:70;289:5;14:286;-1:-1:-1;;;14:286:1:o;513:184::-;583:6;636:2;624:9;615:7;611:23;607:32;604:52;;;652:1;649;642:12;604:52;-1:-1:-1;675:16:1;;513:184;-1:-1:-1;513:184:1:o;702:217::-;742:1;768;758:132;;812:10;807:3;803:20;800:1;793:31;847:4;844:1;837:15;875:4;872:1;865:15;758:132;-1:-1:-1;904:9:1;;702:217::o;1211:277::-;1278:6;1331:2;1319:9;1310:7;1306:23;1302:32;1299:52;;;1347:1;1344;1337:12;1299:52;1379:9;1373:16;1432:5;1425:13;1418:21;1411:5;1408:32;1398:60;;1454:1;1451;1444:12
Swarm Source
ipfs://020232a76a922d014424ec5c0fa86c1931c36097952b6c81761fb189668c0f61
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.