Protocol Buyback-and-Distribute Executor
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
This tool enables DAO treasurers, protocol administrators, and authorized executives to execute buybacks of protocol tokens using treasury funds and distribute the purchased tokens to multiple recipients in a single batch transaction. Buybacks are a mechanism where a protocol uses its treasury to purchase its own tokens from the market, often to support token value, reward stakeholders, or fund operations. The tool combines the buyback and distribution steps into one atomic operation, reducing gas costs and complexity. It connects to your wallet and reads the buyback contract address, treasury balance, buyback amount, distribution recipients, distribution amounts, execution status, distribution history, and timestamps. The tool signs and submits transactions to execute protocol buybacks, distribute purchased tokens, update distribution status, record distribution metadata, and emit distribution events.
HOW TO USE
1. Connect your wallet using the wallet bridge (supports MetaMask, WalletConnect, and other EVM-compatible wallets).
2. Select the target network that matches your buyback contract deployment.
3. Enter the buyback contract address and the token address for distribution, then click "load contract" to initialize the connection.
4. Click "fetch status" to retrieve the treasury balance, execution status, and distribution history.
5. Enter the buyback amount (in native token) to purchase from the treasury.
6. Enter the recipients list with addresses and amounts (comma-separated, one per line).
7. Click "validate buyback" to verify that the buyback amount is valid and the recipients are correctly formatted.
8. Click "check history" to view previous buyback and distribution executions.
9. Review the buyback amount, recipients, sender contract details, and fee before executing.
10. Click "execute buyback & distribute" to sign and submit the transaction that performs the buyback and distributes the tokens.
TECHNICAL MECHANISM
The tool uses ethers.js v5.7.2 with the BotGentz BulkSend registry for gas-efficient batch distribution. The buyback contract implements buybackAndDistribute(uint256, address[], uint256[]) external payable, along with getTreasuryBalance() view, getExecutionStatus() view, and getDistributionHistory() view. The function validates that the treasury has sufficient funds, calculates the buyback amount, purchases tokens from the market (using a DEX or designated market maker), and distributes the purchased tokens to the specified recipients using the bulk sender contract. The fee is read live from the sender contract's fee() view function and shown to the user before execution. The total value includes the buyback amount plus the fee. The contract tracks execution status and distribution history for audit purposes. Transaction handling follows EIP-1559 gas price calculations using receipt.effectiveGasPrice for accurate cost reporting.
WHAT IT CANNOT SEE
This tool operates purely on-chain and cannot verify off-chain revenue accuracy — it does not check whether the buyback amount is appropriate given protocol revenue or treasury health. It cannot validate buyback pricing — the tool does not verify that the buyback is executed at a fair market price. It cannot detect market manipulation — the tool cannot identify attempts to manipulate token price through buybacks. It cannot ensure fair distribution — the tool does not verify that the distribution amounts are appropriate or that recipients are eligible. The tool also cannot verify that buybacks are beneficial — it does not assess whether the buyback is a good use of treasury funds or whether it will positively impact token value.
PLEASE NOTE
This tool works exclusively with EVM-compatible blockchain networks (Ethereum, Polygon, Arbitrum, Optimism, Base, etc.). It requires the buyback contract to implement the interface described above. All transactions incur gas fees plus the bulk sender contract fee, paid by the connected wallet. The tool maintains no persistent storage — all state is refreshed from the blockchain on each session. Buybacks are significant financial decisions — ensure you have the proper authorization and that the buyback aligns with the protocol's strategy before executing. Always verify the buyback amount, recipients, and fee before confirming the transaction. Consider market conditions and treasury health when determining buyback amounts.