Skip to content

Conversation

joshuahannan
Copy link
Member

@joshuahannan joshuahannan commented Jul 9, 2025

Implements the contracts and tests for the Scheduled Callbacks FLIP

let canceledEvent = canceledEvents[0] as! FlowTransactionScheduler.Canceled
Test.assertEqual(transactionToCancel, canceledEvent.id)
Test.assertEqual(mediumPriority, canceledEvent.priority)
Test.assertEqual(feeAmount/UFix64(2.0), canceledEvent.feesReturned)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be smart to extract this into refundFeeRatio or something, since we use it a lot.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also it might be smart to not set the refund multiplier in tests to 0.5 since then you don't have a way to assert correctness of feesReturned vs feesDeducted since they are both same. Not critical but maybe a todo.

Copy link
Collaborator

@devbugging devbugging left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is HUGE 🎉 great work!

@joshuahannan joshuahannan merged commit d1ceee1 into master Sep 15, 2025
2 of 4 checks passed
@joshuahannan
Copy link
Member Author

Merged to master! Testnet here we come!

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.

9 participants