estimateRangesForSellingUsdSingleSide · Estimate USD Sell Ranges
may change things: you confirm before it runsEstimates price ranges for selling a token in a pool when prices are provided in USD. For example, when a user wants to sell 20 WETH at $3,000 in a WETH/USDC 0.3% fee pool on Ethereum. This tool converts USD price ranges to the correct ranges for the pool and adjusts them based on the current pool price.
Input schema
{
"type": "object",
"properties": {
"chainName": {
"type": "string",
"enum": [
"bsc",
"ethereum",
"arbitrum",
"base",
"optimism",
"polygon",
"avalanche",
"plasma",
"hyperevm",
"monad",
"robinhood"
],
"description": "The chain where the operation takes place"
},
"token0": {
"type": "string",
"description": "The address of the first token"
},
"token1": {
"type": "string",
"description": "The address of the second token"
},
"tokenIn": {
"type": "string",
"description": "The address of the token to be deposited"
},
"fee": {
"type": "number",
"description": "The fee percentage for the pool. 1000000 is 100%. Example user input - 1%, must be converted to 10000, 0.3% to 3000. Set to -1 if you want to use the default fee"
},
"priceLower": {
"type": "string",
"description": "The price provided in USD to sell the token in lower range, human-readable decimal format. Do not use values from the price project. Use usd ranges that user provided. Set to \"-1\" string if price will setup automatically just near the current pool price"
},
"priceUpper": {
"type": "string",
"description": "The price provided in USD to sell the token in upper range, human-readable decimal format. Do not use values from the price project. Use usd ranges that user provided. Set to \"-1\" string if there is only one price"
}
},
"required": [
"chainName",
"token0",
"token1",
"tokenIn",
"fee",
"priceLower",
"priceUpper"
],
"additionalProperties": false
}