a guest Jun 30th, 2019 93 Never
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;
- | now() > expiry -> transfer(balance(), a, ())
- | balance () > n -> transfer(balance(), b, ())
RAW Paste Data