Skip to content

fix(ui): align refund actions with on-chain deadlines - #9

Merged
misaka10111 merged 2 commits into
mainfrom
fix/refund-and-deadline-ui
Nov 5, 2026
Merged

misaka10111 merged 2 commits into
mainfrom
fix/refund-and-deadline-ui

Conversation

@misaka10111

Copy link
Copy Markdown
Owner

What

Make the countdown, action buttons, and refund feedback agree with the same Sepolia block snapshot.

Case Before After
Countdown reaches zero between blocks Funding could look closed early, or a milestone could stay at 0m Show seconds, wait for the chain to confirm, and refresh the selected project more often
Approval window closed The project could still appear under Needs my approval Only open approval windows appear there
Backers claim one after another The claim button used the quote, but the success message did not show the payment Each account sees its own claimable amount, and the receipt supplies the amount paid

UI

  • Use the block timestamp for funding actions and getMilestoneWindow for milestone actions. A countdown can reach zero while the current block still allows writes.
  • Distinguish full funding refunds, proportional expiry refunds, unavailable quotes and shares that round to zero wei.
  • Keep the quote scoped to the selected project and connected account.

Tests

105 local tests, format check and production build passed. An offline render check covered the last second, the wait for a block, a confirmed cutoff, and 36 wei and 25 wei quotes for two different backers after a partial payout.

Deployment

This UI uses the refund and milestone-window getters from the merged contract changes. Run the live MetaMask check against the release deployment.

@misaka10111
misaka10111 merged commit fa32359 into main Nov 5, 2026
1 check 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.

2 participants