Skip to content

Feat/delta simplify cancel and withdraw#235

Open
andriy-shymkiv wants to merge 2 commits intomasterfrom
feat/delta_simplify-cancelAndWithdraw
Open

Feat/delta simplify cancel and withdraw#235
andriy-shymkiv wants to merge 2 commits intomasterfrom
feat/delta_simplify-cancelAndWithdraw

Conversation

@andriy-shymkiv
Copy link
Copy Markdown
Member

@andriy-shymkiv andriy-shymkiv commented Apr 15, 2026

Simplified cancelAndWithdraw following the changes on the contracts side

closes FRNT-1310


Note

Medium Risk
Changes the on-chain cancelAndWithdraw call signature and ABI encoding, which can break cancellations/withdrawals if client and deployed contract versions diverge.

Overview
Simplifies Delta cancelAndWithdraw to align with the updated contract ABI by removing the signature/OrderWithSig wrapper (and the unused bridgeOverride/cosignature defaults) and sending a sanitized Order struct directly.

Updates the local ABI definition accordingly and drops the now-unused DEFAULT_BRIDGE dependency.

Reviewed by Cursor Bugbot for commit 004f0f7. Bugbot is set up for automated code reviews on this repo. Configure here.

@linear
Copy link
Copy Markdown

linear bot commented Apr 15, 2026

FRNT-1310

@andriy-shymkiv andriy-shymkiv requested a review from Velenir April 15, 2026 06:05
@github-actions
Copy link
Copy Markdown

size-limit report 📦

Path Size
dist/sdk.cjs.production.min.js 16.87 KB (-0.71% 🔽)
dist/sdk.esm.js 16.77 KB (-0.9% 🔽)

Copy link
Copy Markdown
Member

@Velenir Velenir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

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.

2 participants