-
Notifications
You must be signed in to change notification settings - Fork 281
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When using the uniswap plugin, the parameters tokenIn and tokenOut are assumed to be strings but the API request requires them to be addresses
To Reproduce
Sample parameters:
{
tokenIn: 'WETH',
tokenOut: 'WBTC',
amount: '1',
type: 'EXACT_INPUT',
protocols: [ 'V2', 'V3' ],
routingPreference: 'CLASSIC'
}Error:
{
"errorCode": "RequestValidationError",
"detail": "\"tokenIn\" with value \"WETH\" fails to match the required pattern: /^0x[a-fA-F0-9]{40}$/"
}Expected behavior
There should be some preprocessing that converts this appropriately OR looks up their addresses
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working