Skip to content

Conversation

@andriy-shymkiv
Copy link
Contributor

Adds capSurplus option support for buildDeltaOrder util

@andriy-shymkiv andriy-shymkiv requested a review from Velenir January 2, 2026 10:31
@github-actions
Copy link

github-actions bot commented Jan 2, 2026

size-limit report 📦

Path Size
dist/sdk.cjs.production.min.js 15.62 KB (0%)
dist/sdk.esm.js 15.6 KB (0%)


return partnerAndFee.toString(10);
if (partnerAddress === ZERO_ADDRESS) {
return capSurplus ? (BigInt(capSurplus) << BigInt(9)).toString(10) : '0';
Copy link
Member

Choose a reason for hiding this comment

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

I'm gonna trust you that the application here is in line with BE

Choose a reason for hiding this comment

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

all good

@Velenir
Copy link
Member

Velenir commented Jan 2, 2026

Did you check that this param is correctly passed through submitOrder function (the one that combines build+sign+post)?

@andriy-shymkiv
Copy link
Contributor Author

Did you check that this param is correctly passed through submitOrder function (the one that combines build+sign+post)?

yes, no special handling there, we pass everything to buildDeltaOrder

@andriy-shymkiv
Copy link
Contributor Author

Thanks @Velenir @0xNazarii ! Published

@andriy-shymkiv andriy-shymkiv merged commit 1fcb0cb into master Jan 2, 2026
1 of 3 checks passed
@andriy-shymkiv andriy-shymkiv deleted the feat/buildDeltaOrder_capSurplus branch January 2, 2026 12:08
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.

4 participants