-
Notifications
You must be signed in to change notification settings - Fork 4
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
choose a proper scalar for mainnet #93
Comments
According to here, we need to confirm three variables defined by the scalar:
Suppose the ratio of the XYZ/ETH is 1 ETH = x XYZ token, then a simple formula will be
To have a safe margin and avoid frequent update because of x, we may
and when x is changed with a fixed y, we send the scalar-update tx for new y if y < x. NOTE: In fact, we may have better scalars value by analyzing the actual l1 cost here. The results show that OP mainnet charges about 2x of l1 gas fee, and 1x of l1 blob fee. |
The scalar value is responsible for dealing with the conversion ratio.
We also need to adjust it when the ratio changes a lot.
The text was updated successfully, but these errors were encountered: