mirror of
https://github.com/status-im/github-oracle.git
synced 2026-08-30 11:21:07 +00:00
19 lines
476 B
Solidity
19 lines
476 B
Solidity
pragma solidity ^0.4.11;
|
|
|
|
contract Bank {
|
|
|
|
event Withdrawn(address reciever, uint256 amount);
|
|
event Deposited(address sender,uint256 value);
|
|
//allow deposit and call event
|
|
function deposit() payable {
|
|
Deposited(msg.sender, msg.value);
|
|
}
|
|
|
|
//withdraw if locked and not paid, updates epoch
|
|
function withdrawal(address dest, uint amount)
|
|
internal {
|
|
if(!dest.send(amount)) throw;
|
|
Withdrawn(msg.sender, amount);
|
|
}
|
|
}
|