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

Fix incorrect max contributor causing frontend to prematurely closing a round #755

Merged
merged 7 commits into from
May 24, 2024

Conversation

yuetloo
Copy link
Collaborator

@yuetloo yuetloo commented May 22, 2024

This PR fixed the incorrect max contributor calculated using TREE_ARITY = 2 instead of 5. Because the max contributor was incorrectly calculated as too small, the frontend closes the round to prevent more contribution.

The fix also removed the TREE_ARITY constant in the contract as the TREE_ARITY can change from version to version in MACI.

The changes in the subgraph also allows upgraded FundingRound and MACI contracts to use older recipient registry to help migration into the new version of MACI contracts.

@yuetloo yuetloo self-assigned this May 22, 2024
@yuetloo yuetloo marked this pull request as draft May 22, 2024 00:29
Copy link

netlify bot commented May 22, 2024

Deploy Preview for clrfund-staging ready!

Name Link
🔨 Latest commit 729eadc
🔍 Latest deploy log https://app.netlify.com/sites/clrfund-staging/deploys/664dff7615edad000851ce2a
😎 Deploy Preview https://deploy-preview-755--clrfund-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented May 22, 2024

Deploy Preview for clrfund-testnet ready!

Name Link
🔨 Latest commit 729eadc
🔍 Latest deploy log https://app.netlify.com/sites/clrfund-testnet/deploys/664dff768302d600081b9faa
😎 Deploy Preview https://deploy-preview-755--clrfund-testnet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@yuetloo yuetloo marked this pull request as ready for review May 22, 2024 13:33
Copy link
Member

@auryn-macmillan auryn-macmillan left a comment

Choose a reason for hiding this comment

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

lgtm

@yuetloo yuetloo merged commit 6212a32 into develop May 24, 2024
11 checks passed
@yuetloo yuetloo deleted the fix/incorrect-max-contributor branch May 24, 2024 12:34
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.

2 participants