Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion modules/statics/src/coinFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ export const POLYGON_TOKEN_FEATURES_WITH_FRANKFURT = [
...ACCOUNT_COIN_DEFAULT_FEATURES,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.BULK_TRANSACTION,
CoinFeature.ERC20_BULK_TRANSACTION,
];
export const CSPR_FEATURES = [
...ACCOUNT_COIN_DEFAULT_FEATURES,
Expand Down Expand Up @@ -262,10 +263,15 @@ export const POLYGON_FEATURES = [
CoinFeature.ERC20_BULK_TRANSACTION,
];

export const POLYGON_TOKEN_FEATURES = [...ACCOUNT_COIN_DEFAULT_FEATURES, CoinFeature.BULK_TRANSACTION];
export const POLYGON_TOKEN_FEATURES = [
...ACCOUNT_COIN_DEFAULT_FEATURES,
CoinFeature.BULK_TRANSACTION,
CoinFeature.ERC20_BULK_TRANSACTION,
];
export const POLYGON_TOKEN_FEATURES_EXCLUDE_SINGAPORE = [
...ACCOUNT_COIN_DEFAULT_FEATURES_EXCLUDE_SINGAPORE,
CoinFeature.BULK_TRANSACTION,
CoinFeature.ERC20_BULK_TRANSACTION,
];
export const EVM_ERC20_TOKEN_FEATURES_EXCLUDE_SINGAPORE = [
...ACCOUNT_COIN_DEFAULT_FEATURES_EXCLUDE_SINGAPORE,
Expand Down
10 changes: 10 additions & 0 deletions modules/statics/test/unit/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1232,6 +1232,16 @@ describe('ERC20 Bulk Transaction Feature', () => {
coin.features.includes(CoinFeature.ERC20_BULK_TRANSACTION).should.eql(true);
});
});

it('Polygon ERC-20 tokens should have ERC20_BULK_TRANSACTION feature', () => {
coins.forEach((coin) => {
if (coin.name.startsWith('polygon:') || coin.name.startsWith('tpolygon:')) {
coin.features
.includes(CoinFeature.ERC20_BULK_TRANSACTION)
.should.eql(true, `expected ${coin.name} to include ERC20_BULK_TRANSACTION`);
}
});
});
});

describe('Custody Bulk Withdrawal Features', () => {
Expand Down
Loading