Skip to content

Is crypto_in supposed to be the amount before or after the fee is taken? #94

Answered by eprbell
orientalperil asked this question in Q&A
Discussion options

You must be logged in to vote

I think my initial explanation left out an important detail. For in transactions the fee is usually actually fiat (contrary to out transactions, where it's crypto). In other words when you buy crypto you give the exchange X fiat and the exchange takes a part of X as fee and gives you the equivalent of X - fiat fee, converted to crypto. Whereas for out transactions it's the other way around: typically you sell Y crypto and the exchange takes a part of Y as fee and gives you the equivalent of Y - crypto fee, converted to fiat.

So what you're seeing in RP2's output is correct:

  • after the in transaction your balance is 0.00413586 (because the fee was paid in fiat and came out of your fiat stash)

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@eprbell
Comment options

Answer selected by orientalperil
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@eprbell
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants