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):
- Call https://api.1inch.exchange/v3.0/137/swap to get the transaction data
- Use the result to send it to Polygon (using Web3 & Infura)
- Facing the error on polygonscan (contract execution revert)
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.

