Last active
September 15, 2021 09:10
-
-
Save hunzai/f2e459d23acb1e69849c5f09ea8ea57e to your computer and use it in GitHub Desktop.
transferValue
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
When | |
[Case | |
(Deposit | |
(Role "seller") | |
(Role "buyer") | |
(Token "" "") | |
(ConstantParam "tokenPrice") | |
) | |
(Pay | |
(Role "seller") | |
(Account (Role "goldenShoe")) | |
(Token "" "") | |
(ConstantParam "commission") | |
(When | |
[Case | |
(Deposit | |
(Role "buyer") | |
(Role "seller") | |
(Token "" "nft") | |
(Constant 1) | |
) | |
Close ] | |
20 Close | |
) | |
)] | |
10 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
{"valueParameterDescriptions":[["commission","2% of token price"],["tokenPrice","ADA"]],"slotParameterDescriptions":[],"roleDescriptions":[["buyer","the one pays in ADA"],["goldenShoe","the one gets commission "],["seller","the one sells token"]],"contractType":"ES","contractName":"exchange","contractDescription":"","choiceDescriptions":[]} |
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