Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/snippets/erc20-paymaster/calculate-costs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ const userOperationMaxCost = userOperationMaxGas * op.maxFeePerGas
// [!endregion calculateMaxCost]

// [!region calculateCostInToken]
// represents the userOperation's max cost in demoniation of wei
// represents the userOperation's max cost in denomination of wei
const maxCostInWei = userOperationMaxCost + postOpGas * op.maxFeePerGas

// represents the userOperation's max cost in token demoniation (wei)
// represents the userOperation's max cost in token denomination (wei)
const maxCostInTokenRaw = (maxCostInWei * exchangeRate) / BigInt(1e18)

// represents the userOperation's max cost in token (human readable format)
Expand Down