Package Requirements
ABI Source
Fetch ABIs from verified contracts on hyperscan.com or reference the Pool API docs.RPC Endpoint
Connect to HyperEVM Mainnet. Use any compatible JSON-RPC provider URL.Contract Addresses (HyperEVM Mainnet)
Core
- Pool:
0xceCcE0EB9DD2Ef7996e01e25DD70e461F918A14b— main entry point for supply, borrow, repay, withdraw, liquidation, flash loans - PoolAddressesProvider:
0xA73ff12D177D8F1Ec938c3ba0e87D33524dD5594 - PoolConfigurator:
0x532Bb57DE005EdFd12E7d39a3e9BF8E8A8F544af - ACLManager:
0x79CBF4832439554885E4bec9457C1427DFB9D0d3 - WrappedHypeGateway:
0xd1EF87FeFA83154F83541b68BD09185e15463972— for native HYPE supply/withdraw
Implementation
- PoolImpl:
0x980BDd9cF1346800F6307E3B2301fFd3ce8C7523 - PoolConfiguratorImpl:
0x7F4b3CfB3d60aD390E813bc745a44B9030510056 - HyTokenImpl:
0xa3703e1a77A23A92F21cd5565e5955E98a4fAAcC - VariableDebtTokenImpl:
0xdBcF99e5202b2bB9C47182209c7a551524f7c690
Data Providers
- UiPoolDataProvider:
0x7b883191011AEAe40581d3Fa1B112413808C9c00 - UiIncentiveDataProvider:
0x8ebA6fc4Ff6Ba4F12512DD56d0E4aaC6081f5274 - ProtocolDataProvider:
0x895C799a5bbdCb63B80bEE5BD94E7b9138D977d6 - WalletBalanceProvider:
0xE913De89D8c868aEF96D3b10dAAE1900273D7Bb2
Other
- HyFiOracle:
0x9BE2ac1ff80950DCeb816842834930887249d9A8 - Treasury:
0xdC6E5b7aA6fCbDECC1Fda2b1E337ED8569730288 - TreasuryController:
0x9E6eFa77192DA81E22c8791Ba65c5A5E9795E697 - DefaultInterestRateStrategy:
0x701B26833A2dFa145B29Ef1264DE3a5240E17bBD
Key Differences from Aave V3
- Stable debt is NOT supported — only variable rate borrowing
- RewardsController is NOT currently available
- Reserve assets configured for HyperEVM ecosystem
Supply
Borrow
Repay
Withdraw
Query Account Data
E-Mode (Efficiency Mode)
E-Mode boosts LTV when collateral and debt assets belong to the same correlated category (e.g., USD-correlated stablecoins, HYPE-correlated assets).Enable / Disable
Query E-Mode
Typical Categories
- USD-correlated: USDT0, USDC, USDXL — higher LTV for correlated assets
- HYPE-correlated: HYPE, wstHYPE, kHYPE, beHYPE — higher LTV for HYPE derivatives
Constraints
- Can only borrow assets within your active E-Mode category
- Switching categories reverts if you have borrows in a different category
- Disabling E-Mode reverts if it would drop health factor below liquidation threshold
Flash Loans
flashLoan (Multi-Asset)
- Mode
0: must repay amount + fee or tx reverts - Mode
2: opens variable debt ononBehalfOf(must have collateral + delegated credit) - Mode
1(stable): NOT supported on HypurrFi
flashLoanSimple (Single Asset)
IFlashLoanReceiver Interface
executeOperation must:
- Execute your logic (arbitrage, refinancing, etc.)
- Approve the Pool to pull back
amounts[i] + premiums[i]for each asset - Return
true
Fee Structure
TypeScript Example
Liquidation
Health Factor
- HF > 1.0 → safe
- HF < 1.0 → liquidatable
liquidationCall
approve() the Pool to spend debtToCover of debtAsset before calling.
Monitor Positions
Calculate Profitability
Execute Liquidation
Borrowing USDXL
USDXL is a CDP-hybrid synthetic dollar (not a stablecoin). Borrow it the same way as any other asset:Error Handling
Key External References
- Pool API: /developers/smartcontracts/core/pool
- HyFiOracle: /developers/smartcontracts/core/hyfioracle
- Contract Addresses: /developers/addresses
- Liquidation Guide: /developers/guides/liquidations
- Flash Loan Guide: /developers/guides/flash-loans
- E-Mode Guide: /developers/guides/emode
Support
- Telegram: HypurrFi Community
- Discord: Support Ticket