xrpl365 / tx-exporter

10 stars 2 forks source link

token amount are truncated to six decimal places #5

Open oliverlj opened 1 year ago

oliverlj commented 1 year ago

https://github.com/xrpl365/tx-exporter/blob/9169c8ebda72e11dd3fab2058cca2783b487f786/src/xrpl-tx-explorer.js#L92

this should not be truncated for the case of csv export in order to feed tax reporting tool.

This should be set to 15 as documentation mention this number (https://xrpl.org/tokens.html#token-properties)

result is incorrect micro balance in my tax reporting software image

jonaagenilsen commented 1 year ago

https://github.com/xrpl365/tx-exporter/blob/9169c8ebda72e11dd3fab2058cca2783b487f786/src/xrpl-tx-explorer.js#L92

this should not be truncated for the case of csv export in order to feed tax reporting tool.

This should be set to 15 as documentation mention this number (https://xrpl.org/tokens.html#token-properties)

result is incorrect micro balance in my tax reporting software image

I'm seeing this issue myself. An import into a taxtool should have as raw numbers (and full decimals) as possible. Rounding of numbers (if wanted) should happen outside of export :)