summaryrefslogtreecommitdiffstats
path: root/contracts/Recovery.sol
diff options
context:
space:
mode:
Diffstat (limited to 'contracts/Recovery.sol')
-rw-r--r--contracts/Recovery.sol22
1 files changed, 22 insertions, 0 deletions
diff --git a/contracts/Recovery.sol b/contracts/Recovery.sol
new file mode 100644
index 0000000..d053594
--- /dev/null
+++ b/contracts/Recovery.sol
@@ -0,0 +1,22 @@
+pragma solidity ^0.5.0;
+
+import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
+
+contract Recovery is Ownable {
+ uint256 depositValue;
+
+ event VotedForRecovery(uint256 indexed height, address voter);
+
+ function setDeposit(uint256 DepositValue) public onlyOwner {
+ depositValue = DepositValue;
+ }
+
+ function withdraw(address payable destination) public onlyOwner {
+ destination.send(address(this).balance);
+ }
+
+ function voteForSkipBlock(uint256 height) public payable {
+ require(msg.value >= depositValue);
+ emit VotedForRecovery(height, msg.sender);
+ }
+}