Guest User

Untitled

a guest
Jun 30th, 2019
100
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def reservoir(storage : Timestamp * Mutez * Contract(Unit) * Contract(Unit)) =
  2.   var (expiry,n,a,b) = storage;
  3.  
  4.   case
  5.   | now() > expiry -> transfer(balance(), a, ())
  6.   | balance () > n -> transfer(balance(), b, ())
  7.   end;
  8.  
  9.   storage
RAW Paste Data