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.

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