DePayFi / widgets

💸 Payments directly into your wallet. DePay simplifies and improves Web3 Payments with the power of DeFi. Accept any token with on-the-fly conversion and state-of-the-art widgets.
https://depay.com
MIT License
96 stars 36 forks source link

Payment value loss safeguard #42

Closed 10xSebastian closed 2 years ago

10xSebastian commented 2 years ago

In cases where users configure toTokens that have pairs with insufficient liquidity swapping will result in immediate losses from a payment value perspectiv. e.g. paying 50$ where the liquidity of the dex pair is 50$.

In order to prevent people selecting those payment routes, the following safe guard will be added:

Screenshot 2022-02-04 at 08 50 08