Remove isStream boolean from stream struct
#280
Replies: 2 comments 8 replies
-
|
I disagree based on the rationales I provided in that discussion. What we should do is keep Doing so would also create symmetry between the two contracts.
There is. As I said, a user can choose to intentionally set the sender to the zero address. From a logical point of view, it doesn't matter that we block it in the create function. |
Beta Was this translation helpful? Give feedback.
-
We decided to implement a zero check for the sender address as per your comment here, and the relevant PR. Therefore, regarding your symmetry argument, we have it now.
Might be possible but I think there cannot be "any" incentive to do so. A stream with the sender as However, logically, a stream can have 0 addresses for the sender and recipient (I am talking in theory; not talking specifically about our implementation), so defining whether a stream is valid or not based on the sender check does not seem logical to me, which, however, is not the case for |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In this discussion (#271), @smol-ninja correctly pointed out that we can remove the isStream boolean and rely on a
sendercheck to verify whether a stream is null. I agree with his rationale, and I believe we should make this change, as there is no objective necessity for this boolean, and it would save gas in thecreatefunction.PS: I’m opening this discussion here because it’s relevant to flow as well, and we need to make a quicker decision since the audit starts next week. This is in contrast to lockup, where we don’t have anything scheduled yet
wdyt? @sablier-labs/solidity
Beta Was this translation helpful? Give feedback.
All reactions