Skip to content

fix(v2-redeem): use USDC.e collateral for standard CTF redeem#33

Merged
cyl19970726 merged 2 commits into
copy-tradingfrom
fix/v2-redeem-usdce
May 12, 2026
Merged

fix(v2-redeem): use USDC.e collateral for standard CTF redeem#33
cyl19970726 merged 2 commits into
copy-tradingfrom
fix/v2-redeem-usdce

Conversation

@cyl19970726
Copy link
Copy Markdown
Owner

Summary\n- use USDC.e instead of pUSD for V2 standard CTF redeemPositions calls\n- keep NegRisk adapter routing unchanged\n- update token-routing tests for redeem and redeemBatch\n\n## Validation\n- Not run locally: this shell does not have pnpm/node available.\n\n## Parent repo context\n- earning-engine general-data-infra currently points poly-sdk submodule at this commit via PR #65.

hhh0x and others added 2 commits May 10, 2026 16:06
V2 binary CTF markets are registered with USDC.e as underlying collateral —
pUSD is only the trading-collateral wrapper for orders, not the CTF
split/merge collateral. Calling Relayer.redeem with pUSD caused
Safe.execTransaction to revert silently.

Empirical proof via variant matrix on strategy-02:
  pUSD/[1] FAIL, pUSD/[1,2] FAIL, NegRiskAdapter FAIL, USDC.e/[1] SUCCESS

Recovered $15.92 of stuck winning tokens (s-01 $4.81 + s-02 $11.11).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@cyl19970726 cyl19970726 merged commit 7f62a1b into copy-trading May 12, 2026
2 checks passed
@cyl19970726 cyl19970726 deleted the fix/v2-redeem-usdce branch May 12, 2026 09:06
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