From 86e65676452428c98913baf6f16ed07339e71217 Mon Sep 17 00:00:00 2001 From: Ashutosh Kumar Date: Tue, 27 Oct 2026 22:30:55 +0530 Subject: [PATCH] feat(statics): enable staking feature for mainnet eth:zama Add CoinFeature.STAKING to the mainnet eth:zama ERC20 entry so the staking UI lists ZAMA in the Stake asset picker for ETH wallets. The entry previously used the default ERC20 features, so bg-ui filtered it out while the Hoodi hteth:zamamock entry (which carries STAKING) showed. The existing default features (account defaults + BULK_TRANSACTION) are kept unchanged. Flip the eth:zama statics test to assert the staking metadata, mirroring the hteth:zamamock assertions. Staking access stays gated per enterprise by the staking-service zama-staking flag. TICKET: SI-2153 --- modules/statics/src/coins/erc20Coins.ts | 3 ++- modules/statics/test/unit/base.ts | 9 +++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/modules/statics/src/coins/erc20Coins.ts b/modules/statics/src/coins/erc20Coins.ts index 0a095889492..62c7fa318e9 100644 --- a/modules/statics/src/coins/erc20Coins.ts +++ b/modules/statics/src/coins/erc20Coins.ts @@ -15002,7 +15002,8 @@ export const erc20Coins = [ 'Zama', 18, '0xa12cc123ba206d4031d1c7f6223d1c2ec249f4f3', - UnderlyingAsset['eth:zama'] + UnderlyingAsset['eth:zama'], + [...AccountCoin.DEFAULT_FEATURES, CoinFeature.BULK_TRANSACTION, CoinFeature.STAKING] ), erc20( '9c99940d-fa25-48cd-bcf5-ef794db4a532', diff --git a/modules/statics/test/unit/base.ts b/modules/statics/test/unit/base.ts index 325a5a9b502..ca847bac6bf 100644 --- a/modules/statics/test/unit/base.ts +++ b/modules/statics/test/unit/base.ts @@ -387,9 +387,14 @@ describe('Tokenized Equity CoinFeatures', function () { }); }); describe('ZAMA staking feature', function () { - it('eth:zama should not expose STAKING', function () { + it('eth:zama should expose correct staking metadata', function () { const coin = coins.get('eth:zama'); - coin.features.includes(CoinFeature.STAKING).should.be.false(); + coin.fullName.should.equal('Zama'); + coin.decimalPlaces.should.equal(18); + coin.contractAddress.should.equal('0xa12cc123ba206d4031d1c7f6223d1c2ec249f4f3'); + coin.network.name.should.equal(Networks.main.ethereum.name); + coin.features.should.containEql(CoinFeature.STAKING); + coin.features.should.containEql(CoinFeature.BULK_TRANSACTION); }); it('hteth:zamamock should expose correct staking metadata', function () {