test: Duplikat-Check + Doku-Kommentare in Watchlist (Review Task 3)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -8,6 +8,10 @@ describe('watchlist', () => {
|
|||||||
if (t.instrument) expect(TRUMP_PAIRS).toContain(t.instrument);
|
if (t.instrument) expect(TRUMP_PAIRS).toContain(t.instrument);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
test('keine doppelten Contracts', () => {
|
||||||
|
const contracts = TRACKED_TOKENS.map((t) => t.contract);
|
||||||
|
expect(new Set(contracts).size).toBe(contracts.length);
|
||||||
|
});
|
||||||
test('Contract-Adressen und Wallets sind lowercase (getLogs-Vergleich)', () => {
|
test('Contract-Adressen und Wallets sind lowercase (getLogs-Vergleich)', () => {
|
||||||
for (const t of TRACKED_TOKENS) expect(t.contract).toBe(t.contract.toLowerCase());
|
for (const t of TRACKED_TOKENS) expect(t.contract).toBe(t.contract.toLowerCase());
|
||||||
for (const w of WATCHED_WALLETS) expect(w.address).toBe(w.address.toLowerCase());
|
for (const w of WATCHED_WALLETS) expect(w.address).toBe(w.address.toLowerCase());
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ export const COIN_KEYWORDS: { symbol: string; instrument: Pair | null; names: st
|
|||||||
{ symbol: 'ONDO', instrument: 'ONDO_USDT', names: ['ondo'], tickers: ['ONDO'] },
|
{ symbol: 'ONDO', instrument: 'ONDO_USDT', names: ['ondo'], tickers: ['ONDO'] },
|
||||||
{ symbol: 'ENA', instrument: 'ENA_USDT', names: ['ethena'], tickers: ['ENA'] },
|
{ symbol: 'ENA', instrument: 'ENA_USDT', names: ['ethena'], tickers: ['ENA'] },
|
||||||
{ symbol: 'SUI', instrument: 'SUI_USDT', names: [], tickers: ['SUI'] }, // 'sui' lowercase zu generisch
|
{ symbol: 'SUI', instrument: 'SUI_USDT', names: [], tickers: ['SUI'] }, // 'sui' lowercase zu generisch
|
||||||
{ symbol: 'SEI', instrument: 'SEI_USDT', names: [], tickers: ['SEI'] },
|
{ symbol: 'SEI', instrument: 'SEI_USDT', names: [], tickers: ['SEI'] }, // 'sei' lowercase zu generisch (engl. Wort)
|
||||||
{ symbol: 'TRX', instrument: null, names: ['tron'], tickers: ['TRX'] }, // kein USDT-Paar auf Crypto.com
|
{ symbol: 'TRX', instrument: null, names: ['tron'], tickers: ['TRX'] }, // kein USDT-Paar auf Crypto.com
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -51,6 +51,7 @@ export const RPC_URLS = [
|
|||||||
'https://cloudflare-eth.com',
|
'https://cloudflare-eth.com',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/** Inoffizieller RSS-Mirror (Dritt-Archiv), kein offizielles Truth-Social-API. */
|
||||||
export const TRUTH_FEED_URL = 'https://trumpstruth.org/feed';
|
export const TRUTH_FEED_URL = 'https://trumpstruth.org/feed';
|
||||||
export const MIN_NOTIONAL_USD = 50_000; // Spam-/Dust-Schutz on-chain
|
export const MIN_NOTIONAL_USD = 50_000; // Spam-/Dust-Schutz on-chain
|
||||||
export const TRUTH_DEDUPE_MS = 72 * 3600_000; // max. 1 Truth-Event je Coin pro 72 h
|
export const TRUTH_DEDUPE_MS = 72 * 3600_000; // max. 1 Truth-Event je Coin pro 72 h
|
||||||
|
|||||||
Reference in New Issue
Block a user