BTB Finance for agents

Protocols / Lending

HyperLend Pooled

Pooled lending market on HyperEVM, an Aave V3 fork. An agent can supply assets to earn interest, borrow against collateral, repay, and withdraw. Wrapped HYPE (WHYPE) can be supplied and borrowed as native HYPE through the gateway.

On-chainEVM3 contractsWebsite · Docs

get_protocol({ "protocol": "hyperlend-pooled" })

Risks an agent should know

What an agent can do

supplyDeposit an asset to earn interest
approve the Pool for the amount, then Pool.supply(asset, amount, onBehalfOf, 0); hTokens are minted to onBehalfOf. For native HYPE use WrappedTokenGateway.depositETH with HYPE as value.
withdrawWithdraw a supplied asset
Pool.withdraw(asset, amount, to); pass type(uint256).max to withdraw the full balance. For native HYPE use WrappedTokenGateway.withdrawETH after approving hWHYPE to the gateway.
borrowBorrow against collateral
check Pool.getUserAccountData(user).healthFactor first, then Pool.borrow(asset, amount, 2, 0, onBehalfOf). Stable rate mode is not used here.
repayRepay a variable debt
approve the Pool for the amount, then Pool.repay(asset, amount, 2, onBehalfOf); for native HYPE use WrappedTokenGateway.repayETH with HYPE as value
toggle-collateralEnable or disable a supplied asset as collateral
Pool.setUserUseReserveAsCollateral(asset, true or false)
check-positionRead collateral, debt and health factor
Pool.getUserAccountData(user); healthFactor below 1e18 means liquidatable

Contracts

hyperevm · chain id 999

ContractAddressKey functionsTry
Pool (core pools, proxy)
pool · proxy
0x00A89d7a5A02160f20150EbEA7a2b5E4879A1A8b
source
writesupply(address,uint256,address,uint16)
writewithdraw(address,uint256,address)
writeborrow(address,uint256,uint256,uint16,address)
writerepay(address,uint256,uint256,address)
writerepayWithATokens(address,uint256,uint256)
writesetUserUseReserveAsCollateral(address,bool)
writesetUserEMode(uint8)
writeflashLoanSimple(address,address,uint256,bytes,uint16)
+3 more via get_protocol
Full ABI
WrappedTokenGatewayV3 (native HYPE)
other
0x49558c794ea2aC8974C9F27886DDfAa951E99171
source
writedepositETH(address,address,uint16)
writewithdrawETH(address,uint256,address)
writerepayETH(address,uint256,address)
writeborrowETH(address,uint256,uint16)
readgetWETHAddress()
Full ABI
ProtocolDataProvider
other
0x4f4d4cA1e0a8A21FE0B460613bEbe917f2eb4326
source
readgetAllReservesTokens()
readgetUserReserveData(address,address)
readgetReserveConfigurationData(address)
Full ABI

Notes

Addresses come from HyperLend's official developer docs page (docs.hyperlend.finance/developer-documentation/contract-addresses), which also lists the Pool implementation, PoolAddressesProvider, oracle, ACL manager and governance multisigs. The Pool proxy 0x00A89d7a5A02160f20150EbEA7a2b5E4879A1A8b has code on HyperEVM, and its implementation 0xBEBb62C7FF8B96dB4325D9481c44e09A92d49B06 has a verified ABI on Sourcify (the function signatures above come from it, and the ABI follows the Aave V3 Pool interface). The WrappedTokenGatewayV3 and ProtocolDataProvider addresses have code on chain. The gateway function signatures come from HyperLend's hyperlend-core v3.6.0 source, and the selectors were confirmed in the deployed bytecode. The data provider selectors were confirmed in its deployed bytecode. Isolated pools are not included. Read the pool address from PoolAddressesProvider 0x72c98246a98bFe64022a3190e7710E157497170C if the market is upgraded.

Sources

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