Moody Salem
c3909bc1d0
improve the better trade link logic
2021-04-28 20:03:38 -05:00
Moody Salem
b25287923c
return fake price data for non mainnet and fill it into the currency input panel
2021-04-28 19:44:10 -05:00
Noah Zinsmeister
65c51ea4aa
update to latest sdk
2021-04-28 20:17:22 -04:00
Moody Salem
b0fa08e9b0
show a loading indicator
2021-04-28 19:11:27 -05:00
Moody Salem
b09eb8fb52
mess with the gas estimation code a bit to allow swapping
2021-04-28 18:58:53 -05:00
Moody Salem
5b49cedebb
bump addresses
2021-04-28 18:16:49 -05:00
Noah Zinsmeister
ae76f26501
Merge remote-tracking branch 'refs/remotes/origin/main'
2021-04-28 17:59:10 -04:00
Noah Zinsmeister
1cb1ffe2f6
update to latest formatting logic
...
nits
2021-04-28 17:58:59 -04:00
Moody Salem
d83bc3097d
fix some linting errors and some better trade link cleanup
2021-04-28 16:47:03 -05:00
Moody Salem
323edc0fcd
consistently use the worst price and amounts in the swap view
2021-04-28 16:42:56 -05:00
Moody Salem
fc258fdf5c
don't throw if the trades are not comparable
2021-04-28 13:34:22 -05:00
Moody Salem
2e599dc00e
handle loading v3 trade state better
2021-04-28 13:31:30 -05:00
Moody Salem
464a682fcc
show the better trade link for v2/v3
2021-04-28 13:27:14 -05:00
Moody Salem
6ace3c211c
fix linting errors
2021-04-28 12:55:56 -05:00
Moody Salem
2d0b0c70bf
drop the show details stuff
2021-04-28 12:55:28 -05:00
Moody Salem
3c3be3c61a
fix some unit tests
2021-04-28 12:17:40 -05:00
Noah Zinsmeister
7660943e97
Merge remote-tracking branch 'refs/remotes/origin/main'
2021-04-27 22:25:48 -04:00
Noah Zinsmeister
d342ccdb78
use sdk for more calldata
2021-04-27 22:24:29 -04:00
Moody Salem
0ea9dc046b
bumped v3 sdk version
2021-04-27 19:42:39 -05:00
Moody Salem
3a34c2ec25
eth swaps kinda working
2021-04-27 19:20:05 -05:00
Moody Salem
83b0ef94f9
show the worst amounts/prices instead of current price
2021-04-27 13:07:07 -05:00
Moody Salem
3680b93fb3
make the way we get the v2 router consistent, start working through changes in the swap callback
2021-04-27 11:00:34 -05:00
Moody Salem
8e86ded09b
temporarily hude the usdc value, use the disable multihop setting in the v3 routing
2021-04-27 10:35:09 -05:00
Moody Salem
37a50372f6
improve responsiveness of header
2021-04-27 10:16:02 -05:00
Noah Zinsmeister
ab99cc612b
add current price
2021-04-27 10:51:12 -04:00
Moody Salem
11a4fa23c1
fix the approve callback from trade bug
2021-04-26 21:26:57 -05:00
Callil Capuozzo
5358b4dc15
New swap layout ( #53 )
...
* re-work header
* swap tweaks
* re-work swap in progress
- inline slippage
- hidey details
- better invert UI
- better flip rate ui
* Swap improvements
- new layout order
* New swap layout
* merge main
* get all the tests running
* skip the swap test as well
Co-authored-by: Moody Salem <moody.salem@gmail.com>
2021-04-26 20:59:56 -05:00
Moody Salem
ccbd5dfcf7
show v3 quotes
2021-04-26 19:35:32 -05:00
Noah Zinsmeister
bb17c57a84
nits
2021-04-26 15:51:31 -04:00
Noah Zinsmeister
3b6213f411
Merge remote-tracking branch 'refs/remotes/origin/main'
2021-04-26 14:28:45 -04:00
Noah Zinsmeister
a5251f55de
improve stepping behavior
2021-04-26 14:28:36 -04:00
Moody Salem
d846c83afa
handle errored calls better
2021-04-26 13:23:53 -05:00
Noah Zinsmeister
00438bea12
fix tick bug
2021-04-26 14:21:42 -04:00
Noah Zinsmeister
0dd5e6b33f
Merge remote-tracking branch 'refs/remotes/origin/main'
2021-04-26 14:15:40 -04:00
Noah Zinsmeister
2d7642ed9b
simplify range ui
2021-04-26 14:15:32 -04:00
Moody Salem
740e18454f
fix linting errors for the preview
2021-04-26 13:01:13 -05:00
Moody Salem
7c17cfc642
bump and use the unchecked trade creation method
2021-04-26 12:29:20 -05:00
Moody Salem
7f61b67947
first pass v3 routing code
2021-04-26 12:17:37 -05:00
Moody Salem
466c0b0142
remove the anonymous credentials from the image (it causes a CORS preflight)
2021-04-26 10:53:55 -05:00
Moody Salem
1c6d9d810e
keep list asset requests anonymous
2021-04-26 10:50:34 -05:00
Noah Zinsmeister
c3ad129658
Merge remote-tracking branch 'refs/remotes/origin/main'
2021-04-26 11:20:49 -04:00
Moody Salem
a25a72d0d9
use path encoding from v3-sdk
2021-04-26 10:14:21 -05:00
Noah Zinsmeister
dbc9e85b90
bug fixes
2021-04-26 11:13:02 -04:00
Ian Lapham
7dafb0cfba
Remove UI ( #52 )
...
* use token0 as base in all calculations
* refactor
* fix price order
* fix existing position ticks
* remove empty space
* basic remove page
Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
2021-04-25 18:46:53 -04:00
Ian Lapham
da33ec9d2f
use token0 as base in all calculations ( #51 )
...
* use token0 as base in all calculations
* refactor
* fix price order
* fix existing position ticks
* remove empty space
Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
2021-04-25 15:45:37 -04:00
Moody Salem
605368629f
surface the best v3 route to the swap page
2021-04-24 20:27:56 -05:00
Moody Salem
ca2b84ec0b
get the best route in v3 for an exact in swap
2021-04-24 18:52:13 -05:00
Moody Salem
ac7cf35bb7
missed a spot
2021-04-24 17:43:57 -05:00
Moody Salem
bd346030f0
useAllV3Routes, some cleanup
2021-04-24 17:43:14 -05:00
Moody Salem
aa742f415d
create some hooks for using in v3 swap routing
2021-04-23 21:32:31 -05:00