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
fix: lm redeposit_lp_shares() #596
Conversation
Crate versions that have been updated:
Runtime version has been increased. |
integration-tests/Cargo.toml
Outdated
pallet-nft = { git = "https://github.com/galacticcouncil/warehouse", rev = "e85c3c68708c7d9789d18c0a230efd436fc5ea10", default-features = false } | ||
pallet-currencies = { git = "https://github.com/galacticcouncil/warehouse", rev = "e85c3c68708c7d9789d18c0a230efd436fc5ea10", default-features = false } | ||
pallet-route-executor = { git = "https://github.com/galacticcouncil/warehouse", rev = "e85c3c68708c7d9789d18c0a230efd436fc5ea10", default-features = false } | ||
pallet-transaction-multi-payment = { git = "https://github.com/galacticcouncil/warehouse", rev = "a7e28a3a7fba655d9d27668097a1666f4250a495", default-features = false} |
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.
latest commit
pallet-transaction-multi-payment = { git = "https://github.com/galacticcouncil/warehouse", rev = "a7e28a3a7fba655d9d27668097a1666f4250a495", default-features = false} | |
pallet-transaction-multi-payment = { git = "https://github.com/galacticcouncil/warehouse", rev = "4223029df725ee9377d86fa5e02b220c59619cf6", default-features = false} |
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.
you can use this command to replace it everywhere sed -i '' 's/e85c3c68708c7d9789d18c0a230efd436fc5ea10/4223029df725ee9377d86fa5e02b220c59619cf6/g' ./**/*.toml
Codecov ReportBase: 84.07% // Head: 43.89% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #596 +/- ##
===========================================
- Coverage 84.07% 43.89% -40.18%
===========================================
Files 15 61 +46
Lines 1777 4406 +2629
===========================================
+ Hits 1494 1934 +440
- Misses 283 2472 +2189
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
This PR updates repo to latest warehouse and fixes bug in liquidity-mining's
redeposit_lp_shares()
function.Bug:
AssetPair
provided toredeposit_lp_shares()
by users is not checked withDeposit
so users can provide differentAssetPair
than isDeposit
for.This can result in wrong information in the event or/and bypassing xyk pool existence check.
Solution:
Check
amm_pool_id
from the deposit withamm_pool_id
generated fromAssetPair
.