-
Notifications
You must be signed in to change notification settings - Fork 51
FEATURE: Transaction scheduling #489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this 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!
Merged to master! Testnet here we come! |
Implements the contracts and tests for the Scheduled Callbacks FLIP