Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

FixUp Friday: Exchange Proxies and Exchange Handling #188

Open
4 of 6 tasks
fredo opened this issue May 7, 2020 · 3 comments
Open
4 of 6 tasks

FixUp Friday: Exchange Proxies and Exchange Handling #188

fredo opened this issue May 7, 2020 · 3 comments

Comments

@fredo
Copy link
Contributor

fredo commented May 7, 2020

There are some issues related to the exchange classes which increase the likelihood of errors or mistakes in further development. Also the logic for quering exchange rates is kind of falsy.

This is a proposal to take advantage of a fix up friday to refactor the exchange classes, making the code more readable, less likely to introduce new errors and improve the transaction speed for swaps.

What is to be done:

  • remove redundancy between the classes uniswap and kyber
  • remove redundancy of calculating transaction costs
  • do a proper gas estimation and gas price calculation to save money for the user
  • Remove the EthereumAmount class as it is only useful for printing values not for actual logic
  • Implement a proper exchange rate calculation as it is falsy (at least for kyber)
  • Increase Swap speed (It takes about a minute and a half to even send the transaction)
@konradkonrad
Copy link
Contributor

  • add: proper error handling (user facing) so users can confidently retry

@konradkonrad
Copy link
Contributor

konradkonrad commented May 7, 2020

@fredo
Copy link
Contributor Author

fredo commented May 11, 2020

This does not work as desired but I already found a good tradeoff sending RDN directly to the UDC automatically. Looks very smooth and user doesnt notice

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants