Skip to content

Add explicit deposit/withdrawal path limits and gas accounting#72

Merged
MaryammAli merged 1 commit into
BlockDash-Studios:mainfrom
Jumongweb:main
Jun 25, 2026
Merged

Add explicit deposit/withdrawal path limits and gas accounting#72
MaryammAli merged 1 commit into
BlockDash-Studios:mainfrom
Jumongweb:main

Conversation

@Jumongweb

Copy link
Copy Markdown
Contributor

closes #35
Bounded escrow resource checks are in place now. Deposits and withdrawals enforce a 512-byte supported salt cap, deposits stay at 1 token path with up to 10 arbiters, and withdrawals stay at 1 token path with up to 3 fee recipients. Oversize or unsupported shapes now fail with explicit PayloadTooLarge, TooManyFeeRecipients, or TooManyTokens errors in escrow.rs (line 132) and errors.rs (line 12).
I also added public contract reporting for the supported envelopes and published budget bounds through lib.rs (line 826) and types.rs (line 301), plus boundary and rejection coverage in test.rs (line 762). The supported limits are documented in BUILD_AND_TEST.md (line 76)

@MaryammAli MaryammAli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM
a job weldone @Jumongweb

@MaryammAli MaryammAli merged commit 483a036 into BlockDash-Studios:main Jun 25, 2026
2 checks passed
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.

Add explicit deposit/withdrawal path limits and gas accounting

2 participants