cowprotocol / cow-sdk

CoW protocol SDK
https://docs.cow.fi/cow-protocol/reference/sdks/cow-sdk
Other
31 stars 9 forks source link

InsufficientBalance: order owner must have funds worth at least x in his account #215

Closed yussdev closed 1 month ago

yussdev commented 2 months ago

I'm getting this error when calling the signOrder: body: { errorType: 'InsufficientBalance', description: 'order owner must have funds worth at least x in his account' }

msied commented 1 month ago

Am having the same issue. Please advise

yussdev commented 1 month ago

@msied Please check here: https://discord.com/channels/869166959739170836/1258455317671579839/1259832909263671367

alfetopito commented 1 month ago

Summary of the issue/fix:

The order data being signed was different that what was submitted to the orderbook api. That resulted in a different account address being recovered, which did not have the funds to trade, thus the error message.

We've updated the order signing tutorial to account for common pitfalls and should be able to give you accurate steps to sign and post the order https://learn.cow.fi/tutorial/getting-started-order