Saltar al contenido
Todas las fuentes

PancakeSwap en TaxChain

Aún no disponible

TaxChain aún no puede importar PancakeSwap. Esta página dice qué existe y qué falta.

Esta página está en inglés para decir exactamente lo que dicen la documentación de la plataforma y el código de TaxChain. Los títulos y el resto del sitio están en tu idioma.

PancakeSwap 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 PancakeSwap comes through the wallet you add on its chain, where each swap is read as tokens out and tokens in. The adapter covers PancakeSwap v3 only, not v2, StableSwap or its perpetuals.

Formas de importar

  • Subida de archivoNo disponible

    None

    PancakeSwap keeps no account and offers no statement. Block explorers export an address's transfers, which is the same data the chain read imports.

  • Conexión por APISe podría añadir

    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 [3]. 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 [4]: 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.

  • Dirección de walletNo disponible

    The Graph subgraphs (v3 only: BNB Chain, Ethereum and Arbitrum)

    The wallet address that traded (0x…). No key or signature.

    Not offered: no PancakeSwap 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:

    • Only PancakeSwap v3 is read. PancakeSwap lists v2, v3 and StableSwap exchange subgraphs for several chains on The Graph's network [2]; v2 and StableSwap are not queried.
    • Arbitrum is read by the adapter but missing from TaxChain's own list of PancakeSwap's chains.
    • 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.

Qué se lee

OperaciónEstado
SwapsNot read from PancakeSwap. 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 [4]. 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.Se lee en 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.Se lee en 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.Se lee en 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.Se lee en 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.Se lee en parte
CAKE staking, syrup pools and farmsNot read from PancakeSwap. On the chain read, tokens staked are withdrawals (disposals) and rewards harvested are deposits (acquisitions, not income). Mark stakes for review: the tokens are still yours.Se lee en parte
PerpetualsPancakeSwap's perpetuals are not read: their profit, loss and funding must be added by hand.No se lee
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.Se lee en parte
NFTsNeither the DEX nor the chain read imports NFTs, liquidity position NFTs included.No se lee

Limitaciones

  • You cannot add PancakeSwap 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.

Cómo se ha comprobado

  • 20 de noviembre 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 [3].
  • 20 de noviembre de 2026The swap reading PancakeSwap shares with Uniswap (the same code, for the v3 schema PancakeSwap forked) was tested on real Uniswap v3 transactions: the direction of one pool is read correctly; routed swaps and swaps sent to another address fail.

Qué lo haría 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 [4].

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.

Cómo añadirlo

  • 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 PancakeSwap 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.

Referencias

  1. [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. [2]PancakeSwap subgraphs. PancakeSwap. Exchange v2, v3 and StableSwap subgraphs per chain, served from The Graph's network (and NodeReal for some).
  3. [3]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.
  4. [4]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 comprobación con la documentación de la plataforma y el código de TaxChain el 20 de noviembre de 2026.