diff --git a/container/src/hledger-flow/accounts/changelly/changelly-shared.rules b/container/src/hledger-flow/accounts/changelly/changelly-shared.rules index aeaa0c0..20364be 100644 --- a/container/src/hledger-flow/accounts/changelly/changelly-shared.rules +++ b/container/src/hledger-flow/accounts/changelly/changelly-shared.rules @@ -26,10 +26,19 @@ account3 assets:changelly:%subaccount:%currency_from amount3 -%currency_from_amount %currency_from @@ %currency_to_amount %currency_to account4 equity:changelly:%subaccount:deposit:%currency_to -# NOTE: fee is not added to cost-basis here because currency_to_amount includes -# that automatically (it deducts the fee and computes into currency_to_amount). -# NOTE: because the fee is considered a facilitation fee for the trade, -# *don't* use the provided %fee and instead use the adjust cost-basis instead. +# NOTE: +# +# - %fee is not added to cost-basis here because %currency_to_amount includes +# the fee (it adjusts the proceeds and computes into %currency_to_amount). +# +# - %fee is considered a facilitation fee for the trade; so *don't* add to +# column (see above). +# +# - %currency_from_amount is fully disposed (as the adjustment happens to +# %currency_to_amount). +# +# - For details, see #51. +# comment rate:%rate, destination:%destination, taxed_as:SELL comment2 %date +0000,SELL,changelly,%currency_from,%currency_from_amount,%currency_to,%currency_to_amount,,