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

cantina/159 #225

Merged
merged 10 commits into from
Jan 9, 2025
Merged

cantina/159 #225

merged 10 commits into from
Jan 9, 2025

Conversation

mejango
Copy link
Contributor

@mejango mejango commented Jan 6, 2025

Description

What does this PR: do, how, why?

Limitations & risks

Are there any trade-off or new vulnarbility surface based on theses changes?

Check-list

  • Tests are covering the new feature
  • Code is natspec'd
  • Code is linted and formatted
  • I have run the test locally (and they pass)
  • I have rebased to the latest main commit (and tests still pass)

Interactions

These changes will impact the following contracts:

  • Directly:

  • Indirectly:

@xBA5ED
Copy link
Contributor

xBA5ED commented Jan 8, 2025

Another potential solution could be that instead of minting to each recipient in the loop (and in the leftOverTokenCount check) we mint the tokenCount to the controller before the loop, then in the loop we only do transfers instead of mints.

Would also allow us to set pendingReservedTokenBalanceOf[projectId] to zero before the loop so the totalTokenSupplyWithReservedTokensOf is correct at all times.

@mejango
Copy link
Contributor Author

mejango commented Jan 8, 2025

Another potential solution could be that instead of minting to each recipient in the loop (and in the leftOverTokenCount check) we mint the tokenCount to the controller before the loop, then in the loop we only do transfers instead of mints.

Would also allow us to set pendingReservedTokenBalanceOf[projectId] to zero before the loop so the totalTokenSupplyWithReservedTokensOf is correct at all times.

i prefer this. ill play

Copy link
Contributor

@xBA5ED xBA5ED left a comment

Choose a reason for hiding this comment

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

LGTM

@mejango mejango merged commit bca5818 into main Jan 9, 2025
3 checks passed
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.

3 participants