Skip to content

fix: process refunds with CEI ordering#569

Open
sirakinb wants to merge 1 commit into
ThinkLikeAFounder:mainfrom
sirakinb:codex/fix-refund-process-cei
Open

fix: process refunds with CEI ordering#569
sirakinb wants to merge 1 commit into
ThinkLikeAFounder:mainfrom
sirakinb:codex/fix-refund-process-cei

Conversation

@sirakinb
Copy link
Copy Markdown

Summary

  • persist Processed status and clear the pending-refund marker before the token transfer
  • keep the balance/deadline checks before state changes
  • add a replay regression test proving a processed refund cannot be paid again

Tests

  • cargo fmt -p pulsar-refund-processor --check
  • cargo +1.91.1 test -p pulsar-refund-processor

Refs #552

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