BTB Finance for agents

Protocols / Yield Aggregator

Yield Yak

Autocompounding strategies on Avalanche. Deposit a token into a strategy, get receipt shares, and rewards are reinvested automatically. Withdraw shares for the underlying token. Also runs YakRouter, a DEX aggregator that finds the best route across Avalanche DEXes.

On-chain + APIEVM3 contractsWebsite · Docs

get_protocol({ "protocol": "yield-yak" })

Risks an agent should know

What an agent can do

find-strategyPick a strategy by token and APY
GET https://staging-api.yieldyak.com/43114/farms and /apys; keep deprecated false and check DEPOSITS_ENABLED() on the strategy before depositing.
depositDeposit depositToken into a strategy
approve the strategy for the amount, then deposit(amount). Or depositWithPermit(...) to skip the approve. Receive receipt shares (balanceOf).
withdrawRedeem receipt shares
withdraw(shares). Preview the amount with getDepositTokensForShares(shares). Works even when deposits are disabled.
check-positionValue a position
depositToken amount = balanceOf(user) * totalDeposits() / totalSupply(), or getDepositTokensForShares(balanceOf(user)).
swapSwap tokens through the aggregator
findBestPath(amountIn, tokenIn, tokenOut, maxSteps) on the router, approve the router for tokenIn, then swapNoSplit(trade, recipient, 0) with trade.amountOut set to the minimum acceptable output.

Contracts

avalanche · chain id 43114

ContractAddressKey functionsTry
YakRouter (aggregator)
router
0xC4729E56b831d74bBc18797e0e17A295fA77488c
source
writeswapNoSplit((uint256,uint256,address[],address[]),address,uint256)
writeswapNoSplitFromAVAX((uint256,uint256,address[],address[]),address,uint256)
writeswapNoSplitToAVAX((uint256,uint256,address[],address[]),address,uint256)
writeswapNoSplitWithPermit((uint256,uint256,address[],address[]),address,uint256,uint256,uint8,bytes32,bytes32)
readfindBestPath(uint256,address,address,uint256)
readfindBestPathWithGas(uint256,address,address,uint256,uint256)
readNAME()
Full ABI
Yield Yak: Benqi USDC strategy (BENQI-USDC-2)
vault
0xFB692D03BBEA21D8665035779dd3082c2B1622d0
source
writedeposit(uint256)
writedepositWithPermit(uint256,uint256,uint8,bytes32,bytes32)
writedepositFor(address,uint256)
writewithdraw(uint256)
writereinvest()
readbalanceOf(address)
readtotalSupply()
readtotalDeposits()
+8 more via get_protocol
Full ABI
Yield Yak: Benqi USDT strategy (BENQI-USDT-2)
vault
0xa45B0A446B91eBDBbB041f491e7244AAeB7f557A
source
writedeposit(uint256)
writedepositWithPermit(uint256,uint256,uint8,bytes32,bytes32)
writedepositFor(address,uint256)
writewithdraw(uint256)
writereinvest()
readbalanceOf(address)
readtotalSupply()
readtotalDeposits()
+8 more via get_protocol
Full ABI

APIs

Yield Yak farms list (Avalanche)
auth: none
https://staging-api.yieldyak.com/43114/farms
All strategies on Avalanche with address, name, platform, tags, depositToken (address, symbol, decimals, underlying), rewardToken, totalDeposits and totalSupply (raw units), pendingRewards, reinvestRewardBips and a deprecated flag. Filter deprecated false. Replace 43114 with 42161 for Arbitrum.
Yield Yak APY list (Avalanche)
auth: none
https://staging-api.yieldyak.com/43114/apys
APR and APY per strategy address, with lastReinvest timestamp. Join to /farms on address.
Yield Yak docs
auth: none
https://docs.yieldyak.com
Human-readable docs for strategies, vaults and the aggregator.

Notes

Yield Yak has no factory or registry for strategies. Each strategy is deployed separately and listed in deployments/mainnet/<NAME>.json in the yieldyak/smart-contracts repo (about 730 mainnet deployment files, all on Avalanche in that folder). Every strategy follows the YakStrategy base (BaseStrategy in the repo): deposit, depositFor, depositWithPermit, withdraw, reinvest and the share math. The ABI for each strategy is in its deployment file, so check the ABI there when a strategy has a different implementation (Benqi, Pharaoh, Blackhole and others differ). Largest strategies on Avalanche by deposited amount (from the farms API, raw units): Benqi USDC-2 (about 217,000 USDC) and Benqi USDT-2 (about 48,700 USDT). Both are listed as examples and both have DEPOSITS_ENABLED false. Several larger totalDeposits values in the API are in non-stable token units and are not comparable. Older Benqi USDC strategy at 0x918dE58A4C0D98A3a7c34AF539eB3Ca4e6fAA146 is in the deployments folder but is not listed here. Addresses were checked on chain (Avalanche RPC): the router returns NAME() = YakRouter, the two strategies have code and return depositToken, rewardToken, totalDeposits and owner. The Yield Yak API host is staging-api.yieldyak.com; it is the host DefiLlama uses, and no separate production host was found in the sources used. Arbitrum has its own Yak deployments and the repo also contains strategies for other chains, which are not covered here.

Sources

Researched 2026-11-28. Addresses are copied from the official sources above; check them before moving large amounts.