Skip to content

Instantly share code, notes, and snippets.

@edsko
Last active August 5, 2022 17:15
Show Gist options
  • Save edsko/da1934ad92766bf880ee626751a0f9a1 to your computer and use it in GitHub Desktop.
Save edsko/da1934ad92766bf880ee626751a0f9a1 to your computer and use it in GitHub Desktop.
Simple ROFO
{"valueParameterInfo":[],"timeParameterDescriptions":[],"roleDescriptions":[],"contractType":"Other","contractShortDescription":"Unknown","contractName":"Unknown","contractLongDescription":"We couldn't find information about this contract","choiceInfo":[]}
When
[Case
(Deposit
(Role "A")
(Role "A")
(Token "" "SHARE")
(Constant 10)
)
(When
[Case
(Deposit
(Role "A")
(Role "B")
(Token "" "")
(Constant 100000000)
)
(When
[Case
(Choice
(ChoiceId
"ROFO: Price"
(Role "A")
)
[Bound 0 1000000000]
)
(When
[Case
(Choice
(ChoiceId
"ROFO: #Shares"
(Role "A")
)
[Bound 0 10]
)
(When
[Case
(Deposit
(Role "A")
(Role "ROFO")
(Token "" "")
(ChoiceValue
(ChoiceId
"ROFO: Price"
(Role "A")
))
)
(When
[Case
(Deposit
(Role "ROFO")
(Role "ROFO")
(Token "" "ROFO")
(Constant 1)
)
(Pay
(Role "A")
(Account (Role "ROFO"))
(Token "" "SHARE")
(ChoiceValue
(ChoiceId
"ROFO: #Shares"
(Role "A")
))
(Pay
(Role "A")
(Account (Role "B"))
(Token "" "SHARE")
(SubValue
(Constant 10)
(ChoiceValue
(ChoiceId
"ROFO: #Shares"
(Role "A")
))
)
(Pay
(Role "A")
(Account (Role "B"))
(Token "" "")
(MulValue
(ChoiceValue
(ChoiceId
"ROFO: #Shares"
(Role "A")
))
(Constant 10000000)
)
Close
)
)
)]
(TimeParam "timeout 1: right of first refusal")
(Pay
(Role "A")
(Account (Role "B"))
(Token "" "SHARE")
(Constant 10)
Close
)
)]
(TimeParam "timeout 1: right of first refusal")
(Pay
(Role "A")
(Account (Role "B"))
(Token "" "SHARE")
(Constant 10)
Close
)
)]
(TimeParam "timeout 1: right of first refusal")
(Pay
(Role "A")
(Account (Role "B"))
(Token "" "SHARE")
(Constant 10)
Close
)
)]
(TimeParam "timeout 1: right of first refusal")
(Pay
(Role "A")
(Account (Role "B"))
(Token "" "SHARE")
(Constant 10)
Close
)
)]
(TimeParam "timeout 2: overall")
Close
)]
(TimeParam "timeout 2: overall")
Close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment