Auto request % of Ether to multiple wallets after lock period

OperationNineOperationNine Member Posts: 2
edited March 2016 in Smart Contracts and Dapps
I'm trying to modify the below source code to do something like this:

Is it possible to compile in the context of the code a way to have this so that when the lock period ends, that x% will split into the wallet that has created the contract, and the other x% will split into another defined wallet via the source code like in that example?

Any ideas on how this can be done to have this as a working contract?


contract weakHands
{ uint public lockTime; address public owner; /* Constructor */
function weakHands(uint daysToLock)
{ owner = msg.sender; lockTime = now + daysToLock * 1 days; }
function requestAllEther() { if (now < lockTime) throw; selfdestruct(owner); } }

Any help would be much appreciated! :)
Sign In or Register to comment.