decred / dcrdex

The Decred Decentralized Exchange (DEX), powered by atomic-swaps.
Other
184 stars 91 forks source link

Prevent or warn spending ETH/MATIC when it brings trouble #2632

Open norwnd opened 9 months ago

norwnd commented 9 months ago

Currently user needs to have some non-0 MATIC amount in his wallet to trade on DEX against Polygon pairs (even if he wants to buy MATIC with his DCR/BTC/...).

However he can, User gets some MATIC to fund his very first actions with Polygon pairs. It's especially hard to do it in KYC-free way these days, but suppose he managed to do so. Then he must be careful with his MATIC balance to NOT let it drop below a certain point where he has to go through this complicated procedure of getting MATIC from external sources again.

It would be nice to have protective mechanisms for this in place to:

xaur commented 7 months ago

Is this specific to ETH and MATIC or all tradeable assets? e.g. can the user lose the ability to trade DCR pairs if the DCR balance drops below some level?

norwnd commented 7 months ago

Is this specific to ETH and MATIC or all tradeable assets? e.g. can the user lose the ability to trade DCR pairs if the DCR balance drops below some level?

It's specifically for EVM-based chains DEX currently supports. Fundamentally, the same exact gotcha exists in most wallets I've used for gas-based chains (like Ethereum and Solana). So, it's not DEX-related thing per se, it's just a bit more prominent with DEX (and a significant UX improvement at low implementation cost).