Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def reservoir(storage : Timestamp * Mutez * Contract(Unit) * Contract(Unit)) =
- var (expiry,n,a,b) = storage;
- case
- | now() > expiry -> transfer(balance(), a, ())
- | balance () > n -> transfer(balance(), b, ())
- end;
- storage
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement