diff --git a/constants/anchors.ts b/constants/anchors.ts index bf87d3b7..701bfe59 100644 --- a/constants/anchors.ts +++ b/constants/anchors.ts @@ -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'], assetCode: 'USDC', assetIssuer: USDC_ISSUER, - seps: ['sep6'], }, { id: 'anclap', diff --git a/tests/anchors.cowrie.spec.ts b/tests/anchors.cowrie.spec.ts new file mode 100644 index 00000000..a8a19ece --- /dev/null +++ b/tests/anchors.cowrie.spec.ts @@ -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'); + }); +});