-
Notifications
You must be signed in to change notification settings - Fork 358
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
Draft: updated fee model #99
Conversation
/// @param verifier address of Verifier contract | ||
/// @param governor address who can manage critical updates in the contract | ||
/// @param admin address who can manage non-critical updates in the contract |
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.
/// @param verifier address of Verifier contract | |
/// @param governor address who can manage critical updates in the contract | |
/// @param admin address who can manage non-critical updates in the contract | |
/// @param verifier Address of Verifier contract | |
/// @param governor Address who can manage critical updates in the contract | |
/// @param admin Address who can manage non-critical updates in the contract |
/// @param priorityTxMaxGasLimit maximum number of the L2 gas that a user can request for L1 -> L2 transactions | ||
/// @param initialProtocolVersion initial protocol version |
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.
/// @param priorityTxMaxGasLimit maximum number of the L2 gas that a user can request for L1 -> L2 transactions | |
/// @param initialProtocolVersion initial protocol version | |
/// @param priorityTxMaxGasLimit Maximum number of the L2 gas that a user can request for L1 -> L2 transactions | |
/// @param initialProtocolVersion Initial protocol version |
|
||
// Ensuring that the transaction is provable | ||
require(l2GasForTxBody <= _priorityTxMaxGasLimit, "ui"); | ||
// Ensuring that the transaction cannot output more pubdata than is processable | ||
require(l2GasForTxBody / _transaction.gasPerPubdataByteLimit <= PRIORITY_TX_MAX_PUBDATA, "uk"); | ||
require(l2GasForTxBody / _transaction.gasPerPubdataByteLimit <= _priorityTxMaxPubdata, "uk"); |
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.
Do you think it makes to add a comment that we intentionally don't check that the tx encoding length is less than the maximal allowed? (As I understand it's just impossible to exceed this limit, due to gas limitations on l1)
Port 1 4 1 fixes to the short term fee model
…ation Make upgrade validation more strict
Add security contact
Use more clear visibility for variables and constants
Better docs for L2Weth
Named mapping variables
Fix documentation mismatch
The content of this PR has been included into the following release: #167 |
What ❔
Why ❔
Checklist