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

XCM does withdraw without deposit #1131

Open
gregdhill opened this issue Jul 14, 2023 · 1 comment
Open

XCM does withdraw without deposit #1131

gregdhill opened this issue Jul 14, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@gregdhill
Copy link
Member

Describe the bug
The total issuance of the native tokens is slightly off, expected:

  • Kintsugi: 10 million KINT (got 9999748)
  • Interlay: 1 billion INTR (got 999999989)

To Reproduce

  1. Call api.query.tokens.totalIssuance({ Token: "INTR" });
  2. Observe that the value is less than the initial distribution
  3. Check expected values here

Expected behavior
The total issuance should stay the same.

Additional context
From @sander2:

The culprit for this seems to be xcm: https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fapi-kusama.interlay.io%2Fparachain#/explorer/query/3364108
It does a withdraw without a deposit

@gregdhill gregdhill added the bug Something isn't working label Jul 14, 2023
@sander2
Copy link
Member

sander2 commented Jul 17, 2023

This happens when a user is sending insufficient fees - the BuyExecution instruction fails and execution is aborted without depositing the already-withdrawn tokens. The same behavior is happening on Kusama as well, and I don't think we can easily do something about it. But let's say what parity says about the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants