Skip to content

Instantly share code, notes, and snippets.

@ssbright
Last active February 1, 2022 02:29
Show Gist options
  • Save ssbright/1a21e7dbed0006c634950496134520bb to your computer and use it in GitHub Desktop.
Save ssbright/1a21e7dbed0006c634950496134520bb to your computer and use it in GitHub Desktop.
PaymentSplitter
{"valueParameterInfo":[],"slotParameterDescriptions":[],"roleDescriptions":[],"contractType":"O","contractShortDescription":"","contractName":"","contractLongDescription":"","choiceInfo":[]}
When
[Case
(Deposit
(Role "Fund")
(Role "Anyone")
(Token "" "")
(ConstantParam "DepositValue")
)
(Assert
(ValueGT
(ConstantParam "DepositValue")
(Constant 5)
)
(Pay
(Role "Fund")
(Party (PK "0000000000000000000000000000000000000000000000000000000000000000"))
(Token "" "")
(Scale
(1%2)
(ConstantParam "DepositValue")
)
(Pay
(Role "Fund")
(Account (PK "0000000000000000000000000000000000000000000000000000000000000000"))
(Token "" "")
(Scale
(1%2)
(ConstantParam "DepositValue")
)
Close
)
)
)]
3 Close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment