From 8662342474a7f3a9d1035f9c6ad5599149dc48a1 Mon Sep 17 00:00:00 2001 From: David Kaplan Date: Tue, 5 May 2026 11:20:01 -0400 Subject: [PATCH] chore(statics): add staking and custody feature to lightning T1-3207 BTC-000 --- modules/statics/src/lightning.ts | 7 ++++++- modules/statics/test/unit/coins.ts | 5 +---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/statics/src/lightning.ts b/modules/statics/src/lightning.ts index 6e547f8c96..5cd09b1f40 100644 --- a/modules/statics/src/lightning.ts +++ b/modules/statics/src/lightning.ts @@ -15,7 +15,12 @@ interface LightningConstructorOptions { } export class LightningCoin extends BaseCoin { - public static readonly DEFAULT_FEATURES = [CoinFeature.LIGHTNING_MODEL]; + public static readonly DEFAULT_FEATURES = [ + CoinFeature.LIGHTNING_MODEL, + CoinFeature.STAKING, + CoinFeature.CUSTODY, + CoinFeature.CUSTODY_BITGO_TRUST, + ]; /** * Additional fields for lightning coins diff --git a/modules/statics/test/unit/coins.ts b/modules/statics/test/unit/coins.ts index db7b71ddeb..273df3b3c8 100644 --- a/modules/statics/test/unit/coins.ts +++ b/modules/statics/test/unit/coins.ts @@ -922,10 +922,7 @@ coins.forEach((coin, coinName) => { } else { it('should return true for CUSTODY and CUSTODY_BITGO_TRUST coin feature', () => { const coinSupportsCustody = - coin.family !== CoinFamily.LNBTC && - coin.family !== CoinFamily.CELO && - coin.name !== 'ofccelo' && - coin.name !== 'ofctcelo'; + coin.family !== CoinFamily.CELO && coin.name !== 'ofccelo' && coin.name !== 'ofctcelo'; coin.features.includes(CoinFeature.CUSTODY).should.eql(coinSupportsCustody); coin.features.includes(CoinFeature.CUSTODY_BITGO_TRUST).should.eql(coinSupportsCustody); });