Skip to content

Commit

Permalink
fix(RelayFeeCalculator): Return maxFeePerGas rather than tokenGasCost…
Browse files Browse the repository at this point in the history
… / nativeGasCost (#816)
  • Loading branch information
nicholaspai authored Jan 3, 2025
1 parent c5076d4 commit 291212b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@across-protocol/sdk",
"author": "UMA Team",
"version": "3.4.2",
"version": "3.4.3",
"license": "AGPL-3.0",
"homepage": "https://docs.across.to/reference/sdk",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/relayFeeCalculator/chain-queries/baseQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class QueryBase implements QueryInterface {
return {
nativeGasCost, // Units: gas
tokenGasCost, // Units: wei (nativeGasCost * wei/gas)
gasPrice: tokenGasCost.div(nativeGasCost), // Units: wei/gas
gasPrice: BigNumber.from(gasPrice.toString()), // Units: wei/gas, does not include l1GasCost for OP stack chains
};
}

Expand Down

0 comments on commit 291212b

Please sign in to comment.