-
Notifications
You must be signed in to change notification settings - Fork 86
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
Release client v0.10.36, Centrifuge 1025 & Altair 1034 #1749
Conversation
/// The current storage version. | ||
const STORAGE_VERSION: StorageVersion = StorageVersion::new(1); | ||
|
||
#[pallet::pallet] | ||
#[pallet::storage_version(STORAGE_VERSION)] |
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 slipped under our radar. Note to ourselves to not forget storage versions of pallets in the future.
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.
Good eye!
@@ -23,8 +23,8 @@ use sp_runtime::{traits::checked_pow, FixedPointNumber}; | |||
|
|||
use super::*; | |||
|
|||
const CURRENCY_IN: u32 = 1; | |||
const CURRENCY_OUT: u32 = 2; | |||
const CURRENCY_IN: u32 = 1000; |
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.
Out of curiosity, what was the issue here?
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.
Benchmarks failed because at least CURRENCY_IN
existed in storage already.
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.
Mmm... but who was registering that CURRENCY_IN
before? 🤔
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.
Couldn't find a quick answer and didn't wanna spend more time debugging this because debugging runtime benchmarks is really annoying.
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.
No problem! Just curious in case you knew it
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.
Amazing work @wischli ! Thanks for shine it before the release
Just one minor detail below
@@ -334,7 +334,7 @@ pub mod pallet { | |||
impl<T: Config> Pallet<T> { | |||
/// Create an order with the default min fulfillment amount. | |||
#[pallet::call_index(0)] | |||
#[pallet::weight(T::Weights::create_order())] |
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 clean up my dirty!
Self::update_portfolio_valuation_for_pool(pool_id, &mut T::Balance::zero())?; | ||
|
||
// Ok(Some(T::WeightInfo::update_portfolio_valuation(count)).into()) | ||
Ok(Some(T::DbWeight::get().reads(1)).into()) | ||
Ok(Some(T::WeightInfo::update_portfolio_valuation(count)).into()) |
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.
The above weights attached to this extrinsic is
#[pallet::weight(Weight::from_parts(10_000, 0))]
Should we change it to:
#[pallet::weight(Weight::update_porfolio_valuation(T::MaxFeesPeerPool::get()))]
to get a real maximum suggestion of the expected fees for this extrinsic?
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.
LGTM!
Because this is critical, I would like to have another couple of eyes here to ensure all version numbers are correctly set and other such things. But LGTM! |
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! Lets go!!
Description
Changes
PoolFees
trait intoPoolFeesMutate
andPoolFeesInspect
whereas the latter is only needed for weightsTODO
Checklist: