Skip to main content

What Is Autofarm? How the Auto-Compounding Vaults and AUTO Token Work

Autofarm is a yield aggregator that auto-compounds farm rewards in vaults. How its contracts, fees and 80,000 AUTO supply cap work, and where it stands now.

· By ZIPMEX · 20 min read

Autofarm (autofarm.network) is a decentralised finance yield aggregator. You deposit tokens into a vault, and the vault's contract claims the farming rewards, swaps them back into the deposited asset and reinvests them, so the yield compounds without you claiming and redepositing by hand. It started on BNB Smart Chain (BSC) and its native token is AUTO, capped at 80,000 in the contract code. The project's public development has slowed sharply: every repository in its GitHub organisation is archived, and DefiLlama showed about $6.1 million in total value locked on 25 October 2026.

Most of this article comes from one source: Autofarm's own published smart-contract code and audit repository on GitHub. Its documentation site and app could not be reached when this article was updated.

What Autofarm does

Yield farming pays rewards for supplying liquidity or deposits, but rewards only compound if someone harvests and reinvests them, and each harvest costs a transaction fee. Autofarm pools many depositors in one vault so a single harvest serves everyone.

The project's V2 contracts list three chains: BNB Smart Chain, HECO and Polygon (formerly Matic network). On BSC, the main contract, AutoFarmV2, handles AUTO emissions and all deposits and withdrawals. On the other chains a separate Rewards Distributor contract hands out AUTO, because those chains have no direct AUTO emissions.

The project has two products in its code:

  • Vaults. Strategy contracts ("Strats") that farm and auto-compound a deposited asset.
  • AutoSwap. A swap aggregator contract that runs a caller-supplied series of calls against whitelisted DEX routers and returns the output token. The route comes from the caller; the contract doesn't compute it. A fee (feeRate, in basis points) is charged on output above the guaranteed amount, and a referrer can receive a share of it.

How a vault compounds

In the V2 strategy contract (StratX2), the earn() function does the compounding in five steps:

  1. Harvest. It claims the rewards the vault has earned from the underlying farm.
  2. Wrap. If the reward is the chain's native coin, it wraps it into the token form (WBNB on BSC).
  3. Take fees. A controller fee goes to a rewards address, and a buyback share is spent on AUTO.
  4. Rebuild the position. For a liquidity-pair vault, half of the remaining reward is swapped into each token of the pair, with slippage protection, and liquidity is added. Single-asset vaults skip this step.
  5. Re-deposit. The new liquidity tokens go back into the farm.

When you deposit, AutoFarmV2 pays out any pending AUTO, moves your tokens into the strategy and credits you with vault shares. Withdrawals work the other way round: your shares are converted back into the underlying tokens.

Fees in the V2 code

The StratX2 contract sets these defaults and limits. Governance can change values inside the limits for each vault, so a live vault may differ.

FeeDefault in codeHard limit in code
Entrance (deposit) fee0.1% (entranceFeeFactor = 9990 of 10,000)up to 0.5% (lower limit 9950)
Withdrawal feenone (withdrawFeeFactor = 10000)up to 0.5%
Controller fee on harvested rewards0up to 3% (controllerFeeUL = 300 of 10,000)
AUTO buyback from harvested rewards0up to 8% (buyBackRateUL = 800 of 10,000)

Bought-back AUTO goes to buyBackAddress, which defaults to the burn address 0x000…dEaD. Governance can change that address, so the buyback only burns AUTO while the default stays in place.

The later V3 code (repository autofarm-v3-core, last updated November 2022) lists a 0% entrance fee, profits that vest over 6 hours, ERC4626-compatible transferable shares and an on-chain calculation of the ideal compounding interval.

AUTO tokenomics

The AutoFarmV2 contract sets out the supply rules:

  • Maximum supply: AUTOMaxSupply = 80000e18, which is 80,000 AUTO. Emissions stop once total supply reaches it.
  • Emission rate: 0.008 AUTO per block (AUTOPerBlock = 8000000000000000), starting at BSC block 3,888,888.
  • Developer share: each time a pool's reward is minted, the contract also mints 138/1,000 of that amount to the owner address. That comes to about 12% of all AUTO issued, which matches the "12%" comment in the code. The rest goes to vault depositors.
  • Token upgrade: the upgraded token, AUTOv2, was committed on 22 January 2021.

At 0.008 AUTO per block, minting 80,000 AUTO takes 10 million blocks. That is why emissions were scheduled to end in 2021.

What do Autofarm V2 vault fees take from a deposit?

Enter a deposit, the vault's entrance fee and its withdrawal fee to see what comes back before any rewards.

Worked examples (amount back = deposit × (1 − entrance fee) × (1 − withdrawal fee))
Amount you deposit into the vaultVault entrance (deposit) feeVault withdrawal feeAmount back before rewards
10,000 tokens0.1 %0 %9,990 tokens
10,000 tokens0.1 %0 %9,990 tokens
10,000 tokens0.5 %0.5 %9,900.25 tokens
  • Fee values are your inputs; the V2 code defaults are 0.1% entrance and no withdrawal fee, and governance can raise each to 0.5%.
  • The result ignores any rewards earned, so it shows only what the deposit and withdrawal fees remove.

This is arithmetic on your inputs only: it leaves out the controller fee and AUTO buyback taken from harvested rewards, transaction costs, impermanent loss and tax, and cannot show a live vault's actual settings.

Security record

The autofarm-audits repository holds five reports. By the dates in their file names, they come from three firms:

  • Vidar, 19 January 2021
  • SlowMist, 17 March 2021 (in English and Chinese)
  • CertiK, 28 March 2021 and 4 May 2021

The V2 README says most admin functions sit behind a 24-hour timelock. The function that changes AUTO allocation between pools has a 12-hour timelock. The V3 README adds a team-run emergency pause and says strategies have no centralised migrator, so their core settings cannot be changed after deployment.

An audit covers the code that was reviewed on a given date. It does not cover strategies deployed later, the farms a vault depends on, or changes made through governance settings.

Where Autofarm stands now

  • The GitHub organisation and all six of its repositories are archived. The audit repository has been read-only since 9 August 2023, and the last repository update shown was in March 2023.
  • DefiLlama's API reported about $6.1 million in total value locked on 25 October 2026.
  • The documentation site and the web app returned errors when this article was updated.
  • Autofarm has retired vaults before. In December 2021 it asked users of migrated vaults to withdraw from the deprecated vaults and re-deposit in new ones.

If you still have funds in an Autofarm vault, check which contract holds them. Check also whether that vault is still maintained, and whether the farm underneath it still pays rewards.

Risks to understand

  • Smart-contract risk. The vault, the underlying farm and the DEX router each add their own code risk.
  • Impermanent loss. Liquidity-pair vaults carry the price-divergence risk of the pair they hold.
  • Governance risk. Fees and the buyback destination can be changed within the code's limits.
  • Project activity. With archived code and low TVL, maintenance and support may be limited.

This article explains how the protocol works. It is not investment advice.

Limitations: figures come from Autofarm's own published code and one TVL tracker. Live vault settings may differ from the code defaults.

Updated on Oct 25, 2026