GuidesCancellation & Refunds

Cancellation & Refunds

Cancellation rules depend on when you cancel and whether the approval threshold has been met. The smart contract enforces these rules automatically — nobody can override them, including MyPact.

Before funding

You can cancel an agreement freely at any time before depositing funds. No transaction needed — just delete the draft.

After funding — the cancel window

Once you deposit funds, a cancel window (lock period) begins. During this window, the payer cannot cancel. This protects the recipient from bait-and-switch — they can trust the funds are committed while they do the work.

  • Default lock period: 72 hours
  • Configurable: You set the lock period when creating the agreement (from 1 hour to 90 days)
⚠️

During the cancel window, funds are locked. The payer cannot withdraw or cancel, regardless of circumstances. Choose your lock period carefully when creating the agreement.

After the cancel window expires

Once the lock period ends, the payer can cancel and receive a full refund — but only if the approval threshold has not been met.

ScenarioCan payer cancel?What happens to funds?
During cancel windowNoFunds locked in escrow
After window, threshold NOT metYesFull refund to payer
After window, threshold metNoFunds released to recipient

Deadline expiry

If a deadline was set and it passes without enough approvals:

  • The agreement status changes to Expired
  • The payer can cancel and receive a full refund
  • The recipient can no longer approve

Setting a deadline is recommended. Without one, an unresolved agreement stays in escrow indefinitely — funds are locked until the threshold is met or the cancel window allows cancellation.

Milestone agreements

For agreements with milestones, cancellation works per-milestone:

  • Approved milestones — already paid out to the recipient. These funds are not refundable.
  • Remaining milestones — refunded in full to the payer.

This means the recipient keeps compensation for completed work, even if the overall agreement is cancelled.

How to cancel

  1. Go to the agreement detail page
  2. Click Cancel Agreement (only visible when cancellation is allowed)
  3. Confirm the transaction in your wallet
  4. Funds return to the payer’s wallet automatically

Summary

Created (no funds)     → Cancel freely
Funded + in lock window → Cannot cancel
Funded + lock expired   → Cancel if threshold not met → Full refund
Deadline passed         → Cancel → Full refund
Milestone (partial)     → Earned milestones paid, rest refunded
Threshold met           → Cannot cancel — funds released
💡

Not sure about the lock period? The default 72 hours works well for most agreements. For urgent deals, consider a shorter window (e.g. 1 hour). For large projects where the recipient needs time to commit resources, consider a longer window (e.g. 7–14 days).