Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. coins[msg.sender] += 5;
  2.  
  3. func getInterest(){
  4. if( (coins[msg.sender].lastClainBlk + 100 ) < block.number ){
  5. coins[msg.sender].balance += coins[msg.sender].balance *RATE;
  6. coins[msg.sender].lastClainBlk = block.number
  7. }
  8. }
  9.  
  10. assert(transactionsValid(transactions));
  11. var new_head = hash(transactions, nonce, blockhead);
  12. assert(new_head < threshold);
  13. coins[msg.sender] += 5;
  14. blockhead = new_head;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement