decodecustomtx and listaccounthistory have different information
- Dominant language
- C++
- Stars
- 397
- Forks
- 129
- PR merge metrics
- No merged PRs in 30d
Description
I withdrew 50 DUSD from vault and see the following in `decodecustomtx`
```
{
"txid": "xxx",
"type": "WithdrawFromVault",
"valid": true,
"results": {
"vaultId": "xxx",
"to": "some-address",
"amount": "50.00000000@15"
}
}
```
When I look at `listvaulthistory` or `listaccounthistory` I see
```
{
"owner": "some-address",
"blockHeight": xx,
"blockHash": "xx",
"blockTime": xx,
"type": "WithdrawFromVault",
"txn": 8,
"txid": "xx",
"amounts": [
"16.58973533@DFI",
"0.00002979@ETH",
"0.00000150@BTC",
"50.00000000@DUSD"
]
}
```
Has this something todo with the negative interest rate with DUSD? Or what are the other amounts in there?
Contributor guide
Research direction
Start by tracing the `decodecustomtx`, `listvaulthistory`, and `listaccounthistory` entry points and compare how each builds its transaction result. Determine what the additional amounts represent and whether the APIs should expose consistent information or document the difference; no files or tests are named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- blockchain, cpp
- Domain
- api, blockchain
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100