Verified contractPartial
Payout
Address0x6e876e86e4eb0365393d6036b7697b4eda60c8c3
- Balance
0 ETH
- Transactions
95
- Compiler
solc 0.6.6
- Same code
Only this contract
Details
- Compiler
- solc 0.6.6+commit.6c089d02
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 11,141,080
- Creation transaction
- 0xc54f7a2224…9671570bb2
Payout.sol
/**
*Submitted for verification at Etherscan.io on 2020-10-11
*/
pragma solidity ^0.6.1;
contract Payout
{
address payable public address1 = 0x8dDd4c51a5dCfb83E070f04bF5C4F98b3FdA6977;
address payable public address2 = 0x2aAB156B5586FB0028a0Afe9250554317669ADcf;
address public owner = 0x482F222e30D49BF9606a0F6DEa7c210698B367F9;
uint256 public address1share = 8750;
uint256 public address2share = 1250;
uint256 public previousPayouts = 0;
uint256 public countPayouts = 0;
receive() external payable
{
}
function triggerPayouts() public
{
uint totalPayout = address(this).balance;
if(!address1.send(totalPayout * address1share / 100 / 100)) revert();
if(!address2.send(totalPayout * address2share / 100 / 100)) revert();
countPayouts += totalPayout;
}
function transferAllFundsOut(address payable _address) public
{
if (msg.sender == owner)
if(!_address.send(address(this).balance))
revert();
}
function totalPayouts() view public returns (uint256)
{
return previousPayouts + countPayouts;
}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.