Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

The order of token transfers within a transaction seems to be reversed #217

Open
Thegaram opened this issue Sep 14, 2020 · 2 comments
Open

Comments

@Thegaram
Copy link

Do you want to request a feature or report a bug?

Bug (improvement)

What is the current behavior?

The order of token transfers within a transaction seems to be reversed. See this DEX transaction for an example:

image

It should be: First mint cBTC (3rd line), then send it to DEX (2nd line), then issue the corresponding DEX-BTC (1st line). This is confirmed by the fact that, in the end, my cBTC balance is 0 but DEX-BTC balance is non-zero.

If the current behavior is a bug, please provide the steps to reproduce.

The above example can be reproduced by depositing tokens through MoonDEX.

What is the expected behavior?

The order of token transfers displayed on Scan should reflect the actual order of token transferss.

@AngeliaQ
Copy link

AngeliaQ commented Sep 14, 2020

is the order of the token transfers within the all transactions reserved?

@GeekBerry
Copy link

GeekBerry commented Sep 14, 2020

change
https://confluxscan.io/api/transfer/list?transactionHash=0x35acbcec358daded1d8d35ec7ed724eca433bff4f5bb73a490419ada447c3536&fields=token
to
https://confluxscan.io/api/transfer/list?transactionHash=0x35acbcec358daded1d8d35ec7ed724eca433bff4f5bb73a490419ada447c3536&fields=token&reverse=false

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants