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

perf(gas): optimize stage per wallet limits gas #91

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jessefriedland
Copy link

  • saves every minter 20k of gas (@ 50 gwei this is ~$2, @ 100 gwei this is ~$4)
  • pack into aux on the erc721a ownership storage
  • ⚠️ caveat ⚠️: limits # of stages to 4 (or 8 if max limit per wallet of 255 is acceptable)

gas averages before optimization

image

gas averages post optimization

image

- pack into aux on the erc721a ownership storage
- caveat: limits # of stages to 4 (or 8 if max limit per wallet of 255
  is acceptable)
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.

1 participant