paused
and voided
branch in refund
and withdraw
#294
smol-ninja
started this conversation in
General
Replies: 2 comments 6 replies
-
cc @sablier-labs/solidity for RFC. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is one of those ugly situations (which I refer to ass "statically bimodal paths") that are not fully captured by the existing BTT spec. Before I share my feedback, I would like to clarify this:
I am confused by this statement. It doesn't seem correct. Can you take a look and re-explain what you meant to say, @smol-ninja? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Original discussion: #290 (comment) created by @andreivladbrg.
Context
withdraw
tree has neither ofgiven paused
orgiven voided
branchesrefund
only hasgiven paused
branchWhat is the right approach?
paused
andvoided
branches inrefund
andwithdraw
concrete tests?paused
branch, given that as per above invariant if its voided, it must also be paused?Based on our testing pattern, we do not include branches that are not a part of the implementation. So since neither of these functions check for paused or voided status, these branches should not be a part of it.
Thus starting this issue in the form of a discussion to understand what is the right approach here.
Beta Was this translation helpful? Give feedback.
All reactions