Skip to content

Commit c38d84f

Browse files
Merge pull request #8695 from BitGo/T1-3048
chore(statics): add staking and custody feature to lightning
2 parents 7e6aa37 + 8662342 commit c38d84f

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

modules/statics/src/lightning.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ interface LightningConstructorOptions {
1515
}
1616

1717
export class LightningCoin extends BaseCoin {
18-
public static readonly DEFAULT_FEATURES = [CoinFeature.LIGHTNING_MODEL];
18+
public static readonly DEFAULT_FEATURES = [
19+
CoinFeature.LIGHTNING_MODEL,
20+
CoinFeature.STAKING,
21+
CoinFeature.CUSTODY,
22+
CoinFeature.CUSTODY_BITGO_TRUST,
23+
];
1924

2025
/**
2126
* Additional fields for lightning coins

modules/statics/test/unit/coins.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -922,10 +922,7 @@ coins.forEach((coin, coinName) => {
922922
} else {
923923
it('should return true for CUSTODY and CUSTODY_BITGO_TRUST coin feature', () => {
924924
const coinSupportsCustody =
925-
coin.family !== CoinFamily.LNBTC &&
926-
coin.family !== CoinFamily.CELO &&
927-
coin.name !== 'ofccelo' &&
928-
coin.name !== 'ofctcelo';
925+
coin.family !== CoinFamily.CELO && coin.name !== 'ofccelo' && coin.name !== 'ofctcelo';
929926
coin.features.includes(CoinFeature.CUSTODY).should.eql(coinSupportsCustody);
930927
coin.features.includes(CoinFeature.CUSTODY_BITGO_TRUST).should.eql(coinSupportsCustody);
931928
});

0 commit comments

Comments
 (0)