Commit Graph

195 Commits

Author SHA1 Message Date
saml33 d1cbec6196 add repay amount to swap output token 2023-07-18 15:22:13 +10:00
tjs e478d6405a use jupiter on trade page 2023-07-16 23:41:13 -04:00
saml33 ba6799c202 show margin switch on swap form 2023-07-05 15:38:14 +10:00
Adrian Brzeziński e5273f9620
Delegate swap (#186)
* allow swap button for delegate

* restrict routes to jupiter only when using delegate

* fix

---------

Co-authored-by: saml33 <slam.uke@gmail.com>
2023-06-28 19:19:02 +02:00
saml33 eedc32fadb split swap and limit into two components 2023-06-16 22:23:50 +10:00
saml33 a89a042e57 add input/output notional value to swap form 2023-06-16 14:08:45 +10:00
saml33 dd3d2f52aa add input/output notional values 2023-06-16 13:58:12 +10:00
saml33 42051e0ea5 add stop order ui to trade form 2023-06-15 20:45:42 +10:00
saml33 b548e7f61e ui for swap limit orders 2023-06-15 14:42:34 +10:00
saml33 ab62e89893 show if margin is enabled/disabled on swap form 2023-06-02 10:55:24 +10:00
saml33 dd0f89861e undo allowing delegate accounts to swap 2023-05-12 12:49:01 +10:00
saml33 e314901f27 fix max swap amounts for reduce only 2023-05-12 12:25:16 +10:00
saml33 b960c25db4 fix swap review transition 2023-04-21 16:10:09 +10:00
saml33 1750b865ca remove inline default-transition class 2023-04-20 11:12:45 +10:00
saml33 228ea6d59a change focus states to use focus-visible 2023-04-20 10:43:33 +10:00
microwavedcola1 da49da23c1 Revert "swaps disabled message"
This reverts commit 17ea3b2be4.
2023-04-19 08:49:16 +02:00
saml33 948c37ad59 merge main 2023-04-17 21:31:51 +10:00
saml33 17ea3b2be4 swaps disabled message 2023-04-14 09:40:20 +10:00
saml33 ea80f1698a implement pr feedback 2023-04-06 13:24:29 +10:00
saml33 dd0ba043e6 update focus styles 2023-03-27 14:11:10 +11:00
saml33 7cd26e9da5 add focus states and improve keyboard navigation 2023-03-24 23:22:29 +11:00
tjs fd061dcdbf move delegate checks into useUnownedAccount hook 2023-03-04 14:17:34 -05:00
tjs 917080ac09 add warning for delegate accounts 2023-03-04 13:42:46 -05:00
tjs 3bed60af56 turn on lint errors for typescript any 2023-02-28 02:20:11 -05:00
tjs b5eabc4de6 show no swap route error when amount in is gt 0 2023-02-22 13:49:03 -05:00
saml33 6a05e60376 hide action buttons for unowned accounts 2023-02-13 13:46:41 +11:00
saml33 5388035d33 handle swap reduce only 2023-02-09 11:31:53 +11:00
Adrian Brzeziński c4bc880e21 handle error when no swap route found 2023-02-04 22:55:42 +01:00
tjs 3bc8b87830 fix localstorage default key typo 2023-01-19 15:41:11 -05:00
Adrian Brzeziński c96fe8a739 Revert "Revert "Merge pull request #56 from blockworks-foundation/feature/mango-router""
This reverts commit 774219cadd.
2023-01-14 21:16:01 +01:00
tylersssss 774219cadd Revert "Merge pull request #56 from blockworks-foundation/feature/mango-router"
This reverts commit aa46e5f998.
2023-01-12 14:39:19 -05:00
tylersssss aa46e5f998
Merge pull request #56 from blockworks-foundation/feature/mango-router
use mango router
2023-01-12 11:53:04 -05:00
tjs ca89b132da remove price impact from swap form since it is on the review page 2023-01-11 16:35:37 -05:00
tjs 15e0e781cf dont hardcode height width if size isn't passed into iconbutton 2023-01-11 16:34:59 -05:00
tylersssss 9bd4642d75
Merge pull request #54 from blockworks-foundation/swap-form-button
update swap button text
2023-01-11 13:12:00 -05:00
saml33 a3e731be15 add !selectedroute to disabled 2023-01-11 11:33:03 +11:00
Adrian Brzeziński ba5facc4e2 fix 2023-01-10 00:52:06 +01:00
saml33 ea7e148578 improve token vault warnings 2023-01-10 10:47:18 +11:00
Adrian Brzeziński cd2597e26a use mango router 2023-01-09 14:13:48 +01:00
saml33 3a8a0d1df8 update button text 2023-01-09 21:01:21 +11:00
saml33 02e3e6d132 fix country not allowed button 2023-01-06 21:55:51 +11:00
saml33 6737dc5e51 update swap settings ui 2023-01-04 14:12:30 +11:00
saml33 b2257d2ca1 add active connect buttons 2023-01-03 22:06:37 +11:00
saml33 9f57d84349 address feedback 2022-12-29 21:59:56 +11:00
saml33 d8658574f7 simplify swap review 2022-12-29 15:17:38 +11:00
saml33 48e8b2ecb9 fix modal heights and align inline notification position 2022-12-27 23:07:02 +11:00
Adrian Brzeziński 2ef6070991 do not use translated values in settings fix 2022-12-21 23:33:26 +01:00
saml33 1b3cae06aa make swap button always visible 2022-12-20 23:04:08 +11:00
tjs f3080cb27f add geo check to trade forms 2022-12-19 16:58:29 -05:00
saml33 b98c25eaf6 add health impact to swap review and update styling 2022-12-19 22:20:01 +11:00
saml33 fda8dac2b2 handle empty token/stats api data 2022-12-11 21:10:11 +11:00
saml33 084c945bd4 add borrow tooltips to swap review 2022-12-09 10:42:55 +11:00
tjs 0f40c967fe remove borrow info from swap form 2022-12-08 17:36:04 -05:00
tjs 6daceda50f cleanup swap form eslint warnings 2022-12-08 13:44:30 -05:00
saml33 17156fd87f move swap borrow amount info 2022-12-08 22:15:16 +11:00
saml33 738420799c remove token image rounding 2022-12-08 14:17:24 +11:00
tjs f1f71243e8 add text below swap slider 2022-12-07 21:49:06 -05:00
saml33 300f481ecf add input theme colors 2022-12-08 13:34:24 +11:00
tjs 169f5ea079 set swapMode when changing swap amount in from slider or percent button 2022-12-07 20:14:29 -05:00
tjs 986c6ce57a better handle clearing swap form 2022-12-07 20:04:48 -05:00
saml33 7e5e3e4d51 fix swap projected health 2022-12-08 10:09:15 +11:00
saml33 95a165fc67 align swap output input styles 2022-12-08 09:45:19 +11:00
tjs 41223e846c allow setting the amount out in jupiter swap 2022-12-07 16:33:38 -05:00
saml33 57c65a90d1 remove box shadow on mobile 2022-12-07 15:10:52 +11:00
saml33 209490752c better var names and hsl colors 2022-12-01 14:32:32 +11:00
saml33 44022ae602 token vault balance warnings 2022-11-27 23:36:12 +11:00
saml33 37df58f959 use settings for slider or buttons to swap 2022-11-23 14:31:50 +11:00
saml33 58f55a22b0 fix swap token select 2022-11-22 15:20:05 +11:00
tjs 8384bca7e0 submit jup api swap transaction 2022-11-18 23:59:06 -05:00
tjs 203c571bc5 use jupiter api and hooks 2022-11-18 18:19:04 -05:00
tjs 5727d0bc7f add a useMangoAccount hook 2022-11-18 12:09:39 -05:00
tjs 07847b971b support versioned txs 2022-11-15 23:12:57 -05:00
saml33 07d420e785 update swap tour copy 2022-11-14 14:33:45 +11:00
tylersssss 33695f047a
Merge pull request #26 from blockworks-foundation/trade-health-impact
add health impact to trade form
2022-11-13 17:26:09 -05:00
saml33 69bcfc5a71 fix input height 2022-11-04 19:08:27 +00:00
saml33 c1254c9186 add health impact to trade form 2022-11-04 18:55:21 +00:00
saml33 9943911efc fix swap output amount input 2022-11-04 17:41:33 +00:00
tjs 2e853352b6 remove bg; add responsive txt 2022-10-31 05:06:03 +00:00
tjs dd284513f3 try different v of swap form copy; more responsive cols 2022-10-31 05:06:03 +00:00
saml33 7dcb59f7c3 remove commented code 2022-10-30 22:21:47 +11:00
saml33 91175e5d66 fix swap layout heights 2022-10-30 22:19:04 +11:00
tjs 0e880ffc54 swap form copy 2022-10-29 22:46:59 -04:00
saml33 8254602691 icon button sizes 2022-10-29 22:38:40 +11:00
saml33 6d85da0ab5 misc styling 2022-10-22 23:14:25 +11:00
saml33 67ef7d626b fix change font size 2022-10-08 21:22:31 +11:00
saml33 bf17fe1374 notification styling 2022-10-08 21:15:03 +11:00
tjs 7d975b6407 fix deposit input issue 2022-10-07 16:02:11 -04:00
microwavedcola1 72e4808141 match mango-v4 dev branch
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-10-07 14:27:42 +02:00
saml33 8374dfa1a7 format swap pair symbols 2022-10-06 13:23:31 +11:00
saml33 706de963af add max amount button component 2022-10-06 10:03:10 +11:00
saml33 070f4839ed add balance button when swap margin is on 2022-10-05 22:25:26 +11:00
saml33 cff49ded6f merge main 2022-09-30 22:55:28 +10:00
tjs 32578711b2 general refinements 2022-09-30 00:21:23 -04:00
saml33 8986660b55 merge main 2022-09-23 14:08:56 +10:00
tjs 661fed8ce9 refactor useTokenMax to fix regressions 2022-09-22 17:35:07 -04:00
saml33 545470cf1f add consistent tracking to font-mono class 2022-09-22 20:46:51 +10:00
saml33 f5abb4d381 add tours and copy 2022-09-22 14:25:24 +10:00
saml33 7f697894e6 add health impact tooltip 2022-09-20 16:31:07 +10:00
saml33 1d86e19158 fire getTokenMax on connection 2022-09-20 15:33:59 +10:00
saml33 d17874f87f merge main 2022-09-20 14:55:04 +10:00