unifactory icon indicating copy to clipboard operation
unifactory copied to clipboard

Modified ERC20: swap calculations problem

Open Disti4ct opened this issue 2 years ago • 1 comments

In short: some ERC20 has modification in a transfer method. Because of it swap cannot be successfull with small percentage of Slippage Tolerance. What we can do:

  • [x] add a global notification (maybe by domain name) about this and ask users to increase their slippage percent
  • [ ] advanced version: when user enters his amount, somehow calculate this percent (execute swap method). From the received data decide about slippage percent and ask user to update this value

Disti4ct avatar Apr 06 '22 10:04 Disti4ct

at this moment we can add ''unusual" token addresses to this array.

  • displayed slippage percentage is a hard value: 15%

Disti4ct avatar Apr 13 '22 06:04 Disti4ct