Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streaming payments only support a single stream #1250

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

area
Copy link
Member

@area area commented May 8, 2024

NB Based on maint/pnpm.

Multiple streams in a single streaming payment are no longer desired on the frontend, so taking the opportunity to simplify the contracts. This will also allow accurate tracking of the number of pending payments, allowing the 'prevent uninstall if pending payments' feature.

I've taken advantage of finishUpgrade to make sure someone can't upgrade from v4 to v5, which we are declaring is impossible due to the storage layout changes.

Copy link
Member

@kronosapiens kronosapiens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good. I still don't love all the extra logic about pseudo claims, etc which we added to allow admins to change payout rates, but that's not what this PR is about.

@@ -247,44 +228,13 @@ contract StreamingPayments is ColonyExtensionMeta {
_toChildSkillIndex,
_id,
domainFundingPotId,
_tokens,
amountsToClaim
toAddressArray(streamingPayment.token),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would re-implement setupExpenditure not to take an array, rather than coerce the token into an array of one.

Base automatically changed from maint/pnpm to develop May 23, 2024 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants