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

XTokens refactor #706

Merged
merged 3 commits into from
Feb 27, 2022
Merged

XTokens refactor #706

merged 3 commits into from
Feb 27, 2022

Conversation

xlc
Copy link
Member

@xlc xlc commented Feb 27, 2022

Unified events so there is only one to deal with
Not allow zero amount because apparently it is not allowed paritytech/polkadot#4996

);
});

// TODO: should have more tests after https://github.com/paritytech/polkadot/issues/4996
Copy link
Member Author

Choose a reason for hiding this comment

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

should have more test to ensure MultiAsset is valid (fungible & non zero amount) after paritytech/polkadot#4996

@xlc xlc mentioned this pull request Feb 27, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #706 (7bb244c) into master (f8f6f82) will increase coverage by 0.28%.
The diff coverage is 84.48%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #706      +/-   ##
==========================================
+ Coverage   74.70%   74.99%   +0.28%     
==========================================
  Files          83       83              
  Lines        7282     7266      -16     
==========================================
+ Hits         5440     5449       +9     
+ Misses       1842     1817      -25     
Impacted Files Coverage Δ
xtokens/src/lib.rs 61.32% <75.00%> (+3.64%) ⬆️
xtokens/src/tests.rs 99.20% <100.00%> (+0.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f8f6f82...7bb244c. Read the comment docs.

Copy link
Member

@shaunxw shaunxw left a comment

Choose a reason for hiding this comment

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

LGTM

@xlc xlc merged commit 5b46c89 into master Feb 27, 2022
@xlc xlc deleted the fix-zero-amount branch February 27, 2022 22:52
syan095 pushed a commit that referenced this pull request Mar 8, 2022
* origin/master:
  use relaychain asset as fee (#700)
  Polkadot v0.9.17 (#705)
  XTokens refactor (#706)
  Add a test for cliff vesting (#702)
  Girazoki fix index in transfer multicurrencies (#696)
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.

None yet

3 participants