Created
July 13, 2022 19:40
-
-
Save ariady-putra/912d3412a08bc2b53ddf47840d63b89c to your computer and use it in GitHub Desktop.
IfThenElse Project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"valueParameterInfo":[],"slotParameterDescriptions":[],"roleDescriptions":[],"contractType":"Other","contractShortDescription":"","contractName":"","contractLongDescription":"","choiceInfo":[]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Let | |
"price" | |
(ConstantParam "inputPrice") | |
(Let | |
"offer" | |
(ConstantParam "inputOffer") | |
(If | |
(ValueGE | |
(ConstantParam "inputOffer") | |
(ConstantParam "inputPrice") | |
) | |
(When | |
[Case | |
(Deposit | |
(Role "escrow") | |
(Role "buyer") | |
(Token "" "") | |
(ConstantParam "inputOffer") | |
) | |
(Pay | |
(Role "escrow") | |
(Account (Role "seller")) | |
(Token "" "") | |
(ConstantParam "inputOffer") | |
Close | |
)] | |
50 Close | |
) | |
Close | |
) | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment