Skip to content

Per-network Soroswap / Reflector / Aquarius / token-list config #116

Description

@Miracle656

Background

Several venue endpoints are hardcoded mainnet-only: the Soroswap token-list URL (soroswap.ts:30-31), the Aquarius pools API (aquarius.ts:17), plus the default Soroswap factory and Reflector contract. On testnet these differ or don't exist. Dual-network needs each configurable (or gracefully skipped) per network.

What to build

Make token-list URL, Aquarius endpoint, factory address and oracle id per-network config, and let a venue be disabled where it has no testnet deployment.

Key files

  • src/ingesters/soroswap.ts (30-31 token list, factory)
  • src/ingest/venues/aquarius.ts:17
  • src/ingest/oracles/reflector.ts (24-26 default id)

Suggested execution

git checkout -b feat/per-network-venues
  1. Move the hardcoded URLs/addresses into the per-network config (L047)
  2. Add an enable flag per venue per network; skip cleanly when absent
  3. Document which venues exist on testnet

Acceptance criteria

  • Token-list, Aquarius, factory, oracle all per-network
  • A venue with no testnet presence is skipped without error
  • No hardcoded mainnet URLs remain

Drips Wave · Complexity: Intermediate · 150 points


Required: Before submitting, join the contributor Telegram so your work can be tracked and counted toward the Stellar Wave: https://t.me/+fxHXq8f1SwlkZDBk

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions