Commit Graph

62 Commits

Author SHA1 Message Date
Tyler Shipe 3271851f5e add perpmarket type checks 2022-01-13 10:38:55 -06:00
Tyler Shipe e1114d7477 handle when perpmarket isnt loaded yet 2022-01-12 16:46:41 -06:00
ImpossiblePairs 0ed7263f64
Fix reduceOnly checkbox functionality
Updated reduceOnly checkbox functionality so that when the reduceOnly checkbox is active, it uses "percentage x basePosition" instead of "percentage x max" which is only appropriate when reduceOnly is inactive.
2022-01-11 11:59:14 -08:00
Tyler Shipe 981482414e Remove disabled trade button after submitting 2022-01-08 12:27:06 -05:00
rjpeterson 7abb205502 translate swap page 2021-12-29 19:04:55 -06:00
saml33 9b7fa7a539 add slippage presets 2021-12-14 21:03:54 +11:00
Tyler Shipe 714de8e34f update srm fees 2021-12-08 12:27:48 -05:00
Tyler Shipe 26da87acec fix issue with post only and placePerpOrder 2021-12-04 19:31:55 -05:00
Tyler Shipe fb2cc2acb5 add slippage warning for stop loss and take profit 2021-12-03 18:55:26 -05:00
tjshipe b12aada255
Merge pull request #101 from blockworks-foundation/dd/limitioc
Dd/limitioc
2021-12-03 18:39:30 -05:00
Tyler Shipe 3ce0e1580e use latest mango client 2021-12-03 17:36:34 -05:00
dd 8438df9ccc added logic for warning user about stop loss slippage; Added TODO for tyler 2021-12-03 17:21:21 -05:00
Tyler Shipe 2a05123784 set reduceOnly false when changing order types 2021-12-03 13:36:31 -05:00
Tyler Shipe a80f03247f use latest mango-client 2021-12-03 13:01:09 -05:00
dd 007f874563 added range checks for slippage 2021-12-03 12:31:22 -05:00
dd 8b7fcd30c1 merged in main 2021-12-03 10:45:29 -05:00
dd 765a7f768e Merge branch 'main' into dd/limitioc
# Conflicts:
#	components/trade_form/AdvancedTradeForm.tsx
2021-12-03 10:40:47 -05:00
saml33 2ee67b4693 merge and default slippage to 2.5% 2021-12-03 21:39:10 +11:00
saml33 7f28a68008 add set custom max slippage 2021-12-03 21:34:10 +11:00
Tyler Shipe 0ae021596c Show reduce only flag for now when doing a market order 2021-12-03 02:38:17 -05:00
dd 60b2c4b92d updated MarketClose to have maxSlippage at 2.5% 2021-12-03 00:15:03 -05:00
dd 1adb0d8f34 added postOnlySlide 2021-12-02 23:30:59 -05:00
dd 588ae8dd18 Looks like max slippage on perp Market orders is working 2021-12-02 21:38:44 -05:00
dd f248ab7805 Added code for maxSlippage and removal of market order type; Changed mark price to just be book mid. 2021-12-02 17:33:35 -05:00
Tyler Shipe 50c514939c dont disable trade button if not enough sol 2021-12-01 01:18:12 -05:00
tjshipe f91d363158
Merge pull request #93 from rjpeterson/no-sol-notif
disable trade button and show warning when user has no SOL
2021-12-01 01:14:23 -05:00
tjshipe 68e4f4d19d
Merge branch 'main' into update-translations 2021-12-01 01:12:59 -05:00
Tyler Shipe 6488eb6802 fix console errors 2021-12-01 00:38:05 -05:00
Tyler Shipe 84233b2a56 improve rerender when cancelling orders for a market other than the one selected 2021-11-30 18:35:49 -05:00
Tyler Shipe 4eb7cd3934 forceReload components when mango account is updated in store 2021-11-30 12:32:14 -05:00
Tyler Shipe b1b5477273 reset post only flag when switching trade types 2021-11-29 12:04:50 -05:00
rjpeterson 3aa03c3909 disable trade button and show warning when user has no SOL 2021-11-26 00:05:21 -10:00
Maximilian Schneider 3d1544cc09
add tooltip to country-not-allowed block (#89) 2021-11-25 19:25:50 +01:00
rjpeterson 6b223e62e1 rebase & add statsperps + account history translation 2021-11-23 22:17:17 -10:00
tjshipe 8ae27aa62c
Merge pull request #82 from blockworks-foundation/show/hide-reduce-only
hide reduce only when no position or wrong side
2021-11-23 18:19:22 -05:00
Riordan Panayides edac2473fc Allow UK spot trading 2021-11-22 23:54:51 +00:00
saml33 96358a078c hide reduce only when no position or wrong side 2021-11-19 14:13:18 +11:00
Maximilian Schneider fb1977e720 disable size too large 2021-11-12 15:40:42 +00:00
saml33 30f971cfac fix: mobile styling to accomodate new markets 2021-11-03 22:43:34 +11:00
Tyler Shipe 56b7466799 move fees into trade box, prevent wrapping in market menu item 2021-11-01 16:20:30 -04:00
Tyler Shipe f3361a8953 only calc spot max if market config is spot market 2021-10-31 14:24:33 -04:00
Tyler Shipe 9aa9d152c9 fixes for ada perp mkt 2021-10-29 14:57:50 -04:00
rjpeterson 0733e8cda7 add missing translations, add spanish option, fix dropmenu z-index 2021-10-20 08:48:02 -10:00
rjpeterson bf679598bb
Add next-i18next translation framework & Traditional and Simplified Chinese UI Translations (#54)
* start english localization

* fix typo

* add to english localization

* add some zh translations, fix discrepencies in en

* add more chinese translations

* finish trad chinese translations

* add simplified folder, add locales.json with meta info, add latest ui updates in english

* add latest ui changes for chinese-trad and sort

* fix typo

* convert trad to simp

* Update common.json

* add review changes by @HZ2078

* fix typos

* add latest ui changes

* new ui change & trad-simp convert

* delete monospace from locales.json

* add next-i18next translation framework. Add translations up to #103

* replace more html with traslate tags

* lint & add more phrases

* add missing translations

* add language select dropdown

* add new update transltations

* add latest gui update translations

* add useTranslation to lang switch

* sort common.json, add lang descriptions

* update netlify config to support i18n

* make translations more consistent

Co-authored-by: Hz2078 <92381714+HZ2078@users.noreply.github.com>
Co-authored-by: Tyler Shipe <tjshipe@gmail.com>
2021-10-20 13:42:40 +01:00
Tyler Shipe e049456edd MSRM deposit and withdraw 2021-10-18 16:38:03 -04:00
Tyler Shipe 9afc697336 fix: remove taker fee from estimated price impact 2021-10-11 15:56:11 -04:00
Tyler Shipe 361268c751 fix: bugs when changing state with new order types 2021-10-11 14:02:20 -04:00
Tyler Shipe 3d274e64d7 use estimatedSize in fee estimation; use price of 1 for mkt close orders 2021-10-05 17:46:15 -07:00
Tyler Shipe 5d658754a8 fix types in EstPriceImpact 2021-10-05 15:12:26 -04:00
Maximilian Schneider 82dcd960c0 revert to buy/sell in trade button 2021-10-03 03:21:26 +02:00