Replies: 2 comments 2 replies
-
That was the point with expected. It's not something set in stone, it is expected to have this amount but as the word preempts, some extra checks for the actual value have to be made. "Aggregate" is fine, as it follows the contract implementation, but it still doesn't preempt the uncertainty of the amount. Maybe "expected" wasn't the best choice but I hope you understood where I was coming from when choosing this name. I'll review #20 tomorrow and update the app accordingly. |
Beta Was this translation helpful? Give feedback.
-
This seems like a mistake.
But it is set in stone. The
You've used the passive voice here, evading the 2nd question in the OP. Who expects this? There are multiple entities. e.g. if I am a recipient, I will expect to receive my own allocation from a claiming page. Seeing an "expected amount" that refers to the
There's no uncertainty. Perhaps you mean the current balance - for that, I opened https://github.com/sablier-labs/v2-interfaces/issues/721.
Thank you |
Beta Was this translation helpful? Give feedback.
-
Could you explain the rationale for "expected", @razgraf?
Why not
totalAmount
andtotalRecipients
? OraggregateAmount
(as it is written in Solidity)?The issue with "expected" is two-fold:
Edit: saw the definition in the code:
So I gather this is the amount that the
MerkleStreamerLL
contract expects from the campaign deployer.My responses:
Thus I posit that
total
oraggregate
would be much, much clearer.Beta Was this translation helpful? Give feedback.
All reactions