@hyperbridge/sdk 2.8.21 → 2.8.22

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.
@@ -19325,17 +19325,13 @@ function formatOptional(amount) {
19325
19325
  }
19326
19326
 
19327
19327
  // src/protocols/intents/IntentGateway.ts
19328
- var ORDER_FEE_GAS_PRICE_BUMP_POLICY = {
19329
- defaultPercent: 10n,
19330
- bySourceStateMachineId: {
19331
- ["EVM-1" /* MAINNET */]: 50n
19332
- }
19333
- };
19328
+ var ETHEREUM_ORDER_FEE_GAS_PRICE_BUMP_PERCENT = 50n;
19329
+ var DEFAULT_ORDER_FEE_GAS_PRICE_BUMP_PERCENT = 100n;
19334
19330
  function resolveOrderFeeGasPriceBump(sourceStateMachineId, isSameChain) {
19335
19331
  if (isSameChain) {
19336
19332
  return 0n;
19337
19333
  }
19338
- return ORDER_FEE_GAS_PRICE_BUMP_POLICY.bySourceStateMachineId[sourceStateMachineId] ?? ORDER_FEE_GAS_PRICE_BUMP_POLICY.defaultPercent;
19334
+ return sourceStateMachineId === "EVM-1" /* MAINNET */ ? ETHEREUM_ORDER_FEE_GAS_PRICE_BUMP_PERCENT : DEFAULT_ORDER_FEE_GAS_PRICE_BUMP_PERCENT;
19339
19335
  }
19340
19336
  var IntentGateway = class _IntentGateway {
19341
19337
  /** EVM chain on which orders are placed and escrowed. */
@@ -19510,9 +19506,9 @@ var IntentGateway = class _IntentGateway {
19510
19506
  * 1. If `order.fees` is unset or zero, prices the fee on an internal copy
19511
19507
  * via {@link quoteOrderFees}: same-chain fees are twice the fill-gas
19512
19508
  * estimate without a gas-price bump; cross-chain order fees originating on
19513
- * Ethereum price gas 50% above the live price, while other source chains use
19514
- * 10%, before attaching (fill gas + the settlement relayer fee)
19515
- * with a further 5% buffer over the whole sum — strictly above the solver's
19509
+ * Ethereum mainnet price gas 50% above the live price, while other source
19510
+ * chains use 100%, before attaching (fill gas + the settlement relayer
19511
+ * fee) with a further 5% buffer over the whole sum — strictly above the solver's
19516
19512
  * unpadded requirement. Direct solver estimates remain unbumped. The wei
19517
19513
  * cost used for the `value` field receives a 2% buffer.
19518
19514
  * 2. Yields `AWAITING_PLACE_ORDER` with `{ to, data, value, nativeFee,
@@ -19902,7 +19898,7 @@ var IntentGateway = class _IntentGateway {
19902
19898
  *
19903
19899
  * @param order - The order to quote. `order.fees` is ignored and not mutated.
19904
19900
  * Gas prices used to derive cross-chain `fees` receive 50% SDK-only headroom
19905
- * when the source chain is Ethereum mainnet and 10% for other source chains.
19901
+ * when the source chain is Ethereum mainnet and 100% for other source chains.
19906
19902
  * Same-chain quotes and direct calls to {@link estimateFillOrder}, including
19907
19903
  * Simplex solver estimates, remain unbumped.
19908
19904
  *