-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
(feat): FUN-1234 Functions USD denominated premium fees #12104
Conversation
I see that you haven't updated any CHANGELOG files. Would it make sense to do so? |
I see that you haven't updated any README files. Would it make sense to do so? |
081f663
to
de32975
Compare
|
// The following line represents: "cost without callback or admin fee, those will be added by the Router" | ||
// But because the _offchain_ Commitment is using operation fee in the place of the admin fee, this now adds admin fee (actually operation fee) | ||
// Admin fee is configured to 0 in the Router | ||
gasOverheadJuels + commitment.donFee + commitment.adminFee, |
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.
Alternatively we could have a variable named operationFee above (set to adminFee). Then this line will be clearer.
donFeeJuels: commitment.donFee, | ||
// The following two lines are because of OperationFee being used in the Offchain Commitment | ||
adminFeeJuels: 0, | ||
operationFeeJuels: commitment.adminFee |
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.
if we had that helper variable we could use it here too.
No description provided.