Skip to content

Commit da4eebc

Browse files
authored
Merge pull request #9618 from BitGo/adityaakash929/si-1464-statics-ada-usdr-staking
feat(statics): enable STAKING on ada:usdr and tada:usdr (SI-1464)
2 parents 82b3af6 + 12974fc commit da4eebc

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

modules/statics/src/coins/adaTokens.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const adaTokens = [
3535
'USDr',
3636
'asset1phc5mnwh5p5tsqqxuf2mtvcvpsm6f6vjf8ue08',
3737
UnderlyingAsset['tada:usdr'],
38-
[...ADA_TOKEN_FEATURES, CoinFeature.STABLECOIN]
38+
[...ADA_TOKEN_FEATURES, CoinFeature.STABLECOIN, CoinFeature.STAKING]
3939
),
4040
tadaToken(
4141
'a84eff6c-4f7e-48b1-a92f-f535dcccc28c',
@@ -178,7 +178,7 @@ export const adaTokens = [
178178
'USDr',
179179
'asset19k6sv4ry9cu7pd25lry27k0crt3x3hyc5zgv3g',
180180
UnderlyingAsset['ada:usdr'],
181-
[...ADA_TOKEN_FEATURES, CoinFeature.STABLECOIN]
181+
[...ADA_TOKEN_FEATURES, CoinFeature.STABLECOIN, CoinFeature.STAKING]
182182
),
183183
adaToken(
184184
'e9d2b3bb-a668-404d-a6bf-bf2dfefed4d2',

modules/statics/test/unit/coins.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,6 +1413,23 @@ describe('Liquid Staking Features', () => {
14131413
});
14141414
});
14151415

1416+
describe('ADA RealFi USDr staking', () => {
1417+
it('should have STAKING feature for stakeable USDr tokens', () => {
1418+
['ada:usdr', 'tada:usdr'].forEach((coinName) => {
1419+
const coin = coins.get(coinName);
1420+
coin.features.includes(CoinFeature.STAKING).should.eql(true);
1421+
coin.features.includes(CoinFeature.STABLECOIN).should.eql(true);
1422+
});
1423+
});
1424+
1425+
it('should not mark sUSDr as stakeable', () => {
1426+
['ada:susdr', 'tada:susdr'].forEach((coinName) => {
1427+
const coin = coins.get(coinName);
1428+
coin.features.includes(CoinFeature.STAKING).should.eql(false);
1429+
});
1430+
});
1431+
});
1432+
14161433
describe('create token map using config details', () => {
14171434
it('should create a valid token map from AmsTokenConfig', () => {
14181435
const tokenMap = createTokenMapUsingConfigDetails(amsTokenConfig);

0 commit comments

Comments
 (0)