Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

Commit a3492fc

Browse files
friedemannfogtownsend
authored andcommitted
Reduce Avalanche PriceMin to 1 gwei [SHIP-4085] (#15735)
1 parent b1f818d commit a3492fc

File tree

9 files changed

+2161
-15
lines changed

9 files changed

+2161
-15
lines changed

.changeset/eighty-geckos-switch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"chainlink": patch
3+
---
4+
5+
Reduce PriceMin on Avalanche to 1 gwei #nops

ccip/config/evm/Avalanche_Fuji.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ RPCBlockQueryDelay = 2
1010
NoNewFinalizedHeadsThreshold = '1m'
1111

1212
[GasEstimator]
13-
PriceDefault = '25 gwei'
14-
PriceMax = '115792089237316195423570985008687907853269984665.640564039457584007913129639935 tether'
15-
PriceMin = '25 gwei'
13+
PriceMin = '1 gwei'
14+
PriceDefault = '1 gwei'
1615

1716
[GasEstimator.BlockHistory]
1817
BlockHistorySize = 24

ccip/config/evm/Avalanche_Mainnet.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ RPCBlockQueryDelay = 2
1010
NoNewFinalizedHeadsThreshold = '1m'
1111

1212
[GasEstimator]
13-
PriceDefault = '25 gwei'
14-
PriceMax = '115792089237316195423570985008687907853269984665.640564039457584007913129639935 tether'
15-
PriceMin = '25 gwei'
13+
PriceMin = '1 gwei'
14+
PriceDefault = '1 gwei'
1615

1716
[GasEstimator.BlockHistory]
1817
# Average block time of 2s

core/chains/evm/config/chaintype/chaintype.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (c ChainType) IsL2() bool {
3939

4040
func (c ChainType) IsValid() bool {
4141
switch c {
42-
case "", ChainArbitrum, ChainAstar, ChainCelo, ChainGnosis, ChainHedera, ChainKroma, ChainMantle, ChainMetis, ChainOptimismBedrock, ChainSei, ChainScroll, ChainWeMix, ChainXLayer, ChainZkEvm, ChainZkSync, ChainZircuit:
42+
case "", ChainArbitrum, ChainAstar, ChainCelo, ChainGnosis, ChainHedera, ChainKroma, ChainMantle, ChainMetis, ChainOptimismBedrock, ChainSei, ChainScroll, ChainWeMix, ChainXLayer, ChainZkEvm, ChainZkSync:
4343
return true
4444
}
4545
return false

core/chains/evm/config/toml/defaults/Avalanche_Fuji.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ RPCBlockQueryDelay = 2
1010
NoNewFinalizedHeadsThreshold = '1m'
1111

1212
[GasEstimator]
13-
PriceDefault = '25 gwei'
14-
PriceMax = '115792089237316195423570985008687907853269984665.640564039457584007913129639935 tether'
15-
PriceMin = '25 gwei'
13+
PriceMin = '1 gwei'
14+
PriceDefault = '1 gwei'
1615

1716
[GasEstimator.BlockHistory]
1817
BlockHistorySize = 24

core/chains/evm/config/toml/defaults/Avalanche_Mainnet.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ RPCBlockQueryDelay = 2
1010
NoNewFinalizedHeadsThreshold = '1m'
1111

1212
[GasEstimator]
13-
PriceDefault = '25 gwei'
14-
PriceMax = '115792089237316195423570985008687907853269984665.640564039457584007913129639935 tether'
15-
PriceMin = '25 gwei'
13+
PriceMin = '1 gwei'
14+
PriceDefault = '1 gwei'
1615

1716
[GasEstimator.BlockHistory]
1817
# Average block time of 2s

core/services/ocr/contract_tracker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ func (t *OCRContractTracker) LatestBlockHeight(ctx context.Context) (blockheight
400400
// care about the block height; we have no way of getting the L1 block
401401
// height anyway
402402
return 0, nil
403-
case "", chaintype.ChainArbitrum, chaintype.ChainAstar, chaintype.ChainCelo, chaintype.ChainGnosis, chaintype.ChainHedera, chaintype.ChainKroma, chaintype.ChainOptimismBedrock, chaintype.ChainSei, chaintype.ChainScroll, chaintype.ChainWeMix, chaintype.ChainXLayer, chaintype.ChainZkEvm, chaintype.ChainZkSync, chaintype.ChainZircuit:
403+
case "", chaintype.ChainArbitrum, chaintype.ChainAstar, chaintype.ChainCelo, chaintype.ChainGnosis, chaintype.ChainHedera, chaintype.ChainKroma, chaintype.ChainOptimismBedrock, chaintype.ChainSei, chaintype.ChainScroll, chaintype.ChainWeMix, chaintype.ChainXLayer, chaintype.ChainZkEvm, chaintype.ChainZkSync:
404404
// continue
405405
}
406406
latestBlockHeight := t.getLatestBlockHeight()

core/services/ocrcommon/block_translator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func NewBlockTranslator(cfg Config, client evmclient.Client, lggr logger.Logger)
2222
switch cfg.ChainType() {
2323
case chaintype.ChainArbitrum:
2424
return NewArbitrumBlockTranslator(client, lggr)
25-
case "", chaintype.ChainCelo, chaintype.ChainGnosis, chaintype.ChainKroma, chaintype.ChainMetis, chaintype.ChainOptimismBedrock, chaintype.ChainSei, chaintype.ChainScroll, chaintype.ChainWeMix, chaintype.ChainXLayer, chaintype.ChainZkEvm, chaintype.ChainZkSync, chaintype.ChainZircuit:
25+
case "", chaintype.ChainCelo, chaintype.ChainGnosis, chaintype.ChainKroma, chaintype.ChainMetis, chaintype.ChainOptimismBedrock, chaintype.ChainSei, chaintype.ChainScroll, chaintype.ChainWeMix, chaintype.ChainXLayer, chaintype.ChainZkEvm, chaintype.ChainZkSync:
2626
fallthrough
2727
default:
2828
return &l1BlockTranslator{}

0 commit comments

Comments
 (0)