-
Notifications
You must be signed in to change notification settings - Fork 11
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: use L1 gas oracle #1262
🩹 gas: use L1 gas oracle #1262
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
b3192be
to
5cabf4c
Compare
hooks/useEstimateGas.ts
Outdated
args: [data], | ||
}); | ||
} else { | ||
l1Gas = 5_555_555_555_55n; |
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.
where does this come from?
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.
the thousand separators are shifted
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.
The value is only used in case we don't have a request ready to do a gas estimation (for example, on initial render of the modal we don't have an input, so that's a missing argument). I ran some experiments and just ended up choosing this as a magic number.
5cabf4c
to
5ddf563
Compare
0d82821
to
8ba496f
Compare
closes #1250