Skip to content

Commit fb1f1fa

Browse files
Add gas spikes note (smartcontractkit#2105)
* Add gas spikes note * Remove printscreen * Add shorter inline explanation and adjust gas spike insert --------- Co-authored-by: Crystal Gomes <[email protected]>
1 parent 58332d3 commit fb1f1fa

10 files changed

+63
-61
lines changed

src/content/ccip/getting-started.mdx

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,10 @@ Deploy the `Sender.sol` contract on _Avalanche Fuji_. To see a detailed explanat
6262
style="max-width: 70%;"
6363
/>
6464

65-
1. Open MetaMask and send <CopyText text="0.2" code/> LINK to the contract address that you copied. Your contract will pay CCIP fees in LINK.
65+
1. Open MetaMask and send <CopyText text="70" code/> LINK to the contract address that you copied. Your contract will pay CCIP fees in LINK.
6666

67-
<ClickToZoom
68-
src="/images/ccip/tutorials/fund-deployed-sender-avalanche-fuji.webp"
69-
alt="Chainlink CCIP fund deployed sender Avalanche Fuji"
70-
/>
67+
**Note:** This transaction fee is significantly higher than normal due to gas spikes on Sepolia. To run this example, you can get additional testnet LINK
68+
from [faucets.chain.link](https://faucets.chain.link) or use a supported testnet other than Sepolia.
7169

7270
## Deploy the receiver contract
7371

@@ -101,7 +99,7 @@ Deploy the receiver contract on _Ethereum Sepolia_. You will use this contract t
10199
style="max-width: 70%;"
102100
/>
103101

104-
You now have one _sender_ contract on _Avalanche Fuji_ and one _receiver_ contract on _Ethereum Sepolia_. You sent `0.2` LINK to the _sender_ contract to pay the CCIP fees. Next, send data from the sender contract to the receiver contract.
102+
You now have one _sender_ contract on _Avalanche Fuji_ and one _receiver_ contract on _Ethereum Sepolia_. You sent `70` LINK to the _sender_ contract to pay the CCIP fees. Next, send data from the sender contract to the receiver contract.
105103

106104
## Send data
107105

@@ -125,10 +123,7 @@ Send a `Hello World!` string from your contract on _Avalanche Fuji_ to the contr
125123

126124
1. Click the **transact** button to run the function. MetaMask prompts you to confirm the transaction.
127125

128-
<Aside type="note">
129-
During gas price spikes, your transaction might fail, requiring more than _0.2 LINK_ to proceed. If your
130-
transaction fails, fund your contract with more _LINK_ tokens and try again.
131-
</Aside>
126+
<CcipCommon callout="gasSpike" />
132127

133128
1. After the transaction is successful, note the transaction hash. Here is an [example](https://testnet.snowtrace.io/tx/0x113933ec9f1b2e795a1e2f564c9d452db92d3e9a150545712687eb546916e633) of a successful transaction on _Avalanche Fuji_.
134129

src/content/ccip/tutorials/cross-chain-tokens.mdx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ To use this contract:
7272

7373
You will transfer _0.001 CCIP-BnM_. The CCIP fees for using CCIP will be paid in LINK. Read this [explanation](#transferring-tokens-and-pay-in-link) for a detailed description of the code example.
7474

75-
1. Open MetaMask and connect to _Avalanche Fuji_. Fund your contract with LINK tokens. You can transfer <CopyText text="0.2" code/> _LINK_ to your contract. **Note**: The LINK tokens are used to pay for CCIP fees.
75+
1. Open MetaMask and connect to _Avalanche Fuji_. Fund your contract with LINK tokens. You can transfer <CopyText text="70" code/> _LINK_ to your contract. **Note**: The LINK tokens are used to pay for CCIP fees.
76+
77+
**Note:** This transaction fee is significantly higher than normal due to gas spikes on Sepolia. To run this example, you can get additional testnet LINK
78+
from [faucets.chain.link](https://faucets.chain.link) or use a supported testnet other than Sepolia.
7679

7780
1. Transfer CCIP-BnM from _Avalanche Fuji_:
7881

@@ -93,10 +96,7 @@ You will transfer _0.001 CCIP-BnM_. The CCIP fees for using CCIP will be paid in
9396
1. Click the **transact** button and confirm the transaction on MetaMask.
9497
1. Once the transaction is successful, note the transaction hash. Here is an [example](https://testnet.snowtrace.io/tx/0x62ca604240fc30133646ff94dcedac5375c5e42b109f3339c85e4fa29541d42b) of a transaction on _Avalanche Fuji_.
9598

96-
<Aside type="note">
97-
During gas price spikes, your transaction might fail, requiring more than _0.2 LINK_ to proceed. If your
98-
transaction fails, fund your contract with more _LINK_ tokens and try again.
99-
</Aside>
99+
<CcipCommon callout="gasSpike" />
100100

101101
1. Open the [CCIP explorer](https://ccip.chain.link/) and search your cross-chain transaction using the transaction hash.
102102

@@ -156,10 +156,7 @@ You will transfer _0.001 CCIP-BnM_. The CCIP fees for using CCIP will be paid in
156156
1. Click the **transact** button and confirm the transaction on MetaMask.
157157
1. Once the transaction is successful, note the transaction hash. Here is an [example](https://testnet.snowtrace.io/tx/0x186e5767d65dffe685c24d5ee881201e2b39fd684220a68943b0b861178ddf64) of a transaction on _Avalanche Fuji_.
158158

159-
<Aside type="note">
160-
During gas price spikes, your transaction might fail, requiring more than _0.01 ETH_ to proceed. If your
161-
transaction fails, fund your contract with more _ETH_ and try again.
162-
</Aside>
159+
<CcipCommon callout="gasSpike" />
163160

164161
1. Open the [CCIP explorer](https://ccip.chain.link/) and search your cross-chain transaction using the transaction hash.
165162

src/content/ccip/tutorials/manual-execution.mdx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ To use this contract:
6363
1. Click the **transact** button. After you confirm the transaction, the contract address appears on the _Deployed Contracts_ list.
6464
Note your contract address.
6565
1. Open MetaMask and fund your contract with CCIP-BnM tokens. You can transfer <CopyText text="0.002" code/> _CCIP-BnM_ to your contract.
66-
1. Open MetaMask and fund your contract with LINK tokens. You can transfer <CopyText text="0.5" code/> _LINK_ to your contract. In this example, LINK is used to pay the CCIP fees.
66+
1. Open MetaMask and fund your contract with LINK tokens. You can transfer <CopyText text="70" code/> _LINK_ to your contract. In this example, LINK is used to pay the CCIP fees.
67+
68+
**Note:** This transaction fee is significantly higher than normal due to gas spikes on Sepolia. To run this example, you can get additional testnet LINK
69+
from [faucets.chain.link](https://faucets.chain.link) or use a supported testnet other than Sepolia.
70+
6771
1. Enable your contract to send CCIP messages to _Ethereum Sepolia_:
6872
1. In Remix IDE, under _Deploy & Run Transactions_, open the list of transactions of your smart contract deployed on _Avalanche Fuji_.
6973
1. Call the `allowlistDestinationChain` with <CopyText text="16015286601757825753" code/> as the destination chain selector, and <CopyText text="true" code/> as allowed. Each chain selector is found on the [supported networks page](/ccip/supported-networks).
@@ -109,10 +113,7 @@ You will transfer _0.001 CCIP-BnM_ and a text. The CCIP fees for using CCIP will
109113
1. Click on `transact` and confirm the transaction on MetaMask.
110114
1. After the transaction is successful, record the transaction hash. Here is an [example](https://testnet.snowtrace.io/tx/0xfb7e1eea5335c018589166b1ac597b618a92899d99ec4d1b1079e147cde81d9b) of a transaction on _Avalanche Fuji_.
111115

112-
<Aside type="note">
113-
During gas price spikes, your transaction might fail, requiring more than _0.5 LINK_ to proceed. If your transaction
114-
fails, fund your contract with more _LINK_ tokens and try again.
115-
</Aside>
116+
<CcipCommon callout="gasSpike" />
116117

117118
1. Open the [CCIP explorer](https://ccip.chain.link/) and search your cross-chain transaction using the transaction hash. Note that the _Gas Limit_ is _20000_. In this example, the CCIP message ID is _0xf8dc098c832332ac59ccc73ee00b480975d8f122a2265c90a1ccc2cd52268770_.
118119

src/content/ccip/tutorials/programmable-token-transfers-defensive.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ At this point, you have one _sender_ contract on _Avalanche Fuji_ and one _recei
9292

9393
You will transfer _0.001 CCIP-BnM_ and a text. The CCIP fees for using CCIP will be paid in LINK.
9494

95-
1. Open MetaMask and connect to _Avalanche Fuji_. Fund your contract with LINK tokens. You can transfer <CopyText text="0.5" code/> _LINK_ to your contract. In this example, LINK is used to pay the CCIP fees.
95+
1. Open MetaMask and connect to _Avalanche Fuji_. Fund your contract with LINK tokens. You can transfer <CopyText text="70" code/> _LINK_ to your contract. In this example, LINK is used to pay the CCIP fees.
96+
97+
**Note:** This transaction fee is significantly higher than normal due to gas spikes on Sepolia. To run this example, you can get additional testnet LINK
98+
from [faucets.chain.link](https://faucets.chain.link) or use a supported testnet other than Sepolia.
9699

97100
1. Send a string data with tokens from _Avalanche Fuji_:
98101

@@ -113,10 +116,7 @@ You will transfer _0.001 CCIP-BnM_ and a text. The CCIP fees for using CCIP will
113116
1. Click on `transact` and confirm the transaction on MetaMask.
114117
1. After the transaction is successful, record the transaction hash. Here is an [example](https://testnet.snowtrace.io/tx/0x4c7a192fa5636557569d076c06633c4f06140f117a44b49f21628eedd72b8423) of a transaction on _Avalanche Fuji_.
115118

116-
<Aside type="note">
117-
During gas price spikes, your transaction might fail, requiring more than _0.5 LINK_ to proceed. If your
118-
transaction fails, fund your contract with more _LINK_ tokens and try again.
119-
</Aside>
119+
<CcipCommon callout="gasSpike" />
120120

121121
1. Open the [CCIP explorer](https://ccip.chain.link/) and search your cross-chain transaction using the transaction hash.
122122

src/content/ccip/tutorials/programmable-token-transfers.mdx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ At this point, you have one _sender_ contract on _Avalanche Fuji_ and one _recei
8989

9090
You will transfer _0.001 CCIP-BnM_ and a text. The CCIP fees for using CCIP will be paid in LINK. Read this [explanation](#transferring-tokens-and-data-and-pay-in-link) for a detailed description of the code example.
9191

92-
1. Open MetaMask and connect to _Avalanche Fuji_. Fund your contract with LINK tokens. You can transfer <CopyText text="0.2" code/> _LINK_ to your contract. In this example, LINK is used to pay the CCIP fees.
92+
1. Open MetaMask and connect to _Avalanche Fuji_. Fund your contract with LINK tokens. You can transfer <CopyText text="70" code/> _LINK_ to your contract. In this example, LINK is used to pay the CCIP fees.
93+
94+
**Note:** This transaction fee is significantly higher than normal due to gas spikes on Sepolia. To run this example, you can get additional testnet LINK
95+
from [faucets.chain.link](https://faucets.chain.link) or use a supported testnet other than Sepolia.
9396

9497
1. Send a string data with tokens from _Avalanche Fuji_:
9598

@@ -110,10 +113,7 @@ You will transfer _0.001 CCIP-BnM_ and a text. The CCIP fees for using CCIP will
110113
1. Click on `transact` and confirm the transaction on MetaMask.
111114
1. After the transaction is successful, record the transaction hash. Here is an [example](https://testnet.snowtrace.io/tx/0xd3a0fade0e143fb39964c764bd4803e40062ba8c88e129f44ee795e33ade464b) of a transaction on _Avalanche Fuji_.
112115

113-
<Aside type="note">
114-
During gas price spikes, your transaction might fail, requiring more than _0.2 LINK_ to proceed. If your
115-
transaction fails, fund your contract with more _LINK_ tokens and try again.
116-
</Aside>
116+
<CcipCommon callout="gasSpike" />
117117

118118
1. Open the [CCIP explorer](https://ccip.chain.link/) and search your cross-chain transaction using the transaction hash.
119119

@@ -176,10 +176,7 @@ You will transfer _0.001 CCIP-BnM_ and a text. The CCIP fees for using CCIP will
176176
1. Click on `transact` and confirm the transaction on MetaMask.
177177
1. Once the transaction is successful, note the transaction hash. Here is an [example](https://testnet.snowtrace.io/tx/0x8101fef78288981813915e77f8e5746bdba69711bdb7bc1706944a67ac70854b) of a transaction on _Avalanche Fuji_.
178178

179-
<Aside type="note">
180-
During gas price spikes, your transaction might fail, requiring more than _0.01 ETH_ to proceed. If your
181-
transaction fails, fund your contract with more _ETH_ and try again.
182-
</Aside>
179+
<CcipCommon callout="gasSpike" />
183180

184181
1. Open the [CCIP explorer](https://ccip.chain.link/) and search your cross-chain transaction using the transaction hash.
185182

src/content/ccip/tutorials/send-arbitrary-data-receipt-acknowledgment.mdx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ Deploy the `MessageTracker.sol` contract on _Avalanche Fuji_ and enable it to se
5959

6060
1. After you confirm the transaction, the contract address appears in the **Deployed Contracts** list. Copy your contract address.
6161

62-
1. Open MetaMask and send <CopyText text="0.5" code/> LINK to the contract address you copied. Your contract will pay CCIP fees in LINK.
62+
1. Open MetaMask and send <CopyText text="70" code/> LINK to the contract address you copied. Your contract will pay CCIP fees in LINK.
63+
64+
**Note:** This transaction fee is significantly higher than normal due to gas spikes on Sepolia. To run this example, you can get additional testnet LINK
65+
from [faucets.chain.link](https://faucets.chain.link) or use a supported testnet other than Sepolia.
6366

6467
1. Allow the _Ethereum Sepolia_ chain selector for both destination and source chains.
6568

@@ -94,7 +97,10 @@ Deploy the `Acknowledger.sol` contract on _Ethereum Sepolia_ and enable it to se
9497

9598
1. After you confirm the transaction, the contract address appears in the **Deployed Contracts** list. Copy this contract address.
9699

97-
1. Open MetaMask and send <CopyText text="0.5" code/> LINK to the contract address that you copied. Your contract will pay CCIP fees in LINK.
100+
1. Open MetaMask and send <CopyText text="70" code/> LINK to the contract address that you copied. Your contract will pay CCIP fees in LINK.
101+
102+
**Note:** This transaction fee is significantly higher than normal due to gas spikes on Sepolia. To run this example, you can get additional testnet LINK
103+
from [faucets.chain.link](https://faucets.chain.link) or use a supported testnet other than Sepolia.
98104

99105
1. Allow the _Avalanche Fuji_ chain selector for both destination and source chains. You must also enable your acknowledger contract to receive CCIP messages from the message tracker you deployed on _Avalanche Fuji_.
100106

@@ -116,7 +122,9 @@ Deploy the `Acknowledger.sol` contract on _Ethereum Sepolia_ and enable it to se
116122
1. Open MetaMask and select the _Avalanche Fuji_ network.
117123
1. Click **transact** to call the function. MetaMask prompts you to confirm the transaction.
118124

119-
At this point, you have one _message tracker_ (sender) contract on _Avalanche Fuji_ and one _acknowledger_ (receiver) contract on _Ethereum Sepolia_. You sent `0.5` LINK to the _message tracker_ contract and `0.5` LINK to the _acknowledger_ contract to pay the CCIP fees.
125+
At this point, you have one _message tracker_ (sender) contract on _Avalanche Fuji_ and one _acknowledger_ (receiver) contract on _Ethereum Sepolia_. You sent `70` LINK to the _message tracker_ contract and `70` LINK to the _acknowledger_ contract to pay the CCIP fees.
126+
127+
**Note:** This transaction fee is significantly higher than normal due to gas spikes on Sepolia.
120128

121129
### Send data and track the message status
122130

@@ -136,10 +144,7 @@ At this point, you have one _message tracker_ (sender) contract on _Avalanche Fu
136144

137145
1. Click **transact** to call the function. MetaMask prompts you to confirm the transaction.
138146

139-
<Aside type="note">
140-
During gas price spikes, your transaction might fail, requiring more than _0.5 LINK_ to proceed. If your
141-
transaction fails, fund your contract with more _LINK_ tokens and try again.
142-
</Aside>
147+
<CcipCommon callout="gasSpike" />
143148

144149
1. Upon transaction success, expand the last transaction in the Remix log and copy the transaction hash. In this example, it is `0x1f88abc33a4ab426a5466e01d9e5fe8a2b96d6a6e5cedb643a674489c74126b4`.
145150

src/content/ccip/tutorials/send-arbitrary-data.mdx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ At this point, you have one _sender_ contract on _Avalanche Fuji_ and one _recei
7777

7878
You will use CCIP to send a text. The CCIP fees for using CCIP will be paid in LINK. Read this [explanation](#sending-data-and-pay-in-link) for a detailed description of the code example.
7979

80-
1. Open MetaMask and connect to _Avalanche Fuji_. Fund your contract with LINK tokens. You can transfer <CopyText text="0.5" code/> _LINK_ to your contract. In this example, LINK is used to pay the CCIP fees.
80+
1. Open MetaMask and connect to _Avalanche Fuji_. Fund your contract with LINK tokens. You can transfer <CopyText text="70" code/> _LINK_ to your contract. In this example, LINK is used to pay the CCIP fees.
81+
82+
**Note:** This transaction fee is significantly higher than normal due to gas spikes on Sepolia. To run this example, you can get additional testnet LINK
83+
from [faucets.chain.link](https://faucets.chain.link) or use a supported testnet other than Sepolia.
8184

8285
1. Send "Hello World!" from _Avalanche Fuji_:
8386

@@ -96,10 +99,7 @@ You will use CCIP to send a text. The CCIP fees for using CCIP will be paid in L
9699
1. Click on `transact` and confirm the transaction on MetaMask.
97100
1. Once the transaction is successful, note the transaction hash. Here is an [example](https://testnet.snowtrace.io/tx/0x233d2d882e6cfe736c982d58a33021d2f4f6b96e0cfd2c7a874cf2eb63790aa1) of a transaction on _Avalanche Fuji_.
98101

99-
<Aside type="note">
100-
During gas price spikes, your transaction might fail, requiring more than _0.5 LINK_ to proceed. If your
101-
transaction fails, fund your contract with more _LINK_ tokens and try again.
102-
</Aside>
102+
<CcipCommon callout="gasSpike" />
103103

104104
1. Open the [CCIP explorer](https://ccip.chain.link/) and search your cross-chain transaction using the transaction hash.
105105

@@ -152,10 +152,7 @@ You will use CCIP to send a text. The CCIP fees for using CCIP will be paid in n
152152
1. Click on `transact` and confirm the transaction on MetaMask.
153153
1. Once the transaction is successful, note the transaction hash. Here is an [example](https://testnet.snowtrace.io/tx/0x5cb5ea9b1631f62148105d67b780b56fce66db398667276ea498104b7896ffee) of a transaction on _Avalanche Fuji_.
154154

155-
<Aside type="note">
156-
During gas price spikes, your transaction might fail, requiring more than _0.01 ETH_ to proceed. If your
157-
transaction fails, fund your contract with more _ETH_ and try again.
158-
</Aside>
155+
<CcipCommon callout="gasSpike" />
159156

160157
1. Open the [CCIP explorer](https://ccip.chain.link/) and search your cross-chain transaction using the transaction hash.
161158

src/content/ccip/tutorials/usdc.mdx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ Deploy the Sender contract on _Avalanche Fuji_:
9191
1. Click the **transact** button. After you confirm the transaction, the contract address appears on the _Deployed Contracts_ list.
9292
Note your contract address.
9393
1. Open MetaMask and fund your contract with USDC tokens. You can transfer <CopyText text="1" code/> _USDC_ to your contract.
94-
1. Fund your contract with LINK tokens. You can transfer <CopyText text="1.5" code/> _LINK_ to your contract. In this example, LINK is used to pay the CCIP fees.
94+
1. Fund your contract with LINK tokens. You can transfer <CopyText text="70" code/> _LINK_ to your contract. In this example, LINK is used to pay the CCIP fees.
95+
96+
**Note:** This transaction fee is significantly higher than normal due to gas spikes on Sepolia. To run this tutorial, you can get additional testnet LINK
97+
from [faucets.chain.link](https://faucets.chain.link) or use a supported testnet other than Sepolia.
9598

9699
Deploy the Staker and Receiver contracts on _Ethereum Sepolia_. Configure the Receiver contract to receive CCIP messages from the Sender contract:
97100

@@ -183,12 +186,7 @@ You will transfer _1 USDC_ and arbitrary data, which contains the encoded stake
183186
1. Click on `transact` and confirm the transaction on MetaMask.
184187
1. After the transaction is successful, record the transaction hash. Here is an [example](https://testnet.snowtrace.io/tx/0x5e066ec7e94496e1547c368df4199b9f0c4f8f6c82012b2d974aa258a5c9e9fe) of a transaction on _Avalanche Fuji_.
185188

186-
{" "}
187-
188-
<Aside type="note">
189-
During gas price spikes, your transaction might fail, requiring more than _1.5 LINK_ to proceed. If your
190-
transaction fails, fund your contract with more _LINK_ tokens and try again.
191-
</Aside>
189+
<CcipCommon callout="gasSpike" />
192190

193191
1. Open the [CCIP explorer](https://ccip.chain.link/) and search your cross-chain transaction using the transaction hash.
194192

0 commit comments

Comments
 (0)