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: min liquidity limit in omnipool::add_token #783

Merged
merged 29 commits into from
Apr 26, 2024

Conversation

Roznovjak
Copy link
Contributor

@Roznovjak Roznovjak commented Mar 12, 2024

No description provided.

Copy link

github-actions bot commented Mar 12, 2024

Crate versions that have been updated:

  • runtime-integration-tests: v1.20.2 -> v1.20.3
  • pallet-asset-registry: v3.2.1 -> v3.2.2
  • pallet-circuit-breaker: v1.1.21 -> v1.1.22
  • pallet-dca: v1.4.3 -> v1.4.4
  • pallet-omnipool: v4.1.5 -> v4.1.6
  • pallet-omnipool-liquidity-mining: v2.1.4 -> v2.1.5
  • hydradx-adapters: v1.3.0 -> v1.3.1
  • hydradx-runtime: v228.0.0 -> v229.0.0
  • hydradx-traits: v3.2.0 -> v3.2.1

Runtime version has been increased.

@Roznovjak Roznovjak marked this pull request as ready for review March 12, 2024 02:58
@Roznovjak Roznovjak self-assigned this Mar 12, 2024
amount >= T::MinimumPoolLiquidity::get() && amount > 0,
Error::<T>::MissingBalance
);
let ed = T::AssetRegistry::existential_deposit(asset).unwrap_or(u128::MAX);
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe it would be better to return an error here.

because the error returned would be potentially misleading ( it would return MissingBalance).

@Roznovjak Roznovjak merged commit a8a929d into master Apr 26, 2024
4 checks passed
@Roznovjak Roznovjak deleted the add_token_min_liquidity_limit branch April 26, 2024 11:19
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