wHLP Builder Codes
Integrate Wrapped HLP (WHLP) into your app to acquire users and earn fees.
Product Overview
Contract Addresses
Contract
Address
Description
Contract
Address
Description
Deposit Flow
ERC‑20 Deposits (USDHL)
USDHL.approve(COMMUNITY_CODE_DEPOSITOR, AMOUNT);const minimumMint = getQuote(AMOUNT, TOKEN_ADDRESS)
const cc = encodeBytes(COMMUNITY_CODE ?? '')
const args = [TOKEN_ADDRESS, AMOUNT, minimumMint, ADDRESS, cc]
const writeContractProps = {
contractAddress: DEPOSIT_CONTRACT,
accountAddress: ADDRESS,
value: 0n,
abi: DEPOSIT_CONTRACT_ABI,
functionName: 'deposit',
args,
gasLimit: <estimate>
}Parameter
Type
Description
Minimum Mint Calculation
Exchange Rate & Swap vs Mint
Withdrawal Flow
Parameter
Type
Description
Data Endpoints
Metric
Endpoint
JSON Key
Support
Last updated