Skip to content

FLO-17: Fix refund destination in setRecurringConfig#243

Open
holyfuchs wants to merge 1 commit intomainfrom
holyfuchs/FLO-17-fix-refund
Open

FLO-17: Fix refund destination in setRecurringConfig#243
holyfuchs wants to merge 1 commit intomainfrom
holyfuchs/FLO-17-fix-refund

Conversation

@holyfuchs
Copy link
Member

Closes: #226

Description

Moves cancelAllScheduledTransactions() to before self.recurringConfig = config in FlowALPRebalancerv1, so cancellation fees are refunded to the original funder rather than the incoming one. Adds a regression test (test_flo17_refund_goes_to_old_funder_not_new_funder) that switches a paid rebalancer's funder to a fresh account and asserts the old funder's balance increases (refund received) while the new funder's balance is unchanged.

@holyfuchs holyfuchs requested a review from a team as a code owner March 6, 2026 13:15
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.

FLO-17: Refund Destination Changes After Recurring Config Updates

2 participants