Skip to content

Commit a69d8ad

Browse files
committed
bump gas limits
1 parent eed6646 commit a69d8ad

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

sdk/route/src/multiTokenAutomatic.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,13 @@ export class MultiTokenNttAutomaticRoute<N extends Network>
5757
static NATIVE_GAS_DROPOFF_SUPPORTED: boolean = false;
5858

5959
// Standard Relayer gas limits for transfers
60-
// These default gas limits should be high enough to cover the gas usage of delivery or the delivery will fail.
61-
static SR_GAS_LIMIT: bigint = 300_000n;
60+
// The gas limit can vary depending on the complexity of the token contract and the specific EVM chain.
61+
// A good upper bound for gas limits to accommodate most ERC-20 token transfers across multiple EVM chains
62+
// should be used. This limit should cover the majority of tokens, including those with additional logic
63+
// such as hooks or complex state changes.
64+
static SR_GAS_LIMIT: bigint = 375_000n;
6265
// More gas is needed to create a token if it doesn't exist on the destination chain yet (unattested).
63-
static SR_GAS_LIMIT_CREATE_TOKEN: bigint = 1_000_000n;
66+
static SR_GAS_LIMIT_CREATE_TOKEN: bigint = 1_250_000n;
6467

6568
// @ts-ignore
6669
// Since we set the config on the static class, access it with this param

0 commit comments

Comments
 (0)