Skip to content

Instantly share code, notes, and snippets.

@edsko
Last active August 24, 2022 13:23
Show Gist options
  • Save edsko/802d8f48c946f6b4851d59aafb981614 to your computer and use it in GitHub Desktop.
Save edsko/802d8f48c946f6b4851d59aafb981614 to your computer and use it in GitHub Desktop.
Vesting Example
{"valueParameterInfo":[],"timeParameterDescriptions":[],"roleDescriptions":[],"contractType":"Other","contractShortDescription":"Unknown","contractName":"Unknown","contractLongDescription":"We couldn't find information about this contract","choiceInfo":[]}
When
[Case
(Deposit
(Role "DAO")
(Role "DAO")
(Token "" "SHARE")
(Constant 100)
)
(Pay
(Role "DAO")
(Party (Role "RECIPIENT"))
(Token "" "SHARE")
(Constant 60)
(When
[]
(TimeParam "vesting_second_half")
(Pay
(Role "DAO")
(Party (Role "RECIPIENT"))
(Token "" "SHARE")
(Constant 40)
Close
)
)
)]
(TimeParam "timeout")
Close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment