You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
arbiter_award_freelancer(escrow_id, arbiter, freelancer_amount) in refund_system.rs takes an
arbitrary freelancer_amount. If it exceeds the remaining escrowed balance, the contract could
attempt to pay out more than it holds (or drain funds reserved for other escrows).
What needs to be done
Compute the remaining unreleased amount for the escrow
Reject when freelancer_amount > remaining with a typed error (e.g. SecureFlowError::InsufficientWithdrawable)
Reject negative / zero amounts
Use checked arithmetic for the client-remainder calculation
Acceptance criteria
freelancer_amount > remaining → Err(...), no transfer occurs
Activity
[-]Bounds-check arbiter awards[/-][+][Contract] Bounds-check arbiter awards[/+]shobhamerabacha-star commentedon Oct 7, 2026
Hello team,
I looked into
[Contract] Bounds-check arbiter awardsand have an implementation approach ready.Plan:
Could you please assign this issue to me? Looking forward to delivering a clean PR.