Skip to content
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

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open

feat: add more lm wrappers #953

wants to merge 19 commits into from

Conversation

dmoka
Copy link
Contributor

@dmoka dmoka commented Nov 26, 2024

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Checklist:

  • I have updated the documentation if necessary.
  • I have added tests to cover my changes, regression test if fixing an issue.
  • This is a breaking change.

Copy link

github-actions bot commented Nov 26, 2024

Crate versions that have been updated:

  • runtime-integration-tests: v1.25.1 -> v1.26.0
  • pallet-omnipool: v4.3.6 -> v4.3.7
  • pallet-omnipool-liquidity-mining: v2.4.0 -> v2.5.0
  • pallet-stableswap: v4.0.0 -> v4.0.1
  • runtime-mock: v1.0.1 -> v1.0.2
  • hydradx-runtime: v272.0.0 -> v273.0.0
  • hydradx-traits: v3.9.0 -> v3.9.1

Runtime version has been increased.

@dmoka dmoka marked this pull request as ready for review December 4, 2024 09:27
@dmoka dmoka changed the title Feat: add more lm wrappers feat: add more lm wrappers Dec 4, 2024
(10000 * UNITS).try_into().unwrap(),
));

//<Currencies as MultiCurrencyExtended<AccountId>>::update_balance(HDX, &treasury, 500_000_000_000_000_000_000i128)?;
Copy link
Contributor

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")?;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove commented out code

Copy link
Contributor

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(
Copy link
Contributor

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.
Copy link
Contributor

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
);
});
Copy link
Contributor

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

Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants