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

Gas Optimization Bounty submission #3 #455

Merged
merged 4 commits into from
Aug 4, 2023

Conversation

nkrishang
Copy link
Contributor

Summary

Submission Contributor Contracts Target gas report gasreport.txt Current gas report gasreport.txt
#423 https://github.com/WhiteOakKong EditionStake.sol 95e8d9f 4b0ff81

% of overall gas reduced in target contracts: 10.80%
Total gas before: 333_008 after: 297_051 (ref: src/test/benchmark/EditionStake.t.sol)

WhiteOakKong and others added 4 commits August 3, 2023 16:25
* Update StakingCondition struct

* Update `Staker` struct

* Remove staked array and ERC1155 ownership/approval

* gas report

* Minor edits + yarn gas

* lint

* reset foundry.toml

* update gas report to ensure accuracy

---------

Co-authored-by: nkrishang <[email protected]>
@nkrishang nkrishang merged commit e1d4c3d into main Aug 4, 2023
5 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.

2 participants