fix(v2-redeem): use USDC.e collateral for standard CTF redeem#33
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.