Skip to content

DAE-3851: fix: skip trader signing for auto-confirmed maker delegate trades - #476

Open
anilgangapersaud-circle wants to merge 1 commit into
masterfrom
fix/auto-confirmed-maker-delegate-signing
Open

anilgangapersaud-circle wants to merge 1 commit into
masterfrom
fix/auto-confirmed-maker-delegate-signing

Conversation

@anilgangapersaud-circle

@anilgangapersaud-circle anilgangapersaud-circle commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Jira: DAE-3851

Summary

For auto-confirmed maker delegate trades, only funderPermitTypedData is returned from the presign API — traderPermitTypedData is absent. Previously, the signing loop would unconditionally attempt to sign the trader permit, and allDelegateSigned required both signatures, leaving the flow stuck.

Changes

  • Skip trader signing step when traderTypedData is null
  • Progress calculation accounts for variable signatures per trade (1 or 2)
  • allDelegateSigned and the per-entry "Signed" chip only require traderSignature when traderTypedData was actually present

Test plan

  • Auto-confirmed maker delegate: presign returns only funderPermitTypedData — verify Sign With Circle skips trader step and marks entry as Signed after funder only
  • Regular maker delegate: presign returns both typed data — verify both signing steps still run
  • "Proceed to Fund Trades" button appears once all entries are signed

🤖 Generated with Claude Code

When only funderPermitTypedData is returned (auto-confirmed makers),
skip the trader signing step and still mark the entry as signed once
the funder permit is collected.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

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