Replies: 2 comments 2 replies
-
On second thoughts, I don't like A better fit would be |
Beta Was this translation helpful? Give feedback.
2 replies
-
Locking, in #220 I ended up going for:
To provide more context and differentiation between the functions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Due to the
streamId
argument, all functions can be inferred to be about streaming. But there are two exceptions - thecreate
and thecreateWithDuration
functions.It is not immediately obvious that these functions are creating streams. One would need to have the wider context on what Sablier is to infer that.
What if we renamed the
create
and thecreateWithDuration
to simplystream
? (noting that it is possible to overload functions in Solidity, as long as the arguments differ, and in this case they do)There's something about the simplicity and actionability of
stream
that makes me like it a lot. I came up with this idea while brainstorming (on my own) what name to give the gross deposit amount.grossDepositAmount
is good from a clarity point of view, but it's rather verbose.grossAmount
, on the other hand, does not communicate what the amount is, but that is also due to the lack of context in the function name itself. That's when I thought about renamingcreate
tostream
- if we make this change, then we could potentially use thegrossAmount
naming, because the purpose of the amount would be inferred from the stream verb.Cc @razgraf, @andreivladbrg.
Beta Was this translation helpful? Give feedback.
All reactions