Synthetic Commodity Position Opener
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 provides on-chain opening and management of synthetic commodity positions, enabling you to gain leveraged exposure to commodities like gold, silver, oil, copper, and wheat backed by collateral. It reads your connected wallet address, synthetic commodity contract address, collateral token address, commodity type, position size, leverage, current price, current block timestamp, position status, liquidation price, and collateral balance. You can then sign and send transactions to open new synthetic commodity positions with specified leverage, add additional collateral to reduce liquidation risk, reduce collateral to free up capital, and record position metadata on-chain. All position parameters are displayed in a clear review panel before you sign, so you know exactly what you are opening. The tool also logs transaction hashes, confirmation status, and gas costs, providing a complete audit trail of all position activities.
HOW TO USE
Connect your wallet using the built-in wallet bridge, choose the network that matches your synthetic commodity contract, and paste the synthetic commodity contract address and collateral token address (use 0x0 for native currency). Select the commodity type (gold, silver, oil, copper, or wheat), enter the position size in raw units (the amount of synthetic commodity you want to control), the leverage multiplier (e.g., 2 for 2x), and token decimals for display purposes. The review panel shows all inputs, the current price, and the estimated liquidation price before you sign. Use the numbered action buttons: check status to view your current position, including commodity type, size, collateral, leverage, liquidation price, and current price; open position to open a new leveraged position with your specified parameters; add collateral to add more collateral to an existing position; or reduce collateral to withdraw collateral from a position (if safe). You can also check position status to view current metrics. Each transaction is signed sequentially, and the tool displays transaction details and confirmation status.
THE REAL MECHANISM
This tool uses ethers.js v5.7.2 to build and send transactions through the wallet's signer. It does not rely on any hardcoded contract addresses – you paste the synthetic commodity contract you are using, so you are in full control. When you open a position, the tool constructs a contract call to the openPosition function, which takes the commodity type string, position size, and leverage as parameters. The contract calculates the required collateral based on the position size and leverage, transfers the collateral from your wallet, and creates a new position with the specified parameters. When you add collateral, the tool calls addCollateral, which increases your position's collateral and lowers the liquidation price. When you reduce collateral, the tool calls reduceCollateral, which decreases the collateral (if it doesn't risk liquidation). The tool reads position state via getPosition, which returns the commodity type, size, collateral, leverage, liquidation price, entry price, and active status, as well as currentPrice for market data. All transactions are sequential to prevent nonce conflicts, and gas costs are calculated using effectiveGasPrice for accurate post-EIP-1559 reporting.
WHAT IT CANNOT SEE
This tool cannot verify off-chain commodity prices, predict market movements, detect oracle manipulation, or ensure that the synthetic commodity contract handles positions correctly. It cannot detect if the price feed used by the contract is accurate or if the oracle has been manipulated. The tool also cannot verify that the synthetic contract correctly handles edge cases like liquidation, slippage, or position adjustments. It cannot simulate the outcome of a transaction before you sign it, nor can it guarantee that the position will be opened correctly if the contract is not properly implemented.
PLEASE NOTE
This tool works only on EVM-compatible chains supported by your wallet and provider. Always double-check the contract addresses and parameters before signing. Use testnet first. The tool is a transaction-signing interface and position management tool, not a price prediction or oracle verification system.