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
3 changes: 2 additions & 1 deletion constants/anchors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ export const ANCHORS: Anchor[] = [
assetIssuer: USDC_ISSUER,
},
{
// SEP-6 programmatic withdraw — rates are indicative, not firm quotes
id: 'cowrie',
name: 'Cowrie Exchange',
homeDomain: 'cowrie.exchange',
corridors: ['usdc-ngn'],
seps: ['sep6', 'sep10'],
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
assetCode: 'USDC',
assetIssuer: USDC_ISSUER,
seps: ['sep6'],
},
{
id: 'anclap',
Expand Down
26 changes: 26 additions & 0 deletions tests/anchors.cowrie.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { describe, it, expect } from 'vitest';
import { ANCHORS } from '@/constants/anchors';

describe('cowrie.exchange anchor config', () => {
const cowrie = ANCHORS.find((a) => a.id === 'cowrie');

it('is present in the anchors list', () => {
expect(cowrie).toBeDefined();
});

it('has seps including sep6 and sep10', () => {
expect(cowrie?.seps).toContain('sep6');
expect(cowrie?.seps).toContain('sep10');
});

it('has an NGN corridor', () => {
expect(cowrie?.corridors).toContain('usdc-ngn');
});

it('is not in any errors or disabled list', () => {
// There is no errors[] or disabled[] array in the anchor config;
// cowrie being present in ANCHORS with a valid corridor confirms it is active.
const allIds = ANCHORS.map((a) => a.id);
expect(allIds).toContain('cowrie');
});
});
Loading