Skip to content

Commit

Permalink
handle low slippage error for odos
Browse files Browse the repository at this point in the history
  • Loading branch information
IDIDOS committed Dec 26, 2024
1 parent 93d928d commit 55443eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/core/errors/models/rubic-sdk-error-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,9 @@ export class RubicSdkErrorParser {
}

if (
err.message.includes('price change more than your slippage!') ||
err.message.includes('Return amount is not enough')
(err.message.includes('price change more than your slippage!') ||
err.message.includes('Return amount is not enough'),
err.message.includes('execution reverted: Slippage Limit Exceeded'))
) {
return new LowSlippageError();
}
Expand Down

0 comments on commit 55443eb

Please sign in to comment.