> 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.md).

# Contracts & Functions

- [Contracts](https://docs.carbondefi.xyz/contracts-and-functions/contracts.md)
- [CarbonController](https://docs.carbondefi.xyz/contracts-and-functions/contracts/carboncontroller.md)
- [CarbonVortex](https://docs.carbondefi.xyz/contracts-and-functions/contracts/carbonvortex.md)
- [CarbonVortexBridge](https://docs.carbondefi.xyz/contracts-and-functions/contracts/carbonvortexbridge.md)
- [Deployments](https://docs.carbondefi.xyz/contracts-and-functions/contracts/deployments.md)
- [Mainnet Contracts](https://docs.carbondefi.xyz/contracts-and-functions/contracts/deployments/mainnet-contracts.md)
- [Testnet Contracts](https://docs.carbondefi.xyz/contracts-and-functions/contracts/deployments/testnet-contracts.md)
- [CarbonController Functions](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions.md)
- [Write Functions](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/write-functions.md)
- [Transaction Prerequisites](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/write-functions/transaction-prerequisites.md)
- [approve() / allowance()](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/write-functions/transaction-prerequisites/approve-allowance.md)
- [Trade](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/write-functions/trade.md)
- [tradeBySourceAmount()](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/write-functions/trade/tradebysourceamount.md)
- [tradeByTargetAmount()](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/write-functions/trade/tradebytargetamount.md)
- [Strategy Management](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/write-functions/strategy-management.md)
- [createStrategy()](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/write-functions/strategy-management/createstrategy.md)
- [updateStrategy](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/write-functions/strategy-management/updatestrategy.md)
- [deleteStrategy()](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/write-functions/strategy-management/deletestrategy.md)
- [Read Functions](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/read-functions.md)
- [controllerType()](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/read-functions/controllertype.md)
- [tradingFeePPM()](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/read-functions/tradingfeeppm.md)
- [pairTradingFeePPM()](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/read-functions/pairtradingfeeppm.md)
- [pair()](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/read-functions/pair.md)
- [pairs()](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/read-functions/pairs.md)
- [strategy()](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/read-functions/strategy.md)
- [strategiesByPair()](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/read-functions/strategiesbypair.md)
- [strategiesByPairCount()](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/read-functions/strategiesbypaircount.md)
- [calculateTradeSourceAmount()](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/read-functions/calculatetradesourceamount.md)
- [calculateTradeTargetAmount()](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/read-functions/calculatetradetargetamount.md)
- [Data & Events](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/data-and-events.md)
- [TradingFeePPMUpdated()](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/data-and-events/tradingfeeppmupdated.md)
- [PairCreated()](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/data-and-events/paircreated.md)
- [StrategyCreated()](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/data-and-events/strategycreated.md)
- [StrategyDeleted()](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/data-and-events/strategydeleted.md)
- [StrategyUpdated()](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/data-and-events/strategyupdated.md)
- [TokensTraded()](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/data-and-events/tokenstraded.md)
- [FeesWithdrawn()](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/data-and-events/feeswithdrawn.md)
- [CarbonVortex Functions](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortex-functions.md)
- [Write Functions](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortex-functions/write-functions.md)
- [trade()](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortex-functions/write-functions/trade.md)
- [execute()](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortex-functions/write-functions/execute.md)
- [Read Functions](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortex-functions/read-functions.md)
- [amountAvailableForTrading()](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortex-functions/read-functions/amountavailablefortrading.md)
- [availableTokens()](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortex-functions/read-functions/availabletokens.md)
- [expectedTradeInput()](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortex-functions/read-functions/expectedtradeinput.md)
- [expectedTradeReturn()](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortex-functions/read-functions/expectedtradereturn.md)
- [finalTargetToken()](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortex-functions/read-functions/finaltargettoken.md)
- [minTargetTokenSaleAmount()](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortex-functions/read-functions/mintargettokensaleamount.md)
- [minTokenSaleAmount()](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortex-functions/read-functions/mintokensaleamount.md)
- [pairDisabled()](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortex-functions/read-functions/pairdisabled.md)
- [priceDecayHalfLife()](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortex-functions/read-functions/pricedecayhalflife.md)
- [rewardsPPM()](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortex-functions/read-functions/rewardsppm.md)
- [targetToken()](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortex-functions/read-functions/targettoken.md)
- [targetTokenPriceDecayHalfLife()](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortex-functions/read-functions/targettokenpricedecayhalflife.md)
- [targetTokenSaleAmount()](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortex-functions/read-functions/targettokensaleamount.md)
- [tokenPrice()](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortex-functions/read-functions/tokenprice.md)
- [totalCollected()](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortex-functions/read-functions/totalcollected.md)
- [tradingEnabled()](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortex-functions/read-functions/tradingenabled.md)
- [CarbonVortexBridge Functions](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortexbridge-functions.md)
- [Write Functions](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortexbridge-functions/write-functions.md)
- [Bridge()](https://docs.carbondefi.xyz/contracts-and-functions/carbonvortexbridge-functions/write-functions/bridge.md): For chains that support StarGate bridge
