Skip to content

Inexplicit message when trying to repay very small amount #1678

@mishannn

Description

@mishannn

Describe the bug
When collateral repay amount is too small, interface displays error message "There was an issue fetching data from Paraswap" and not explains error reason

To Reproduce
Steps to reproduce the behavior:

  1. Borrow any amount
  2. Click Repay, open Collateral tab
  3. Enter in Expected amount field value less than Paraswap swap minimum (for USDT is 0.0001)
  4. See the There was an issue fetching data from Paraswap

Expected behavior
Message should explains error reason

Screenshots
Screenshot 2023-07-08 at 17 22 56

Additional context
Error caught on Tenderly Ethereum Mainnet fork

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingnew issueThis issue has not been triaged by the core team yet

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions