Curve no TaxChain
Ainda não disponívelO TaxChain ainda não consegue importar Curve. Esta página diz o que existe e o que falta.
Esta página está em inglês, para dizer exatamente o que dizem a documentação da plataforma e o código do TaxChain. Os títulos e o resto do site estão no seu idioma.
Curve is a decentralised exchange: a set of smart contracts with no account and no statement. TaxChain has code that reads its swaps from The Graph subgraphs [1], but it is not offered and cannot work today. What reaches TaxChain from Curve comes through the wallet you add on its chain, where each swap is read as tokens out and tokens in. The Curve part of the adapter also asks the subgraph for data it does not define.
Formas de importar
Envio de ficheiroNão disponível
None
Curve keeps no account and offers no statement. Block explorers export an address's transfers, which is the same data the chain read imports.
Ligação por APIPode ser adicionado
The Graph's decentralised network, or the chain read itself
The same subgraphs now run on The Graph's network, which refuses a query without an API key: checked on 20 Nov 2026. The operator would need a key from Subgraph Studio; the free plan includes 100,000 queries a month [4]. The faults above would still need fixing, and the duplicate with the chain read removing.
The simpler route is the chain read TaxChain already offers [5]: group each transaction's tokens out and tokens in into one swap. That covers every DEX and aggregator at once, finds swaps by what moved in and out of the wallet rather than by who sent the transaction, and needs no extra provider.
Endereço da carteiraNão disponível
The Graph subgraphs (Ethereum, Arbitrum and Polygon; Optimism is listed with no endpoint)
The wallet address that traded (0x…). No key or signature.
Not offered: no Curve source can be added in the app, and the worker never runs this adapter.
It could not read anything today. Every endpoint it uses is on The Graph's hosted service, which stopped serving queries in June 2024 [1]. Checked live on 20 Nov 2026 for one endpoint of each DEX: each answered with a redirect to an address that does not exist, and a sync fails with an error after about a minute of retries rather than reporting no swaps.
Even pointed at a working subgraph, it has faults found in the tests:
- The Curve volume subgraph records a swap as a SwapEvent, with the tokens as contract addresses [2]. The adapter asks for "exchanges" with token symbols, which that subgraph does not have, so every Curve sync would fail with an error.
- Curve's event names the "buyer", the contract that called the pool. Most swaps go through a router or aggregator, so the buyer is that contract, not your wallet [3].
- Optimism is listed among its chains with no endpoint: a sync there would send no query and report no swaps.
- The adapter queries the subgraph by the address that sent the transaction ("origin"). A swap made through a smart-contract wallet, an aggregator's relayer or a signed order that someone else fills is not found, and a swap whose output was sent to another address is reported as received by the sender.
- It returns one swap per pool. A routed swap through two pools becomes two swaps with an intermediate token the wallet never held, and under FIFO that intermediate leg disposes of the wallet's oldest lots of it.
- Tokens are named by symbol only, as the subgraph spells them. Native ETH or BNB paid into a swap appears as WETH or WBNB, which the wallet never held, so the calculation stops for a missing purchase. A worthless token that calls itself USDC would be pooled with real USDC.
- Network fees are not in the subgraph and are not read.
- If the same wallet is also added on its chain, every swap would be counted twice: once as a swap from here and once as a withdrawal and a deposit from the chain. Nothing removes the duplicate.
O que é lido
| Operação | Estado |
|---|---|
| SwapsNot read from Curve. If you add the wallet on its chain, each swap arrives as a withdrawal of what you gave and a deposit of what you received, read from the chain's token transfers [5]. Both sides are taxed: the withdrawal is a disposal at market value and the deposit an acquisition at that day's value. Do not mark the withdrawal as a transfer. | Lido em parte |
| Swap (pool) feesThe pool's fee is taken from the amount you put in, so it is already inside the amounts the chain read records. It is not shown as a fee of its own. | Lido em parte |
| Network feesNot read from the DEX. The chain read records the gas of every transaction the wallet sent, swaps and approvals included, as a disposal of the chain's native coin. A swap or order sent for you by someone else costs you no gas and has none. | Lido em parte |
| Adding and removing liquidityNot read from the DEX. On the chain read, the tokens you put into a pool are withdrawals, so disposals. A liquidity token minted to you (fungible LP tokens) is a deposit, an acquisition at its day's value, which often has no price. A concentrated-liquidity position is an NFT, which the chain read does not import. Removing liquidity brings the tokens back as deposits. | Lido em parte |
| Liquidity provider feesNot read from the DEX. Fees you collect arrive on the chain read as deposits, acquisitions, not as income. Fees that accrue inside a liquidity token are realised only when you remove it. Neither is shown as income: add it yourself if your country taxes it as such. | Lido em parte |
| CRV rewards, gauges and veCRV locksNot read from Curve. On the chain read, staking LP tokens in a gauge is a withdrawal (a disposal), claimed CRV is a deposit (an acquisition, not income), and locking CRV is a withdrawal. Mark gauge deposits and locks for review: the tokens are still yours. | Lido em parte |
| Governance token airdrops and reward claimsRead on the chain as deposits, acquisitions at the day's value, not as income. Reclassify them if they are income where you file. | Lido em parte |
| NFTsNeither the DEX nor the chain read imports NFTs, liquidity position NFTs included. | Não lido |
Limitações
- You cannot add Curve as a source. Add the wallet you traded from on its chain instead.
- There, swaps arrive as a withdrawal and a deposit, not as one swap. Both are taxed, which is right for a swap, but the withdrawal is listed for review: leave it as a disposal.
- Liquidity positions, their fees and reward claims arrive as plain deposits and withdrawals. Nothing is recorded as income; concentrated-liquidity position NFTs are not imported.
- Wallets on BNB Chain, Base and Optimism are read only when the operator has a paid Etherscan plan.
- Do not also enter the same swaps by hand or from another file: they would be counted twice.
Como foi verificado
- 20 de novembro de 2026One endpoint of each DEX the adapter uses (Uniswap, SushiSwap and Curve on Ethereum, PancakeSwap on BNB Chain), probed live: each answers with a redirect to The Graph's error host, which does not resolve, and the adapter's sync fails with an error after seven attempts (about a minute). The Graph's network gateway refused the same query without an API key [4].
- 20 de novembro de 2026A real Curve 3pool exchange on Ethereum [3], read from a public RPC and shaped as the volume subgraph shapes it [2]. The adapter cannot read it: its query names an entity the schema lacks (kept as failing tests), and the subgraph's answer to such a query, an error, stops the sync instead of reading as no swaps.
O que o tornaria Verificado
Recommended: retire the subgraph adapter and read DEX activity from the chain read, with each transaction's tokens out and in grouped into one swap. A DEX would then be as reliable as the chain read, and the chain's own bar applies: a public address's full history, read through TaxChain, reconciled to its live balance on chain [5].
Otherwise: point the adapter at The Graph's network with an operator key, fix the failing tests (transaction hash, routed swaps, origin, native coins, and this DEX's own faults), and drop a DEX swap that the chain read already holds. Then reconcile a real wallet's swaps against its chain history.
Como adicionar
- Find the address you trade from in your wallet app (MetaMask, Rabby, a Ledger account…). It is the public 0x address, not a recovery phrase.
- In TaxChain, open Wallets, choose Add source, pick the chain you used Curve on and paste the address. Repeat for each chain.
- When the sync finishes, check each token's balance against your wallet. Leave swap withdrawals as disposals; mark only moves between your own wallets as transfers.
Referências
- [1]The Road to Sunsetting the Hosted Service. The Graph. The hosted service (api.thegraph.com/subgraphs/name/…) stopped serving queries after the upgrade window closed in June 2024. Subgraphs moved to The Graph's decentralised network.
- [2]volume-subgraphs: schema.graphql (SwapEvent). Curve (GitHub). SwapEvent: buyer, tokenSold and tokenBought (token addresses), amountSold, amountBought, timestamp, tx.
- [3]Ethereum transaction 0xe034e2b1096a82a3827342b5119bf0c55886170fc75b14c4ce3660b566580d3c. Etherscan. A 3pool exchange of 500 USDC for 500.448091 USDT whose buyer is a router contract, not the account that sent the transaction.
- [4]Subgraph Studio: introduction and plans. The Graph. Queries on the network go through a gateway with an API key created in Subgraph Studio. The free plan includes 100,000 queries a month.
- [5]Etherscan API V2. Etherscan. The API TaxChain uses to read an EVM wallet: normal transactions, ERC-20 token transfers and internal transactions, one endpoint for every supported chain.
Última verificação face à documentação da plataforma e ao código do TaxChain em 20 de novembro de 2026.