- for “complex” operations, which involve multiple underlying on-chain queries (e.g. price impact calculation), SDK should provide custom/standardized error messages with proper context
- Suggested standard:
- SDK Error - [operation] - [error message]
- Example:
- SDK Error - Price Impact - Add liquidity unbalanced boosted failed with unexpected error while calculating token deltas
More details here: https://www.notion.so/SDK-Error-Handling-1b4e395e228180ca8eeaf50ac3584ccb?pvs=4
More details here: https://www.notion.so/SDK-Error-Handling-1b4e395e228180ca8eeaf50ac3584ccb?pvs=4