Repository navigation
Conversation
|
@dammy-lab Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
Thanks for the contribution! We reviewed this PR while merging the open queue and couldn't merge it yet. Here's what needs fixing:
This branch also has merge conflicts with |
|
@greatest0fallt1me thanks for the review. I restored What changed (head
Tests
Verification (local, workspace toolchain)
Files touched: |
|
@greatest0fallt1me the review point is already addressed at head
Verification: diffed all four changed files against |
edaf330 to
ef3b14c
Compare
Overview
This PR makes the escrow contract actually custody funds.
create_escrownow pullsamountofpayment_assetfrom the funder into the contract,releasetransfers the recorded amount to a recipient and clears the record, and a refund path lets a funder reclaim the escrowed amount on cancellation. Pause flag and cooldown are respected throughout.Related Issue
Changes
💰 Escrow Custody and Payout
[MODIFY]
contracts/escrow/src/lib.rscreate_escrowtransfersamountofpayment_assetfrom the funder into the contract before writing theEscrowRecord, so the contract balance increases byamounton creation.releasenow takes(payment_asset, recipient), reads the recorded amount, transfers it to the recipient, and deletes/marks the record as released so a second release fails.[MODIFY]
contracts/escrow/src/events.rspayment_asset,recipient/funder, andamount.Verification Results
amounton creationcreate_escrowtransferspayment_assetfrom funder into the contractrelease(payment_asset, recipient)transfers recorded amount and removes the recordCloses #1180