Compare commits

...
Author SHA1 Message Date
Madalina Raicu e966320466 Merge branches 'feat/liquidity-info-sla-devnet' and 'develop' of github.com:vegaprotocol/frontend-monorepo into feat/liquidity-info-sla-devnet 2023-09-22 10:21:41 +01:00
Madalina Raicu d5f55adba6 Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feat/liquidity-info-sla-devnet 2023-09-21 15:09:55 +01:00
Madalina Raicu 9bfe033f89 Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feat/liquidity-info-sla-devnet 2023-09-21 09:47:54 +01:00
Madalina Raicu 86d1f96c72 chore(trading): update .env to stagnet1 2023-09-20 15:52:03 +01:00
Madalina Raicu ffa360584b chore: set iceberg orders to true 2023-09-20 15:24:46 +01:00
Madalina Raicu 0266dcb04e chore: remove empty line 2023-09-20 15:23:22 +01:00
Madalina Raicu 1c6a8d3dfb test: add liq. price range back in tests cypress 2023-09-20 15:22:36 +01:00
Madalina Raicu 7c9fd50540 Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feat/liquidity-info-sla-devnet 2023-09-20 11:10:21 +01:00
Madalina Raicu 690844c287 Merge branch 'feat/liquidity-info-sla-devnet' of github.com:vegaprotocol/frontend-monorepo into feat/liquidity-info-sla-devnet 2023-09-20 10:37:18 +01:00
m.rayandcandida-d eb9be9989a Update libs/markets/src/lib/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-09-20 10:36:09 +01:00
Madalina Raicu 6829a5f672 chore: update lint 2023-09-19 18:31:32 +01:00
Madalina Raicu 11e73ad740 Merge branch 'feature/browse-perpetuals' of github.com:vegaprotocol/frontend-monorepo into feat/liquidity-info-sla-devnet 2023-09-19 18:31:17 +01:00
Madalina Raicu ad51d98081 Merge branch 'feat/liquidity-info-sla-devnet' of github.com:vegaprotocol/frontend-monorepo into feat/liquidity-info-sla-devnet 2023-09-19 18:30:21 +01:00
Madalina Raicu d2a27b5e78 chore: update governance-e2e proposal.functions.ts 2023-09-19 18:27:37 +01:00
m.rayandcandida-d fd2d513bc7 Update libs/markets/src/lib/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-09-19 17:56:40 +01:00
m.rayandcandida-d 89f78cac55 Update libs/markets/src/lib/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-09-19 17:55:42 +01:00
m.rayandcandida-d c45428d322 Update libs/markets/src/lib/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-09-19 17:55:32 +01:00
Madalina Raicu 0e90d43c2e fix: on proposals UpdateNetworkParameterFields typo 2023-09-19 17:53:56 +01:00
Madalina Raicu 041e5cf836 chore: update types 2023-09-19 17:47:46 +01:00
Madalina Raicu 37868a1509 chore: update lint issue 2023-09-19 16:52:14 +01:00
Madalina Raicu 2724431751 Merge branch 'feat/liquidity-info-sla-devnet' of github.com:vegaprotocol/frontend-monorepo into feat/liquidity-info-sla-devnet 2023-09-19 16:48:00 +01:00
m.rayandcandida-d 2959d56375 Update libs/markets/src/lib/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-09-19 16:47:44 +01:00
Madalina Raicu 03d33e54e2 Merge branch 'feature/browse-perpetuals' of github.com:vegaprotocol/frontend-monorepo into feat/liquidity-info-sla-devnet 2023-09-19 16:47:04 +01:00
Madalina Raicu 54fd511ae7 Merge branch 'feature/browse-perpetuals' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-09-19 16:40:17 +01:00
Madalina Raicu 0c4dab973f chore: update closed.tsx 2023-09-19 16:40:01 +01:00
Madalina Raicu c6c0baa003 Merge branch 'feat/liquidity-info-sla-devnet' of github.com:vegaprotocol/frontend-monorepo into feat/liquidity-info-sla-devnet 2023-09-19 16:35:49 +01:00
Madalina Raicu d4ef912be4 Merge branch 'feature/browse-perpetuals' of github.com:vegaprotocol/frontend-monorepo into feat/liquidity-info-sla-devnet 2023-09-19 16:35:21 +01:00
m.rayandcandida-d a1dbd31510 Update libs/markets/src/lib/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-09-19 16:20:49 +01:00
m.rayandcandida-d 896245813e Update libs/markets/src/lib/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-09-19 16:20:05 +01:00
m.rayandcandida-d e43ac158e0 Update libs/markets/src/lib/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-09-19 16:19:52 +01:00
m.rayandcandida-d 79cc20393c Update libs/markets/src/lib/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-09-19 16:19:43 +01:00
m.rayandcandida-d ac536d10df Update libs/markets/src/lib/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-09-19 16:19:23 +01:00
m.rayandcandida-d 31f16e566d Update libs/markets/src/lib/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-09-19 16:19:12 +01:00
m.rayandcandida-d 03592a7bf5 Update libs/markets/src/lib/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-09-19 16:19:04 +01:00
m.rayandcandida-d 4016301869 Update libs/markets/src/lib/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-09-19 16:18:55 +01:00
m.rayandcandida-d b250398def Update libs/markets/src/lib/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-09-19 16:18:42 +01:00
Joe a908f0ca7e Merge remote-tracking branch 'origin/feature/browse-perpetuals' into feature/browse-perpetuals 2023-09-19 16:04:22 +01:00
Madalina Raicu 6875db7ad3 test: fixed closed.spec and updated types 2023-09-19 15:46:00 +01:00
Joe Tsang ce42246ab9 chore: fix failing tests by adding liquidity sla params 2023-09-19 15:32:11 +01:00
Madalina Raicu c6053e0af0 chore: update market-info.mock.ts 2023-09-19 14:55:22 +01:00
Madalina Raicu 8870fee18d Merge branch 'feature/browse-perpetuals' of github.com:vegaprotocol/frontend-monorepo into feat/liquidity-info-sla-devnet 2023-09-19 14:41:06 +01:00
Madalina Raicu 2870a36366 test: skip renders correctly formatted and filtered rows 2023-09-19 13:27:41 +01:00
Madalina Raicu 51848e125e chore: comment out temporarily spots market fragements 2023-09-19 13:17:39 +01:00
Madalina Raicu e91579965e Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-09-19 13:13:04 +01:00
Madalina Raicu e7c58eb59b chore: update .env to use stagnet1 for develop 2023-09-18 16:40:00 +01:00
Madalina Raicu ef4ef8daec Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-09-18 13:01:40 +01:00
Madalina Raicu 05016bcfcf test: remove double literal 2023-09-18 09:43:25 +01:00
Madalina Raicu 0776910818 chore: remove redundant reload literals 2023-09-15 17:38:35 +01:00
Madalina Raicu 1a5fcfc9fc Merge branch 'feature/browse-perpetuals' of github.com:vegaprotocol/frontend-monorepo into feat/liquidity-info-sla-devnet 2023-09-15 17:07:49 +01:00
Madalina Raicu d935f58e39 Merge branch 'feature/browse-perpetuals' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-09-15 17:06:36 +01:00
Madalina Raicu add6450b66 Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-09-15 17:05:38 +01:00
Bartłomiej Głownia 0df6c20799 feat: fix type errror in mocked order data 2023-09-15 11:29:56 +02:00
Matthew Russell 1681672415 chore: fix lint 2023-09-13 20:19:30 -07:00
Madalina Raicu cc128725d1 chore: update fee calculation timestep 2023-09-13 18:47:28 +01:00
Madalina Raicu 40fa38673f Merge branch 'feature/browse-perpetuals' of github.com:vegaprotocol/frontend-monorepo into feat/liquidity-info-sla-devnet 2023-09-13 18:44:38 +01:00
Madalina Raicu 5a691f35ca Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-09-13 17:20:59 +01:00
Madalina Raicu cf63959dbc chore: update product data types 2023-09-13 15:50:17 +01:00
Madalina Raicu 09a082cd83 Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-09-12 13:29:12 +01:00
Madalina Raicu 2a0d7f9340 chore: remove unused import 2023-09-12 13:28:53 +01:00
Madalina Raicu b5f50e8f80 chore: update types 2023-09-11 16:21:00 +01:00
Madalina Raicu 7a84fbc534 Merge branch 'feature/browse-perpetuals' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-09-11 16:20:40 +01:00
Madalina Raicu 4dc0a30df7 Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-09-11 16:17:52 +01:00
Bartłomiej Głownia 70b350aa79 feat(trading): change empty value from dash to Unknown 2023-09-08 15:20:01 +02:00
Bartłomiej Głownia ba0abb7de0 feat(trading): add MarketProductPill to MarketHeader 2023-09-06 13:34:45 +02:00
Bartłomiej Głownia a5fb9d2c58 feat(trading): show funding in market info 2023-09-06 11:22:04 +02:00
Bartłomiej Głownia eb4ffd05ef feat(trading): show funding info in perpetual markets 2023-09-06 08:03:31 +02:00
Madalina Raicu b0df045b10 Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-09-05 18:23:35 +01:00
Madalina Raicu 4ac1cd10c4 Merge branch 'feature/browse-perpetuals' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-09-05 18:20:43 +01:00
Madalina Raicu 3fd08aa387 Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feat/liquidity-info-sla-devnet 2023-09-05 18:09:59 +01:00
Madalina Raicu 3c35fe065a chore: update SLA tooltips and arrangement 2023-09-04 13:30:29 +01:00
Madalina Raicu b139b79ebc chore: update missing import 2023-09-04 11:24:48 +01:00
Madalina Raicu b79df69a56 Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feat/liquidity-info-sla-devnet 2023-09-04 11:24:13 +01:00
Bartłomiej Głownia 9b44b5d8eb feat: add funding chart 2023-09-04 09:27:55 +02:00
Bartłomiej Głownia 699ddbcee5 feat: add funding tab 2023-09-01 13:53:10 +02:00
Bartłomiej Głownia e910505e3d feat(markets): dry in tradableInstrument product queries, improve dataSourceSpec typing 2023-09-01 13:52:15 +02:00
Madalina Raicu 63daa5e6ec chore: add back liquidity price range panel 2023-08-31 13:23:07 +01:00
Madalina Raicu 93c6908767 Merge branch 'feature/browse-perpetuals' of github.com:vegaprotocol/frontend-monorepo into feat/liquidity-info-sla-devnet 2023-08-31 11:46:42 +01:00
Madalina Raicu 6b124dcec8 chore: remove closed-markets.cy.ts 2023-08-31 11:41:57 +01:00
Madalina Raicu f6492b2b26 Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-08-31 11:10:33 +01:00
Madalina Raicu 91b2d97b44 chore: update mappings and types 2023-08-31 11:07:57 +01:00
Madalina Raicu dbe1c49f40 chore: update types 2023-08-31 11:06:42 +01:00
Madalina Raicu 84b4ef1708 Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feat/liquidity-info-sla-devnet 2023-08-31 11:02:23 +01:00
Madalina Raicu c4ca5e1b56 chore: update dependency and typo in file name 2023-08-30 18:45:49 +01:00
Madalina Raicu 175a15e845 chore: remove price range tooltip 2023-08-30 16:55:01 +01:00
Madalina Raicu cf50ca53a3 Merge branch 'feat/liquidity-info-sla-devnet' of github.com:vegaprotocol/frontend-monorepo into feat/liquidity-info-sla-devnet 2023-08-30 16:51:53 +01:00
Madalina Raicu 9199049786 chore: update sla completion factor 2023-08-30 16:51:13 +01:00
m.rayandcandida-d 61bbbe8c66 Update libs/markets/src/lib/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-08-30 16:50:13 +01:00
Madalina Raicu f657030be3 Merge branch 'feature/browse-perpetuals' of github.com:vegaprotocol/frontend-monorepo into feat/liquidity-info-sla-devnet 2023-08-30 16:06:17 +01:00
Madalina Raicu 5da73f34d7 Merge branch 'feat/liquidity-info-sla-devnet' of github.com:vegaprotocol/frontend-monorepo into feat/liquidity-info-sla-devnet 2023-08-30 16:04:29 +01:00
m.rayandcandida-d 035fd7f5a0 Update libs/markets/src/lib/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-08-30 16:00:17 +01:00
m.rayandcandida-d ba90891cdb Update libs/markets/src/lib/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-08-30 15:59:56 +01:00
m.rayandcandida-d 70df1dcb3d Update libs/markets/src/lib/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-08-30 15:59:29 +01:00
m.rayandcandida-d 509fdf7eb7 Update libs/markets/src/lib/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-08-30 15:59:19 +01:00
m.rayandcandida-d 39d7287307 Update libs/markets/src/lib/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-08-30 15:59:04 +01:00
m.rayandcandida-d 7cdd2d66a1 Update libs/markets/src/lib/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-08-30 15:58:43 +01:00
m.rayandcandida-d 850bc12342 Update libs/markets/src/lib/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-08-30 15:58:36 +01:00
m.rayandcandida-d 87a4b9fb4a Update libs/markets/src/lib/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-08-30 15:58:12 +01:00
m.rayandcandida-d 925cb747ca Update libs/markets/src/lib/components/market-info/tooltip-mapping.tsx
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
2023-08-30 15:58:04 +01:00
Madalina Raicu 6e050abd1f chore: update product types in specs 2023-08-30 15:40:22 +01:00
Madalina Raicu 532ee62c32 chore: add product type to closed-markets 2023-08-30 12:46:13 +01:00
Madalina Raicu 9ec04be5dd chore: add product type to closed-markets 2023-08-30 12:45:46 +01:00
Madalina Raicu 4e908a0e0b Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-08-29 18:05:22 +01:00
Madalina Raicu 07e59f8832 Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feat/liquidity-info-sla-devnet 2023-08-29 18:04:16 +01:00
Madalina Raicu 1dc6b00f61 feat(trading): add network params for SLAs in market info 2023-08-29 18:03:20 +01:00
Madalina Raicu b3eb1033ad chore(trading): add market info mock and test for LP SLA params 2023-08-29 17:27:30 +01:00
Madalina Raicu 966b370699 feat(trading): update tooltips for liquidity SLA parameters in market info 2023-08-29 17:17:03 +01:00
Madalina Raicu 85e52621f1 feat(trading): add liquidity SLA parameters in market info 2023-08-29 17:02:05 +01:00
Madalina Raicu 2572ce4e9f feat(trading): add liquidity SLA parameters in query 2023-08-29 16:54:16 +01:00
Madalina Raicu 149274454d Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-08-29 16:14:25 +01:00
Madalina Raicu 1cec1cea32 chore: update to new product types 2023-08-29 15:40:45 +01:00
Madalina Raicu 2b98290a7d feat(trading): remove lp price range 2023-08-29 14:49:21 +01:00
Madalina Raicu 425d77f271 Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-08-29 11:59:56 +01:00
Madalina Raicu 1a6d15723d Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-08-29 09:48:09 +01:00
Madalina Raicu 85d4d667ae Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-08-29 09:43:54 +01:00
Madalina Raicu f5f393bc1e Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-08-26 13:10:52 +01:00
Madalina Raicu fa613b30d5 chore: update cypress tests 2023-08-26 10:53:10 +01:00
Madalina Raicu 96c71225e5 Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-08-25 23:14:28 +01:00
Madalina Raicu 7a7ff4ac3e chore: update TRANSFER_TYPE_PERPETUALS_FUNDING_LOSS 2023-08-25 23:12:37 +01:00
Madalina Raicu e6b946c39c chore: update proposal with UpdateProposalProduct 2023-08-25 18:13:39 +01:00
Madalina Raicu 905c79c412 chore: update mocks for markets and disable test temporarily 2023-08-25 18:05:58 +01:00
Madalina Raicu f1ee43e9d2 chore: update tests for market list and fills 2023-08-25 18:02:12 +01:00
Madalina Raicu 34f21b189c chore: update market-selector 2023-08-25 16:12:47 +01:00
Madalina Raicu 58574951d9 Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-08-25 14:51:05 +01:00
Madalina Raicu 13e6992b6b chore: increment AC in cypress tests for market-info 2023-08-25 13:47:51 +01:00
Madalina Raicu dcbac112fd Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-08-25 11:55:51 +01:00
Madalina Raicu 80ce7cece3 Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-08-25 10:59:13 +01:00
Madalina Raicu a753378dab Merge branch 'feature/browse-perpetuals' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-08-25 09:41:42 +01:00
Matthew Russell 9e559ffb5a chore: use getAsset rather than relying on presence of settlementAsset 2023-08-24 16:48:03 -07:00
Matthew Russell 96b8f65f87 chore: adjust error messages 2023-08-24 16:47:12 -07:00
Matthew Russell a2a671b296 chore: switch type cast for const so strings are interpreted literally 2023-08-24 16:46:20 -07:00
Matthew Russell f0bba23560 chore: remove unnecessary null/undefined checks 2023-08-24 16:45:54 -07:00
Matthew Russell bfa02ed14d chore: removed unused lodash get 2023-08-24 16:45:06 -07:00
Matthew Russell 90e94c4bfd chore: generate proposal product types dynamically 2023-08-24 16:44:39 -07:00
Madalina Raicu 0fcde8e1f7 Merge branch 'feature/browse-perpetuals' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-08-24 17:37:37 +01:00
m.ray c9168a7941 Update libs/markets/src/lib/market-utils.ts 2023-08-24 17:07:51 +01:00
m.ray 8a630a9a44 Update libs/markets/src/lib/market-utils.ts 2023-08-24 17:07:18 +01:00
Madalina Raicu da7ee17e21 chore: update oracle and data specs 2023-08-24 17:06:21 +01:00
Madalina Raicu cd6e340e5a Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-08-24 10:31:41 +01:00
Madalina Raicu 6e1020ae92 chore: add getQuoteName in market-utils.ts 2023-08-23 17:57:10 +01:00
Madalina Raicu 4f2e28c54d chore: market-info.mock.ts update with quantum 2023-08-23 17:41:20 +01:00
Madalina Raicu 3452b15cf1 chore: update with getAsset 2023-08-23 17:40:56 +01:00
Madalina Raicu 87ca719ed3 chore: remove lpPriceRange 2023-08-23 17:01:39 +01:00
Madalina Raicu be52f22fc9 Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-08-23 16:47:26 +01:00
Madalina Raicu e209cb828b chore(trading): add getAsset method in market-utils for product type check 2023-08-22 18:36:39 +01:00
Madalina Raicu 0ffcb5f9a7 Merge branch 'feature/browse-perpetuals' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-08-22 18:35:04 +01:00
Madalina Raicu cb8574ff41 chore(trading): add getAsset method in market-utils for product type check 2023-08-22 18:31:00 +01:00
m.rayandMatthew Russell 39c96dbf44 Update apps/explorer/src/app/routes/oracles/components/oracle-markets.tsx
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
2023-08-22 17:47:23 +03:00
Madalina Raicu 41f3c8d9bb chore(trading): update build-spec 2023-08-22 13:16:03 +01:00
Madalina Raicu 38a3c3150a chore(trading): update types 2023-08-22 12:38:14 +01:00
Madalina Raicu 2a898c4cdb chore(trading): update types 2023-08-22 12:38:03 +01:00
Madalina Raicu eff3fd772c chore(explorer): update party block state 2023-08-22 12:35:08 +01:00
Madalina Raicu 49d1c7b8bf Merge branch 'develop' of github.com:vegaprotocol/frontend-monorepo into feature/browse-perpetuals 2023-08-22 12:25:49 +01:00
Madalina Raicu 9c01a69e73 chore: update schema for perpetuals and spots 2023-08-22 12:22:00 +01:00
Madalina Raicu b65697d096 feat(trading): update schema after perpetuals 2023-08-17 15:34:32 +03:00
13 changed files with 316 additions and 6 deletions
@@ -95,7 +95,6 @@ context('Market page', { tags: '@regression' }, function () {
);
cy.validate_element_from_table('Lowest Price', '0.00 fUSDC');
cy.validate_element_from_table('Highest Price', '0.00 fUSDC');
cy.getByTestId('oracle-spec-links')
.should('have.attr', 'href')
.and(
@@ -1,6 +1,8 @@
import { t } from '@vegaprotocol/i18n';
import type { MarketInfoWithData } from '@vegaprotocol/markets';
import {
LiquidityPriceRangeInfoPanel,
LiquiditySLAParametersInfoPanel,
PriceMonitoringBoundsInfoPanel,
SuccessionLineInfoPanel,
getDataSourceSpecForSettlementData,
@@ -94,6 +96,10 @@ export const MarketDetails = ({ market }: { market: MarketInfoWithData }) => {
)}
<h2 className={headerClassName}>{t('Liquidity monitoring')}</h2>
<LiquidityMonitoringParametersInfoPanel market={market} />
<h2 className={headerClassName}>{t('Liquidity price range')}</h2>
<LiquidityPriceRangeInfoPanel market={market} />
<h2 className={headerClassName}>{t('Liquidity SLA protocol')}</h2>
<LiquiditySLAParametersInfoPanel market={market} />
<h2 className={headerClassName}>{t('Liquidity')}</h2>
<LiquidityInfoPanel market={market} />
{showTwoOracles ? (
@@ -5,6 +5,8 @@ import {
InstrumentInfoPanel,
KeyDetailsInfoPanel,
LiquidityMonitoringParametersInfoPanel,
LiquidityPriceRangeInfoPanel,
LiquiditySLAParametersInfoPanel,
MetadataInfoPanel,
OracleInfoPanel,
PriceMonitoringBoundsInfoPanel,
@@ -270,6 +272,21 @@ export const ProposalMarketData = ({
market={marketData}
parentMarket={parentMarketData}
/>
<h2 className={marketDataHeaderStyles}>
{t('Liquidity price range')}
</h2>
<LiquidityPriceRangeInfoPanel
market={marketData}
parentMarket={parentMarketData}
/>
<h2 className={marketDataHeaderStyles}>
{t('Liquidity SLA protocol')}
</h2>
<LiquiditySLAParametersInfoPanel
market={marketData}
parentMarket={parentMarketData}
/>
</div>
</>
)}
@@ -13,7 +13,7 @@ import { createLog } from './logging';
import { getMarkets } from './get-markets';
import { createWalletClient } from './wallet-client';
import { createEthereumWallet } from './ethereum-wallet';
import { ASSET_ID_FOR_MARKET } from './contants';
import { ASSET_ID_FOR_MARKET } from './constants';
const log = createLog('create-market');
@@ -4,7 +4,7 @@ import { createLog } from './logging';
import type { ProposalSubmissionBody } from '@vegaprotocol/wallet';
import { getProposal } from './get-proposal';
import { sendVegaTx } from './wallet-client';
import { ASSET_ID_FOR_MARKET, ASSET_SYMBOL } from './contants';
import { ASSET_ID_FOR_MARKET, ASSET_SYMBOL } from './constants';
const log = createLog('propose-market');
@@ -157,6 +157,12 @@ query MarketInfo($marketId: ID!) {
scalingFactor
}
}
liquiditySLAParameters {
priceRange
commitmentMinTimeFraction
performanceHysteresisEpochs
slaCompetitionFactor
}
tradableInstrument {
instrument {
id
File diff suppressed because one or more lines are too long
@@ -14,6 +14,7 @@ import {
Link as UILink,
Splash,
AccordionItem,
Tooltip,
} from '@vegaprotocol/ui-toolkit';
import { generatePath, Link } from 'react-router-dom';
@@ -29,6 +30,8 @@ import {
KeyDetailsInfoPanel,
LiquidityInfoPanel,
LiquidityMonitoringParametersInfoPanel,
LiquidityPriceRangeInfoPanel,
LiquiditySLAParametersInfoPanel,
MarketPriceInfoPanel,
MarketVolumeInfoPanel,
MetadataInfoPanel,
@@ -265,6 +268,26 @@ export const MarketInfoAccordion = ({
title={t('Liquidity monitoring parameters')}
content={<LiquidityMonitoringParametersInfoPanel market={market} />}
/>
<AccordionItem
itemId="liquidity-price-range"
title={t('Liquidity price range')}
content={<LiquidityPriceRangeInfoPanel market={market} />}
/>
<AccordionItem
itemId="liquidity-sla-parameters"
title={
<span>
<Tooltip
description={t(
'SLA protocol = a part of the Vega protocol that creates similar incentives within the decentralised system to those achieved by a Service Level Agreement between parties in traditional finance. The SLA protocol involves no discussion, agreement, or contracts between parties but instead relies upon rules and an economic mechanism implemented in code running on the network'
)}
>
<span>{t('Liquidity SLA protocol')}</span>
</Tooltip>
</span>
}
content={<LiquiditySLAParametersInfoPanel market={market} />}
/>
<AccordionItem
itemId="liquidity"
title={t('Liquidity')}
@@ -15,6 +15,7 @@ import {
VegaIconNames,
} from '@vegaprotocol/ui-toolkit';
import {
addDecimalsFormatNumber,
formatNumber,
formatNumberPercentage,
getDateTimeFormat,
@@ -58,6 +59,10 @@ import { useSuccessorMarketProposalDetailsQuery } from '@vegaprotocol/proposals'
import { getQuoteName, getAsset } from '../../market-utils';
import classNames from 'classnames';
import compact from 'lodash/compact';
import {
NetworkParams,
useNetworkParams,
} from '@vegaprotocol/network-parameters';
import type { DataSourceFragment } from './__generated__/MarketInfo';
import { formatDuration } from 'date-fns';
@@ -654,6 +659,193 @@ export const LiquidityMonitoringParametersInfoPanel = ({
return <MarketInfoTable data={marketData} parentData={parentMarketData} />;
};
export const LiquidityPriceRangeInfoPanel = ({
market,
parentMarket,
}: MarketInfoProps) => {
const marketLpPriceRange = market.liquiditySLAParameters?.priceRange;
const parentMarketLpPriceRange =
parentMarket?.liquiditySLAParameters?.priceRange;
const quoteUnit =
('quoteName' in market.tradableInstrument.instrument.product &&
market?.tradableInstrument.instrument.product?.quoteName) ||
'';
const parentQuoteUnit =
(parentMarket &&
'quoteName' in parentMarket.tradableInstrument.instrument.product &&
parentMarket?.tradableInstrument.instrument.product?.quoteName) ||
'';
const liquidityPriceRange =
marketLpPriceRange &&
formatNumberPercentage(new BigNumber(marketLpPriceRange).times(100));
const parentLiquidityPriceRange =
parentMarket && parentMarketLpPriceRange
? formatNumberPercentage(
new BigNumber(parentMarketLpPriceRange).times(100)
)
: null;
const { data } = useDataProvider({
dataProvider: marketDataProvider,
variables: { marketId: market.id },
});
const { data: parentMarketData } = useDataProvider({
dataProvider: marketDataProvider,
variables: { marketId: parentMarket?.id || '' },
skip: !parentMarket,
});
let parentData;
if (parentMarket && parentMarketData && quoteUnit === parentQuoteUnit) {
parentData = {
liquidityPriceRange: `${parentLiquidityPriceRange} of mid price`,
lowestPrice:
parentMarketLpPriceRange &&
parentMarketData?.midPrice &&
`${addDecimalsFormatNumber(
new BigNumber(1)
.minus(parentMarketLpPriceRange)
.times(parentMarketData.midPrice)
.toString(),
parentMarket.decimalPlaces
)} ${quoteUnit}`,
highestPrice:
parentMarketLpPriceRange &&
parentMarketData?.midPrice &&
`${addDecimalsFormatNumber(
new BigNumber(1)
.plus(parentMarketLpPriceRange)
.times(parentMarketData.midPrice)
.toString(),
parentMarket.decimalPlaces
)} ${quoteUnit}`,
};
}
return (
<>
<p className="text-xs mb-2 border-l-2 pl-2">
{`For liquidity orders to count towards a commitment, they must be
within the liquidity monitoring bounds.`}
</p>
<MarketInfoTable
data={{
liquidityPriceRange: `${liquidityPriceRange} of mid price`,
lowestPrice:
marketLpPriceRange &&
data?.midPrice &&
`${addDecimalsFormatNumber(
new BigNumber(1)
.minus(marketLpPriceRange)
.times(data.midPrice)
.toString(),
market.decimalPlaces
)} ${quoteUnit}`,
highestPrice:
marketLpPriceRange &&
data?.midPrice &&
`${addDecimalsFormatNumber(
new BigNumber(1)
.plus(marketLpPriceRange)
.times(data.midPrice)
.toString(),
market.decimalPlaces
)} ${quoteUnit}`,
}}
parentData={parentData}
/>
<p className="text-xs mb-2 border-l-2 pl-2 mt-2">
{`The liquidity price range is a ${liquidityPriceRange} difference from the mid
price.`}
</p>
</>
);
};
const fromNanoSecondsToSeconds = (nanoseconds: number | string) =>
t('%ss', [new BigNumber(nanoseconds).dividedBy(1e9).toString()]);
export const LiquiditySLAParametersInfoPanel = ({
market,
parentMarket,
}: MarketInfoProps) => {
const marketData = {
performanceHysteresisEpochs:
market.liquiditySLAParameters?.performanceHysteresisEpochs,
SLACompetitionFactor:
market.liquiditySLAParameters?.slaCompetitionFactor &&
formatNumberPercentage(
new BigNumber(
market.liquiditySLAParameters?.slaCompetitionFactor
).times(100)
),
commitmentMinimumTimeFraction:
market.liquiditySLAParameters?.commitmentMinTimeFraction &&
formatNumberPercentage(
new BigNumber(
market.liquiditySLAParameters?.commitmentMinTimeFraction
).times(100)
),
};
const parentMarketData = parentMarket
? {
performanceHysteresisEpochs:
parentMarket.liquiditySLAParameters?.performanceHysteresisEpochs,
slaCompetitionFactor:
parentMarket.liquiditySLAParameters?.slaCompetitionFactor,
commitmentMinimumTimeFraction:
parentMarket.liquiditySLAParameters?.commitmentMinTimeFraction,
}
: undefined;
const { params: networkParams } = useNetworkParams([
NetworkParams.market_liquidity_bondPenaltyParameter,
NetworkParams.market_liquidity_nonPerformanceBondPenaltySlope,
NetworkParams.market_liquidity_sla_nonPerformanceBondPenaltyMax,
NetworkParams.market_liquidity_maximumLiquidityFeeFactorLevel,
NetworkParams.market_liquidity_stakeToCcyVolume,
NetworkParams.validators_epoch_length,
NetworkParams.market_liquidity_earlyExitPenalty,
NetworkParams.market_liquidity_probabilityOfTrading_tau_scaling,
NetworkParams.market_liquidity_minimum_probabilityOfTrading_lpOrders,
NetworkParams.market_liquidity_feeCalculationTimeStep,
]);
const marketNetworkParamData = {
epochLength: networkParams['validators_epoch_length'],
bondPenaltyParameter:
networkParams['market_liquidity_bondPenaltyParameter'],
nonPerformanceBondPenaltySlope:
networkParams['market_liquidity_nonPerformanceBondPenaltySlope'],
nonPerformanceBondPenaltyMax:
networkParams['market_liquidity_sla_nonPerformanceBondPenaltyMax'],
maximumLiquidityFeeFactorLevel:
networkParams['market_liquidity_maximumLiquidityFeeFactorLevel'],
stakeToCCYVolume: networkParams['market_liquidity_stakeToCcyVolume'],
earlyExitPenalty: networkParams['market_liquidity_earlyExitPenalty'],
probabilityOfTradingTauScaling:
networkParams['market_liquidity_probabilityOfTrading_tau_scaling'],
minimumProbabilityOfTradingLPOrders:
networkParams['market_liquidity_minimum_probabilityOfTrading_lpOrders'],
feeCalculationTimeStep:
networkParams['market_liquidity_feeCalculationTimeStep'] &&
fromNanoSecondsToSeconds(
networkParams['market_liquidity_feeCalculationTimeStep']
),
};
return (
<>
<MarketInfoTable data={marketData} parentData={parentMarketData} />
<MarketInfoTable data={marketNetworkParamData} unformatted={true} />
</>
);
};
export const LiquidityInfoPanel = ({ market, children }: MarketInfoProps) => {
const asset = getAsset(market);
const { data } = useDataProvider({
@@ -101,6 +101,12 @@ export const marketInfoQuery = (
},
__typename: 'LiquidityMonitoringParameters',
},
liquiditySLAParameters: {
priceRange: '0.95',
commitmentMinTimeFraction: '0.5',
performanceHysteresisEpochs: 4,
slaCompetitionFactor: '0.5',
},
tradableInstrument: {
__typename: 'TradableInstrument',
instrument: {
@@ -106,4 +106,43 @@ export const tooltipMapping: Record<string, ReactNode> = {
insurancePoolFraction: t(
'The fraction of the insurance pool balance that is carried over from the parent market to the successor.'
),
commitmentMinimumTimeFraction: t(
`Specifies the minimum fraction of time LPs must spend 'on the book' providing their committed liquidity. This is a market parameter.`
),
feeCalculationTimeStep: t(
'How often the quality of liquidity supplied by each liquidity provider is evaluated and the fees arising from that period are earmarked for specific providers. This is a market parameter. '
),
performanceHysteresisEpochs: t(
'Number of epochs over which past performance will continue to affect rewards. This is a market parameter.'
),
SLACompetitionFactor: t(
`Maximum fraction of an LP's accrued fees that an LP would lose to liquidity providers that achieved a higher SLA performance than them. This is a market parameter. `
),
bondPenaltyParameter: t(
'Used to calculate the penalty to liquidity providers when they cannot support their open position with the assets in their margin and general accounts. This is a network parameter.'
),
nonPerformanceBondPenaltySlope: t(
'A sliding penalty for how much an LP bond is slashed if an LP fails to reach the minimum SLA. This is a network parameter.'
),
nonPerformanceBondPenaltyMax: t(
`The maximum amount, as a fraction, that an LP's bond can be slashed by if they fail to reach the minimum SLA. This is a network parameter.`
),
maximumLiquidityFeeFactorLevel: t(
'Maximum value that a proposed fee amount can be, which is submitted as part of the LP commitment transaction. Note that a value of 0.05 = 5%. This is a network parameter.'
),
stakeToCCYVolume: t(
`Multiplier used to translate an LP's commitment amount to their liquidity obligation. This is a network parameter.`
),
epochLength: t(
'How long an epoch is. LP rewards from liquidity fees are paid out once per epoch. How much they receive depends on whether they met the liquidity SLA and their previous performance in recent epochs. This is a network parameter.'
),
earlyExitPenalty: t(
`How much an LP forfeits of their bond if they reduce their commitment while the market is below target stake, expressed as a factor. If set to 0 there is no penalty for early exit. If set to 1 an LP's entire bond is forfeited when an LP removes their full commitment. This is a network parameter.`
),
probabilityOfTradingTauScaling: t(
`Determines how the probability of trading is scaled from the risk model, and is used to measure the relative competitiveness of an LP's supplied volume. This is a network parameter.`
),
minimumProbabilityOfTradingLPOrders: t(
'The lower bound for the probability of trading calculation, used to measure liquidity available on a market to determine if LPs are meeting their commitment. This is a network parameter.'
),
};
@@ -105,9 +105,25 @@ export const NetworkParams = {
'spam_protection_minimumWithdrawalQuantumMultiple',
spam_protection_voting_min_tokens: 'spam_protection_voting_min_tokens',
spam_protection_proposal_min_tokens: 'spam_protection_proposal_min_tokens',
market_liquidity_stakeToCcyVolume: 'market_liquidity_stakeToCcyVolume',
market_liquidity_targetstake_triggering_ratio:
'market_liquidity_targetstake_triggering_ratio',
market_liquidity_bondPenaltyParameter:
'market_liquidity_bondPenaltyParameter',
market_liquidity_nonPerformanceBondPenaltySlope:
'market_liquidity_nonPerformanceBondPenaltySlope',
market_liquidity_sla_nonPerformanceBondPenaltyMax:
'market_liquidity_sla_nonPerformanceBondPenaltyMax',
market_liquidity_maximumLiquidityFeeFactorLevel:
'market_liquidity_maximumLiquidityFeeFactorLevel',
market_liquidity_stakeToCcyVolume: 'market_liquidity_stakeToCcyVolume',
validators_epoch_length: 'validators_epoch_length',
market_liquidity_earlyExitPenalty: 'market_liquidity_earlyExitPenalty',
market_liquidity_probabilityOfTrading_tau_scaling:
'market_liquidity_probabilityOfTrading_tau_scaling',
market_liquidity_minimum_probabilityOfTrading_lpOrders:
'market_liquidity_minimum_probabilityOfTrading_lpOrders',
market_liquidity_feeCalculationTimeStep:
'market_liquidity_feeCalculationTimeStep',
transfer_fee_factor: 'transfer_fee_factor',
network_validators_incumbentBonus: 'network_validators_incumbentBonus',
} as const;