@aztec/ethereum 0.0.1-commit.f2ce05ee → 0.0.1-commit.f8ca9b2f3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dest/l1_tx_utils/fee-strategies/p75_competitive.js +1 -1
- package/dest/l1_tx_utils/fee-strategies/p75_competitive_blob_txs_only.js +1 -1
- package/package.json +5 -5
- package/src/l1_tx_utils/fee-strategies/p75_competitive.ts +1 -1
- package/src/l1_tx_utils/fee-strategies/p75_competitive_blob_txs_only.ts +1 -1
|
@@ -103,7 +103,7 @@ import { HISTORICAL_BLOCK_COUNT } from './types.js';
|
|
|
103
103
|
// Sanity check: cap competitive fee at 100x network estimate to avoid using unrealistic fees
|
|
104
104
|
const maxReasonableFee = networkEstimate * 100n;
|
|
105
105
|
if (competitiveFee > maxReasonableFee && networkEstimate > 0n) {
|
|
106
|
-
logger?.
|
|
106
|
+
logger?.debug('Competitive fee exceeds sanity cap, using capped value', {
|
|
107
107
|
competitiveFee: formatGwei(competitiveFee),
|
|
108
108
|
networkEstimate: formatGwei(networkEstimate),
|
|
109
109
|
cappedTo: formatGwei(maxReasonableFee)
|
|
@@ -159,7 +159,7 @@ import { HISTORICAL_BLOCK_COUNT } from './types.js';
|
|
|
159
159
|
const medianHistoricalFee = median(percentile75Fees) ?? 0n;
|
|
160
160
|
// Debug: Log suspicious fees from history
|
|
161
161
|
if (medianHistoricalFee > 100n * WEI_CONST) {
|
|
162
|
-
logger?.
|
|
162
|
+
logger?.debug('Suspicious high fee in history', {
|
|
163
163
|
historicalMedian: formatGwei(medianHistoricalFee),
|
|
164
164
|
allP75Fees: percentile75Fees.map((f)=>formatGwei(f))
|
|
165
165
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/ethereum",
|
|
3
|
-
"version": "0.0.1-commit.
|
|
3
|
+
"version": "0.0.1-commit.f8ca9b2f3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./account": "./dest/account.js",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"../package.common.json"
|
|
51
51
|
],
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@aztec/blob-lib": "0.0.1-commit.
|
|
54
|
-
"@aztec/constants": "0.0.1-commit.
|
|
55
|
-
"@aztec/foundation": "0.0.1-commit.
|
|
56
|
-
"@aztec/l1-artifacts": "0.0.1-commit.
|
|
53
|
+
"@aztec/blob-lib": "0.0.1-commit.f8ca9b2f3",
|
|
54
|
+
"@aztec/constants": "0.0.1-commit.f8ca9b2f3",
|
|
55
|
+
"@aztec/foundation": "0.0.1-commit.f8ca9b2f3",
|
|
56
|
+
"@aztec/l1-artifacts": "0.0.1-commit.f8ca9b2f3",
|
|
57
57
|
"@viem/anvil": "^0.0.10",
|
|
58
58
|
"dotenv": "^16.0.3",
|
|
59
59
|
"lodash.chunk": "^4.2.0",
|
|
@@ -134,7 +134,7 @@ export const P75AllTxsPriorityFeeStrategy: PriorityFeeStrategy = {
|
|
|
134
134
|
// Sanity check: cap competitive fee at 100x network estimate to avoid using unrealistic fees
|
|
135
135
|
const maxReasonableFee = networkEstimate * 100n;
|
|
136
136
|
if (competitiveFee > maxReasonableFee && networkEstimate > 0n) {
|
|
137
|
-
logger?.
|
|
137
|
+
logger?.debug('Competitive fee exceeds sanity cap, using capped value', {
|
|
138
138
|
competitiveFee: formatGwei(competitiveFee),
|
|
139
139
|
networkEstimate: formatGwei(networkEstimate),
|
|
140
140
|
cappedTo: formatGwei(maxReasonableFee),
|
|
@@ -207,7 +207,7 @@ export const P75BlobTxsOnlyPriorityFeeStrategy: PriorityFeeStrategy = {
|
|
|
207
207
|
|
|
208
208
|
// Debug: Log suspicious fees from history
|
|
209
209
|
if (medianHistoricalFee > 100n * WEI_CONST) {
|
|
210
|
-
logger?.
|
|
210
|
+
logger?.debug('Suspicious high fee in history', {
|
|
211
211
|
historicalMedian: formatGwei(medianHistoricalFee),
|
|
212
212
|
allP75Fees: percentile75Fees.map(f => formatGwei(f)),
|
|
213
213
|
});
|