callBytes failed

I’m currently doing some tests using 1inch smart contract in order to be able to swap currency to another.

But I’m facing multiple errors that I didn’t understand.

Scenario (on Polygon):

That is the list of the different error I facing :

callBytes failed: Error(External call failed: Error(BAL#508))
callBytes failed: Error(External call failed: Error(External call failed: Error(Deadline not met)))
callBytes failed: Error(External call failed: Error(External call failed: Error(LOP: taking > remaining)))
callBytes failed: Error(External call failed: Error(External call failed: Error(timeout)))
callBytes failed: Error(External call failed: Error(LOP: predicate returned false))

Every error is related to callBytes.

My investigation:
The contract I call is this one : 0x11111112542d85b3ef69ae05771c2dccff4faa26.
This contract call the method callBytes from this contract : 0x11431a89893025d2a48dca4eddc396f8c8117187 but this one isn’t verified and I didn’t find any documentation…

If anyone has an idea of what these errors mean it would be a great help to me.

Thanks.

Thanks for reaching out to us,

seems like in each case you have a real error, I am trying to give you directions for the further investigation:

BAL#508 - some error in Balancer, you have to find it out on the contract level
LOP - Limit Order Protocol
Deadline not met - try to look into traces to see which contact/pool threw the error
Timeout - review traces, look for the same thing :point_up:

Thank you for these clarifications :slight_smile:

1 Like