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
21 changes: 21 additions & 0 deletions modules/bitgo/test/v2/unit/coins/ofcToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,27 @@ describe('OFC:', function () {
});
});

describe('check ofc tokens for Base USDC', function () {
const tokenMain = 'ofcbaseeth:usdc';
const tokenTest = 'ofctbaseeth:usdc';
describe('for main network', function () {
it(`should have the correct values for ${tokenMain}`, function () {
const ofcCoin = bitgo.coin(tokenMain);
ofcCoin.getChain().should.equal(tokenMain);
ofcCoin.getFullName().should.equal('Base USD Coin');
ofcCoin.getBaseFactor().should.equal(PRECISION_6);
});
});
describe('for test network', function () {
it(`should have the correct values for ${tokenTest}`, function () {
const ofcCoin = bitgo.coin(tokenTest);
ofcCoin.getChain().should.equal(tokenTest);
ofcCoin.getFullName().should.equal('Test Base USD Coin');
ofcCoin.getBaseFactor().should.equal(PRECISION_6);
});
});
});

describe('check ofc tokens for Stellar USDC', function () {
const tokenMain = 'ofcxlm:usdc';
const tokenTest = 'ofctxlm:tst';
Expand Down
28 changes: 28 additions & 0 deletions modules/statics/src/coins/ofcErc20Coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7104,6 +7104,20 @@ export const tOfcErc20Coins = [
true,
'baseeth'
),
ofcerc20(
'daab4576-031c-4bf2-b0bf-7ff4d23f0465',
'ofcbaseeth:usdc',
'Base USD Coin',
6,
UnderlyingAsset['baseeth:usdc'],
undefined,
[CoinFeature.STABLECOIN],
'',
undefined,
undefined,
true,
'baseeth'
),
tofcerc20(
'b5277412-46b8-4da3-8fd2-5bf4557fcbd8',
'ofctbaseeth:tusdl',
Expand Down Expand Up @@ -7132,6 +7146,20 @@ export const tOfcErc20Coins = [
undefined,
'tbaseeth'
),
tofcerc20(
'b9b5fc44-0e0a-45ec-8fde-6400ee036af6',
'ofctbaseeth:usdc',
'Test Base USD Coin',
6,
UnderlyingAsset['tbaseeth:usdc'],
undefined,
[CoinFeature.STABLECOIN],
'',
undefined,
undefined,
true,
'tbaseeth'
),
];

function underlyingAssetForSymbol(underlyingAssetValue: string): UnderlyingAsset {
Expand Down
Loading