Skip to content

Conversation

@mikeeus
Copy link
Contributor

@mikeeus mikeeus commented Oct 31, 2025

Integrates Lombard protocol to enable bidirectional bridging between native BTC and BTCB (Lombard Bitcoin) on Avalanche.

@rictorlome
Copy link
Contributor

@mikeeus !

const enabled: BridgeType[] = [
BridgeType.LOMBARD_BTC_TO_BTCB,
BridgeType.LOMBARD_BTCB_TO_BTC,
];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those will need to be toggled on/off based on new feature flags:

  • unified-bridge-lombard-btc-to-ava
  • unified-bridge-lombard-ava-to-btc

Feature flags can be added to the FeatureGates enum here:

export enum FeatureGates {

UNIFIED_BRIDGE_LOMBARD_BTC_TO_AVA = 'unified-bridge-lombard-btc-to-ava',
UNIFIED_BRIDGE_LOMBARD_AVA_TO_BTC = 'unified-bridge-lombard-ava-to-btc',
if (featureFlags[FeatureGates.UNIFIED_BRIDGE_LOMBARD_BTC_TO_AVA]) {
  enabled.push(BridgeType.LOMBARD_BTC_TO_BTCB);
} else if (featureFlags[FeatureGates.UNIFIED_BRIDGE_AB_BTC_TO_AVA]) {
  // Make sure to not enable both at the same time
  enabled.push(BridgeType.AVALANCHE_BTC_AVA);
}

if (featureFlags[FeatureGates.UNIFIED_BRIDGE_LOMBARD_AVA_TO_BTC]) {
  enabled.push(BridgeType.LOMBARD_BTCB_TO_BTC);
} else if (featureFlags[FeatureGates.UNIFIED_BRIDGE_AB_AVA_TO_BTC]) {
  // Make sure to not enable both at the same time
  enabled.push(BridgeType.AVALANCHE_AVA_BTC);
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New feature flags are already created. They're enabled for dev environments and disabled for prod.

Comment on lines +542 to +545
<BridgeEstimatedTimeWarning
bridgeType={bridgeType}
targetChain={targetChain}
/>
Copy link
Member

@meeh0w meeh0w Nov 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be displayed in the BridgeTransactionStatus too (please disregard the rest of the UI on the right screenshot, we will not be changing anything in there besides adding the red note at the bottom - ideally in between the source and target network cards).

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants