Buyback & Vesting
Read vesting balances and release tokens with an authorized recipient wallet.
Read vesting balances and release tokens with an authorized recipient wallet.
Read the vesting balance
Buyback deposits lock purchased tokens in BuybackVault. Read the current schedule and releasable amount before offering a release.
const vest = await client.getBuybackVest(token);
const releasable = await client.getBuybackReleasable(token);Release vested tokens
Only the vesting record’s creatorRecipient or protocolRecipient can trigger a release. Connect one of these wallets before submitting. The release credits both recipients’ shares to FeeEscrow.
// Connect vest.creatorRecipient or vest.protocolRecipient before submitting.
if (releasable > 0n) {
const release = await client.prepareBuybackRelease(token);
const releaseHash = await client.send(release);
const result = await client.wait(releaseHash, { confirmations: chain.confirmations });
if (result.status !== "confirmed") throw new Error("Release reverted");
}
const updatedVest = await client.getBuybackVest(token);Each recipient then calls client.prepareClaim({ asset: token }) from their own wallet to withdraw the credited tokens; see Fees & Claims.
Understand the schedule
Buyback deposits share one five-year weighted vesting schedule. New deposits can extend vestingEnd for the remaining balance. Display the current schedule and releasable amount; future deposits can change the end date.
A new lock can start after the previous vesting period ends, even if vested tokens remain unclaimed.
The current creator fee recipient can enable or disable buyback with prepareSetBuybackEnabled.
Hook buyback funding
Post-graduation buyback budgets originate in the creator portion of the Hook Fee. Creator Tax is credited to the creator separately. See Hook fee allocation and Fee settlement and state for conversion, partial buybacks and residual pending balances.
Direct contract calls
SDK equivalents: the vesting readers and prepareBuybackRelease. release credits FeeEscrow before a separate claim transfers tokens to a wallet.
BuybackVault.vest(address token) → LaunchVestandreleasable(address token) → uint256: vesting recipients, schedule and available tokens.release(address token) → (uint256 creatorAmount, uint256 protocolAmount)may be called by the recorded creator or protocol recipient. It credits FeeEscrow; recipients then callclaimToken(launchToken).
Factory.transferCreatorFeeRecipient(address token, address newRecipient) requires the current fee recipient. Factory.setTokenBuybackEnabled(address token, bool enabled) also uses the current recipient; the owner additionally has a disable-only path. Original creation alone does not retain these permissions after a recipient transfer. For Holder sharing, the recipient is the distributor contract.
Buyback tokens for Holder Fee Sharing
When the Creator Fee Recipient is the registered Holder Distributor, client.prepareHolderHarvest collects available vested project tokens and fee credits into that Distributor. A published Epoch and proof are still required before holders can claim.
Last updated
Was this helpful?