Skip to content

Instantly share code, notes, and snippets.

@Gresliebear
Last active February 16, 2022 22:58
Show Gist options
  • Save Gresliebear/67c7e56b34f525d86f77965a838a61c3 to your computer and use it in GitHub Desktop.
Save Gresliebear/67c7e56b34f525d86f77965a838a61c3 to your computer and use it in GitHub Desktop.
EMF
{"valueParameterInfo":[],"slotParameterDescriptions":[],"roleDescriptions":[],"contractType":"O","contractShortDescription":"","contractName":"","contractLongDescription":"","choiceInfo":[]}
When
[Case
(Deposit
(Role "EMFwallet")
(Role "User/Insuree")
(Token "" "")
(AvailableMoney
(Role "User/InsureeWallet")
(Token "" "")
)
)
(If
(ValueGE
(Constant 1)
(Constant 0)
)
(Pay
(PK "0000000000000000000000000000000000000000000000000000000000000000")
(Party (Role "User/Insuree"))
(Token "" "")
(ConstantParam "APR")
?contract
)
Close
)]
(SlotParam "0")
(When
[Case
(Choice
(ChoiceId
"Withdraw"
(Role "User/Insuree")
)
[Bound 0 1]
)
(Pay
(PK "0000000000000000000000000000000000000000000000000000000000000000")
(Party (Role "EMFwallet"))
(Token "" "")
(AvailableMoney
(Role "EMFwallet")
(Token "" "")
)
(If
?observation
?contract1 Close
)
)]
0 ?contract
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment