-
Notifications
You must be signed in to change notification settings - Fork 217
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
chore: fusdc optional maxVariable
in FeeConfig
#10859
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,9 +62,13 @@ export interface PendingTx extends CctpTxEvidence { | |
} | ||
|
||
export type FeeConfig = { | ||
/** flat fee charged for every advance */ | ||
flat: Amount<'nat'>; | ||
/** percentage charged for every advance */ | ||
variableRate: Ratio; | ||
maxVariable: Amount<'nat'>; | ||
/** a cap on variable fees. no cap if undefined */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I read this at first as a limit on how the Why have a max on that component instead of the fee overall? They're functionally equivalent offset by |
||
maxVariable?: Amount<'nat'>; | ||
/** percent of fees that go to contract (remaining goes to LPs) */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. proportion of fees ("percent" is a particular notation) |
||
contractRate: Ratio; | ||
}; | ||
|
||
|
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.
thanks for these explanations. please be a bit more explicit.