Skip to content
Merged
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: 4 additions & 4 deletions core/src/exchanges/baozi/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,8 @@ export function mapBooleanToUnified(market: BaoziMarket, pubkey: string): Unifie
volume: totalPoolSol,
liquidity: totalPoolSol,
url: `https://baozi.bet/market/${pubkey}`,
category: layerName(market.layer),
tags: [layerName(market.layer), 'solana', 'pari-mutuel'],
category: undefined,
tags: [`tier:${layerName(market.layer)}`, 'solana', 'pari-mutuel'],
};

addBinaryOutcomes(um);
Expand Down Expand Up @@ -449,8 +449,8 @@ export function mapRaceToUnified(market: BaoziRaceMarket, pubkey: string): Unifi
volume: totalPoolSol,
liquidity: totalPoolSol,
url: `https://baozi.bet/market/${pubkey}`,
category: layerName(market.layer),
tags: [layerName(market.layer), 'solana', 'pari-mutuel', 'race'],
category: undefined,
tags: [`tier:${layerName(market.layer)}`, 'solana', 'pari-mutuel', 'race'],
};

// For 2-outcome races, add binary convenience getters
Expand Down
12 changes: 6 additions & 6 deletions core/test/normalizers/exchange-normalizers-3.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1023,14 +1023,14 @@ describe('BaoziNormalizer', () => {
expect(market.volume24h).toBe(0);
});

test('category is official for layer 0', () => {
test('category is undefined (tier is not a topic category)', () => {
const market = normalizer.normalizeMarket(rawBooleanMarket)!;
expect(market.category).toBe('official');
expect(market.category).toBeUndefined();
});

test('tags include official, solana, and pari-mutuel', () => {
test('tags include tier:official, solana, and pari-mutuel', () => {
const market = normalizer.normalizeMarket(rawBooleanMarket)!;
expect(market.tags).toContain('official');
expect(market.tags).toContain('tier:official');
expect(market.tags).toContain('solana');
expect(market.tags).toContain('pari-mutuel');
});
Expand Down Expand Up @@ -1183,9 +1183,9 @@ describe('BaoziNormalizer', () => {
expect(market.volume).toBeCloseTo(10, 5);
});

test('category is lab for layer 1', () => {
test('category is undefined for race markets (tier is not a topic category)', () => {
const market = normalizer.normalizeMarket(rawRaceMarket)!;
expect(market.category).toBe('lab');
expect(market.category).toBeUndefined();
});

test('tags include race', () => {
Expand Down
Loading