Skip to content

feat: osrs/para BTCSWP swap perps + mainnet HIP-3 dex support#63

Open
JaeLeex wants to merge 2 commits into
mainfrom
jl/osrs-para-btcswp-mainnet-markets
Open

feat: osrs/para BTCSWP swap perps + mainnet HIP-3 dex support#63
JaeLeex wants to merge 2 commits into
mainfrom
jl/osrs-para-btcswp-mainnet-markets

Conversation

@JaeLeex

@JaeLeex JaeLeex commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Register para as the mainnet HIP-3 dex for BTCSWP (BTCSWP-PARA / para:BTCSWP) while keeping YEX testnet behavior for BTCSWP-USDYP and other YEX-only assets (VXX, US3M).
  • Thread mainnet / HL_TESTNET through instrument resolution, HL coin mapping, strategy guard, and parent HL proxy so CLI trade, run, and guard commands resolve the correct dex per network.
  • Document mainnet vs testnet instrument usage in README and RUNBOOK; add focused registry tests (test_instrument_registry, strategy registry, HL adapter coin mapping).

Test plan

  • pytest tests/test_instrument_registry.py tests/test_strategy_registry.py tests/test_hl_adapter.py::TestCoinMapping -q (27 passed)
  • trade run --instrument BTCSWP-PARA --mainnet (or HL_TESTNET=false) resolves para:BTCSWP
  • Testnet default still resolves BTCSWPBTCSWP-USDYP / yex:BTCSWP

Made with Cursor

JaeLeex and others added 2 commits July 1, 2026 12:15
Co-authored-by: Cursor <cursoragent@cursor.com>
Re-add osrs to HIP3_DEXS (reverted in minified models) and register
BTCSWP-OSRS/osrs:BTCSWP in strategy_registry without changing yex/para
network defaults.

Co-authored-by: Cursor <cursoragent@cursor.com>
@JaeLeex

JaeLeex commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Merge order (stacked chain): #63#64#65#66

#63 is the base. Land in order; do not merge #64#66 until their bases are on main (or merge the full stack sequentially).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant