Verified contractPartial
BountyEscrow
Address0x6cdccb2b249298419ab3dea261a92fbacf2223ab
- Balance
0 ETH
- Transactions
1,093
- Compiler
solc 0.4.18
- Same code
Only this contract
Details
- Compiler
- solc 0.4.18+commit.9cf6e910
- Language
- solidity
- Optimization
- No
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 4,388,069
- Creation transaction
- 0x4c3cb60ef2…4caecdad59
BountyEscrow.sol
pragma solidity^0.4.17;
contract BountyEscrow {
address public admin;
mapping(address => bool) public authorizations;
event Bounty(
address indexed sender,
uint256 indexed amount
);
event Payout(
uint256 indexed id,
bool indexed success
);
function BountyEscrow() public {
admin = msg.sender;
}
// Default bounty function
function () public payable {
Bounty(msg.sender, msg.value);
}
modifier onlyAdmin {
require(msg.sender == admin);
_;
}
modifier authorized {
require(msg.sender == admin || authorizations[msg.sender]);
_;
}
function payout(uint256[] ids, address[] recipients, uint256[] amounts) public authorized {
require(ids.length == recipients.length && ids.length == amounts.length);
for (uint i = 0; i < recipients.length; i++) {
Payout(ids[i], recipients[i].send(amounts[i]));
}
}
function deauthorize(address agent) public onlyAdmin {
authorizations[agent] = false;
}
function authorize(address agent) public onlyAdmin {
authorizations[agent] = true;
}
}Compiler settingsShow
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": false
},
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.