Closed AlexisNvn closed 2 years ago
To people having same issue : • Check that the typed data is using right chain_id • Check that you're posting the final request with the right chain_id • Check that you approved allowance for the limit contract address - not the router address.
Good afternoon, Many thanks for adding a python example on how to create a limit order ! (At the end of https://github.com/1inch/1inch-docs/blob/master/docs/limit-order-protocol/guide/create-limit-order.md)
I tested it on chain 1 and it worked great. Nevertheless when trying to change it to chain 56 (BSC), I'm getting a "{"statusCode":400,"message":"order is invalid with reason: cannot decode allowance","error":"Bad Request"}"
I did check that :
My test case: chain_id 56 limit_order_contract 0x1e38Eff998DF9d3669E32f4ff400031385Bf6362 WalletAddress 0xCaF683091Ad1C6a1a661FEf67541453112293890 makerAsset 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c (WBNB) takerAsset 0x55d398326f99059fF775485246999027B3197955 (USDT) makingAmount "100000000" takingAmount "27500000000"
It would be awsome if you could help me spot what I'm doing wrong or give a bit more details about what this error message is for. Many thanks & awsome work !