> For the complete documentation index, see [llms.txt](https://docs.carbondefi.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortex-functions/read-functions/totalcollected.md).

# totalCollected()

```solidity
    function totalCollected() external view returns (uint256);
```

This function returns the amount of tokens collected by the Carbon Vortex to date. If `finalTargetToken` is defined, this value will represent amount collected in this token, otherwise, it will represent `targetToken`.

### Example

{% code overflow="wrap" %}

```solidity
totalCollected(0x1F573D6Fb3F13d689FF844B4cE37794d79a7FF1C)
returns (
      10000000000000
)
```

{% endcode %}
