Developer Documnets
Developer Resources
Build on LiquifyDAO: Contracts, APIs, and Integration Guides
1. Smart Contracts
Core Contract Addresses (BNB Chain Testnet)
LiquifyVault
0x7a3...1b2
Stake BNB → mint liqBNB
liqBNB
0xe5f...4c7
Liquid staking token (ERC-20)
LiquifyBridge
0x9d2...8a1
Cross-chain transfers (LayerZero)
YieldAggregator
0x3b0...6f9
Auto-compounding vault strategies
Verified on:
Tenderly Dashboard (for debugging)
2. JavaScript SDK
Installation
npm install @liquifydao/sdk # or yarn add @liquifydao/sdkKey Functions
import { Liquify, Networks } from '@liquifydao/sdk';
// Initialize
const liquify = new Liquify({
network: Networks.BNB_TESTNET, // Or Networks.ETH_MAINNET
rpcUrl: 'https://data-seed-prebsc-1-s1.binance.org:8545/', // Custom RPC
});
// Stake BNB → mint liqBNB
const stakeTx = await liquify.vault.stake({
amount: '1.5', // BNB amount
walletAddress: '0x...',
});
// Bridge liqBNB to Ethereum
const bridgeTx = await liquify.bridge.send({
token: 'liqBNB',
amount: '1.0',
destinationChain: Networks.ETH_MAINNET,
});
// Fetch user positions
const positions = await liquify.getUserPositions('0x...');
console.log(positions.liqBNB); // { staked: '1.5', rewards: '0.02' }3. API Endpoints
Public API (REST)
Base URL: https://api.liquifydao.com/v1
/apr
GET
Current APRs for all vaults
/pools/{chainId}
GET
Active liquidity pools per chain
/bridge/limits
GET
Minimum/maximum bridge amounts
Example Request:
Response:
4. Subgraph (The Graph)
Access indexed on-chain data for frontends:
Subgraph URL:
https://api.thegraph.com/subgraphs/name/liquifydao/coreSample Query:
5. Chainlink Oracles
Fetch real-time liToken prices:
BNB Chain:
0x3c...2d(liqBNB/BNB price feed)Ethereum:
0x7e...1f(liqETH/ETH price feed)
Integration Example:
6. Local Development
Forking BNB Chain for Testing
Use Anvil (Foundry) to fork BNB Chain:
Deploy test contracts:
Hardhat Config Snippet
7. Security & Audits
Audit Reports: [Link to CertiK/SlowMist PDFs]
Bug Bounty: Report vulnerabilities via Immunefi (up to $50,000 rewards).
8. Sample Integrations
A. Adding liqBNB to a DEX Pool
B. Using liqBNB as Collateral
Last updated
