diff --git a/docs/docs-developers/docs/aztec-js/how_to_pay_fees.md b/docs/docs-developers/docs/aztec-js/how_to_pay_fees.md index 0669fa11d26a..823e1a33c164 100644 --- a/docs/docs-developers/docs/aztec-js/how_to_pay_fees.md +++ b/docs/docs-developers/docs/aztec-js/how_to_pay_fees.md @@ -185,11 +185,13 @@ After this transaction is minted on L1 and a few blocks pass, you can claim the Gas settings specify limits and fees for both DA and L2 dimensions: -- **gasLimits**: Maximum mana for main execution phase -- **teardownGasLimits**: Maximum mana for teardown phase (used by FPCs for refunds) +- **gasLimits**: Maximum mana the transaction may consume in total, across all phases including teardown +- **teardownGasLimits**: Portion of `gasLimits` reserved for the teardown phase (used by FPCs for refunds) - **maxFeesPerGas**: Maximum price you're willing to pay per mana unit - **maxPriorityFeesPerGas**: Priority fee for faster inclusion +Teardown gas is not added on top of `gasLimits`: it is a reservation carved out of the total, so the mana available to the rest of the transaction is `gasLimits - teardownGasLimits`. A transaction with a teardown call is billed the full `teardownGasLimits`, regardless of how much teardown actually consumes. + The fee limit is calculated as `gasLimits × maxFeesPerGas` for each dimension. ### Set custom gas limits diff --git a/docs/src/components/Snippets/general_snippets.js b/docs/src/components/Snippets/general_snippets.js index e47d598e21ef..8efe471cef6d 100644 --- a/docs/src/components/Snippets/general_snippets.js +++ b/docs/src/components/Snippets/general_snippets.js @@ -13,7 +13,10 @@ export const General = { InstallationInstructions: () => (

To use Aztec's suite of tools, run:{" "} - VERSION=<version> bash -i <(curl -sL https://install.aztec.network/<version>) + + VERSION=<version> bash -i <(curl -sL + https://install.aztec.network/<version>) +

), @@ -44,8 +47,8 @@ export const General = { AztecLocalNetwork: () => (

- Aztec's Local network - runs a set of Aztec tools for convenient local - development, it includes: an Ethereum node, an Aztec node, and PXE. + Aztec's Local network - runs a set of Aztec tools for convenient + local development, it includes: an Ethereum node, an Aztec node, and PXE.

), @@ -69,8 +72,8 @@ export const General = { AztecJSPrerequisites: ({ href = "how_to_connect_to_local_network" }) => ( <> - Connected to a network{" "} - with an EmbeddedWallet instance and funded accounts + Connected to a network with an{" "} + EmbeddedWallet instance and funded accounts ), }; @@ -140,10 +143,14 @@ export const Gas_Settings_Components = () => ( The Gas and GasFees types each specify Data availability and L2 cost components, so the settings are: