-
Notifications
You must be signed in to change notification settings - Fork 77
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: omnipool fees rework #987
Conversation
@@ -342,6 +345,7 @@ where | |||
<Runtime as frame_system::Config>::AccountId: From<AccountId>, | |||
<Runtime as pallet_staking::Config>::AssetId: From<AssetId>, | |||
<Runtime as pallet_referrals::Config>::AssetId: From<AssetId>, | |||
MC: MultiCurrency<AccountId, CurrencyId = AssetId, Balance = Balance>, |
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.
Is this standard naming we use?
@@ -69,6 +73,17 @@ impl OraclePeriod { | |||
use OraclePeriod::*; | |||
&[Short, TenMinutes, Hour, Day, Week] | |||
} | |||
|
|||
pub const fn as_period(&self) -> u64 { |
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.
Nice but... people might be mistaken if they change this, oracle periods will change.. We should probably write test to see if it matches smoothing factors down.
This PR implements changes to dynamic fee and other omnipool fee adjustments:
Spec: https://www.notion.so/hydradx/Fee-adjustments-b2447f1f5d294d8d9b4b74e353f3c098