From ee9e023e33918b817416e7e1bb3f6065736109fa Mon Sep 17 00:00:00 2001 From: Yabir Benchakhtir Date: Wed, 18 Mar 2026 18:03:43 +0100 Subject: [PATCH] Add rule to transfer cost basis --- updates/accounting_rules/v10.json | 53 +++++++++++++++++++++++++++++++ updates/info.json | 2 +- 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 updates/accounting_rules/v10.json diff --git a/updates/accounting_rules/v10.json b/updates/accounting_rules/v10.json new file mode 100644 index 0000000..553cb5b --- /dev/null +++ b/updates/accounting_rules/v10.json @@ -0,0 +1,53 @@ +{ + "accounting_rules": [ + { + "event_type": "deposit", + "event_subtype": "deposit for wrapped", + "counterparty": "weth", + "taxable": false, + "count_entire_amount_spend": false, + "count_cost_basis_pnl": false, + "accounting_treatment": "basis_transfer" + }, { + "event_type": "spend", + "event_subtype": "return wrapped", + "counterparty": "weth", + "taxable": false, + "count_entire_amount_spend": false, + "count_cost_basis_pnl": false, + "accounting_treatment": "basis_transfer" + }, { + "event_type": "deposit", + "event_subtype": "deposit for wrapped", + "counterparty": "wxdai", + "taxable": false, + "count_entire_amount_spend": false, + "count_cost_basis_pnl": false, + "accounting_treatment": "basis_transfer" + }, { + "event_type": "spend", + "event_subtype": "return wrapped", + "counterparty": "wxdai", + "taxable": false, + "count_entire_amount_spend": false, + "count_cost_basis_pnl": false, + "accounting_treatment": "basis_transfer" + }, { + "event_type": "deposit", + "event_subtype": "deposit for wrapped", + "counterparty": "wmatic", + "taxable": false, + "count_entire_amount_spend": false, + "count_cost_basis_pnl": false, + "accounting_treatment": "basis_transfer" + }, { + "event_type": "spend", + "event_subtype": "return wrapped", + "counterparty": "wmatic", + "taxable": false, + "count_entire_amount_spend": false, + "count_cost_basis_pnl": false, + "accounting_treatment": "basis_transfer" + } + ] +} diff --git a/updates/info.json b/updates/info.json index 9b51e98..67cc7e0 100644 --- a/updates/info.json +++ b/updates/info.json @@ -1 +1 @@ -{"spam_assets":{"latest":6},"rpc_nodes":{"latest":10,"limits":{"9":{"min_version":"1.39.0"},"10":{"min_version":"1.41.0"}}},"contracts":{"latest":0},"global_addressbook":{"latest":0},"accounting_rules":{"latest":9,"limits":{"4":{"min_version":"1.35.0"},"5":{"min_version":"1.38.0"},"8":{"min_version":"1.41.3"},"9":{"min_version":"1.42.0"}}},"location_asset_mappings":{"latest":13,"limits":{"9":{"min_version":"1.38.0"},"10":{"min_version":"1.39.0"},"11":{"min_version":"1.40.0"}}},"counterparty_asset_mappings":{"latest":1},"location_unsupported_assets":{"latest":4,"limits":{"2":{"min_version":"1.38.0"}}}} +{"spam_assets":{"latest":6},"rpc_nodes":{"latest":10,"limits":{"9":{"min_version":"1.39.0"},"10":{"min_version":"1.41.0"}}},"contracts":{"latest":0},"global_addressbook":{"latest":0},"accounting_rules":{"latest":10,"limits":{"4":{"min_version":"1.35.0"},"5":{"min_version":"1.38.0"},"8":{"min_version":"1.41.3"},"9":{"min_version":"1.42.0"},"10":{"min_version":"1.42.1"}}},"location_asset_mappings":{"latest":13,"limits":{"9":{"min_version":"1.38.0"},"10":{"min_version":"1.39.0"},"11":{"min_version":"1.40.0"}}},"counterparty_asset_mappings":{"latest":1},"location_unsupported_assets":{"latest":4,"limits":{"2":{"min_version":"1.38.0"}}}}