Skip to content
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

Closed
wants to merge 48 commits into from

Conversation

StanislavBreadless
Copy link
Collaborator

@StanislavBreadless StanislavBreadless commented Nov 20, 2023

What ❔

Why ❔

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.

@StanislavBreadless StanislavBreadless changed the base branch from main to dev November 21, 2023 10:34
@StanislavBreadless StanislavBreadless changed the base branch from dev to sb-reinitialize-erc20-token November 26, 2023 17:54
Base automatically changed from sb-reinitialize-erc20-token to v1-4-1-integration November 28, 2023 15:11
Comment on lines +21 to +23
/// @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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// @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

Comment on lines +31 to +32
/// @param priorityTxMaxGasLimit maximum number of the L2 gas that a user can request for L1 -> L2 transactions
/// @param initialProtocolVersion initial protocol version
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// @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");
Copy link
Contributor

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)

@StanislavBreadless
Copy link
Collaborator Author

The content of this PR has been included into the following release: #167

@vladbochok vladbochok deleted the sb-short-term-fee-model branch April 14, 2024 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants