-
Notifications
You must be signed in to change notification settings - Fork 46
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
More feedbacks and questions #3
Comments
I think that second value in ExchangeAsset should be the minimal amount of assets received for the transaction to go through. Thats most in sync with general exchange implementations. You generally cannot guarantee the price since it can slip before the trade takes place. |
For now we're assuming that all message passing systems already pass pre-encoded messages (i.e.
Only those assets. Now updated.
That would be a reserved word in Rust.
I would not expect to see
I would expect that the user gets 21.42 BTC, however under the current spec, both would be acceptable outcomes.
Failure would be recorded through an event on the recipient chain. Data return paths (and the fee structure they imply) are a complex topic and out of scope for this initial version.
The purpose is to initiate a return message so that the sender can see what remains in the holding account.
Stkaing, governance and various other use-cases are not supported at present. If needed, then there's always
|
Another round of feedbacks and questions.
One issue of SCALE codec is that you will need to know the schema first in order to be able to decode it. This means opaque message cannot be handled unless the message length is known. There should be a length prefix somewhere just to provide proper future compatibility support so it is actually possible to parse
Vec<XCM>
that contains future version.What is a
Balances
message?Does this deposit all the assets or only the assets specified in
asset
parameter?Self
instead ofNull
?How to represent a parachain network? e.g. use version 1
"aca"
for Acala or assuming Acala have parachain ID of2
so it will be"dot/2"
?Or in other words, do we want to put parachains under the namespace of relaychain or parachains needs its own
network_id
?So this attempts to use all the assets (42 DOT) to exchange for 21 BTC. But what happen is DOT/BTC is 0.51? Does user get 21.42 BTC or user spend 41.177 DOT to get 21 BTC? Is this up to implementation to decide?
What happen if exchange rate is 0.49? How to indicate failure and how to handle failure?
What is the purpose of this?
DepositAsset
is already able to deposit all the assets in holding account.This provides examples of how does exchanges interact with XCM. But what about other use cases? e.g. Staking
How does one chain dispatch a dispatchable call on another chain?
The text was updated successfully, but these errors were encountered: