Crypto Swap Gain
Calculate gain and replacement basis for a caller-valued crypto swap.
Description
A crypto-swap gain scenario subtracts fees and old basis from the supplied received value.
A crypto-swap gain scenario subtracts fees and old basis from the supplied received value. The gross received value is separately used as basis for the received asset.1
Calculate gain and replacement basis for a caller-valued crypto swap.
When to use Crypto Swap Gain
Use this tool to calculate gain and replacement basis for a caller-valued crypto swap.
Choose the specific arithmetic or checklist scenario and establish its input amounts, dates, rates and criteria from the applicable records. Keep currencies, periods and jurisdictions consistent; review the tool-specific assumptions before interpreting the result.
How to use Crypto Swap Gain and understand its results
- Choose the specific arithmetic or checklist scenario and establish its input amounts, dates, rates and criteria from the applicable records. Keep currencies, periods and jurisdictions consistent; review the tool-specific assumptions before interpreting the result.
- Enter disposedAssetBasis, receivedAssetFairValue, transactionFees using the field table and calculation rules, then run the tool.
- Read amountRealized, recognizedGain, receivedAssetBasis. The explanation below defines the units, signs, ordering and any flags or placeholder values.
- If the tool reports an input issue, correct the values and run it again. Apply the stated assumptions when interpreting a successfully returned result.
| Input field | Meaning | Value type; see rules below | Requirement |
|---|---|---|---|
| disposedAssetBasis | Disposed asset basis | number; minimum: 0 | Required |
| receivedAssetFairValue | Received asset fair value | number; minimum: 0 | Required |
| transactionFees | Transaction fees | number; minimum: 0 | Required |
Supply nonnegative value, fees and basis in one currency. Return signed gain/loss, amount realized and received-asset basis. Fees are not capitalized into the new basis.
realized=receivedValue−fees; gain=realized−basis; receivedBasis=receivedValue Units, indexing, boundary conditions and exceptional cases are defined in the calculation rules above.
| Output field | Meaning | Value type |
|---|---|---|
| amountRealized | Amount realized | number |
| recognizedGain | Recognized gain | number |
| receivedAssetBasis | Received asset basis | number; minimum: 0 |
{
"input": {
"disposedAssetBasis": 100,
"receivedAssetFairValue": 150,
"transactionFees": 10
},
"output": {
"amountRealized": 140,
"recognizedGain": 40,
"receivedAssetBasis": 150
}
} Limitations and assumptions
Transaction classification, valuation time, basis identification and actual tax treatment are assumptions rather than derived facts.
Numeric inputs must be finite. Follow the calculation-specific rules for overflow, underflow and exceptional cases. Missing required fields, extra fields, wrong value types and violations of the calculation rules are input errors.
Alternative or Complementary methods
Use Liquidity-Pool Gain: Model liquidity-pool contribution gain from caller-supplied basis and value. For a complementary task, use Hard-Fork Basis Split: Allocate original basis between hard-fork assets by supplied fair values.
References
-
Crypto Swap Gain — tool.io
Similar or alternative tools
- Liquidity-Pool Gain
Model liquidity-pool contribution gain from caller-supplied basis and value.
- Hard-Fork Basis Split
Allocate original basis between hard-fork assets by supplied fair values.