Autofarm

Autofarm: yield vaults and DEX aggregation

updated

Autofarm was designed to combine auto-compounding yield vaults with AutoSwap, a decentralized exchange aggregator that routed trades across liquidity sources. Vault strategies harvested and reinvested rewards, while swap routing sought better execution prices. Its public code organization was archived on August 9, 2023; historical feature descriptions don't establish whether a particular vault remains operational.

A vault deposit, a token swap, and an AUTO stake served different purposes. Their asset requirements and withdrawal conditions also differed. Liquidity shortcuts and extra project-token rewards extended the platform beyond basic compounding.

In short: A vault share recorded a claim within a strategy; a missing dashboard balance alone doesn't establish whether its underlying assets remain recoverable.

Vault strategies put harvested rewards back to work

Yield vaults automated the reinvestment of rewards from underlying farms, allowing the strategy to accumulate assets through repeated compounding. Harvesting collected the rewards that a farm paid. The strategy reinvested them, converting them into the deposit assets when needed. Pooling this work spread harvesting costs across deposits. The design also optimized the intervals between harvests, reducing the need for each depositor to manage repeated reinvestment transactions.

The V2 vault handler recorded each depositor's interest as shares in the selected pool. Those shares connected the wallet to the strategy's accounting. Rewards reinvested within the strategy therefore didn't need to appear as fresh tokens in the depositor's wallet.

The deposit asset and network defined the position

Each vault accepted a particular asset on a particular network, and the underlying strategy determined what that deposit represented. The historical catalogue covered networks including BNB Chain, Polygon, Avalanche, and Cronos. It included individual token deposits and liquidity-provider tokens, usually shortened to LP tokens. The catalogue also named CAKE strategies associated with PancakeSwap v2.

An LP token represented a share of an underlying liquidity pool. Other vaults accepted tokens representing different underlying positions. The token contract, selected network, and associated farm determined the strategy's actual exposure. A familiar ticker alone couldn't identify all those dependencies, especially where several exchanges supported similarly named pools.

AutoSwap distributed trades across exchange liquidity

AutoSwap aggregated decentralized exchange liquidity to find routes for a token exchange, giving it a different purpose from reward-compounding vaults. AutoSwap split trades across routes on different decentralized exchanges based on available liquidity. Dividing a trade could improve execution compared with concentrating it in a less liquid pool. The route still depended on supported exchanges and the liquidity available for that trade. Historical deployments included BNB Chain, Polygon, Avalanche, and Cronos.

AutoSwap distributed trades across exchange liquidity (Autofarm)

View full-size image

The interface also documented adding and removing liquidity, with a zap feature that could obtain LP tokens from existing holdings where supported. These shortcuts connected asset preparation with vault access. Buying a token, obtaining a liquidity position, and depositing into a strategy had distinct purposes, even when an interface brought them together.

Displayed yields combined variable income and costs

Vault APY described an annualized estimate with compounding, while APR expressed an annual rate without that compounding assumption. Underlying farm rewards, reward-token prices, and the amount deposited in a pool influenced the displayed estimate. Trading income added another variable for liquidity positions. The historical Trading APR calculation annualized the preceding 24 hours of pool fees, so a brief period of heavy trading could produce an elevated annualized figure. The estimate didn't commit the farm or exchange to maintaining that income.

Compounding also incurred costs. Controller fees supported harvesting gas, platform fees supported the treasury, and a portion of harvest profits could fund AUTO buybacks or distributions to stakers. Deposit charges had a different basis from charges on harvested profits. The historical interface presented vault APR and APY after the relevant vault fees; wallet transactions also required network gas.


AUTO linked staking with protocol governance

AUTO was the ecosystem's native token, with governance and revenue-related roles alongside its historical use in vault incentives. Governance included decisions about allocating revenue between token burns and distributions to AUTO stakers. The Single AUTO Vault on BNB Chain was a separate staking product for AUTO itself.

In the Single AUTO Vault design, each additional deposit reset a seven-day withdrawal countdown for the entire deposited balance. Withdrawals weren't available while that countdown remained active. Adding to an existing stake therefore affected the withdrawal timing of the older stake as well as the new deposit.


AutoAmplify added rewards from participating projects

AutoAmplify layered extra project-token rewards onto selected vaults and supported trading competitions involving AutoSwap users. Participating projects supplied their own native reward tokens. The additional vault rewards were available to harvest separately, including automatic harvesting during deposits and withdrawals under the documented arrangement. Trading competitions had campaign-specific guidelines, so a vault reward program and a swap competition weren't one universal eligibility rule. Extra token rewards also carried exposure to the participating project. Its underlying strategy and smart contract risks remained relevant to the deposit.


Can a missing dashboard balance hide an existing position?

A missing dashboard balance can reflect an interface problem, so it doesn't settle what an older vault position contains. Consider a hypothetical V2 position whose dashboard shows no deposit, although the depositing wallet still has recorded pool shares. Assume the strategy also reports assets backing those shares.

For a strategy with outstanding shares, the V2 handler calculated the recorded token amount from the wallet's fraction of total shares and reported locked tokens. In this case, the calculation shows a token balance attributable to the wallet, even though the dashboard omitted it.

That accounting result doesn't establish how much a withdrawal would deliver. Recoverable assets and successful contract execution remain separate conditions; a share record alone doesn't replenish an impaired strategy.

Archived code and risks in the underlying farms

Autofarm's public code organization was archived on August 9, 2023. It is marked as no longer maintained. That status concerns the code organization; it doesn't describe the asset balance or withdrawal state of every deployed contract.

The project published smart contract audits, including reviews by CertiK and SlowMist. Those reviews concerned particular code and scopes. Vault strategies also depended on underlying farms and liquidity pools. A defect or loss in one dependency could affect a position even when the vault's own accounting behaved as written.

Liquidity-token deposits retained exposure to the assets inside their pools, including changes in relative prices and impermanent loss. Reinvesting rewards increased the position's exposure to its strategy. It didn't protect the deposited assets from falling prices.

An older holding belongs to its original network, contract, and depositing wallet. Those details identify the position even when a website changes.

Reader questions

Was buying AUTO required to deposit a different token?

The V2 handler accepted the token assigned to the selected pool without requiring a separate AUTO purchase. A vault accepting an LP token required that LP token. The asset deposited into the strategy and the network asset used to pay transaction gas served different purposes.

What did an LP-token withdrawal return to the wallet?

Withdrawing from an LP-token vault returned LP tokens, subject to available assets and successful execution. Redeeming those tokens for their constituent assets was a liquidity-removal operation involving the underlying pool. An integrated interface could bring those functions together without making the LP token identical to the individual coins.

How could the pool identifier be found in an old deposit?

The decoded input of a V2 deposit transaction included the pool identifier, or PID. It needed to be matched with the network and vault handler used by that transaction. The same identifier in a different deployment didn't necessarily identify the same pool.

Could deprecated vaults accept additional deposits?

The historical interface blocked further deposits into vaults marked as deprecated. Their separate listing helped people locate existing positions and access withdrawal controls. Deprecated status didn't establish what assets remained in an underlying strategy or whether a particular withdrawal would execute successfully.

Were newly minted AUTO rewards intended to continue indefinitely?

The original AUTO incentive program was limited to eligible vaults and bounded by a token supply cap. It was separate from the farm rewards that strategies reinvested. A historical AUTO reward label therefore wasn't a promise that new token emissions would continue indefinitely.

Did the original AUTO launch include a presale?

The original AUTO launch had no presale or pre-farm. Its token distribution included vault incentives alongside allocations for the team and future ecosystem incentives. That launch structure didn't mean every token was assigned to vault users.

How were governance votes weighted between wallets?

Governance votes were weighted by the amount of AUTO staked in the Single AUTO Vault. Each eligible wallet could cast a vote, with its staked amount determining that vote's weight. Holding tokens outside that staking product wasn't the documented condition for participation.

Is a recovery phrase needed to inspect an old vault position?

A recovery phrase isn't needed to read public vault records. The wallet address and correct contract identify the relevant public data. A recovery phrase controls access to the wallet, so sharing it with someone offering to investigate a missing balance can expose the wallet's assets.