Token Basket Creator
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
The Token Basket Creator enables users to create diversified token baskets by allocating a single payment token across multiple assets with configurable weights. Instead of manually swapping a single token into multiple tokens one at a time, users can define a basket composition—a list of tokens and their target weights—and the tool handles all the swaps in a streamlined process. This is essential for portfolio diversification, index creation, and automated asset allocation strategies.
The tool reads token balances, current prices, token allowances, basket composition parameters, target weights, total basket value, and swap paths. It uses batch swapping to convert the payment token into the basket tokens according to the specified weights. The tool supports any number of tokens in the basket and automatically calculates the required amounts based on the total investment and weight percentages.
HOW TO USE
1. Connect your wallet using the Connect button. The tool automatically detects your connected address and network.
2. Select the network where your tokens are located. The tool checks the BotGentz sender contract registry for the current chain.
3. Enter the payment token address (the token you're using to fund the basket) and the total amount to invest.
4. Enter the basket token addresses (comma-separated) and the target weights (comma-separated percentages that sum to 100).
5. Configure your slippage tolerance percentage for the swaps.
6. Click "Preview basket allocation" to verify the calculated amounts for each token.
7. Review the basket allocation in the preview panel.
8. Click "Create Token Basket" to submit the transaction through your wallet.
9. The tool will approve the payment token for the total amount and execute all swaps to create the basket.
TECHNICAL MECHANISM
The tool uses the BotGentz shared sender contract's batch swap functionality to create the token basket. First, it validates that the weights sum to 100% and calculates the amount of payment token to allocate to each basket token based on the total investment and weight percentages. For each token in the basket, the tool performs a swap from the payment token to the target token using the sender contract's batch swap function. Each swap is executed sequentially within the same transaction context, with the total payment amount approved once upfront. The tool reads the current fee from the sender contract and displays it before execution. The batch swap approach ensures that the basket is created in a single transaction, minimizing gas costs compared to executing each swap individually.
WHAT IT CANNOT SEE
This tool cannot verify that the price feed is accurate or reliable; it relies on the DEX's on-chain pricing. It cannot detect if the oracle has been compromised or manipulated. It cannot ensure that basket creation will execute at the intended composition due to slippage, market volatility, and block timing. It cannot guarantee that the basket will maintain its target weights after creation—prices will fluctuate. It cannot verify that the basket contract has not been upgraded or modified. It cannot detect if the swap path is optimal or if the transaction is being front-run by malicious actors. It cannot recover funds if execution fails due to contract bugs, insufficient approvals, out-of-gas errors, or blockchain reorgs. It cannot verify that tokens being deposited are legitimate or not honeypot contracts. It cannot predict market movements, price gaps, or flash crashes that may affect swap execution. It cannot guarantee execution during extreme network congestion, high gas prices, or volatile market conditions. It cannot detect if the underlying swap protocol has been compromised. It cannot prevent the user from canceling or modifying basket parameters through other interfaces. It cannot ensure that the basket composition is diversified or appropriate for the user's risk profile.
PLEASE NOTE
This tool is designed for EVM-compatible blockchains supported by the BotGentz sender contract (Ethereum, Polygon, Arbitrum, Optimism, Base, BSC, Avalanche, Fantom, Linea, and others). It requires an active wallet connection and sufficient native currency for gas fees. Always verify the sender contract address, fee, and owner displayed in the interface before executing. The tool supports ERC-20 tokens only. The target weights must sum to 100%—the tool validates this before execution. Each swap in the basket incurs a portion of the total gas cost; creating baskets with many tokens may result in higher gas costs. The tool is provided as-is with no warranty; users assume full responsibility for their transactions and should exercise caution when creating token baskets. For mainnet usage, ensure the sender contract has been audited and you understand the risks of batch transactions and portfolio allocation.