BTB Finance for agents

Protocols / Yield Aggregator

Yearn Finance V3

Yearn V3 vaults are ERC-4626 vaults that put deposits to work in strategies. An agent can find endorsed vaults in the registry, deposit an asset through the 4626 Router, and redeem shares or withdraw the asset.

On-chainEVM9 contractsWebsite · Docs

get_protocol({ "protocol": "yearn" })

Risks an agent should know

What an agent can do

find-vaultFind endorsed vaults for an asset
Registry.getEndorsedVaults(asset) on the chain you want; check isEndorsed(vault) before depositing
depositDeposit an asset into a vault
approve the 4626 Router for the asset, then Router.deposit(vault, amount, to, minSharesOut)
redeemRedeem vault shares
approve the Router for the vault shares, then Router.redeem(vault, shares, to, maxLoss)
withdrawWithdraw an exact amount of the asset
approve the Router for the vault shares, then Router.withdraw(vault, amount, to, maxLoss)

Contracts

ethereum · chain id 1

ContractAddressKey functionsTry
V3 Registry (current, stable address on all EVM chains)
other
0xd40ecF29e001c76Dcc4cC0D9cd50520CE845B038
source
readgetEndorsedVaults(address)
readnumEndorsedVaults(address)
readisEndorsed(address)
readvaultInfo(address)
readgetAssets()
readnumAssets()
Full ABI
VaultFactory 3.1.1
factory
0x311de24e48C360B9A7765E7aB7eCDBABCd27B134
source
writedeploy_new_vault(address,string,string,address,uint256)
Full ABI
4626 Router
router
0x1112dbCF805682e828606f74AB717abf4b4FD8DE
source
writedeposit(address,uint256,address,uint256)
writeredeem(address,uint256,address,uint256)
writewithdraw(address,uint256,address,uint256)
readWETH9()
Full ABI

base · chain id 8453

ContractAddressKey functionsTry
V3 Registry (current)
other
0xd40ecF29e001c76Dcc4cC0D9cd50520CE845B038
source
readgetEndorsedVaults(address)
readnumEndorsedVaults(address)
readisEndorsed(address)
readvaultInfo(address)
readgetAssets()
readnumAssets()
Full ABI
4626 Router
router
0x1112dbCF805682e828606f74AB717abf4b4FD8DE
source
writedeposit(address,uint256,address,uint256)
writeredeem(address,uint256,address,uint256)
writewithdraw(address,uint256,address,uint256)
readWETH9()
Full ABI

arbitrum · chain id 42161

ContractAddressKey functionsTry
V3 Registry (current)
other
0xd40ecF29e001c76Dcc4cC0D9cd50520CE845B038
source
readgetEndorsedVaults(address)
readnumEndorsedVaults(address)
readisEndorsed(address)
readvaultInfo(address)
readgetAssets()
readnumAssets()
Full ABI
4626 Router
router
0x1112dbCF805682e828606f74AB717abf4b4FD8DE
source
writedeposit(address,uint256,address,uint256)
writeredeem(address,uint256,address,uint256)
writewithdraw(address,uint256,address,uint256)
readWETH9()
Full ABI

optimism · chain id 10

ContractAddressKey functionsTry
V3 Registry (current)
other
0xd40ecF29e001c76Dcc4cC0D9cd50520CE845B038
source
readgetEndorsedVaults(address)
readnumEndorsedVaults(address)
readisEndorsed(address)
readvaultInfo(address)
readgetAssets()
readnumAssets()
Full ABI
4626 Router
router
0x1112dbCF805682e828606f74AB717abf4b4FD8DE
source
writedeposit(address,uint256,address,uint256)
writeredeem(address,uint256,address,uint256)
writewithdraw(address,uint256,address,uint256)
readWETH9()
Full ABI

Notes

Core contracts use the same address on every EVM chain (Yearn deploys with CREATE2). Addresses are listed only on the chains where eth_getCode returned bytecode and the ABI was read from Sourcify: Ethereum, Base, Arbitrum and Optimism. VaultFactory 3.1.1 has a verified ABI on Ethereum only. Individual vault addresses are not listed; find them with the registry. Older factory versions (3.0.x, 3.1.0) and the Role Manager and Accountant contracts are not included. Polygon, Fantom and Katana appear on DefiLlama but are not covered here.

Sources

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