Should the senders be allowed to refund others deposits? #298
Closed
andreivladbrg
started this conversation in
General
Replies: 2 comments 1 reply
-
Not really a finding in my view (if we all agree, we should inform Rusty too), not even an informational.
Option (2) restricts the flexibility for senders to deposit from multiple addresses, and option (3) seems too complex given the nature of the issue. Even in case of grants, if a DAO decides to steal depositors money, before that they would dump their token and rug their users :)) |
Beta Was this translation helpful? Give feedback.
1 reply
-
Agree with you. Just wanted to make sure we are all on the same page. |
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
-
As per one of Rusty’s findings: https://cantina.xyz/code/99ae802b-f05c-4e36-a1d1-240d5146649c/findings/6
Since the
deposit
function is publicly callable by anyone, it means that anyone can act as the depositor for any stream. The issue arises when a depositor wants to fund a stream but also guarantee that the recipient will receive all the funds. Currently, this guarantee is not possible.IMO we have three possible scenarios:
refund
nr_bal
) that tracks the balance deposited by non-sendersmin(bal + nr_bal, td)
Between these, I would personally vote for either option 1 or 2.
wdyt? @sablier-labs/solidity @razgraf
Beta Was this translation helpful? Give feedback.
All reactions