-
Notifications
You must be signed in to change notification settings - Fork 80
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
OUSD gas improvements #2287
base: master
Are you sure you want to change the base?
OUSD gas improvements #2287
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2287 +/- ##
==========================================
- Coverage 53.26% 53.12% -0.15%
==========================================
Files 79 79
Lines 4089 4098 +9
Branches 1074 1074
==========================================
- Hits 2178 2177 -1
- Misses 1908 1918 +10
Partials 3 3 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
The code is equivalent to the previous version of it, with slight differences in order which don't have functional impact
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only a single comment about a scenario that is very unlikely to happen (but not 100% impossible), otherwise everything looks really good to me 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
Contract Changes
The approach was to not change the storage structure. The improvements are from not re-reading storage slots or avoiding unnecessary storage reads.
Code Change Checklist
To be completed before internal review begins:
Internal review:
Gas changes
balanceOf
Set
.only
incontracts/test/token/ousd.js
Before
After
transfer
Set
.only
incontracts/test/token/ousd.js
Before
After
changeSupply
Set
.only
incontracts/test/token/ousd.js
Before
After