BTB Finance for agents

Protocols / CDP

Liquity V1 (LUSD, Stability Pool)

Immutable borrowing protocol on Ethereum. Lock ETH as trove collateral, borrow LUSD with no interest (a one-time borrowing fee applies), and repay to free the collateral. Stability Pool depositors earn liquidated ETH and LQTY rewards.

On-chainEVM6 contractsWebsite · Docs

get_protocol({ "protocol": "liquity-v1" })

Risks an agent should know

What an agent can do

open-troveLock ETH and borrow LUSD
send ETH as value to BorrowerOperations.openTrove(maxFee, LUSDAmount, upperHint, lowerHint); LUSDAmount must be at least 1800 LUSD and the 200 LUSD gas compensation is added to the debt on top; no approval needed
repayRepay LUSD debt
BorrowerOperations.repayLUSD(amount, upperHint, lowerHint); the caller needs the LUSD in its wallet; no approval needed
adjust-collateralAdd or remove ETH collateral
addColl with ETH value to add, or withdrawColl(amount, upperHint, lowerHint) to remove; the trove must stay above 110 percent
close-troveRepay everything and get the ETH back
hold LUSD for the debt minus 200 LUSD, then call BorrowerOperations.closeTrove(); not possible in recovery mode
stability-depositEarn ETH from liquidations
StabilityPool.provideToSP(amount, zeroAddress) after holding LUSD; no approval needed
claim-stability-gainsClaim ETH and LQTY gains from the Stability Pool
StabilityPool.withdrawFromSP(0) for a depositor
stake-lqtyStake LQTY to earn fee income
LQTYStaking.stake(amount); LQTYStaking.unstake(0) claims gains
redeem-lusdSwap LUSD for ETH at face value
get hints from HintHelpers.getRedemptionHints(amount, price, maxIterations), then TroveManager.redeemCollateral(...)

Contracts

ethereum · chain id 1

ContractAddressKey functionsTry
BorrowerOperations (trove entry point)
router
0x24179CD81c9e782A4096035f7eC97fB8B783e007
source
writeopenTrove(uint256,uint256,address,address)
writeadjustTrove(uint256,uint256,uint256,bool,address,address)
writeaddColl(address,address)
writewithdrawColl(uint256,address,address)
writewithdrawLUSD(uint256,uint256,address,address)
writerepayLUSD(uint256,address,address)
writecloseTrove()
writeclaimCollateral()
Full ABI
TroveManager
other
0xA39739EF8b0231DbFA0DcdA07d7e29faAbCf4bb2
source
writeliquidate(address)
writeredeemCollateral(uint256,address,address,address,uint256,uint256,uint256)
readgetEntireDebtAndColl(address)
readgetTroveStatus(address)
readgetCurrentICR(address,uint256)
readgetTroveOwnersCount()
Full ABI
StabilityPool
pool
0x66017D22b0f8556afDd19FC67041899Eb65a21bb
source
writeprovideToSP(uint256,address)
writewithdrawFromSP(uint256)
writewithdrawETHGainToTrove(address,address)
readgetDepositorETHGain(address)
readgetDepositorLQTYGain(address)
readgetCompoundedLUSDDeposit(address)
readgetTotalLUSDDeposits()
Full ABI
LUSD token
token
0x5f98805A4E8be255a32880FDeC7F6728C6568bA0
source
readbalanceOf(address)
writetransfer(address,uint256)
writeapprove(address,uint256)
Full ABI
LQTYStaking
staking
0x4f9Fbb3f1E99B56e0Fe2892e623Ed36A76Fc605d
source
writestake(uint256)
writeunstake(uint256)
readgetPendingETHGain(address)
readgetPendingLUSDGain(address)
readstakes(address)
Full ABI
HintHelpers
other
0xE84251b93D9524E0d2e621Ba7dc7cb3579F997C0
source
readgetApproxHint(uint256,uint256,uint256)
readgetRedemptionHints(uint256,uint256,uint256)
Full ABI

Notes

Ethereum mainnet only. Addresses come from the official deployment file in the liquity/dev repo (packages/lib-ethers/deployments/default/mainnet.json). The file also lists other contracts that are not listed here (ActivePool, DefaultPool, SortedTroves, PriceFeed, CollSurplusPool, CommunityIssuance, LockupContractFactory, Unipool, the LQTY token, MultiTroveGetter). Verified ABIs for the contracts above came from Sourcify (chain 1). Liquity V2 is a separate protocol with its own registry entry.

Sources

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