This app runs inside the BotSurf browser. Don't have it yet? Get the app or extension now!

Protocol-Owned Liquidity Bond Purchase Tool

DeFi · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — nothing to install.
CategoryDeFi
PlatformAll
Pricing Free
Installs0
Download BotSurf to use — free
No account needed for free apps. Once BotSurf is open, find this app in Apps from the + menu.

About this app

WHAT IT DOES

Protocol-Owned Liquidity Bond Purchase Tool is a DeFi tool that enables users to purchase bonds that provide liquidity to protocols. It reads the bond contract address, bonding curve parameters, token addresses (bond token and payment token), current bond price, bond discount, bond duration, vesting schedule, user's eligible purchase amount, purchase history, account nonce, gas estimates for purchase, and previous purchase records. The tool then guides you through purchasing bonds at the current price, depositing payment tokens, minting bond tokens, locking tokens in a vesting contract, updating your bond position, and syncing bond status across chains if applicable.

HOW TO USE

Connect your wallet via the built-in connector. Select the network where the bond contract is deployed. Enter the bond contract address, the bond token address (token you will receive), the payment token address (use address(0) for native token), and the purchase amount (in payment tokens). The tool will read on-chain data and display a preview including: bond contract, bond token, payment token, purchase amount, current bond price, bond discount, bond duration, vesting schedule, your eligible purchase amount, and estimated gas. Review all details carefully. Click "purchase bond" to execute the bond purchase. The tool will guide you through four steps: verifying eligibility and price, depositing payment tokens, minting bond tokens, and locking tokens in the vesting contract.

TECHNICAL MECHANISM

The tool uses ethers.js v5.7.2 to interact with the bond contract. It reads bonding curve parameters using `getPrice()`, `getDiscount()`, and `getDuration()` view functions. The bond price is calculated based on the bonding curve, which may be linear, exponential, or custom. The user's eligible purchase amount is read via `getEligibleAmount(user)` which accounts for any purchase limits or whitelist constraints. Vesting schedules are read using `getVestingSchedule()` which returns cliff duration, vesting period, and unlock amounts. Purchase history is scanned using `eth_getLogs` for `BondPurchased` events, with adaptive chunking (halving chunk size on failure) to handle different RPC limits—the tool walks backward from the current block and continues even if some ranges are rejected. The purchase transaction calls `purchaseBond()` on the contract, which transfers payment tokens from the user, mints bond tokens to the user, and locks them in a vesting contract. Gas estimates are calculated using `estimateGas` on the purchase method with EIP-1559 fee data from `feeData`. All transactions are built with EIP-1559 fee data, and the tool uses `effectiveGasPrice` from receipts for accurate cost accounting. The tool also validates that the user has sufficient payment token balance and allowance before initiating the purchase.

WHAT IT CANNOT SEE

This tool cannot predict future price changes affecting bond value—bond prices may fluctuate. It cannot guarantee that protocol-owned liquidity will be used effectively by the protocol. It cannot detect if bonding curve parameters are manipulated by the contract owner. It cannot ensure that the bond discount reflects fair market value. It cannot prevent front-running of bond purchases by other users. It cannot validate that the protocol will use the purchased liquidity correctly. It cannot verify that the bonding curve contract is secure or free from vulnerabilities. It cannot predict changes in protocol governance that could affect bond terms or vesting schedules.

PLEASE NOTE

This tool is EVM-only and supports Ethereum, Polygon, BNB Chain, Arbitrum, Optimism, and Avalanche. The purchase transaction is signed by the connected wallet, and the user pays gas fees. Bond purchases lock tokens for a vesting period—ensure you understand the vesting terms before purchasing. The tool does not store or transmit any bond data. Always verify bond terms and the protocol's use of liquidity before purchasing. Test on testnet before using on mainnet.

Similar Apps

Log in to BotGentz

Suggest an App

Tell us what you'd find useful — if we build it, we'll email you the moment it's ready.