unifactory
unifactory copied to clipboard
Modified ERC20: swap calculations problem
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
at this moment we can add ''unusual" token addresses to this array.
- displayed slippage percentage is a hard value: 15%