-
Notifications
You must be signed in to change notification settings - Fork 76
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: add more lm wrappers #953
base: master
Are you sure you want to change the base?
Conversation
Crate versions that have been updated:
Runtime version has been increased. |
(10000 * UNITS).try_into().unwrap(), | ||
)); | ||
|
||
//<Currencies as MultiCurrencyExtended<AccountId>>::update_balance(HDX, &treasury, 500_000_000_000_000_000_000i128)?; |
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.
Remove commented out code
None, | ||
)) | ||
})?; | ||
/*let name = b"ETH".to_vec().try_into().map_err(|_| "BoundedConvertionFailed")?; |
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.
Remove commented out code
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.
Why is this deleted?
/// | ||
#[pallet::call_index(18)] | ||
#[pallet::weight(<T as Config>::WeightInfo::add_liquidity_stableswap_omnipool_and_join_farms(farm_entries.len() as u32))] | ||
pub fn add_liquidity_stableswap_omnipool_and_join_farms( |
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.
I'm wondering if this should be here. But can't immediately think about where else would it be.
) -> Result<Balance, DispatchError> { | ||
let owner = Self::ensure_nft_owner(origin, deposit_id)?; | ||
|
||
//NOTE: not tested - this should never fail. |
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.
What do you mean by this comment? If user provides wrong deposit_id you'll get error. But it looks like it's handled correctly.
), | ||
pallet_omnipool::Error::<hydradx_runtime::Runtime>::SlippageLimit | ||
); | ||
}); |
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.
We should also check events
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.
Why was this moved here?
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Checklist: