BTB Finance for agents

Protocols / Lending

Curve LlamaLend

Isolated lending markets from Curve. Lenders deposit crvUSD into a market vault to earn interest. Borrowers post a collateral token and borrow crvUSD in a loan that is liquidated gradually across bands. Anyone can read each market's loans and health.

On-chainEVM6 contractsWebsite · Docs

get_protocol({ "protocol": "curve-llamalend" })

Risks an agent should know

What an agent can do

lendDeposit crvUSD into a market vault to earn the lending APR
approve crvUSD to the vault, then vault.deposit(amount)
unlendWithdraw crvUSD from a market vault
check maxRedeem(owner), then vault.redeem(shares) or vault.withdraw(assets); withdrawals depend on unborrowed liquidity
borrowOpen a loan with collateral and borrow crvUSD
approve the collateral token to the controller, then controller.create_loan(collateralAmount, debtAmount, N); check health and max_borrowable first
borrow-moreBorrow more on an existing loan
controller.borrow_more(0, debtAmount) or with extra collateral controller.borrow_more(collateralAmount, debtAmount) after approving collateral
repayRepay crvUSD on a loan
approve crvUSD to the controller, then controller.repay(amount); repaying the full debt closes the loan
check-positionRead a loan's health and debt
controller.health(user, true), controller.debt(user), controller.user_state(user)

Contracts

ethereum · chain id 1

ContractAddressKey functionsTry
OneWayLendingFactory (Ethereum)
factory
0xeA6876DDE9e3467564acBeE1Ed5bac88783205E0
source
readmarket_count()
readvaults(uint256)
readcontrollers(uint256)
readcollateral_tokens(uint256)
readborrowed_tokens(uint256)
readnames(uint256)
Full ABI
Vault (WETH-long market, example)
vault · proxy
0x5AE28c9197a4a6570216fC7e53E7e0221D7A0FEF
source
writedeposit(uint256)
writeredeem(uint256)
writewithdraw(uint256)
readmaxRedeem(address)
readlend_apr()
readborrow_apr()
readtotalAssets()
writeapprove(address,uint256)
Full ABI
Controller (WETH-long market, example)
pool
0xaade9230AA9161880E13a38C83400d3D1995267b
source
writecreate_loan(uint256,uint256,uint256)
writeadd_collateral(uint256)
writeremove_collateral(uint256)
writeborrow_more(uint256,uint256)
writerepay(uint256)
readhealth(address,bool)
readdebt(address)
readloan_exists(address)
+3 more via get_protocol
Full ABI

arbitrum · chain id 42161

ContractAddressKey functionsTry
OneWayLendingFactory (Arbitrum)
factory
0xcaEC110C784c9DF37240a8Ce096D352A75922DeA
source
readmarket_count()
readvaults(uint256)
readcontrollers(uint256)
readcollateral_tokens(uint256)
Full ABI

optimism · chain id 10

ContractAddressKey functionsTry
OneWayLendingFactory (Optimism)
factory
0x5EA8f3D674C70b020586933A0a5b250734798BeF
source
readmarket_count()
readvaults(uint256)
readcontrollers(uint256)
readcollateral_tokens(uint256)
Full ABI

fraxtal · chain id 252

ContractAddressKey functionsTry
OneWayLendingFactory (Fraxtal)
factory
0xf3c9bdAB17B7016fBE3B77D17b1602A7db93ac66
source
readmarket_count()
readvaults(uint256)
readcontrollers(uint256)
Full ABI

Notes

Factory addresses come from the official curve-lending-js repo (src/constants/aliases.ts, ONE_WAY factory per chain). The Ethereum factory was checked on Sourcify. The Arbitrum and Optimism factories were checked on Sourcify, and the Fraxtal factory has code on chain but no verified ABI on Sourcify. The WETH-long market on Ethereum (vault 0x5AE2 and controller 0xaade) is an example read from the Ethereum factory at index 1 (vaults(1) and controllers(1)); the factory holds 48 markets on Ethereum, so enumerate with market_count, vaults and controllers for others. The controller ABI was checked against the live Sourcify-verified controller. The vault ABI comes from the curve-lending-js Vault ABI file; the vault is an EIP1167 minimal proxy, so its functions were not checked on Sourcify. Curve Lend on Sonic (factory 0x30d1859dad5a52ae03b6e259d1b48c4b12933993 in the same aliases file) is not listed here because DefiLlama does not list Sonic for this protocol.

Sources

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