-
Notifications
You must be signed in to change notification settings - Fork 89
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
More efficient GST2 implementation #6
Comments
@fulldecent |
Yes, that is correct. |
@fulldecent can you clarify what XX means? |
This is chosen so that
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just wanted to say this is a cute project. I have been studying and wanted to share my notes.
Current contract call costs 22 gas.
https://github.com/projectchicago/gastoken/blob/master/contract/GST2_ETH.sol#L106-L114
Proposed update requires 19 gas.
With this new technique, the comment on the homepage can be updated:
Don't worry about the 0x0 address. You want the 0xPC address. Then you can additionally save the
PUSH15
andXOR
operations.This proposed update also affects the efficiency ratio and other parts of the web page.
The text was updated successfully, but these errors were encountered: