Skip to content

Improve Error Handling - Price Impact Errors #619

@brunoguerios

Description

@brunoguerios
  1. 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
    1. Suggested standard:
      1. SDK Error - [operation] - [error message]
    2. Example:
      1. 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions