From e975b55b65f3fa63471811935497243f7a4b9338 Mon Sep 17 00:00:00 2001 From: mattrussell36 Date: Wed, 22 Jun 2022 18:05:41 +0000 Subject: [PATCH 01/31] chore: update tranches Signed-off-by: github-actions[bot] --- apps/static/src/assets/mainnet-tranches.json | 45 ++++++++++++------- apps/static/src/assets/stagnet1-tranches.json | 4 +- apps/static/src/assets/testnet-tranches.json | 2 +- 3 files changed, 31 insertions(+), 20 deletions(-) diff --git a/apps/static/src/assets/mainnet-tranches.json b/apps/static/src/assets/mainnet-tranches.json index 02e0f1730..73daa341b 100644 --- a/apps/static/src/assets/mainnet-tranches.json +++ b/apps/static/src/assets/mainnet-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "129999.45", "total_removed": "0", - "locked_amount": "125847.249906896297139465", + "locked_amount": "125787.765120377764387935", "deposits": [ { "amount": "129999.45", @@ -488,7 +488,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "97499.58", "total_removed": "0", - "locked_amount": "66666.63057997215661197", + "locked_amount": "66608.28154565599688874", "deposits": [ { "amount": "97499.58", @@ -521,7 +521,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "135173.4239508", "total_removed": "0", - "locked_amount": "91121.77448920241599915064844", + "locked_amount": "91042.02143283273708528770988", "deposits": [ { "amount": "135173.4239508", @@ -554,7 +554,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "32499.86", "total_removed": "0", - "locked_amount": "28045.500213863789588014", + "locked_amount": "28020.953782760903521982", "deposits": [ { "amount": "32499.86", @@ -587,7 +587,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "10833.29", "total_removed": "0", - "locked_amount": "9128.538172520424723312", + "locked_amount": "9120.54854738936608206", "deposits": [ { "amount": "10833.29", @@ -675,7 +675,7 @@ "tranche_end": "2022-11-01T00:00:00.000Z", "total_added": "22500", "total_removed": "0", - "locked_amount": "16079.77241847825975", + "locked_amount": "16049.10977128622925", "deposits": [ { "amount": "15000", @@ -761,7 +761,7 @@ "tranche_end": "2023-06-02T00:00:00.000Z", "total_added": "1939928.38", "total_removed": "0", - "locked_amount": "1830956.520319353226245706", + "locked_amount": "1829623.803793709439418552", "deposits": [ { "amount": "1852091.69", @@ -1777,7 +1777,7 @@ "tranche_end": "2022-09-30T00:00:00.000Z", "total_added": "60916.66666633337", "total_removed": "18323.723696937179372649", - "locked_amount": "15541.060867673757124652184217191", + "locked_amount": "15501.894213372763635961637393573", "deposits": [ { "amount": "2833.333333", @@ -5195,7 +5195,7 @@ "tranche_end": "2022-09-03T00:00:00.000Z", "total_added": "19455.000000000000000003", "total_removed": "5052.45813105178", - "locked_amount": "3864.17904680365295175059586415525114155", + "locked_amount": "3850.81360492770145890059380317732115674", "deposits": [ { "amount": "75", @@ -14079,7 +14079,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "3732368.4671", "total_removed": "74162.9780761646031", - "locked_amount": "2838044.0251062046717742172", + "locked_amount": "2835996.10380890249685996302", "deposits": [ { "amount": "1998.95815", @@ -14792,7 +14792,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "15788853.065470999700000001", "total_removed": "5923.782558947259825", - "locked_amount": "15284554.9536832239111747473350177541524737", + "locked_amount": "15277330.3342408183946136994462047969356583", "deposits": [ { "amount": "16249.93", @@ -16832,8 +16832,8 @@ "tranche_start": "2021-11-05T00:00:00.000Z", "tranche_end": "2023-05-05T00:00:00.000Z", "total_added": "14597706.0446472999", - "total_removed": "2068423.077146290360122272", - "locked_amount": "8461771.6695419306722268828527521", + "total_removed": "2069005.858022564157472772", + "locked_amount": "8455067.62452053677250787835395576", "deposits": [ { "amount": "129284.449", @@ -17047,6 +17047,11 @@ "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", "tx": "0xa7bccea82ef34f1943bc5243ef75909d8ae81c45e67862b9c68b0a7532edc833" }, + { + "amount": "582.7808762737973505", + "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", + "tx": "0xcdbefdbd89a68d401dd21553cded39ee57bb5a7c6f3203ed6971e625f90c8b9d" + }, { "amount": "652.48254356494551875", "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", @@ -18629,6 +18634,12 @@ "tranche_id": 3, "tx": "0xa7bccea82ef34f1943bc5243ef75909d8ae81c45e67862b9c68b0a7532edc833" }, + { + "amount": "582.7808762737973505", + "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", + "tranche_id": 3, + "tx": "0xcdbefdbd89a68d401dd21553cded39ee57bb5a7c6f3203ed6971e625f90c8b9d" + }, { "amount": "652.48254356494551875", "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", @@ -19867,8 +19878,8 @@ } ], "total_tokens": "359123.469575", - "withdrawn_tokens": "150390.162087073825163", - "remaining_tokens": "208733.307487926174837" + "withdrawn_tokens": "150972.9429633476225135", + "remaining_tokens": "208150.5266116523774865" }, { "address": "0xBdd412797c1B78535Afc5F71503b91fAbD0160fB", @@ -20859,7 +20870,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "5778205.3912159303", "total_removed": "1390546.591547348229906227", - "locked_amount": "3026393.75946481397995019109643517", + "locked_amount": "3023744.95073113416560658928344952", "deposits": [ { "amount": "552496.6455", @@ -21982,7 +21993,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "472355.6199999996", "total_removed": "0", - "locked_amount": "449704.29872935272705903095281584", + "locked_amount": "449379.79389337799655934401014712", "deposits": [ { "amount": "3000", diff --git a/apps/static/src/assets/stagnet1-tranches.json b/apps/static/src/assets/stagnet1-tranches.json index 94c0b4d99..c76e603cb 100644 --- a/apps/static/src/assets/stagnet1-tranches.json +++ b/apps/static/src/assets/stagnet1-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2022-11-26T13:48:10.000Z", "total_added": "100", "total_removed": "0", - "locked_amount": "43.033418949771685", + "locked_amount": "42.96472919837646", "deposits": [ { "amount": "100", @@ -242,7 +242,7 @@ "tranche_end": "2022-10-12T00:53:20.000Z", "total_added": "1100", "total_removed": "673.04388635", - "locked_amount": "336.1295630390665", + "locked_amount": "335.373975773718904", "deposits": [ { "amount": "1000", diff --git a/apps/static/src/assets/testnet-tranches.json b/apps/static/src/assets/testnet-tranches.json index c3f1cc794..a150dc2ea 100644 --- a/apps/static/src/assets/testnet-tranches.json +++ b/apps/static/src/assets/testnet-tranches.json @@ -69,7 +69,7 @@ "tranche_end": "2022-10-12T00:53:20.000Z", "total_added": "1010.000000000000000001", "total_removed": "668.4622323651", - "locked_amount": "308.628053335870150000305572330035515", + "locked_amount": "307.93428684677826640030488543252156264", "deposits": [ { "amount": "1000", From c78514714b092fc33952b8730ea9040bdf1216eb Mon Sep 17 00:00:00 2001 From: "m.ray" <16125548+MadalinaRaicu@users.noreply.github.com> Date: Wed, 22 Jun 2022 20:08:12 +0100 Subject: [PATCH 02/31] Fix/602 fix deal ticket component to be reused by both simple trading app and console v2 (#606) * fix: [#602] fix container - use grid tabs inside trading leaving deal ticket container reusable * fix: [#602] trade grid fixes tab bounds * fix: [#602] different queries for deal ticket and info market * fix: #602 generate deal ticket query fix for tests * chore: [#602] add generate-market-info-query.ts * fix: #602 add template side of 4 cols so that all components actually resize - fixes styling * fix: #602 add aliasQuery --- .../deal-ticket/deal-ticket-container.tsx | 1 - .../page-templates/template-sidebar.tsx | 2 +- .../mocks/generate-deal-ticket-query.ts | 55 --- .../mocks/generate-market-info-query.ts | 100 ++++++ apps/trading-e2e/src/support/trading.ts | 6 + apps/trading/pages/markets/trade-grid.tsx | 25 +- .../__generated__/DealTicketQuery.ts | 192 ----------- .../__generated__/MarketInfoQuery.ts | 324 ++++++++++++++++++ .../src/components/__generated__/index.ts | 1 + .../src/components/deal-ticket-container.tsx | 112 +----- .../src/components/info-market.tsx | 116 ++++++- 11 files changed, 578 insertions(+), 356 deletions(-) create mode 100644 apps/trading-e2e/src/support/mocks/generate-market-info-query.ts create mode 100644 libs/deal-ticket/src/components/__generated__/MarketInfoQuery.ts diff --git a/apps/simple-trading-app/src/app/components/deal-ticket/deal-ticket-container.tsx b/apps/simple-trading-app/src/app/components/deal-ticket/deal-ticket-container.tsx index 0889af306..14cda9ae5 100644 --- a/apps/simple-trading-app/src/app/components/deal-ticket/deal-ticket-container.tsx +++ b/apps/simple-trading-app/src/app/components/deal-ticket/deal-ticket-container.tsx @@ -7,7 +7,6 @@ import { DealTicketSteps } from './deal-ticket-steps'; import { useVegaWallet } from '@vegaprotocol/wallet'; import { gql, useQuery } from '@apollo/client'; import { DealTicketBalance } from './deal-ticket-balance'; -import * as React from 'react'; import type { PartyBalanceQuery } from './__generated__/PartyBalanceQuery'; const tempEmptyText = Please select a market from the markets page; diff --git a/apps/token/src/components/page-templates/template-sidebar.tsx b/apps/token/src/components/page-templates/template-sidebar.tsx index 971ce54cc..8df528c2f 100644 --- a/apps/token/src/components/page-templates/template-sidebar.tsx +++ b/apps/token/src/components/page-templates/template-sidebar.tsx @@ -12,7 +12,7 @@ export function TemplateSidebar({ children, sidebar }: TemplateSidebarProps) { {children} - diff --git a/apps/explorer/src/app/components/search/search.tsx b/apps/explorer/src/app/components/search/search.tsx index 3c33ffb47..ea4e9e932 100644 --- a/apps/explorer/src/app/components/search/search.tsx +++ b/apps/explorer/src/app/components/search/search.tsx @@ -75,7 +75,12 @@ export const Search = () => { )} - + {t('Search')} diff --git a/apps/simple-trading-app/src/app/components/drawer/drawer-toggle.tsx b/apps/simple-trading-app/src/app/components/drawer/drawer-toggle.tsx index a9fbc02b7..aec0e1c18 100644 --- a/apps/simple-trading-app/src/app/components/drawer/drawer-toggle.tsx +++ b/apps/simple-trading-app/src/app/components/drawer/drawer-toggle.tsx @@ -35,7 +35,7 @@ export const DrawerToggle = ({ }, [variant]); return ( - + ); diff --git a/apps/simple-trading-app/src/app/components/simple-market-list/simple-market-list.tsx b/apps/simple-trading-app/src/app/components/simple-market-list/simple-market-list.tsx index 831470e8d..f5ae85aab 100644 --- a/apps/simple-trading-app/src/app/components/simple-market-list/simple-market-list.tsx +++ b/apps/simple-trading-app/src/app/components/simple-market-list/simple-market-list.tsx @@ -101,7 +101,7 @@ const SimpleMarketList = () => { onClick(market.id)} - variant="inline" + variant="inline-link" prependIconName="chevron-right" /> diff --git a/apps/simple-trading-app/src/app/components/stepper/stepper.tsx b/apps/simple-trading-app/src/app/components/stepper/stepper.tsx index 3a9bb0006..3d099ffa5 100644 --- a/apps/simple-trading-app/src/app/components/stepper/stepper.tsx +++ b/apps/simple-trading-app/src/app/components/stepper/stepper.tsx @@ -70,7 +70,7 @@ export default ({ steps }: StepperProps) => { {index === steps.length - 1 ? 'Finish' : 'Continue'} diff --git a/apps/token/src/components/eth-wallet/eth-wallet.tsx b/apps/token/src/components/eth-wallet/eth-wallet.tsx index 014ec8f91..f42892770 100644 --- a/apps/token/src/components/eth-wallet/eth-wallet.tsx +++ b/apps/token/src/components/eth-wallet/eth-wallet.tsx @@ -2,6 +2,7 @@ import { useWeb3React } from '@web3-react/core'; import React from 'react'; import { useTranslation } from 'react-i18next'; import { Link } from 'react-router-dom'; +import { getButtonClasses, Button } from '@vegaprotocol/ui-toolkit'; import { AppStateActionType, @@ -70,7 +71,7 @@ const AssociatedAmounts = ({ rightLabel={t('notAssociated')} leftColor={Colors.white.DEFAULT} rightColor={Colors.black.DEFAULT} - light={true} + light={false} /> {vestingAssociationByVegaKey.length ? ( <> @@ -129,6 +130,7 @@ const ConnectedKey = () => { name="VEGA" symbol="In vesting contract" balance={totalInVestingContract} + dark={true} /> { total={totalVestedBalance.plus(totalLockedBalance)} leftLabel={t('Locked')} rightLabel={t('Unlocked')} - light={true} + light={false} /> > )} @@ -153,6 +155,7 @@ const ConnectedKey = () => { name="VEGA" symbol="In Wallet" balance={walletWithAssociations} + dark={true} /> {!Object.keys( appState.associationBreakdown.stakingAssociations @@ -163,15 +166,17 @@ const ConnectedKey = () => { /> )} - - - {t('associate')} - + + {t('associate')} - - - {t('disassociate')} - + + {t('disassociate')} > @@ -185,7 +190,7 @@ export const EthWallet = () => { const pendingTxs = usePendingTransactions(); return ( - + {t('ethereumKey')} {account && ( @@ -203,7 +208,7 @@ export const EthWallet = () => { }) } > - + {t('pendingTransactions')} @@ -215,7 +220,8 @@ export const EthWallet = () => { {account ? ( ) : ( - appDispatch({ @@ -226,7 +232,7 @@ export const EthWallet = () => { data-test-id="connect-to-eth-wallet-button" > {t('connectEthWalletToAssociate')} - + )} {account && ( diff --git a/apps/token/src/components/locked-progress/locked-progress.tsx b/apps/token/src/components/locked-progress/locked-progress.tsx index 3c12cb031..c1cf2cc3b 100644 --- a/apps/token/src/components/locked-progress/locked-progress.tsx +++ b/apps/token/src/components/locked-progress/locked-progress.tsx @@ -1,8 +1,8 @@ import React from 'react'; - import { formatNumber } from '../../lib/format-number'; import type { BigNumber } from '../../lib/bignumber'; import { theme } from '@vegaprotocol/tailwindcss-config'; +import classnames from 'classnames'; const Colors = theme.colors; @@ -14,9 +14,10 @@ const ProgressContents = ({ children: React.ReactNode; }) => ( {children} @@ -25,17 +26,22 @@ const ProgressContents = ({ const ProgressIndicator = ({ bgColor, side, + light, }: { bgColor: string; side: 'left' | 'right'; + light: boolean; }) => ( ); @@ -73,7 +79,7 @@ export const LockedProgress = ({ leftLabel, rightLabel, leftColor = Colors.vega.pink, - rightColor = Colors.green.DEFAULT, + rightColor = Colors.vega.green, light = false, }: LockedProgressProps) => { const lockedPercentage = React.useMemo(() => { @@ -85,19 +91,28 @@ export const LockedProgress = ({ }, [total, unlocked]); return ( - - + <> + - + {leftLabel} {rightLabel} - + @@ -105,6 +120,6 @@ export const LockedProgress = ({ {formatNumber(locked, 2)} {formatNumber(unlocked, 2)} - + > ); }; diff --git a/apps/token/src/components/vega-wallet/vega-wallet.tsx b/apps/token/src/components/vega-wallet/vega-wallet.tsx index 79b582949..307e6f392 100644 --- a/apps/token/src/components/vega-wallet/vega-wallet.tsx +++ b/apps/token/src/components/vega-wallet/vega-wallet.tsx @@ -180,15 +180,15 @@ const VegaWalletConnected = ({ vegaKeys }: VegaWalletConnectedProps) => { ))} - - + + {t('governance')} - + - - + + {t('staking')} - + diff --git a/apps/token/src/index.html b/apps/token/src/index.html index 6396c83af..33627cdd5 100644 --- a/apps/token/src/index.html +++ b/apps/token/src/index.html @@ -1,5 +1,5 @@ - + diff --git a/apps/token/src/routes/claim/target-address-mismatch.tsx b/apps/token/src/routes/claim/target-address-mismatch.tsx index 6f5e9eb7c..23069ac69 100644 --- a/apps/token/src/routes/claim/target-address-mismatch.tsx +++ b/apps/token/src/routes/claim/target-address-mismatch.tsx @@ -25,7 +25,7 @@ export const TargetAddressMismatch = ({ }} components={{ bold: , - red: , + red: , }} />
Please select a market from the markets page
Some content
Selected file: {file}
Selected file: {selected}
Tab one content
Tab two content
Tab three content
{cantVoteUI}
{t('voteRequested')}...
{t('votePending')}...
{t('stakingConfirm')}
{ {t('Get a Vega wallet')}
+
@@ -110,7 +113,12 @@ const Home = ({ name }: RouteChildProps) => {
- {t('Nominate a validator')} + + {t('Nominate a validator')} +
- + {t('View Governance proposals')} From f010bdaceb28cae9b413863bf9ae196e5ee90a29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Szpiech?= Date: Fri, 24 Jun 2022 16:14:21 +0200 Subject: [PATCH 17/31] test: fix token address to capsule (#640) Co-authored-by: Rado --- apps/token-e2e/src/data/vegaToken.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/token-e2e/src/data/vegaToken.json b/apps/token-e2e/src/data/vegaToken.json index dbf5d2d60..ed95eef79 100644 --- a/apps/token-e2e/src/data/vegaToken.json +++ b/apps/token-e2e/src/data/vegaToken.json @@ -1,4 +1,4 @@ { - "tokenAddress": "0xDc335304979D378255015c33AbFf09B60c31EBAb", - "vestingContract": "0xe2deBB240b43EDfEBc9c38B67c0894B9A92Bf07c" + "tokenAddress": "0x67175Da1D5e966e40D11c4B2519392B2058373de", + "vestingContract": "0xF41bD86d462D36b997C0bbb4D97a0a3382f205B7" } From ec2642e8b1daee36d1a86931d765aec5b4f74e5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Szpiech?= Date: Fri, 24 Jun 2022 16:26:16 +0200 Subject: [PATCH 18/31] fix: classes added to make link looks like link (#639) Co-authored-by: Rado --- apps/token/src/routes/home/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/token/src/routes/home/index.tsx b/apps/token/src/routes/home/index.tsx index 5956e3cf6..3b1052218 100644 --- a/apps/token/src/routes/home/index.tsx +++ b/apps/token/src/routes/home/index.tsx @@ -53,7 +53,11 @@ const Home = ({ name }: RouteChildProps) => { i18nKey="Tokens are held in different Tranches. Each tranche has its own schedule for how the tokens are unlocked." components={{ trancheLink: ( - + ), }} /> From b26954d68a1a141a7d71db8c9b18d9f6ac439313 Mon Sep 17 00:00:00 2001 From: mattrussell36 Date: Fri, 24 Jun 2022 18:04:33 +0000 Subject: [PATCH 19/31] chore: update tranches Signed-off-by: github-actions[bot] --- apps/static/src/assets/mainnet-tranches.json | 62 +++++++++++++------ apps/static/src/assets/stagnet1-tranches.json | 4 +- apps/static/src/assets/testnet-tranches.json | 2 +- 3 files changed, 45 insertions(+), 23 deletions(-) diff --git a/apps/static/src/assets/mainnet-tranches.json b/apps/static/src/assets/mainnet-tranches.json index bfe778ad9..4ef2a36d9 100644 --- a/apps/static/src/assets/mainnet-tranches.json +++ b/apps/static/src/assets/mainnet-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "129999.45", "total_removed": "0", - "locked_amount": "125372.796613788135527745", + "locked_amount": "125313.501278009057025915", "deposits": [ { "amount": "129999.45", @@ -488,7 +488,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "97499.58", "total_removed": "0", - "locked_amount": "66201.23609675649299889", + "locked_amount": "66143.072895967582921434", "deposits": [ { "amount": "97499.58", @@ -521,7 +521,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "135173.4239508", "total_removed": "0", - "locked_amount": "90485.66057765225347098623316", + "locked_amount": "90406.16152363149897517810344", "deposits": [ { "amount": "135173.4239508", @@ -554,7 +554,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "32499.86", "total_removed": "0", - "locked_amount": "27849.716791707803447568", + "locked_amount": "27825.248537560661909962", "deposits": [ { "amount": "32499.86", @@ -587,7 +587,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "10833.29", "total_removed": "0", - "locked_amount": "9064.81256844601030138", + "locked_amount": "9056.848389155433141067", "deposits": [ { "amount": "10833.29", @@ -675,7 +675,7 @@ "tranche_end": "2022-11-01T00:00:00.000Z", "total_added": "22500", "total_removed": "0", - "locked_amount": "15835.2057857789865", + "locked_amount": "15804.6407948369565", "deposits": [ { "amount": "15000", @@ -761,7 +761,7 @@ "tranche_end": "2023-06-02T00:00:00.000Z", "total_added": "1939928.38", "total_removed": "0", - "locked_amount": "1820326.714256682635930836", + "locked_amount": "1818998.242247091019272704", "deposits": [ { "amount": "1852091.69", @@ -1777,7 +1777,7 @@ "tranche_end": "2022-09-30T00:00:00.000Z", "total_added": "60916.66666633337", "total_removed": "18323.723696937179372649", - "locked_amount": "15228.6658974514981132186807621896", + "locked_amount": "15189.623983475771143696284427825", "deposits": [ { "amount": "2833.333333", @@ -5217,7 +5217,7 @@ "tranche_end": "2022-09-03T00:00:00.000Z", "total_added": "19455.000000000000000003", "total_removed": "5052.45813105178", - "locked_amount": "3757.57569016362239970057942570395738202", + "locked_amount": "3744.25281535388095725057737128995433785", "deposits": [ { "amount": "75", @@ -14101,7 +14101,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "3732368.4671", "total_removed": "74162.9780761646031", - "locked_amount": "2821709.7140932749191872821", + "locked_amount": "2819668.31513936105743951199", "deposits": [ { "amount": "1998.95815", @@ -14813,8 +14813,8 @@ "tranche_start": "2022-06-05T00:00:00.000Z", "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "15788853.065470999700000001", - "total_removed": "6529.308282907170975", - "locked_amount": "15226931.0688797604488413403968889779954041", + "total_removed": "6989.59530997724295", + "locked_amount": "15219729.4588415361651858514782136780981347", "deposits": [ { "amount": "16249.93", @@ -15318,6 +15318,11 @@ "user": "0x20CD77B9FC2f1fEDfb6F184E25f7127BFE991C8b", "tx": "0x7bf7930893a08f0c18416bb3c9470c5671a1a10a9251d4ab5eb392ed90124a60" }, + { + "amount": "460.287027070071975", + "user": "0x20CD77B9FC2f1fEDfb6F184E25f7127BFE991C8b", + "tx": "0xf2208f6e0a6d6b7f5e52e128632ac52b8473b408421318b9a28460aa19feca9c" + }, { "amount": "2446.31552516990115", "user": "0x20CD77B9FC2f1fEDfb6F184E25f7127BFE991C8b", @@ -15416,6 +15421,12 @@ "tranche_id": 2, "tx": "0x7bf7930893a08f0c18416bb3c9470c5671a1a10a9251d4ab5eb392ed90124a60" }, + { + "amount": "460.287027070071975", + "user": "0x20CD77B9FC2f1fEDfb6F184E25f7127BFE991C8b", + "tranche_id": 2, + "tx": "0xf2208f6e0a6d6b7f5e52e128632ac52b8473b408421318b9a28460aa19feca9c" + }, { "amount": "2446.31552516990115", "user": "0x20CD77B9FC2f1fEDfb6F184E25f7127BFE991C8b", @@ -15460,8 +15471,8 @@ } ], "total_tokens": "194999.1675", - "withdrawn_tokens": "6529.308282907170975", - "remaining_tokens": "188469.859217092829025" + "withdrawn_tokens": "6989.59530997724295", + "remaining_tokens": "188009.57219002275705" }, { "address": "0x89051CAb67Bc7F8CC44F7e270c6EDaf1EC57676c", @@ -16865,8 +16876,8 @@ "tranche_start": "2021-11-05T00:00:00.000Z", "tranche_end": "2023-05-05T00:00:00.000Z", "total_added": "14597706.0446472999", - "total_removed": "2069544.949743920512285522", - "locked_amount": "8408299.90938767014274966744116626", + "total_removed": "2070390.634418682386154522", + "locked_amount": "8401617.21581361163358501737203864", "deposits": [ { "amount": "129284.449", @@ -17090,6 +17101,11 @@ "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", "tx": "0x091d995cd60f0a5a93eccb13e0ca0e39fc513c28c860bd5bc6369da3994a09d0" }, + { + "amount": "845.684674761873869", + "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", + "tx": "0xcb8ecc71a9024bab7454a33f6adf7bfcd0f25b3dc1919f92ca362a25b71f2a4d" + }, { "amount": "652.48254356494551875", "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", @@ -18684,6 +18700,12 @@ "tranche_id": 3, "tx": "0x091d995cd60f0a5a93eccb13e0ca0e39fc513c28c860bd5bc6369da3994a09d0" }, + { + "amount": "845.684674761873869", + "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", + "tranche_id": 3, + "tx": "0xcb8ecc71a9024bab7454a33f6adf7bfcd0f25b3dc1919f92ca362a25b71f2a4d" + }, { "amount": "652.48254356494551875", "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", @@ -19922,8 +19944,8 @@ } ], "total_tokens": "359123.469575", - "withdrawn_tokens": "151512.03468470397732625", - "remaining_tokens": "207611.43489029602267375" + "withdrawn_tokens": "152357.71935946585119525", + "remaining_tokens": "206765.75021553414880475" }, { "address": "0xBdd412797c1B78535Afc5F71503b91fAbD0160fB", @@ -20914,7 +20936,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "5778205.3912159303", "total_removed": "1390546.591547348229906227", - "locked_amount": "3005266.74363335246881418653780603", + "locked_amount": "3002626.37098564741430102473585235", "deposits": [ { "amount": "552496.6455", @@ -22037,7 +22059,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "472355.6199999996", "total_removed": "0", - "locked_amount": "447116.03377845153899969445865044", + "locked_amount": "446792.562445069997614148325723", "deposits": [ { "amount": "3000", diff --git a/apps/static/src/assets/stagnet1-tranches.json b/apps/static/src/assets/stagnet1-tranches.json index 83b56f910..0aa3728f3 100644 --- a/apps/static/src/assets/stagnet1-tranches.json +++ b/apps/static/src/assets/stagnet1-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2022-11-26T13:48:10.000Z", "total_added": "100", "total_removed": "0", - "locked_amount": "42.485470573313044", + "locked_amount": "42.4169805936073", "deposits": [ { "amount": "100", @@ -242,7 +242,7 @@ "tranche_end": "2022-10-12T00:53:20.000Z", "total_added": "1100", "total_removed": "673.04388635", - "locked_amount": "330.102130898021317", + "locked_amount": "329.348741121258254", "deposits": [ { "amount": "1000", diff --git a/apps/static/src/assets/testnet-tranches.json b/apps/static/src/assets/testnet-tranches.json index 885519fd2..1d34bcc82 100644 --- a/apps/static/src/assets/testnet-tranches.json +++ b/apps/static/src/assets/testnet-tranches.json @@ -69,7 +69,7 @@ "tranche_end": "2022-10-12T00:53:20.000Z", "total_added": "1010.000000000000000001", "total_removed": "668.4622323651", - "locked_amount": "303.0938067605277050003000928779807205", + "locked_amount": "302.40205796549979160029940797818366316", "deposits": [ { "amount": "1000", From 43f0aff8b2c6a4891711a771516d2e08a8cd6844 Mon Sep 17 00:00:00 2001 From: mattrussell36 Date: Sat, 25 Jun 2022 00:08:39 +0000 Subject: [PATCH 20/31] chore: update tranches Signed-off-by: github-actions[bot] --- apps/static/src/assets/mainnet-tranches.json | 28 +++++++++---------- apps/static/src/assets/stagnet1-tranches.json | 4 +-- apps/static/src/assets/testnet-tranches.json | 2 +- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/apps/static/src/assets/mainnet-tranches.json b/apps/static/src/assets/mainnet-tranches.json index 4ef2a36d9..b831468f2 100644 --- a/apps/static/src/assets/mainnet-tranches.json +++ b/apps/static/src/assets/mainnet-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "129999.45", "total_removed": "0", - "locked_amount": "125313.501278009057025915", + "locked_amount": "125253.519526507371329295", "deposits": [ { "amount": "129999.45", @@ -488,7 +488,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "97499.58", "total_removed": "0", - "locked_amount": "66143.072895967582921434", + "locked_amount": "66084.23638529733863463", "deposits": [ { "amount": "97499.58", @@ -521,7 +521,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "135173.4239508", "total_removed": "0", - "locked_amount": "90406.16152363149897517810344", + "locked_amount": "90325.7421712450937334246252", "deposits": [ { "amount": "135173.4239508", @@ -554,7 +554,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "32499.86", "total_removed": "0", - "locked_amount": "27825.248537560661909962", + "locked_amount": "27800.4970335738792838", "deposits": [ { "amount": "32499.86", @@ -587,7 +587,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "10833.29", "total_removed": "0", - "locked_amount": "9056.848389155433141067", + "locked_amount": "9048.792014790645502723", "deposits": [ { "amount": "10833.29", @@ -675,7 +675,7 @@ "tranche_end": "2022-11-01T00:00:00.000Z", "total_added": "22500", "total_removed": "0", - "locked_amount": "15804.6407948369565", + "locked_amount": "15773.7219769021725", "deposits": [ { "amount": "15000", @@ -761,7 +761,7 @@ "tranche_end": "2023-06-02T00:00:00.000Z", "total_added": "1939928.38", "total_removed": "0", - "locked_amount": "1818998.242247091019272704", + "locked_amount": "1817654.39155615118208093", "deposits": [ { "amount": "1852091.69", @@ -1777,7 +1777,7 @@ "tranche_end": "2022-09-30T00:00:00.000Z", "total_added": "60916.66666633337", "total_removed": "18323.723696937179372649", - "locked_amount": "15189.623983475771143696284427825", + "locked_amount": "15150.130111799824545327932097531", "deposits": [ { "amount": "2833.333333", @@ -5217,7 +5217,7 @@ "tranche_end": "2022-09-03T00:00:00.000Z", "total_added": "19455.000000000000000003", "total_removed": "5052.45813105178", - "locked_amount": "3744.25281535388095725057737128995433785", + "locked_amount": "3730.77571204337850210057529309360730586", "deposits": [ { "amount": "75", @@ -14101,7 +14101,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "3732368.4671", "total_removed": "74162.9780761646031", - "locked_amount": "2819668.31513936105743951199", + "locked_amount": "2817603.28450650320443292211", "deposits": [ { "amount": "1998.95815", @@ -14814,7 +14814,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "15788853.065470999700000001", "total_removed": "6989.59530997724295", - "locked_amount": "15219729.4588415361651858514782136780981347", + "locked_amount": "15212444.4813968645919545176863177580575831", "deposits": [ { "amount": "16249.93", @@ -16877,7 +16877,7 @@ "tranche_end": "2023-05-05T00:00:00.000Z", "total_added": "14597706.0446472999", "total_removed": "2070390.634418682386154522", - "locked_amount": "8401617.21581361163358501737203864", + "locked_amount": "8394857.16192312444266968055063766", "deposits": [ { "amount": "129284.449", @@ -20936,7 +20936,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "5778205.3912159303", "total_removed": "1390546.591547348229906227", - "locked_amount": "3002626.37098564741430102473585235", + "locked_amount": "2999955.4328090505550938777302832", "deposits": [ { "amount": "552496.6455", @@ -22059,7 +22059,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "472355.6199999996", "total_removed": "0", - "locked_amount": "446792.562445069997614148325723", + "locked_amount": "446465.34653707533512981517199392", "deposits": [ { "amount": "3000", diff --git a/apps/static/src/assets/stagnet1-tranches.json b/apps/static/src/assets/stagnet1-tranches.json index 0aa3728f3..1bd195f9c 100644 --- a/apps/static/src/assets/stagnet1-tranches.json +++ b/apps/static/src/assets/stagnet1-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2022-11-26T13:48:10.000Z", "total_added": "100", "total_removed": "0", - "locked_amount": "42.4169805936073", + "locked_amount": "42.34772006595636", "deposits": [ { "amount": "100", @@ -242,7 +242,7 @@ "tranche_end": "2022-10-12T00:53:20.000Z", "total_added": "1100", "total_removed": "673.04388635", - "locked_amount": "329.348741121258254", + "locked_amount": "328.586875317097936", "deposits": [ { "amount": "1000", diff --git a/apps/static/src/assets/testnet-tranches.json b/apps/static/src/assets/testnet-tranches.json index 1d34bcc82..494f46b14 100644 --- a/apps/static/src/assets/testnet-tranches.json +++ b/apps/static/src/assets/testnet-tranches.json @@ -69,7 +69,7 @@ "tranche_end": "2022-10-12T00:53:20.000Z", "total_added": "1010.000000000000000001", "total_removed": "668.4622323651", - "locked_amount": "302.40205796549979160029940797818366316", + "locked_amount": "301.70249460933537760029871534119736176", "deposits": [ { "amount": "1000", From 8bfa6e3906f0dfb9ea690c8ebfc3d131c61218c4 Mon Sep 17 00:00:00 2001 From: mattrussell36 Date: Sat, 25 Jun 2022 12:05:06 +0000 Subject: [PATCH 21/31] chore: update tranches Signed-off-by: github-actions[bot] --- apps/static/src/assets/mainnet-tranches.json | 88 +++++++++++++------ apps/static/src/assets/stagnet1-tranches.json | 4 +- apps/static/src/assets/testnet-tranches.json | 2 +- 3 files changed, 65 insertions(+), 29 deletions(-) diff --git a/apps/static/src/assets/mainnet-tranches.json b/apps/static/src/assets/mainnet-tranches.json index b831468f2..3f166a21f 100644 --- a/apps/static/src/assets/mainnet-tranches.json +++ b/apps/static/src/assets/mainnet-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "129999.45", "total_removed": "0", - "locked_amount": "125253.519526507371329295", + "locked_amount": "125135.491715841699705585", "deposits": [ { "amount": "129999.45", @@ -488,7 +488,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "97499.58", "total_removed": "0", - "locked_amount": "66084.23638529733863463", + "locked_amount": "65968.462097822203561422", "deposits": [ { "amount": "97499.58", @@ -521,7 +521,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "135173.4239508", "total_removed": "0", - "locked_amount": "90325.7421712450937334246252", + "locked_amount": "90167.49870786346458279454272", "deposits": [ { "amount": "135173.4239508", @@ -554,7 +554,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "32499.86", "total_removed": "0", - "locked_amount": "27800.4970335738792838", + "locked_amount": "27751.792790148093061242", "deposits": [ { "amount": "32499.86", @@ -587,7 +587,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "10833.29", "total_removed": "0", - "locked_amount": "9048.792014790645502723", + "locked_amount": "9032.939256170343795749", "deposits": [ { "amount": "10833.29", @@ -675,7 +675,7 @@ "tranche_end": "2022-11-01T00:00:00.000Z", "total_added": "22500", "total_removed": "0", - "locked_amount": "15773.7219769021725", + "locked_amount": "15712.88213315217375", "deposits": [ { "amount": "15000", @@ -761,7 +761,7 @@ "tranche_end": "2023-06-02T00:00:00.000Z", "total_added": "1939928.38", "total_removed": "0", - "locked_amount": "1817654.39155615118208093", + "locked_amount": "1815010.058055673609877812", "deposits": [ { "amount": "1852091.69", @@ -1777,7 +1777,7 @@ "tranche_end": "2022-09-30T00:00:00.000Z", "total_added": "60916.66666633337", "total_removed": "18323.723696937179372649", - "locked_amount": "15150.130111799824545327932097531", + "locked_amount": "15072.4168891625501902368233482636", "deposits": [ { "amount": "2833.333333", @@ -5217,7 +5217,7 @@ "tranche_end": "2022-09-03T00:00:00.000Z", "total_added": "19455.000000000000000003", "total_removed": "5052.45813105178", - "locked_amount": "3730.77571204337850210057529309360730586", + "locked_amount": "3704.25642979452060480057120376712328768", "deposits": [ { "amount": "75", @@ -14101,7 +14101,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "3732368.4671", "total_removed": "74162.9780761646031", - "locked_amount": "2817603.28450650320443292211", + "locked_amount": "2813539.86457541017334277964", "deposits": [ { "amount": "1998.95815", @@ -14814,7 +14814,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "15788853.065470999700000001", "total_removed": "6989.59530997724295", - "locked_amount": "15212444.4813968645919545176863177580575831", + "locked_amount": "15198109.6225936964233990941947241879805353", "deposits": [ { "amount": "16249.93", @@ -16876,8 +16876,8 @@ "tranche_start": "2021-11-05T00:00:00.000Z", "tranche_end": "2023-05-05T00:00:00.000Z", "total_added": "14597706.0446472999", - "total_removed": "2070390.634418682386154522", - "locked_amount": "8394857.16192312444266968055063766", + "total_removed": "2111906.584458928859990382", + "locked_amount": "8381555.21023446802429182215306625", "deposits": [ { "amount": "129284.449", @@ -17106,6 +17106,11 @@ "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", "tx": "0xcb8ecc71a9024bab7454a33f6adf7bfcd0f25b3dc1919f92ca362a25b71f2a4d" }, + { + "amount": "41515.95004024647383586", + "user": "0x66827bCD635f2bB1779d68c46aEB16541bCA6ba8", + "tx": "0xd950c34bf5f503998bddc8f9fdeb7cdc4ae1e76c5e9b1564795c306c2e8cad63" + }, { "amount": "652.48254356494551875", "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", @@ -20132,6 +20137,12 @@ } ], "withdrawals": [ + { + "amount": "41515.95004024647383586", + "user": "0x66827bCD635f2bB1779d68c46aEB16541bCA6ba8", + "tranche_id": 3, + "tx": "0xd950c34bf5f503998bddc8f9fdeb7cdc4ae1e76c5e9b1564795c306c2e8cad63" + }, { "amount": "17786.1881146007542887", "user": "0x66827bCD635f2bB1779d68c46aEB16541bCA6ba8", @@ -20338,8 +20349,8 @@ } ], "total_tokens": "1266324.603486", - "withdrawn_tokens": "497356.38070819243695426", - "remaining_tokens": "768968.22277780756304574" + "withdrawn_tokens": "538872.33074843891079012", + "remaining_tokens": "727452.27273756108920988" }, { "address": "0xC5d9221EB9c28A69859264c0A2Fe0d3272228296", @@ -20936,7 +20947,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "5778205.3912159303", "total_removed": "1390546.591547348229906227", - "locked_amount": "2999955.4328090505550938777302832", + "locked_amount": "2994699.75124732873280622934348863", "deposits": [ { "amount": "552496.6455", @@ -22058,8 +22069,8 @@ "tranche_start": "2022-06-05T00:00:00.000Z", "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "472355.6199999996", - "total_removed": "0", - "locked_amount": "446465.34653707533512981517199392", + "total_removed": "11.163032724", + "locked_amount": "445821.47442149508818133870319632", "deposits": [ { "amount": "3000", @@ -28677,7 +28688,13 @@ "tx": "0xe32a466fc780a0fb3fd84a804f622931ebfaf3f428bff0dc6d141270410e75f8" } ], - "withdrawals": [], + "withdrawals": [ + { + "amount": "11.163032724", + "user": "0xF5037DDA4A660d67560200f45380FF8364e35540", + "tx": "0x0db96c68606a35c59786e3b1ff4f8e939a56af133709dd154718eb03138fe227" + } + ], "users": [ { "address": "0xD18ffAa4a1d16f9eD9d3BE4078738Eeda3f160FD", @@ -47205,10 +47222,17 @@ "tx": "0xe32a466fc780a0fb3fd84a804f622931ebfaf3f428bff0dc6d141270410e75f8" } ], - "withdrawals": [], + "withdrawals": [ + { + "amount": "11.163032724", + "user": "0xF5037DDA4A660d67560200f45380FF8364e35540", + "tranche_id": 5, + "tx": "0x0db96c68606a35c59786e3b1ff4f8e939a56af133709dd154718eb03138fe227" + } + ], "total_tokens": "200", - "withdrawn_tokens": "0", - "remaining_tokens": "200" + "withdrawn_tokens": "11.163032724", + "remaining_tokens": "188.836967276" }, { "address": "0x2843a3A61C7a129e432455c02101Cec3fA428E60", @@ -47712,7 +47736,7 @@ "tranche_start": "2021-12-05T00:00:00.000Z", "tranche_end": "2022-06-05T00:00:00.000Z", "total_added": "171288.42", - "total_removed": "30935.4825162206377", + "total_removed": "31035.4825162206377", "locked_amount": "0", "deposits": [ { @@ -51982,6 +52006,11 @@ "user": "0x0941FC05E3DA8d9dD29bCBB15F9FF3A16F342612", "tx": "0xb3cffc52e62679835e65be5472f80bcfa949f7eb0c4c9948efc3271cca02fdae" }, + { + "amount": "100", + "user": "0x4796314cC5bDa80Ee2E8b119004b1fc72Cfb1783", + "tx": "0xbfdbd5e3712968f2726e8dba1f226944cfa637f8738f25c3a5b12a1c6a8e7197" + }, { "amount": "183.6335597275", "user": "0x690Fc36d52eD3f198F0eBDea1557333a1766f786", @@ -64317,10 +64346,17 @@ "tx": "0xd23813c30e93f3867eaa257b7aef7052a050b1ee1c1a90102a3f40c5d989fe82" } ], - "withdrawals": [], + "withdrawals": [ + { + "amount": "100", + "user": "0x4796314cC5bDa80Ee2E8b119004b1fc72Cfb1783", + "tranche_id": 6, + "tx": "0xbfdbd5e3712968f2726e8dba1f226944cfa637f8738f25c3a5b12a1c6a8e7197" + } + ], "total_tokens": "100", - "withdrawn_tokens": "0", - "remaining_tokens": "100" + "withdrawn_tokens": "100", + "remaining_tokens": "0" }, { "address": "0x351cc2560C870f01B099B106Be22C0073Fce10B2", diff --git a/apps/static/src/assets/stagnet1-tranches.json b/apps/static/src/assets/stagnet1-tranches.json index 1bd195f9c..b140bb59b 100644 --- a/apps/static/src/assets/stagnet1-tranches.json +++ b/apps/static/src/assets/stagnet1-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2022-11-26T13:48:10.000Z", "total_added": "100", "total_removed": "0", - "locked_amount": "42.34772006595636", + "locked_amount": "42.21141552511416", "deposits": [ { "amount": "100", @@ -242,7 +242,7 @@ "tranche_end": "2022-10-12T00:53:20.000Z", "total_added": "1100", "total_removed": "673.04388635", - "locked_amount": "328.586875317097936", + "locked_amount": "327.08752536783356", "deposits": [ { "amount": "1000", diff --git a/apps/static/src/assets/testnet-tranches.json b/apps/static/src/assets/testnet-tranches.json index 494f46b14..848fb082d 100644 --- a/apps/static/src/assets/testnet-tranches.json +++ b/apps/static/src/assets/testnet-tranches.json @@ -69,7 +69,7 @@ "tranche_end": "2022-10-12T00:53:20.000Z", "total_added": "1010.000000000000000001", "total_removed": "668.4622323651", - "locked_amount": "301.70249460933537760029871534119736176", + "locked_amount": "300.32585077371895640029735232749873164", "deposits": [ { "amount": "1000", From 8fb40a2d0cf17fd991aa2249482d708797351d95 Mon Sep 17 00:00:00 2001 From: mattrussell36 Date: Sat, 25 Jun 2022 18:04:53 +0000 Subject: [PATCH 22/31] chore: update tranches Signed-off-by: github-actions[bot] --- apps/static/src/assets/mainnet-tranches.json | 62 +++++++++++++------ apps/static/src/assets/stagnet1-tranches.json | 4 +- apps/static/src/assets/testnet-tranches.json | 2 +- 3 files changed, 45 insertions(+), 23 deletions(-) diff --git a/apps/static/src/assets/mainnet-tranches.json b/apps/static/src/assets/mainnet-tranches.json index 3f166a21f..da32b6ef1 100644 --- a/apps/static/src/assets/mainnet-tranches.json +++ b/apps/static/src/assets/mainnet-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "129999.45", "total_removed": "0", - "locked_amount": "125135.491715841699705585", + "locked_amount": "125076.22383669150105165", "deposits": [ { "amount": "129999.45", @@ -488,7 +488,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "97499.58", "total_removed": "0", - "locked_amount": "65968.462097822203561422", + "locked_amount": "65910.32582942854451235", "deposits": [ { "amount": "97499.58", @@ -521,7 +521,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "135173.4239508", "total_removed": "0", - "locked_amount": "90167.49870786346458279454272", + "locked_amount": "90088.03646577735287832879684", "deposits": [ { "amount": "135173.4239508", @@ -554,7 +554,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "32499.86", "total_removed": "0", - "locked_amount": "27751.792790148093061242", + "locked_amount": "27727.33586599453443719", "deposits": [ { "amount": "32499.86", @@ -587,7 +587,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "10833.29", "total_removed": "0", - "locked_amount": "9032.939256170343795749", + "locked_amount": "9024.978764682734447893", "deposits": [ { "amount": "10833.29", @@ -675,7 +675,7 @@ "tranche_end": "2022-11-01T00:00:00.000Z", "total_added": "22500", "total_removed": "0", - "locked_amount": "15712.88213315217375", + "locked_amount": "15682.331295289854", "deposits": [ { "amount": "15000", @@ -761,7 +761,7 @@ "tranche_end": "2023-06-02T00:00:00.000Z", "total_added": "1939928.38", "total_removed": "0", - "locked_amount": "1815010.058055673609877812", + "locked_amount": "1813682.201193335852203604", "deposits": [ { "amount": "1852091.69", @@ -1777,7 +1777,7 @@ "tranche_end": "2022-09-30T00:00:00.000Z", "total_added": "60916.66666633337", "total_removed": "18323.723696937179372649", - "locked_amount": "15072.4168891625501902368233482636", + "locked_amount": "15033.3930534948268401349319486664", "deposits": [ { "amount": "2833.333333", @@ -5217,7 +5217,7 @@ "tranche_end": "2022-09-03T00:00:00.000Z", "total_added": "19455.000000000000000003", "total_removed": "5052.45813105178", - "locked_amount": "3704.25642979452060480057120376712328768", + "locked_amount": "3690.93972412480906590056915030441400294", "deposits": [ { "amount": "75", @@ -14101,7 +14101,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "3732368.4671", "total_removed": "74162.9780761646031", - "locked_amount": "2813539.86457541017334277964", + "locked_amount": "2811499.41088865426532852261", "deposits": [ { "amount": "1998.95815", @@ -14813,8 +14813,8 @@ "tranche_start": "2022-06-05T00:00:00.000Z", "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "15788853.065470999700000001", - "total_removed": "6989.59530997724295", - "locked_amount": "15198109.6225936964233990941947241879805353", + "total_removed": "7347.632483877397875", + "locked_amount": "15190911.347251727063022262762429769288997", "deposits": [ { "amount": "16249.93", @@ -15323,6 +15323,11 @@ "user": "0x20CD77B9FC2f1fEDfb6F184E25f7127BFE991C8b", "tx": "0xf2208f6e0a6d6b7f5e52e128632ac52b8473b408421318b9a28460aa19feca9c" }, + { + "amount": "358.037173900154925", + "user": "0x20CD77B9FC2f1fEDfb6F184E25f7127BFE991C8b", + "tx": "0x2a92ef6c2eb5779e6219058a74210fcd461484d42d623dd06dcb9886683d7b50" + }, { "amount": "2446.31552516990115", "user": "0x20CD77B9FC2f1fEDfb6F184E25f7127BFE991C8b", @@ -15427,6 +15432,12 @@ "tranche_id": 2, "tx": "0xf2208f6e0a6d6b7f5e52e128632ac52b8473b408421318b9a28460aa19feca9c" }, + { + "amount": "358.037173900154925", + "user": "0x20CD77B9FC2f1fEDfb6F184E25f7127BFE991C8b", + "tranche_id": 2, + "tx": "0x2a92ef6c2eb5779e6219058a74210fcd461484d42d623dd06dcb9886683d7b50" + }, { "amount": "2446.31552516990115", "user": "0x20CD77B9FC2f1fEDfb6F184E25f7127BFE991C8b", @@ -15471,8 +15482,8 @@ } ], "total_tokens": "194999.1675", - "withdrawn_tokens": "6989.59530997724295", - "remaining_tokens": "188009.57219002275705" + "withdrawn_tokens": "7347.632483877397875", + "remaining_tokens": "187651.535016122602125" }, { "address": "0x89051CAb67Bc7F8CC44F7e270c6EDaf1EC57676c", @@ -16876,8 +16887,8 @@ "tranche_start": "2021-11-05T00:00:00.000Z", "tranche_end": "2023-05-05T00:00:00.000Z", "total_added": "14597706.0446472999", - "total_removed": "2111906.584458928859990382", - "locked_amount": "8381555.21023446802429182215306625", + "total_removed": "2112564.258846902216588382", + "locked_amount": "8374875.61107306438515505658905078", "deposits": [ { "amount": "129284.449", @@ -17111,6 +17122,11 @@ "user": "0x66827bCD635f2bB1779d68c46aEB16541bCA6ba8", "tx": "0xd950c34bf5f503998bddc8f9fdeb7cdc4ae1e76c5e9b1564795c306c2e8cad63" }, + { + "amount": "657.674387973356598", + "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", + "tx": "0xd0f13de38f21ba54433885d7e3e3db7438b9bcc92dbd52a75e0b7f772018ab1c" + }, { "amount": "652.48254356494551875", "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", @@ -18711,6 +18727,12 @@ "tranche_id": 3, "tx": "0xcb8ecc71a9024bab7454a33f6adf7bfcd0f25b3dc1919f92ca362a25b71f2a4d" }, + { + "amount": "657.674387973356598", + "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", + "tranche_id": 3, + "tx": "0xd0f13de38f21ba54433885d7e3e3db7438b9bcc92dbd52a75e0b7f772018ab1c" + }, { "amount": "652.48254356494551875", "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", @@ -19949,8 +19971,8 @@ } ], "total_tokens": "359123.469575", - "withdrawn_tokens": "152357.71935946585119525", - "remaining_tokens": "206765.75021553414880475" + "withdrawn_tokens": "153015.39374743920779325", + "remaining_tokens": "206108.07582756079220675" }, { "address": "0xBdd412797c1B78535Afc5F71503b91fAbD0160fB", @@ -20947,7 +20969,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "5778205.3912159303", "total_removed": "1390546.591547348229906227", - "locked_amount": "2994699.75124732873280622934348863", + "locked_amount": "2992060.60122077879577310939295026", "deposits": [ { "amount": "552496.6455", @@ -22070,7 +22092,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "472355.6199999996", "total_removed": "11.163032724", - "locked_amount": "445821.47442149508818133870319632", + "locked_amount": "445498.15287109805463494173110096", "deposits": [ { "amount": "3000", diff --git a/apps/static/src/assets/stagnet1-tranches.json b/apps/static/src/assets/stagnet1-tranches.json index b140bb59b..a632f8844 100644 --- a/apps/static/src/assets/stagnet1-tranches.json +++ b/apps/static/src/assets/stagnet1-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2022-11-26T13:48:10.000Z", "total_added": "100", "total_removed": "0", - "locked_amount": "42.21141552511416", + "locked_amount": "42.142944571283614", "deposits": [ { "amount": "100", @@ -242,7 +242,7 @@ "tranche_end": "2022-10-12T00:53:20.000Z", "total_added": "1100", "total_removed": "673.04388635", - "locked_amount": "327.08752536783356", + "locked_amount": "326.334344875697576", "deposits": [ { "amount": "1000", diff --git a/apps/static/src/assets/testnet-tranches.json b/apps/static/src/assets/testnet-tranches.json index 848fb082d..fd29dab5f 100644 --- a/apps/static/src/assets/testnet-tranches.json +++ b/apps/static/src/assets/testnet-tranches.json @@ -69,7 +69,7 @@ "tranche_end": "2022-10-12T00:53:20.000Z", "total_added": "1010.000000000000000001", "total_removed": "668.4622323651", - "locked_amount": "300.32585077371895640029735232749873164", + "locked_amount": "299.63426211314050160029666758625063416", "deposits": [ { "amount": "1000", From abbe1fad48160b1b49749be0f5ff9290ed2fd0c5 Mon Sep 17 00:00:00 2001 From: mattrussell36 Date: Sun, 26 Jun 2022 00:09:50 +0000 Subject: [PATCH 23/31] chore: update tranches Signed-off-by: github-actions[bot] --- apps/static/src/assets/mainnet-tranches.json | 48 ++++++++++++------- apps/static/src/assets/stagnet1-tranches.json | 4 +- apps/static/src/assets/testnet-tranches.json | 2 +- 3 files changed, 33 insertions(+), 21 deletions(-) diff --git a/apps/static/src/assets/mainnet-tranches.json b/apps/static/src/assets/mainnet-tranches.json index da32b6ef1..4e343c35c 100644 --- a/apps/static/src/assets/mainnet-tranches.json +++ b/apps/static/src/assets/mainnet-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "129999.45", "total_removed": "0", - "locked_amount": "125076.22383669150105165", + "locked_amount": "125016.09931071952574646", "deposits": [ { "amount": "129999.45", @@ -488,7 +488,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "97499.58", "total_removed": "0", - "locked_amount": "65910.32582942854451235", + "locked_amount": "65851.34927030297147805", "deposits": [ { "amount": "97499.58", @@ -521,7 +521,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "135173.4239508", "total_removed": "0", - "locked_amount": "90088.03646577735287832879684", + "locked_amount": "90007.42569133089433605473016", "deposits": [ { "amount": "135173.4239508", @@ -554,7 +554,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "32499.86", "total_removed": "0", - "locked_amount": "27727.33586599453443719", + "locked_amount": "27702.525446041107010606", "deposits": [ { "amount": "32499.86", @@ -587,7 +587,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "10833.29", "total_removed": "0", - "locked_amount": "9024.978764682734447893", + "locked_amount": "9016.903213742510501454", "deposits": [ { "amount": "10833.29", @@ -675,7 +675,7 @@ "tranche_end": "2022-11-01T00:00:00.000Z", "total_added": "22500", "total_removed": "0", - "locked_amount": "15682.331295289854", + "locked_amount": "15651.3388813405785", "deposits": [ { "amount": "15000", @@ -761,7 +761,7 @@ "tranche_end": "2023-06-02T00:00:00.000Z", "total_added": "1939928.38", "total_removed": "0", - "locked_amount": "1813682.201193335852203604", + "locked_amount": "1812335.151736675482712614", "deposits": [ { "amount": "1852091.69", @@ -1777,7 +1777,7 @@ "tranche_end": "2022-09-30T00:00:00.000Z", "total_added": "60916.66666633337", "total_removed": "18323.723696937179372649", - "locked_amount": "15033.3930534948268401349319486664", + "locked_amount": "14993.8051746172324244466207828978", "deposits": [ { "amount": "2833.333333", @@ -5217,7 +5217,7 @@ "tranche_end": "2022-09-03T00:00:00.000Z", "total_added": "19455.000000000000000003", "total_removed": "5052.45813105178", - "locked_amount": "3690.93972412480906590056915030441400294", + "locked_amount": "3677.43054128614978935056706716133942171", "deposits": [ { "amount": "75", @@ -14101,7 +14101,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "3732368.4671", "total_removed": "74162.9780761646031", - "locked_amount": "2811499.41088865426532852261", + "locked_amount": "2809429.46486657565008661945", "deposits": [ { "amount": "1998.95815", @@ -14814,7 +14814,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "15788853.065470999700000001", "total_removed": "7347.632483877397875", - "locked_amount": "15190911.347251727063022262762429769288997", + "locked_amount": "15183609.0293865159945512124268735309786428", "deposits": [ { "amount": "16249.93", @@ -16888,7 +16888,7 @@ "tranche_end": "2023-05-05T00:00:00.000Z", "total_added": "14597706.0446472999", "total_removed": "2112564.258846902216588382", - "locked_amount": "8374875.61107306438515505658905078", + "locked_amount": "8368099.46623676165170048908795669", "deposits": [ { "amount": "129284.449", @@ -20969,7 +20969,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "5778205.3912159303", "total_removed": "1390546.591547348229906227", - "locked_amount": "2992060.60122077879577310939295026", + "locked_amount": "2989383.30541417266769526480069356", "deposits": [ { "amount": "552496.6455", @@ -22091,8 +22091,8 @@ "tranche_start": "2022-06-05T00:00:00.000Z", "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "472355.6199999996", - "total_removed": "11.163032724", - "locked_amount": "445498.15287109805463494173110096", + "total_removed": "34.173053016", + "locked_amount": "445170.15809158388525724614104512", "deposits": [ { "amount": "3000", @@ -28715,6 +28715,11 @@ "amount": "11.163032724", "user": "0xF5037DDA4A660d67560200f45380FF8364e35540", "tx": "0x0db96c68606a35c59786e3b1ff4f8e939a56af133709dd154718eb03138fe227" + }, + { + "amount": "23.010020292", + "user": "0xD27929d68ac0E5fd5C919A5eb5968C1D06D3Fb83", + "tx": "0x8daf320262d0384cf5f9c290cc33721587beabd5e93026b3e9b76dc3fcd6659c" } ], "users": [ @@ -47229,10 +47234,17 @@ "tx": "0xe32a466fc780a0fb3fd84a804f622931ebfaf3f428bff0dc6d141270410e75f8" } ], - "withdrawals": [], + "withdrawals": [ + { + "amount": "23.010020292", + "user": "0xD27929d68ac0E5fd5C919A5eb5968C1D06D3Fb83", + "tranche_id": 5, + "tx": "0x8daf320262d0384cf5f9c290cc33721587beabd5e93026b3e9b76dc3fcd6659c" + } + ], "total_tokens": "400", - "withdrawn_tokens": "0", - "remaining_tokens": "400" + "withdrawn_tokens": "23.010020292", + "remaining_tokens": "376.989979708" }, { "address": "0xF5037DDA4A660d67560200f45380FF8364e35540", diff --git a/apps/static/src/assets/stagnet1-tranches.json b/apps/static/src/assets/stagnet1-tranches.json index a632f8844..55717e3f1 100644 --- a/apps/static/src/assets/stagnet1-tranches.json +++ b/apps/static/src/assets/stagnet1-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2022-11-26T13:48:10.000Z", "total_added": "100", "total_removed": "0", - "locked_amount": "42.142944571283614", + "locked_amount": "42.07350646879756", "deposits": [ { "amount": "100", @@ -242,7 +242,7 @@ "tranche_end": "2022-10-12T00:53:20.000Z", "total_added": "1100", "total_removed": "673.04388635", - "locked_amount": "326.334344875697576", + "locked_amount": "325.570525748351125", "deposits": [ { "amount": "1000", diff --git a/apps/static/src/assets/testnet-tranches.json b/apps/static/src/assets/testnet-tranches.json index fd29dab5f..0db9dce53 100644 --- a/apps/static/src/assets/testnet-tranches.json +++ b/apps/static/src/assets/testnet-tranches.json @@ -69,7 +69,7 @@ "tranche_end": "2022-10-12T00:53:20.000Z", "total_added": "1010.000000000000000001", "total_removed": "668.4622323651", - "locked_amount": "299.63426211314050160029666758625063416", + "locked_amount": "298.93293727803148750029597320522577375", "deposits": [ { "amount": "1000", From e26a182a4b24ccce47e4b70c3ae10094c74057d2 Mon Sep 17 00:00:00 2001 From: mattrussell36 Date: Sun, 26 Jun 2022 06:04:31 +0000 Subject: [PATCH 24/31] chore: update tranches Signed-off-by: github-actions[bot] --- apps/static/src/assets/mainnet-tranches.json | 45 ++++++++++++------- apps/static/src/assets/stagnet1-tranches.json | 4 +- apps/static/src/assets/testnet-tranches.json | 2 +- 3 files changed, 31 insertions(+), 20 deletions(-) diff --git a/apps/static/src/assets/mainnet-tranches.json b/apps/static/src/assets/mainnet-tranches.json index 4e343c35c..82169da2f 100644 --- a/apps/static/src/assets/mainnet-tranches.json +++ b/apps/static/src/assets/mainnet-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "129999.45", "total_removed": "0", - "locked_amount": "125016.09931071952574646", + "locked_amount": "124957.66885875088395027", "deposits": [ { "amount": "129999.45", @@ -488,7 +488,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "97499.58", "total_removed": "0", - "locked_amount": "65851.34927030297147805", + "locked_amount": "65794.034439964537044396", "deposits": [ { "amount": "97499.58", @@ -521,7 +521,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "135173.4239508", "total_removed": "0", - "locked_amount": "90007.42569133089433605473016", + "locked_amount": "89929.08621325090114320546852", "deposits": [ { "amount": "135173.4239508", @@ -554,7 +554,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "32499.86", "total_removed": "0", - "locked_amount": "27702.525446041107010606", + "locked_amount": "27678.414086691906874608", "deposits": [ { "amount": "32499.86", @@ -587,7 +587,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "10833.29", "total_removed": "0", - "locked_amount": "9016.903213742510501454", + "locked_amount": "9009.055200245438391794", "deposits": [ { "amount": "10833.29", @@ -675,7 +675,7 @@ "tranche_end": "2022-11-01T00:00:00.000Z", "total_added": "22500", "total_removed": "0", - "locked_amount": "15651.3388813405785", + "locked_amount": "15621.21971240942025", "deposits": [ { "amount": "15000", @@ -761,7 +761,7 @@ "tranche_end": "2023-06-02T00:00:00.000Z", "total_added": "1939928.38", "total_removed": "0", - "locked_amount": "1812335.151736675482712614", + "locked_amount": "1811026.056865582945954982", "deposits": [ { "amount": "1852091.69", @@ -1777,7 +1777,7 @@ "tranche_end": "2022-09-30T00:00:00.000Z", "total_added": "60916.66666633337", "total_removed": "18323.723696937179372649", - "locked_amount": "14993.8051746172324244466207828978", + "locked_amount": "14955.3327273437821141701290038042", "deposits": [ { "amount": "2833.333333", @@ -5216,8 +5216,8 @@ "tranche_start": "2021-09-03T00:00:00.000Z", "tranche_end": "2022-09-03T00:00:00.000Z", "total_added": "19455.000000000000000003", - "total_removed": "5052.45813105178", - "locked_amount": "3677.43054128614978935056706716133942171", + "total_removed": "5056.88782409978", + "locked_amount": "3664.30199438736694275056504271308980215", "deposits": [ { "amount": "75", @@ -8271,6 +8271,11 @@ } ], "withdrawals": [ + { + "amount": "4.429693048", + "user": "0xc5467213593778E528f0eB8117cc7AFBC5b7491b", + "tx": "0xfbca378f6263977884e6eebc653c8d68f39b6c8eb6ce2f6668767ed63bfcc55b" + }, { "amount": "8.25227042", "user": "0xc5467213593778E528f0eB8117cc7AFBC5b7491b", @@ -14019,6 +14024,12 @@ } ], "withdrawals": [ + { + "amount": "4.429693048", + "user": "0xc5467213593778E528f0eB8117cc7AFBC5b7491b", + "tranche_id": 11, + "tx": "0xfbca378f6263977884e6eebc653c8d68f39b6c8eb6ce2f6668767ed63bfcc55b" + }, { "amount": "8.25227042", "user": "0xc5467213593778E528f0eB8117cc7AFBC5b7491b", @@ -14075,8 +14086,8 @@ } ], "total_tokens": "200", - "withdrawn_tokens": "157.871905124", - "remaining_tokens": "42.128094876" + "withdrawn_tokens": "162.301598172", + "remaining_tokens": "37.698401828" }, { "address": "0x1775cc97E5c05Fde8b571ef75CA52d0A9ff19025", @@ -14101,7 +14112,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "3732368.4671", "total_removed": "74162.9780761646031", - "locked_amount": "2809429.46486657565008661945", + "locked_amount": "2807417.84182813210562865742", "deposits": [ { "amount": "1998.95815", @@ -14814,7 +14825,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "15788853.065470999700000001", "total_removed": "7347.632483877397875", - "locked_amount": "15183609.0293865159945512124268735309786428", + "locked_amount": "15176512.4622804094223079476932443240619086", "deposits": [ { "amount": "16249.93", @@ -16888,7 +16899,7 @@ "tranche_end": "2023-05-05T00:00:00.000Z", "total_added": "14597706.0446472999", "total_removed": "2112564.258846902216588382", - "locked_amount": "8368099.46623676165170048908795669", + "locked_amount": "8361514.24666139796797670407507634", "deposits": [ { "amount": "129284.449", @@ -20969,7 +20980,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "5778205.3912159303", "total_removed": "1390546.591547348229906227", - "locked_amount": "2989383.30541417266769526480069356", + "locked_amount": "2986781.44533286912604770804053744", "deposits": [ { "amount": "552496.6455", @@ -22092,7 +22103,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "472355.6199999996", "total_removed": "34.173053016", - "locked_amount": "445170.15809158388525724614104512", + "locked_amount": "444851.40492221486039608057432776", "deposits": [ { "amount": "3000", diff --git a/apps/static/src/assets/stagnet1-tranches.json b/apps/static/src/assets/stagnet1-tranches.json index 55717e3f1..1f744f9eb 100644 --- a/apps/static/src/assets/stagnet1-tranches.json +++ b/apps/static/src/assets/stagnet1-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2022-11-26T13:48:10.000Z", "total_added": "100", "total_removed": "0", - "locked_amount": "42.07350646879756", + "locked_amount": "42.006040715372905", "deposits": [ { "amount": "100", @@ -242,7 +242,7 @@ "tranche_end": "2022-10-12T00:53:20.000Z", "total_added": "1100", "total_removed": "673.04388635", - "locked_amount": "325.570525748351125", + "locked_amount": "324.82840246067992", "deposits": [ { "amount": "1000", diff --git a/apps/static/src/assets/testnet-tranches.json b/apps/static/src/assets/testnet-tranches.json index 0db9dce53..309635b34 100644 --- a/apps/static/src/assets/testnet-tranches.json +++ b/apps/static/src/assets/testnet-tranches.json @@ -69,7 +69,7 @@ "tranche_end": "2022-10-12T00:53:20.000Z", "total_added": "1010.000000000000000001", "total_removed": "668.4622323651", - "locked_amount": "298.93293727803148750029597320522577375", + "locked_amount": "298.2515651953322910002952985794013191", "deposits": [ { "amount": "1000", From d927359e0c23edd58b0d6120af4b9b472207a5a2 Mon Sep 17 00:00:00 2001 From: mattrussell36 Date: Sun, 26 Jun 2022 12:04:46 +0000 Subject: [PATCH 25/31] chore: update tranches Signed-off-by: github-actions[bot] --- apps/static/src/assets/mainnet-tranches.json | 136 +++++++++++++----- apps/static/src/assets/stagnet1-tranches.json | 4 +- apps/static/src/assets/testnet-tranches.json | 2 +- 3 files changed, 106 insertions(+), 36 deletions(-) diff --git a/apps/static/src/assets/mainnet-tranches.json b/apps/static/src/assets/mainnet-tranches.json index 82169da2f..2ee107055 100644 --- a/apps/static/src/assets/mainnet-tranches.json +++ b/apps/static/src/assets/mainnet-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "129999.45", "total_removed": "0", - "locked_amount": "124957.66885875088395027", + "locked_amount": "124898.32410103976712246", "deposits": [ { "amount": "129999.45", @@ -488,7 +488,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "97499.58", "total_removed": "0", - "locked_amount": "65794.034439964537044396", + "locked_amount": "65735.822760864159515916", "deposits": [ { "amount": "97499.58", @@ -521,7 +521,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "135173.4239508", "total_removed": "0", - "locked_amount": "89929.08621325090114320546852", + "locked_amount": "89849.52089774783558194519116", "deposits": [ { "amount": "135173.4239508", @@ -554,7 +554,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "32499.86", "total_removed": "0", - "locked_amount": "27678.414086691906874608", + "locked_amount": "27653.92543855631024263", "deposits": [ { "amount": "32499.86", @@ -587,7 +587,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "10833.29", "total_removed": "0", - "locked_amount": "9009.055200245438391794", + "locked_amount": "9001.084382909517435732", "deposits": [ { "amount": "10833.29", @@ -675,7 +675,7 @@ "tranche_end": "2022-11-01T00:00:00.000Z", "total_added": "22500", "total_removed": "0", - "locked_amount": "15621.21971240942025", + "locked_amount": "15590.62924592391225", "deposits": [ { "amount": "15000", @@ -761,7 +761,7 @@ "tranche_end": "2023-06-02T00:00:00.000Z", "total_added": "1939928.38", "total_removed": "0", - "locked_amount": "1811026.056865582945954982", + "locked_amount": "1809696.477590934266730084", "deposits": [ { "amount": "1852091.69", @@ -1777,7 +1777,7 @@ "tranche_end": "2022-09-30T00:00:00.000Z", "total_added": "60916.66666633337", "total_removed": "18323.723696937179372649", - "locked_amount": "14955.3327273437821141701290038042", + "locked_amount": "14916.2582724136429035241571515215", "deposits": [ { "amount": "2833.333333", @@ -5217,7 +5217,7 @@ "tranche_end": "2022-09-03T00:00:00.000Z", "total_added": "19455.000000000000000003", "total_removed": "5056.88782409978", - "locked_amount": "3664.30199438736694275056504271308980215", + "locked_amount": "3650.96801512557066225056298658675799085", "deposits": [ { "amount": "75", @@ -14112,7 +14112,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "3732368.4671", "total_removed": "74162.9780761646031", - "locked_amount": "2807417.84182813210562865742", + "locked_amount": "2805374.74139333407645530245", "deposits": [ { "amount": "1998.95815", @@ -14824,8 +14824,8 @@ "tranche_start": "2022-06-05T00:00:00.000Z", "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "15788853.065470999700000001", - "total_removed": "7347.632483877397875", - "locked_amount": "15176512.4622804094223079476932443240619086", + "total_removed": "7574.446194553191375", + "locked_amount": "15169304.8497889196454325878012635639943228", "deposits": [ { "amount": "16249.93", @@ -15339,6 +15339,11 @@ "user": "0x20CD77B9FC2f1fEDfb6F184E25f7127BFE991C8b", "tx": "0x2a92ef6c2eb5779e6219058a74210fcd461484d42d623dd06dcb9886683d7b50" }, + { + "amount": "226.8137106757935", + "user": "0x20CD77B9FC2f1fEDfb6F184E25f7127BFE991C8b", + "tx": "0xcb5d0a1e6fdae5bed77fe2f8a29df14985d9f21d0e681416c618104b530fab36" + }, { "amount": "2446.31552516990115", "user": "0x20CD77B9FC2f1fEDfb6F184E25f7127BFE991C8b", @@ -15449,6 +15454,12 @@ "tranche_id": 2, "tx": "0x2a92ef6c2eb5779e6219058a74210fcd461484d42d623dd06dcb9886683d7b50" }, + { + "amount": "226.8137106757935", + "user": "0x20CD77B9FC2f1fEDfb6F184E25f7127BFE991C8b", + "tranche_id": 2, + "tx": "0xcb5d0a1e6fdae5bed77fe2f8a29df14985d9f21d0e681416c618104b530fab36" + }, { "amount": "2446.31552516990115", "user": "0x20CD77B9FC2f1fEDfb6F184E25f7127BFE991C8b", @@ -15493,8 +15504,8 @@ } ], "total_tokens": "194999.1675", - "withdrawn_tokens": "7347.632483877397875", - "remaining_tokens": "187651.535016122602125" + "withdrawn_tokens": "7574.446194553191375", + "remaining_tokens": "187424.721305446808625" }, { "address": "0x89051CAb67Bc7F8CC44F7e270c6EDaf1EC57676c", @@ -16898,8 +16909,8 @@ "tranche_start": "2021-11-05T00:00:00.000Z", "tranche_end": "2023-05-05T00:00:00.000Z", "total_added": "14597706.0446472999", - "total_removed": "2112564.258846902216588382", - "locked_amount": "8361514.24666139796797670407507634", + "total_removed": "2112989.023385471584318882", + "locked_amount": "8354825.9831445533939088395730969", "deposits": [ { "amount": "129284.449", @@ -17138,6 +17149,11 @@ "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", "tx": "0xd0f13de38f21ba54433885d7e3e3db7438b9bcc92dbd52a75e0b7f772018ab1c" }, + { + "amount": "424.7645385693677305", + "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", + "tx": "0x77d249279d8ea7554d19c557311687d57884b5e08537ac9574897ca58a13d880" + }, { "amount": "652.48254356494551875", "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", @@ -18744,6 +18760,12 @@ "tranche_id": 3, "tx": "0xd0f13de38f21ba54433885d7e3e3db7438b9bcc92dbd52a75e0b7f772018ab1c" }, + { + "amount": "424.7645385693677305", + "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", + "tranche_id": 3, + "tx": "0x77d249279d8ea7554d19c557311687d57884b5e08537ac9574897ca58a13d880" + }, { "amount": "652.48254356494551875", "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", @@ -19982,8 +20004,8 @@ } ], "total_tokens": "359123.469575", - "withdrawn_tokens": "153015.39374743920779325", - "remaining_tokens": "206108.07582756079220675" + "withdrawn_tokens": "153440.15828600857552375", + "remaining_tokens": "205683.31128899142447625" }, { "address": "0xBdd412797c1B78535Afc5F71503b91fAbD0160fB", @@ -20980,7 +21002,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "5778205.3912159303", "total_removed": "1390546.591547348229906227", - "locked_amount": "2986781.44533286912604770804053744", + "locked_amount": "2984138.87196708347330117701421293", "deposits": [ { "amount": "552496.6455", @@ -22103,7 +22125,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "472355.6199999996", "total_removed": "34.173053016", - "locked_amount": "444851.40492221486039608057432776", + "locked_amount": "444527.6490011627163277014358194", "deposits": [ { "amount": "3000", @@ -47781,7 +47803,7 @@ "tranche_start": "2021-12-05T00:00:00.000Z", "tranche_end": "2022-06-05T00:00:00.000Z", "total_added": "171288.42", - "total_removed": "31035.4825162206377", + "total_removed": "32035.4825162206377", "locked_amount": "0", "deposits": [ { @@ -52056,6 +52078,26 @@ "user": "0x4796314cC5bDa80Ee2E8b119004b1fc72Cfb1783", "tx": "0xbfdbd5e3712968f2726e8dba1f226944cfa637f8738f25c3a5b12a1c6a8e7197" }, + { + "amount": "250", + "user": "0xC26B3b40DC383d97B69Eedcd4E78a9e4eEb73499", + "tx": "0x2c9f57d5e697c29b67034cea8738939ec13b20b5a7d7fcb995fe83f16b4abf75" + }, + { + "amount": "250", + "user": "0x9f6b5A46593b991dC78a0e1907a07517A1F80CC2", + "tx": "0x55b21517cf5fd148e596d9e4b63964ab1df82534fd76b6d9dc9d7cfd00971da0" + }, + { + "amount": "250", + "user": "0x696971413b8Ae5342277AfeC16591271648B4FfF", + "tx": "0xa55b22bf465927c195b424ad7ea893c1c497da34290d5261be205c760fc11cf5" + }, + { + "amount": "250", + "user": "0x8FC36B7695965Bc39BCB8a3679529f1825e472aE", + "tx": "0x7072667bf81811acda07177c1ace2edcfe19ce68711fa349ad94c1f8aa3d0b25" + }, { "amount": "183.6335597275", "user": "0x690Fc36d52eD3f198F0eBDea1557333a1766f786", @@ -61970,10 +62012,17 @@ "tx": "0x716a7be06da5a7a3d8038907974887a31805ea8eeab5d130cba528e4d2094d9f" } ], - "withdrawals": [], + "withdrawals": [ + { + "amount": "250", + "user": "0x9f6b5A46593b991dC78a0e1907a07517A1F80CC2", + "tranche_id": 6, + "tx": "0x55b21517cf5fd148e596d9e4b63964ab1df82534fd76b6d9dc9d7cfd00971da0" + } + ], "total_tokens": "250", - "withdrawn_tokens": "0", - "remaining_tokens": "250" + "withdrawn_tokens": "250", + "remaining_tokens": "0" }, { "address": "0x758E9AA35F2feA08aEc1613A0F0d9Ebe4d374152", @@ -62025,10 +62074,17 @@ "tx": "0x716a7be06da5a7a3d8038907974887a31805ea8eeab5d130cba528e4d2094d9f" } ], - "withdrawals": [], + "withdrawals": [ + { + "amount": "250", + "user": "0x8FC36B7695965Bc39BCB8a3679529f1825e472aE", + "tranche_id": 6, + "tx": "0x7072667bf81811acda07177c1ace2edcfe19ce68711fa349ad94c1f8aa3d0b25" + } + ], "total_tokens": "250", - "withdrawn_tokens": "0", - "remaining_tokens": "250" + "withdrawn_tokens": "250", + "remaining_tokens": "0" }, { "address": "0x8186CDe8f7A2f95b50f847e2a3301c28bB61Fa8A", @@ -64039,10 +64095,17 @@ "tx": "0xd23813c30e93f3867eaa257b7aef7052a050b1ee1c1a90102a3f40c5d989fe82" } ], - "withdrawals": [], + "withdrawals": [ + { + "amount": "250", + "user": "0x696971413b8Ae5342277AfeC16591271648B4FfF", + "tranche_id": 6, + "tx": "0xa55b22bf465927c195b424ad7ea893c1c497da34290d5261be205c760fc11cf5" + } + ], "total_tokens": "250", - "withdrawn_tokens": "0", - "remaining_tokens": "250" + "withdrawn_tokens": "250", + "remaining_tokens": "0" }, { "address": "0xcbEca0abcc675A0F977c4Eb9a45bB4153C0246C3", @@ -64076,10 +64139,17 @@ "tx": "0xd23813c30e93f3867eaa257b7aef7052a050b1ee1c1a90102a3f40c5d989fe82" } ], - "withdrawals": [], + "withdrawals": [ + { + "amount": "250", + "user": "0xC26B3b40DC383d97B69Eedcd4E78a9e4eEb73499", + "tranche_id": 6, + "tx": "0x2c9f57d5e697c29b67034cea8738939ec13b20b5a7d7fcb995fe83f16b4abf75" + } + ], "total_tokens": "250", - "withdrawn_tokens": "0", - "remaining_tokens": "250" + "withdrawn_tokens": "250", + "remaining_tokens": "0" }, { "address": "0xd866082E19c9E36bcA4fA649d530166303B656f2", diff --git a/apps/static/src/assets/stagnet1-tranches.json b/apps/static/src/assets/stagnet1-tranches.json index 1f744f9eb..0624ca780 100644 --- a/apps/static/src/assets/stagnet1-tranches.json +++ b/apps/static/src/assets/stagnet1-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2022-11-26T13:48:10.000Z", "total_added": "100", "total_removed": "0", - "locked_amount": "42.006040715372905", + "locked_amount": "41.937503170979196", "deposits": [ { "amount": "100", @@ -242,7 +242,7 @@ "tranche_end": "2022-10-12T00:53:20.000Z", "total_added": "1100", "total_removed": "673.04388635", - "locked_amount": "324.82840246067992", + "locked_amount": "324.07448947234911", "deposits": [ { "amount": "1000", diff --git a/apps/static/src/assets/testnet-tranches.json b/apps/static/src/assets/testnet-tranches.json index 309635b34..5aa71e566 100644 --- a/apps/static/src/assets/testnet-tranches.json +++ b/apps/static/src/assets/testnet-tranches.json @@ -69,7 +69,7 @@ "tranche_end": "2022-10-12T00:53:20.000Z", "total_added": "1010.000000000000000001", "total_removed": "668.4622323651", - "locked_amount": "298.2515651953322910002952985794013191", + "locked_amount": "297.5593039700660010002946131722475901", "deposits": [ { "amount": "1000", From 90783fc0c8c884c872f73915cdc52d11d2d61111 Mon Sep 17 00:00:00 2001 From: mattrussell36 Date: Sun, 26 Jun 2022 18:05:02 +0000 Subject: [PATCH 26/31] chore: update tranches Signed-off-by: github-actions[bot] --- apps/static/src/assets/mainnet-tranches.json | 28 +++++++++---------- apps/static/src/assets/stagnet1-tranches.json | 4 +-- apps/static/src/assets/testnet-tranches.json | 2 +- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/apps/static/src/assets/mainnet-tranches.json b/apps/static/src/assets/mainnet-tranches.json index 2ee107055..480d18fec 100644 --- a/apps/static/src/assets/mainnet-tranches.json +++ b/apps/static/src/assets/mainnet-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "129999.45", "total_removed": "0", - "locked_amount": "124898.32410103976712246", + "locked_amount": "124838.97110633997724032", "deposits": [ { "amount": "129999.45", @@ -488,7 +488,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "97499.58", "total_removed": "0", - "locked_amount": "65735.822760864159515916", + "locked_amount": "65677.603002045210578904", "deposits": [ { "amount": "97499.58", @@ -521,7 +521,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "135173.4239508", "total_removed": "0", - "locked_amount": "89849.52089774783558194519116", + "locked_amount": "89769.9445386643690728767616", "deposits": [ { "amount": "135173.4239508", @@ -554,7 +554,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "32499.86", "total_removed": "0", - "locked_amount": "27653.92543855631024263", + "locked_amount": "27629.433391422634511604", "deposits": [ { "amount": "32499.86", @@ -587,7 +587,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "10833.29", "total_removed": "0", - "locked_amount": "9001.084382909517435732", + "locked_amount": "8993.1124592327060276", "deposits": [ { "amount": "10833.29", @@ -675,7 +675,7 @@ "tranche_end": "2022-11-01T00:00:00.000Z", "total_added": "22500", "total_removed": "0", - "locked_amount": "15590.62924592391225", + "locked_amount": "15560.0345335144905", "deposits": [ { "amount": "15000", @@ -761,7 +761,7 @@ "tranche_end": "2023-06-02T00:00:00.000Z", "total_added": "1939928.38", "total_removed": "0", - "locked_amount": "1809696.477590934266730084", + "locked_amount": "1808366.713772109507407144", "deposits": [ { "amount": "1852091.69", @@ -1777,7 +1777,7 @@ "tranche_end": "2022-09-30T00:00:00.000Z", "total_added": "60916.66666633337", "total_removed": "18323.723696937179372649", - "locked_amount": "14916.2582724136429035241571515215", + "locked_amount": "14877.1783939910913983853672134685", "deposits": [ { "amount": "2833.333333", @@ -5217,7 +5217,7 @@ "tranche_end": "2022-09-03T00:00:00.000Z", "total_added": "19455.000000000000000003", "total_removed": "5056.88782409978", - "locked_amount": "3650.96801512557066225056298658675799085", + "locked_amount": "3637.63218512176566360056093017503805176", "deposits": [ { "amount": "75", @@ -14112,7 +14112,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "3732368.4671", "total_removed": "74162.9780761646031", - "locked_amount": "2805374.74139333407645530245", + "locked_amount": "2803331.35737838918369347895", "deposits": [ { "amount": "1998.95815", @@ -14825,7 +14825,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "15788853.065470999700000001", "total_removed": "7574.446194553191375", - "locked_amount": "15169304.8497889196454325878012635639943228", + "locked_amount": "15162096.2368885522863539160803985605650176", "deposits": [ { "amount": "16249.93", @@ -16910,7 +16910,7 @@ "tranche_end": "2023-05-05T00:00:00.000Z", "total_added": "14597706.0446472999", "total_removed": "2112989.023385471584318882", - "locked_amount": "8354825.9831445533939088395730969", + "locked_amount": "8348136.79130391162894730748721882", "deposits": [ { "amount": "129284.449", @@ -21002,7 +21002,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "5778205.3912159303", "total_removed": "1390546.591547348229906227", - "locked_amount": "2984138.87196708347330117701421293", + "locked_amount": "2981495.9318149507652721482230301", "deposits": [ { "amount": "552496.6455", @@ -22125,7 +22125,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "472355.6199999996", "total_removed": "34.173053016", - "locked_amount": "444527.6490011627163277014358194", + "locked_amount": "444203.8781018121592638569812278", "deposits": [ { "amount": "3000", diff --git a/apps/static/src/assets/stagnet1-tranches.json b/apps/static/src/assets/stagnet1-tranches.json index 0624ca780..0f4224115 100644 --- a/apps/static/src/assets/stagnet1-tranches.json +++ b/apps/static/src/assets/stagnet1-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2022-11-26T13:48:10.000Z", "total_added": "100", "total_removed": "0", - "locked_amount": "41.937503170979196", + "locked_amount": "41.86895611364789", "deposits": [ { "amount": "100", @@ -242,7 +242,7 @@ "tranche_end": "2022-10-12T00:53:20.000Z", "total_added": "1100", "total_removed": "673.04388635", - "locked_amount": "324.07448947234911", + "locked_amount": "323.320471841704766", "deposits": [ { "amount": "1000", diff --git a/apps/static/src/assets/testnet-tranches.json b/apps/static/src/assets/testnet-tranches.json index 5aa71e566..938dfb0a0 100644 --- a/apps/static/src/assets/testnet-tranches.json +++ b/apps/static/src/assets/testnet-tranches.json @@ -69,7 +69,7 @@ "tranche_end": "2022-10-12T00:53:20.000Z", "total_added": "1010.000000000000000001", "total_removed": "668.4622323651", - "locked_amount": "297.5593039700660010002946131722475901", + "locked_amount": "296.86701071790965970029392773338406897", "deposits": [ { "amount": "1000", From 04bb0b2b452cbff5f86448119db72dcfbfe89555 Mon Sep 17 00:00:00 2001 From: mattrussell36 Date: Mon, 27 Jun 2022 00:09:15 +0000 Subject: [PATCH 27/31] chore: update tranches Signed-off-by: github-actions[bot] --- apps/static/src/assets/mainnet-tranches.json | 45 ++++++++++++------- apps/static/src/assets/stagnet1-tranches.json | 4 +- apps/static/src/assets/testnet-tranches.json | 2 +- 3 files changed, 31 insertions(+), 20 deletions(-) diff --git a/apps/static/src/assets/mainnet-tranches.json b/apps/static/src/assets/mainnet-tranches.json index 480d18fec..f631f3913 100644 --- a/apps/static/src/assets/mainnet-tranches.json +++ b/apps/static/src/assets/mainnet-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "129999.45", "total_removed": "0", - "locked_amount": "124838.97110633997724032", + "locked_amount": "124778.97013519807175019", "deposits": [ { "amount": "129999.45", @@ -488,7 +488,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "97499.58", "total_removed": "0", - "locked_amount": "65677.603002045210578904", + "locked_amount": "65618.747638698286672248", "deposits": [ { "amount": "97499.58", @@ -521,7 +521,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "135173.4239508", "total_removed": "0", - "locked_amount": "89769.9445386643690728767616", + "locked_amount": "89689.4994179237355049314468", "deposits": [ { "amount": "135173.4239508", @@ -554,7 +554,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "32499.86", "total_removed": "0", - "locked_amount": "27629.433391422634511604", + "locked_amount": "27604.67395644034482095", "deposits": [ { "amount": "32499.86", @@ -587,7 +587,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "10833.29", "total_removed": "0", - "locked_amount": "8993.1124592327060276", + "locked_amount": "8985.053503405841028869", "deposits": [ { "amount": "10833.29", @@ -675,7 +675,7 @@ "tranche_end": "2022-11-01T00:00:00.000Z", "total_added": "22500", "total_removed": "0", - "locked_amount": "15560.0345335144905", + "locked_amount": "15529.10580842391225", "deposits": [ { "amount": "15000", @@ -761,7 +761,7 @@ "tranche_end": "2023-06-02T00:00:00.000Z", "total_added": "1939928.38", "total_removed": "0", - "locked_amount": "1808366.713772109507407144", + "locked_amount": "1807022.432478091503343812", "deposits": [ { "amount": "1852091.69", @@ -1777,7 +1777,7 @@ "tranche_end": "2022-09-30T00:00:00.000Z", "total_added": "60916.66666633337", "total_removed": "18323.723696937179372649", - "locked_amount": "14877.1783939910913983853672134685", + "locked_amount": "14837.671867499540073422661440836", "deposits": [ { "amount": "2833.333333", @@ -5217,7 +5217,7 @@ "tranche_end": "2022-09-03T00:00:00.000Z", "total_added": "19455.000000000000000003", "total_removed": "5056.88782409978", - "locked_amount": "3637.63218512176566360056093017503805176", + "locked_amount": "3624.1507634132418285005588513127853881", "deposits": [ { "amount": "75", @@ -14112,7 +14112,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "3732368.4671", "total_removed": "74162.9780761646031", - "locked_amount": "2803331.35737838918369347895", + "locked_amount": "2801265.66505852098701553794", "deposits": [ { "amount": "1998.95815", @@ -14825,7 +14825,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "15788853.065470999700000001", "total_removed": "7574.446194553191375", - "locked_amount": "15162096.2368885522863539160803985605650176", + "locked_amount": "15154808.9251565017931619300839060326804542", "deposits": [ { "amount": "16249.93", @@ -16910,7 +16910,7 @@ "tranche_end": "2023-05-05T00:00:00.000Z", "total_added": "14597706.0446472999", "total_removed": "2112989.023385471584318882", - "locked_amount": "8348136.79130391162894730748721882", + "locked_amount": "8341374.57132456383935654481514435", "deposits": [ { "amount": "129284.449", @@ -21002,7 +21002,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "5778205.3912159303", "total_removed": "1390546.591547348229906227", - "locked_amount": "2981495.9318149507652721482230301", + "locked_amount": "2978824.13780354526604691800931093", "deposits": [ { "amount": "552496.6455", @@ -22125,7 +22125,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "472355.6199999996", "total_removed": "34.173053016", - "locked_amount": "444203.8781018121592638569812278", + "locked_amount": "443876.55734572832239789461491628", "deposits": [ { "amount": "3000", @@ -47803,7 +47803,7 @@ "tranche_start": "2021-12-05T00:00:00.000Z", "tranche_end": "2022-06-05T00:00:00.000Z", "total_added": "171288.42", - "total_removed": "32035.4825162206377", + "total_removed": "32094.1716569431377", "locked_amount": "0", "deposits": [ { @@ -52098,6 +52098,11 @@ "user": "0x8FC36B7695965Bc39BCB8a3679529f1825e472aE", "tx": "0x7072667bf81811acda07177c1ace2edcfe19ce68711fa349ad94c1f8aa3d0b25" }, + { + "amount": "58.6891407225", + "user": "0xDD5730a33719083470e641cF0e4154Dd04D5738d", + "tx": "0x49bd6332008e65069aad8012f76f15f3dae19f664237b02f9152946297db812d" + }, { "amount": "183.6335597275", "user": "0x690Fc36d52eD3f198F0eBDea1557333a1766f786", @@ -58619,6 +58624,12 @@ } ], "withdrawals": [ + { + "amount": "58.6891407225", + "user": "0xDD5730a33719083470e641cF0e4154Dd04D5738d", + "tranche_id": 6, + "tx": "0x49bd6332008e65069aad8012f76f15f3dae19f664237b02f9152946297db812d" + }, { "amount": "65.928596865", "user": "0xDD5730a33719083470e641cF0e4154Dd04D5738d", @@ -58633,8 +58644,8 @@ } ], "total_tokens": "250", - "withdrawn_tokens": "191.3108592775", - "remaining_tokens": "58.6891407225" + "withdrawn_tokens": "250", + "remaining_tokens": "0" }, { "address": "0x243e23c83135cA0fed2F9f5dF9068dE644929433", diff --git a/apps/static/src/assets/stagnet1-tranches.json b/apps/static/src/assets/stagnet1-tranches.json index 0f4224115..85d35ed75 100644 --- a/apps/static/src/assets/stagnet1-tranches.json +++ b/apps/static/src/assets/stagnet1-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2022-11-26T13:48:10.000Z", "total_added": "100", "total_removed": "0", - "locked_amount": "41.86895611364789", + "locked_amount": "41.799648021308977", "deposits": [ { "amount": "100", @@ -242,7 +242,7 @@ "tranche_end": "2022-10-12T00:53:20.000Z", "total_added": "1100", "total_removed": "673.04388635", - "locked_amount": "323.320471841704766", + "locked_amount": "322.55808282597669", "deposits": [ { "amount": "1000", diff --git a/apps/static/src/assets/testnet-tranches.json b/apps/static/src/assets/testnet-tranches.json index 938dfb0a0..b4c72e3d2 100644 --- a/apps/static/src/assets/testnet-tranches.json +++ b/apps/static/src/assets/testnet-tranches.json @@ -69,7 +69,7 @@ "tranche_end": "2022-10-12T00:53:20.000Z", "total_added": "1010.000000000000000001", "total_removed": "668.4622323651", - "locked_amount": "296.86701071790965970029392773338406897", + "locked_amount": "296.1669669583967790002932346207508879", "deposits": [ { "amount": "1000", From f36d3af286286831f895a27c81ee81397f143f67 Mon Sep 17 00:00:00 2001 From: mattrussell36 Date: Mon, 27 Jun 2022 06:04:57 +0000 Subject: [PATCH 28/31] chore: update tranches Signed-off-by: github-actions[bot] --- apps/static/src/assets/mainnet-tranches.json | 28 +++++++++---------- apps/static/src/assets/stagnet1-tranches.json | 4 +-- apps/static/src/assets/testnet-tranches.json | 2 +- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/apps/static/src/assets/mainnet-tranches.json b/apps/static/src/assets/mainnet-tranches.json index f631f3913..735bb5449 100644 --- a/apps/static/src/assets/mainnet-tranches.json +++ b/apps/static/src/assets/mainnet-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "129999.45", "total_removed": "0", - "locked_amount": "124778.97013519807175019", + "locked_amount": "124720.37494345599486729", "deposits": [ { "amount": "129999.45", @@ -488,7 +488,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "97499.58", "total_removed": "0", - "locked_amount": "65618.747638698286672248", + "locked_amount": "65561.271213988326568374", "deposits": [ { "amount": "97499.58", @@ -521,7 +521,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "135173.4239508", "total_removed": "0", - "locked_amount": "89689.4994179237355049314468", + "locked_amount": "89610.93906823598018542464768", "deposits": [ { "amount": "135173.4239508", @@ -554,7 +554,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "32499.86", "total_removed": "0", - "locked_amount": "27604.67395644034482095", + "locked_amount": "27580.494617129630953698", "deposits": [ { "amount": "32499.86", @@ -587,7 +587,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "10833.29", "total_removed": "0", - "locked_amount": "8985.053503405841028869", + "locked_amount": "8977.183363090957711151", "deposits": [ { "amount": "10833.29", @@ -675,7 +675,7 @@ "tranche_end": "2022-11-01T00:00:00.000Z", "total_added": "22500", "total_removed": "0", - "locked_amount": "15529.10580842391225", + "locked_amount": "15498.9017210144925", "deposits": [ { "amount": "15000", @@ -761,7 +761,7 @@ "tranche_end": "2023-06-02T00:00:00.000Z", "total_added": "1939928.38", "total_removed": "0", - "locked_amount": "1807022.432478091503343812", + "locked_amount": "1805709.64672347542469696", "deposits": [ { "amount": "1852091.69", @@ -1777,7 +1777,7 @@ "tranche_end": "2022-09-30T00:00:00.000Z", "total_added": "60916.66666633337", "total_removed": "18323.723696937179372649", - "locked_amount": "14837.671867499540073422661440836", + "locked_amount": "14799.0909503780327149564735797834", "deposits": [ { "amount": "2833.333333", @@ -5217,7 +5217,7 @@ "tranche_end": "2022-09-03T00:00:00.000Z", "total_added": "19455.000000000000000003", "total_removed": "5056.88782409978", - "locked_amount": "3624.1507634132418285005588513127853881", + "locked_amount": "3610.98520167427761510055682115677321166", "deposits": [ { "amount": "75", @@ -14112,7 +14112,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "3732368.4671", "total_removed": "74162.9780761646031", - "locked_amount": "2801265.66505852098701553794", + "locked_amount": "2799248.37041713009339334414", "deposits": [ { "amount": "1998.95815", @@ -14825,7 +14825,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "15788853.065470999700000001", "total_removed": "7574.446194553191375", - "locked_amount": "15154808.9251565017931619300839060326804542", + "locked_amount": "15147692.0164032229790690133199637774087592", "deposits": [ { "amount": "16249.93", @@ -16910,7 +16910,7 @@ "tranche_end": "2023-05-05T00:00:00.000Z", "total_added": "14597706.0446472999", "total_removed": "2112989.023385471584318882", - "locked_amount": "8341374.57132456383935654481514435", + "locked_amount": "8334770.47583199158064192190614498", "deposits": [ { "amount": "129284.449", @@ -21002,7 +21002,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "5778205.3912159303", "total_removed": "1390546.591547348229906227", - "locked_amount": "2978824.13780354526604691800931093", + "locked_amount": "2976214.81973319186750170948948533", "deposits": [ { "amount": "552496.6455", @@ -22125,7 +22125,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "472355.6199999996", "total_removed": "34.173053016", - "locked_amount": "443876.55734572832239789461491628", + "locked_amount": "443556.89050015374303524476712328", "deposits": [ { "amount": "3000", diff --git a/apps/static/src/assets/stagnet1-tranches.json b/apps/static/src/assets/stagnet1-tranches.json index 85d35ed75..4da29f5e2 100644 --- a/apps/static/src/assets/stagnet1-tranches.json +++ b/apps/static/src/assets/stagnet1-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2022-11-26T13:48:10.000Z", "total_added": "100", "total_removed": "0", - "locked_amount": "41.799648021308977", + "locked_amount": "41.731972983257226", "deposits": [ { "amount": "100", @@ -242,7 +242,7 @@ "tranche_end": "2022-10-12T00:53:20.000Z", "total_added": "1100", "total_removed": "673.04388635", - "locked_amount": "322.55808282597669", + "locked_amount": "321.81365740740744", "deposits": [ { "amount": "1000", diff --git a/apps/static/src/assets/testnet-tranches.json b/apps/static/src/assets/testnet-tranches.json index b4c72e3d2..e8b1a984b 100644 --- a/apps/static/src/assets/testnet-tranches.json +++ b/apps/static/src/assets/testnet-tranches.json @@ -69,7 +69,7 @@ "tranche_end": "2022-10-12T00:53:20.000Z", "total_added": "1010.000000000000000001", "total_removed": "668.4622323651", - "locked_amount": "296.1669669583967790002932346207508879", + "locked_amount": "295.4834490740741040002925578703703704", "deposits": [ { "amount": "1000", From 98d3c47808988aee6d72c4e6b04a8324c92f50d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20G=C5=82ownia?= Date: Mon, 27 Jun 2022 12:05:05 +0200 Subject: [PATCH 29/31] feat(orderbook): improve data handling performance (#605) * feat(orderbook): improve data handling performance * feat(orderbook): fix scrolling out of range --- .../simple-market-list/data-provider.ts | 18 +- .../src/lib/accounts-data-provider.ts | 22 +- libs/market-depth/src/lib/depth-chart.tsx | 40 +-- .../src/lib/market-depth-data-provider.ts | 18 +- .../src/lib/orderbook-data.spec.ts | 16 +- libs/market-depth/src/lib/orderbook-data.ts | 246 ++++++++++-------- .../src/lib/orderbook-manager.tsx | 56 ++-- libs/market-depth/src/lib/orderbook.tsx | 74 ++++-- .../markets-data-provider.ts | 16 +- .../src/lib/orders-data-provider.ts | 24 +- .../src/lib/positions-data-provider.ts | 20 +- .../src/lib/generic-data-provider.ts | 24 +- libs/trades/src/lib/trades-data-provider.ts | 20 +- 13 files changed, 335 insertions(+), 259 deletions(-) diff --git a/apps/simple-trading-app/src/app/components/simple-market-list/data-provider.ts b/apps/simple-trading-app/src/app/components/simple-market-list/data-provider.ts index 8d24b976f..5e3a4ad73 100644 --- a/apps/simple-trading-app/src/app/components/simple-market-list/data-provider.ts +++ b/apps/simple-trading-app/src/app/components/simple-market-list/data-provider.ts @@ -1,3 +1,4 @@ +import produce from 'immer'; import { gql } from '@apollo/client'; import { makeDataProvider } from '@vegaprotocol/react-helpers'; import type { @@ -87,15 +88,16 @@ export const FILTERS_QUERY = gql` `; const update = ( - draft: SimpleMarkets_markets[], + data: SimpleMarkets_markets[], delta: SimpleMarketDataSub_marketData -) => { - const index = draft.findIndex((m) => m.id === delta.market.id); - if (index !== -1) { - draft[index].data = delta; - } - // @TODO - else push new market to draft -}; +) => + produce(data, (draft) => { + const index = draft.findIndex((m) => m.id === delta.market.id); + if (index !== -1) { + draft[index].data = delta; + } + // @TODO - else push new market to draft + }); const getData = (responseData: SimpleMarkets) => responseData.markets; const getDelta = ( diff --git a/libs/accounts/src/lib/accounts-data-provider.ts b/libs/accounts/src/lib/accounts-data-provider.ts index a330d4c9f..9bf905152 100644 --- a/libs/accounts/src/lib/accounts-data-provider.ts +++ b/libs/accounts/src/lib/accounts-data-provider.ts @@ -1,3 +1,4 @@ +import produce from 'immer'; import { gql } from '@apollo/client'; import type { Accounts, @@ -52,17 +53,18 @@ export const getId = ( ) => `${data.type}-${data.asset.symbol}-${data.market?.id ?? 'null'}`; const update = ( - draft: Accounts_party_accounts[], + data: Accounts_party_accounts[], delta: AccountSubscribe_accounts -) => { - const id = getId(delta); - const index = draft.findIndex((a) => getId(a) === id); - if (index !== -1) { - draft[index] = delta; - } else { - draft.push(delta); - } -}; +) => + produce(data, (draft) => { + const id = getId(delta); + const index = draft.findIndex((a) => getId(a) === id); + if (index !== -1) { + draft[index] = delta; + } else { + draft.push(delta); + } + }); const getData = (responseData: Accounts): Accounts_party_accounts[] | null => responseData.party ? responseData.party.accounts : null; const getDelta = ( diff --git a/libs/market-depth/src/lib/depth-chart.tsx b/libs/market-depth/src/lib/depth-chart.tsx index 076f8e79f..4285498cb 100644 --- a/libs/market-depth/src/lib/depth-chart.tsx +++ b/libs/market-depth/src/lib/depth-chart.tsx @@ -1,5 +1,4 @@ import { DepthChart } from 'pennant'; -import { produce } from 'immer'; import throttle from 'lodash/throttle'; import { AsyncRenderer } from '@vegaprotocol/ui-toolkit'; import { @@ -92,28 +91,31 @@ export const DepthChartContainer = ({ marketId }: DepthChartManagerProps) => { if (!dataRef.current) { return false; } - dataRef.current = produce(dataRef.current, (draft) => { - if (delta.buy) { - draft.data.buy = updateLevels( - draft.data.buy, - delta.buy, - decimalPlacesRef.current - ); - } - if (delta.sell) { - draft.data.sell = updateLevels( - draft.data.sell, - delta.sell, - decimalPlacesRef.current - ); - } - draft.midPrice = delta.market.data?.staticMidPrice + dataRef.current = { + ...dataRef.current, + midPrice: delta.market.data?.staticMidPrice ? formatMidPrice( delta.market.data?.staticMidPrice, decimalPlacesRef.current ) - : undefined; - }); + : undefined, + data: { + buy: delta.buy + ? updateLevels( + dataRef.current.data.buy, + delta.buy, + decimalPlacesRef.current + ) + : dataRef.current.data.buy, + sell: delta.sell + ? updateLevels( + dataRef.current.data.sell, + delta.sell, + decimalPlacesRef.current + ) + : dataRef.current.data.sell, + }, + }; setDepthDataThrottledRef.current(dataRef.current); return true; }, diff --git a/libs/market-depth/src/lib/market-depth-data-provider.ts b/libs/market-depth/src/lib/market-depth-data-provider.ts index 3ce75aa92..f82e70fe9 100644 --- a/libs/market-depth/src/lib/market-depth-data-provider.ts +++ b/libs/market-depth/src/lib/market-depth-data-provider.ts @@ -86,27 +86,31 @@ const sequenceNumbers: Record = {}; const update: Update< MarketDepth_market, MarketDepthSubscription_marketDepthUpdate -> = (draft, delta, reload) => { - if (delta.market.id !== draft.id) { - return; +> = (data, delta, reload) => { + if (delta.market.id !== data.id) { + return data; } const sequenceNumber = Number(delta.sequenceNumber); if (sequenceNumber <= sequenceNumbers[delta.market.id]) { - return; + return data; } + /* if (sequenceNumber - 1 !== sequenceNumbers[delta.market.id]) { sequenceNumbers[delta.market.id] = 0; reload(); return; } + */ sequenceNumbers[delta.market.id] = sequenceNumber; - Object.assign(draft.data, delta.market.data); + const updatedData = { ...data }; + data.data = delta.market.data; if (delta.buy) { - draft.depth.buy = updateLevels(draft.depth.buy ?? [], delta.buy); + updatedData.depth.buy = updateLevels(data.depth.buy ?? [], delta.buy); } if (delta.sell) { - draft.depth.sell = updateLevels(draft.depth.sell ?? [], delta.sell); + updatedData.depth.sell = updateLevels(data.depth.sell ?? [], delta.sell); } + return updatedData; }; const getData = (responseData: MarketDepth) => { diff --git a/libs/market-depth/src/lib/orderbook-data.spec.ts b/libs/market-depth/src/lib/orderbook-data.spec.ts index a94544cbc..e69e299b2 100644 --- a/libs/market-depth/src/lib/orderbook-data.spec.ts +++ b/libs/market-depth/src/lib/orderbook-data.spec.ts @@ -55,10 +55,8 @@ describe('compactRows', () => { '1097': 3, '1098': 2, '1099': 1, - '1100': 0, }); expect(orderbookRows[orderbookRows.length - 1].bidByLevel).toEqual({ - '901': 0, '902': 1, '903': 2, '904': 3, @@ -81,7 +79,7 @@ describe('compactRows', () => { }); describe('updateLevels', () => { - const levels: MarketDepth_market_depth_sell[] = new Array(10) + let levels: MarketDepth_market_depth_sell[] = new Array(10) .fill(null) .map((n, i) => ({ __typename: 'PriceLevel', @@ -96,9 +94,9 @@ describe('updateLevels', () => { volume: '0', numberOfOrders: '0', }; - updateLevels(levels, [removeFirstRow]); + levels = updateLevels(levels, [removeFirstRow]); expect(levels[0].price).toEqual('20'); - updateLevels(levels, [removeFirstRow]); + levels = updateLevels(levels, [removeFirstRow]); expect(levels[0].price).toEqual('20'); expect(updateLevels([], [removeFirstRow])).toEqual([]); const addFirstRow: MarketDepthSubscription_marketDepthUpdate_sell = { @@ -107,7 +105,7 @@ describe('updateLevels', () => { volume: '10', numberOfOrders: '10', }; - updateLevels(levels, [addFirstRow]); + levels = updateLevels(levels, [addFirstRow]); expect(levels[0].price).toEqual('10'); const addBeforeLastRow: MarketDepthSubscription_marketDepthUpdate_sell = { __typename: 'PriceLevel', @@ -115,7 +113,7 @@ describe('updateLevels', () => { volume: '95', numberOfOrders: '95', }; - updateLevels(levels, [addBeforeLastRow]); + levels = updateLevels(levels, [addBeforeLastRow]); expect(levels[levels.length - 2].price).toEqual('95'); const addAtTheEnd: MarketDepthSubscription_marketDepthUpdate_sell = { __typename: 'PriceLevel', @@ -123,7 +121,7 @@ describe('updateLevels', () => { volume: '115', numberOfOrders: '115', }; - updateLevels(levels, [addAtTheEnd]); + levels = updateLevels(levels, [addAtTheEnd]); expect(levels[levels.length - 1].price).toEqual('115'); const updateLastRow: MarketDepthSubscription_marketDepthUpdate_sell = { __typename: 'PriceLevel', @@ -131,7 +129,7 @@ describe('updateLevels', () => { volume: '116', numberOfOrders: '115', }; - updateLevels(levels, [updateLastRow]); + levels = updateLevels(levels, [updateLastRow]); expect(levels[levels.length - 1]).toEqual(updateLastRow); expect(updateLevels([], [updateLastRow])).toEqual([updateLastRow]); }); diff --git a/libs/market-depth/src/lib/orderbook-data.ts b/libs/market-depth/src/lib/orderbook-data.ts index 9ff332d97..f39604669 100644 --- a/libs/market-depth/src/lib/orderbook-data.ts +++ b/libs/market-depth/src/lib/orderbook-data.ts @@ -1,4 +1,3 @@ -import produce from 'immer'; import groupBy from 'lodash/groupBy'; import { VolumeType } from '@vegaprotocol/react-helpers'; import { MarketTradingMode } from '@vegaprotocol/types'; @@ -31,6 +30,8 @@ export interface OrderbookRowData { cumulativeVol: CumulativeVol; } +type PartialOrderbookRowData = Pick; + export type OrderbookData = Partial< Omit > & { rows: OrderbookRowData[] | null }; @@ -75,21 +76,31 @@ const updateRelativeData = (data: OrderbookRowData[]) => { }); }; +export const createPartialRow = ( + price: string, + volume = 0, + dataType?: VolumeType +): PartialOrderbookRowData => ({ + price, + ask: dataType === VolumeType.ask ? volume : 0, + bid: dataType === VolumeType.bid ? volume : 0, +}); + +export const extendRow = (row: PartialOrderbookRowData): OrderbookRowData => + Object.assign(row, { + cumulativeVol: { + ask: 0, + bid: 0, + }, + askByLevel: row.ask ? { [row.price]: row.ask } : {}, + bidByLevel: row.bid ? { [row.price]: row.bid } : {}, + }); + export const createRow = ( price: string, volume = 0, dataType?: VolumeType -): OrderbookRowData => ({ - price, - ask: dataType === VolumeType.ask ? volume : 0, - bid: dataType === VolumeType.bid ? volume : 0, - cumulativeVol: { - ask: dataType === VolumeType.ask ? volume : 0, - bid: dataType === VolumeType.bid ? volume : 0, - }, - askByLevel: dataType === VolumeType.ask ? { [price]: volume } : {}, - bidByLevel: dataType === VolumeType.bid ? { [price]: volume } : {}, -}); +): OrderbookRowData => extendRow(createPartialRow(price, volume, dataType)); const mapRawData = (dataType: VolumeType.ask | VolumeType.bid) => @@ -99,8 +110,8 @@ const mapRawData = | MarketDepthSubscription_marketDepthUpdate_sell | MarketDepth_market_depth_buy | MarketDepthSubscription_marketDepthUpdate_buy - ): OrderbookRowData => - createRow(data.price, Number(data.volume), dataType); + ): PartialOrderbookRowData => + createPartialRow(data.price, Number(data.volume), dataType); /** * @summary merges sell amd buy data, orders by price desc, group by price level, counts cumulative and relative values @@ -121,37 +132,38 @@ export const compactRows = ( resolution: number ) => { // map raw sell data to OrderbookData - const askOrderbookData = [...(sell ?? [])].map( + const askOrderbookData = [...(sell ?? [])].map( mapRawData(VolumeType.ask) ); // map raw buy data to OrderbookData - const bidOrderbookData = [...(buy ?? [])].map( + const bidOrderbookData = [...(buy ?? [])].map( mapRawData(VolumeType.bid) ); - // group by price level - const groupedByLevel = groupBy( + const groupedByLevel = groupBy( [...askOrderbookData, ...bidOrderbookData], (row) => getPriceLevel(row.price, resolution) ); - - // create single OrderbookData from grouped OrderbookData[], sum volumes and atore volume by level - const orderbookData = Object.keys(groupedByLevel).reduce( - (rows, price) => - rows.concat( - groupedByLevel[price].reduce( - (a, c) => ({ - ...a, - ask: a.ask + c.ask, - askByLevel: Object.assign(a.askByLevel, c.askByLevel), - bid: (a.bid ?? 0) + (c.bid ?? 0), - bidByLevel: Object.assign(a.bidByLevel, c.bidByLevel), - }), - createRow(price) - ) - ), - [] - ); + const orderbookData: OrderbookRowData[] = []; + Object.keys(groupedByLevel).forEach((price) => { + const row = extendRow( + groupedByLevel[price].pop() as PartialOrderbookRowData + ); + row.price = price; + let subRow: PartialOrderbookRowData | undefined; + // eslint-disable-next-line no-cond-assign + while ((subRow = groupedByLevel[price].pop())) { + row.ask += subRow.ask; + row.bid += subRow.bid; + if (subRow.ask) { + row.askByLevel[subRow.price] = subRow.ask; + } + if (subRow.bid) { + row.bidByLevel[subRow.price] = subRow.bid; + } + } + orderbookData.push(row); + }); // order by price, it's safe to cast to number price diff should not exceed Number.MAX_SAFE_INTEGER orderbookData.sort((a, b) => Number(BigInt(b.price) - BigInt(a.price))); // count cumulative volumes @@ -163,11 +175,9 @@ export const compactRows = ( (i !== 0 ? orderbookData[i - 1].cumulativeVol.bid : 0); } for (let i = maxIndex; i >= 0; i--) { - if (!orderbookData[i].cumulativeVol.ask) { - orderbookData[i].cumulativeVol.ask = - orderbookData[i].ask + - (i !== maxIndex ? orderbookData[i + 1].cumulativeVol.ask : 0); - } + orderbookData[i].cumulativeVol.ask = + orderbookData[i].ask + + (i !== maxIndex ? orderbookData[i + 1].cumulativeVol.ask : 0); } } // count relative volumes @@ -186,13 +196,13 @@ export const compactRows = ( */ const partiallyUpdateCompactedRows = ( dataType: VolumeType, - draft: OrderbookRowData[], + data: OrderbookRowData[], delta: | MarketDepthSubscription_marketDepthUpdate_sell | MarketDepthSubscription_marketDepthUpdate_buy, resolution: number, modifiedIndex: number -) => { +): [number, OrderbookRowData[]] => { const { price } = delta; const volume = Number(delta.volume); const priceLevel = getPriceLevel(price, resolution); @@ -201,28 +211,36 @@ const partiallyUpdateCompactedRows = ( const oppositeVolKey = isAskDataType ? 'bid' : 'ask'; const volByLevelKey = isAskDataType ? 'askByLevel' : 'bidByLevel'; const resolveModifiedIndex = isAskDataType ? Math.max : Math.min; - let index = draft.findIndex((data) => data.price === priceLevel); + let index = data.findIndex((row) => row.price === priceLevel); if (index !== -1) { modifiedIndex = resolveModifiedIndex(modifiedIndex, index); - draft[index][volKey] = - draft[index][volKey] - (draft[index][volByLevelKey][price] || 0) + volume; - draft[index][volByLevelKey][price] = volume; + data[index] = { + ...data[index], + [volKey]: + data[index][volKey] - (data[index][volByLevelKey][price] || 0) + volume, + [volByLevelKey]: { + ...data[index][volByLevelKey], + [price]: volume, + }, + }; + return [modifiedIndex, [...data]]; } else { const newData: OrderbookRowData = createRow(priceLevel, volume, dataType); - index = draft.findIndex((data) => BigInt(data.price) < BigInt(priceLevel)); + index = data.findIndex((row) => BigInt(row.price) < BigInt(priceLevel)); if (index !== -1) { - draft.splice(index, 0, newData); newData.cumulativeVol[oppositeVolKey] = - draft[index + (isAskDataType ? -1 : 1)]?.cumulativeVol[ - oppositeVolKey - ] ?? 0; + data[index + (isAskDataType ? 0 : 1)]?.cumulativeVol[oppositeVolKey] ?? + 0; modifiedIndex = resolveModifiedIndex(modifiedIndex, index); + return [ + modifiedIndex, + [...data.slice(0, index), newData, ...data.slice(index)], + ]; } else { - draft.push(newData); - modifiedIndex = draft.length - 1; + modifiedIndex = data.length - 1; + return [modifiedIndex, [...data, newData]]; } } - return modifiedIndex; }; /** @@ -239,59 +257,66 @@ export const updateCompactedRows = ( sell: MarketDepthSubscription_marketDepthUpdate_sell[] | null, buy: MarketDepthSubscription_marketDepthUpdate_buy[] | null, resolution: number -) => - produce(rows, (draft) => { - let sellModifiedIndex = -1; - sell?.forEach((delta) => { - sellModifiedIndex = partiallyUpdateCompactedRows( - VolumeType.ask, - draft, - delta, - resolution, - sellModifiedIndex - ); - }); - let buyModifiedIndex = draft.length; - buy?.forEach((delta) => { - buyModifiedIndex = partiallyUpdateCompactedRows( - VolumeType.bid, - draft, - delta, - resolution, - buyModifiedIndex - ); - }); - - // update cummulative ask only below hihgest modified price level - if (sellModifiedIndex !== -1) { - for (let i = Math.min(sellModifiedIndex, draft.length - 2); i >= 0; i--) { - draft[i].cumulativeVol.ask = - draft[i + 1].cumulativeVol.ask + draft[i].ask; - } - } - // update cummulative bid only above lowest modified price level - if (buyModifiedIndex !== draft.length) { - for ( - let i = Math.max(buyModifiedIndex, 1), l = draft.length; - i < l; - i++ - ) { - draft[i].cumulativeVol.bid = - draft[i - 1].cumulativeVol.bid + draft[i].bid; - } - } - let index = 0; - // remove levels that do not have any volume - while (index < draft.length) { - if (!draft[index].ask && !draft[index].bid) { - draft.splice(index, 1); - } else { - index += 1; - } - } - // count relative volumes - updateRelativeData(draft); +) => { + let sellModifiedIndex = -1; + let data = [...rows]; + sell?.forEach((delta) => { + [sellModifiedIndex, data] = partiallyUpdateCompactedRows( + VolumeType.ask, + data, + delta, + resolution, + sellModifiedIndex + ); }); + let buyModifiedIndex = data.length; + buy?.forEach((delta) => { + [buyModifiedIndex, data] = partiallyUpdateCompactedRows( + VolumeType.bid, + data, + delta, + resolution, + buyModifiedIndex + ); + }); + + // update cummulative ask only below hihgest modified price level + if (sellModifiedIndex !== -1) { + for (let i = Math.min(sellModifiedIndex, data.length - 2); i >= 0; i--) { + data[i] = { + ...data[i], + cumulativeVol: { + ...data[i].cumulativeVol, + ask: data[i + 1].cumulativeVol.ask + data[i].ask, + }, + }; + } + } + // update cummulative bid only above lowest modified price level + if (buyModifiedIndex !== data.length) { + for (let i = Math.max(buyModifiedIndex, 1), l = data.length; i < l; i++) { + data[i] = { + ...data[i], + cumulativeVol: { + ...data[i].cumulativeVol, + bid: data[i - 1].cumulativeVol.bid + data[i].bid, + }, + }; + } + } + let index = 0; + // remove levels that do not have any volume + while (index < data.length) { + if (!data[index].ask && !data[index].bid) { + data.splice(index, 1); + } else { + index += 1; + } + } + // count relative volumes + updateRelativeData(data); + return data; +}; export const mapMarketData = ( data: @@ -319,23 +344,24 @@ export const mapMarketData = ( * @returns */ export const updateLevels = ( - levels: (MarketDepth_market_depth_buy | MarketDepth_market_depth_sell)[], + draft: (MarketDepth_market_depth_buy | MarketDepth_market_depth_sell)[], updates: ( | MarketDepthSubscription_marketDepthUpdate_buy | MarketDepthSubscription_marketDepthUpdate_sell )[] ) => { + const levels = [...draft]; updates.forEach((update) => { let index = levels.findIndex((level) => level.price === update.price); if (index !== -1) { if (update.volume === '0') { levels.splice(index, 1); } else { - Object.assign(levels[index], update); + levels[index] = update; } } else if (update.volume !== '0') { index = levels.findIndex( - (level) => Number(level.price) > Number(update.price) + (level) => BigInt(level.price) > BigInt(update.price) ); if (index !== -1) { levels.splice(index, 0, update); diff --git a/libs/market-depth/src/lib/orderbook-manager.tsx b/libs/market-depth/src/lib/orderbook-manager.tsx index c5a518534..af814d05d 100644 --- a/libs/market-depth/src/lib/orderbook-manager.tsx +++ b/libs/market-depth/src/lib/orderbook-manager.tsx @@ -1,5 +1,4 @@ import throttle from 'lodash/throttle'; -import produce from 'immer'; import { AsyncRenderer } from '@vegaprotocol/ui-toolkit'; import { Orderbook } from './orderbook'; import { useDataProvider } from '@vegaprotocol/react-helpers'; @@ -25,27 +24,52 @@ export const OrderbookManager = ({ marketId }: OrderbookManagerProps) => { rows: null, }); const dataRef = useRef({ rows: null }); - const setOrderbookDataThrottled = useRef(throttle(setOrderbookData, 1000)); + const deltaRef = useRef(); + const updateOrderbookData = useRef( + throttle(() => { + if (!deltaRef.current) { + return; + } + dataRef.current = { + ...deltaRef.current.market.data, + ...mapMarketData(deltaRef.current.market.data, resolutionRef.current), + rows: updateCompactedRows( + dataRef.current.rows ?? [], + deltaRef.current.sell, + deltaRef.current.buy, + resolutionRef.current + ), + }; + deltaRef.current = undefined; + setOrderbookData(dataRef.current); + }, 1000) + ); const update = useCallback( (delta: MarketDepthSubscription_marketDepthUpdate) => { if (!dataRef.current.rows) { return false; } - dataRef.current = produce(dataRef.current, (draft) => { - Object.assign(draft, delta.market.data); - draft.rows = updateCompactedRows( - draft.rows ?? [], - delta.sell, - delta.buy, - resolutionRef.current - ); - Object.assign( - draft, - mapMarketData(delta.market.data, resolutionRef.current) - ); - }); - setOrderbookDataThrottled.current(dataRef.current); + if (deltaRef.current) { + deltaRef.current.market = delta.market; + if (delta.sell) { + if (deltaRef.current.sell) { + deltaRef.current.sell.push(...delta.sell); + } else { + deltaRef.current.sell = delta.sell; + } + } + if (delta.buy) { + if (deltaRef.current.buy) { + deltaRef.current.buy.push(...delta.buy); + } else { + deltaRef.current.buy = delta.buy; + } + } + } else { + deltaRef.current = delta; + } + updateOrderbookData.current(); return true; }, // using resolutionRef.current to avoid using resolution as a dependency - it will cause data provider restart on resolution change diff --git a/libs/market-depth/src/lib/orderbook.tsx b/libs/market-depth/src/lib/orderbook.tsx index 8feede4e8..37df5c8d6 100644 --- a/libs/market-depth/src/lib/orderbook.tsx +++ b/libs/market-depth/src/lib/orderbook.tsx @@ -176,7 +176,10 @@ export const Orderbook = ({ // adjust to current rows position scrollTop += (scrollTopRef.current % rowHeight) - (scrollTop % rowHeight); - const priceCenterScrollOffset = Math.max(0, Math.min(scrollTop)); + const priceCenterScrollOffset = Math.max( + 0, + Math.min(scrollTop, numberOfRows * rowHeight - viewportHeight) + ); if (scrollTopRef.current !== priceCenterScrollOffset) { updateScrollOffset(priceCenterScrollOffset); scrollTopRef.current = priceCenterScrollOffset; @@ -184,7 +187,13 @@ export const Orderbook = ({ } } }, - [maxPriceLevel, resolution, viewportHeight, updateScrollOffset] + [ + maxPriceLevel, + resolution, + viewportHeight, + numberOfRows, + updateScrollOffset, + ] ); useEffect(() => { @@ -199,23 +208,36 @@ export const Orderbook = ({ return; } priceInCenter.current = undefined; - setLockOnMidPrice(true); - scrollToPrice( - getPriceLevel( - BigInt(bestStaticOfferPrice) + - (BigInt(bestStaticBidPrice) - BigInt(bestStaticOfferPrice)) / - BigInt(2), - resolution - ) + let midPrice = getPriceLevel( + BigInt(bestStaticOfferPrice) + + (BigInt(bestStaticBidPrice) - BigInt(bestStaticOfferPrice)) / BigInt(2), + resolution ); - }, [bestStaticOfferPrice, bestStaticBidPrice, scrollToPrice, resolution]); + if (BigInt(midPrice) > BigInt(maxPriceLevel)) { + midPrice = maxPriceLevel; + } else { + const minPriceLevel = + BigInt(maxPriceLevel) - BigInt(Math.floor(numberOfRows * resolution)); + if (BigInt(midPrice) < minPriceLevel) { + midPrice = minPriceLevel.toString(); + } + } + scrollToPrice(midPrice); + setLockOnMidPrice(true); + }, [ + bestStaticOfferPrice, + bestStaticBidPrice, + scrollToPrice, + resolution, + maxPriceLevel, + numberOfRows, + ]); // adjust scroll position to keep selected price in center useLayoutEffect(() => { if (resolutionRef.current !== resolution) { priceInCenter.current = undefined; resolutionRef.current = resolution; - setLockOnMidPrice(true); } if (priceInCenter.current) { scrollToPrice(priceInCenter.current); @@ -238,21 +260,19 @@ export const Orderbook = ({ return () => window.removeEventListener('resize', handleResize); }, []); - const renderedRows = useMemo(() => { - let offset = Math.max(0, Math.round(scrollOffset / rowHeight)); - const prependingBufferSize = Math.min(bufferSize, offset); - offset -= prependingBufferSize; - const viewportSize = Math.round(viewportHeight / rowHeight); - const limit = Math.min( - prependingBufferSize + viewportSize + bufferSize, - numberOfRows - offset - ); - return { - offset, - limit, - data: getRowsToRender(rows, resolution, offset, limit), - }; - }, [rows, scrollOffset, resolution, viewportHeight, numberOfRows]); + let offset = Math.max(0, Math.round(scrollOffset / rowHeight)); + const prependingBufferSize = Math.min(bufferSize, offset); + offset -= prependingBufferSize; + const viewportSize = Math.round(viewportHeight / rowHeight); + const limit = Math.min( + prependingBufferSize + viewportSize + bufferSize, + numberOfRows - offset + ); + const renderedRows = { + offset, + limit, + data: getRowsToRender(rows, resolution, offset, limit), + }; const paddingTop = renderedRows.offset * rowHeight; const paddingBottom = diff --git a/libs/market-list/src/lib/components/markets-container/markets-data-provider.ts b/libs/market-list/src/lib/components/markets-container/markets-data-provider.ts index efed373a6..79d612e52 100644 --- a/libs/market-list/src/lib/components/markets-container/markets-data-provider.ts +++ b/libs/market-list/src/lib/components/markets-container/markets-data-provider.ts @@ -1,3 +1,4 @@ +import produce from 'immer'; import { gql } from '@apollo/client'; import type { Markets, @@ -90,13 +91,14 @@ const MARKET_DATA_SUB = gql` } `; -const update = (draft: Markets_markets[], delta: MarketDataSub_marketData) => { - const index = draft.findIndex((m) => m.id === delta.market.id); - if (index !== -1) { - draft[index].data = delta; - } - // @TODO - else push new market to draft -}; +const update = (data: Markets_markets[], delta: MarketDataSub_marketData) => + produce(data, (draft) => { + const index = draft.findIndex((m) => m.id === delta.market.id); + if (index !== -1) { + draft[index].data = delta; + } + // @TODO - else push new market to draft + }); const getData = (responseData: Markets): Markets_markets[] | null => responseData.markets; const getDelta = (subscriptionData: MarketDataSub): MarketDataSub_marketData => diff --git a/libs/order-list/src/lib/orders-data-provider.ts b/libs/order-list/src/lib/orders-data-provider.ts index adc6cb2f7..ccd6d88fb 100644 --- a/libs/order-list/src/lib/orders-data-provider.ts +++ b/libs/order-list/src/lib/orders-data-provider.ts @@ -1,3 +1,4 @@ +import produce from 'immer'; import { gql } from '@apollo/client'; import { makeDataProvider } from '@vegaprotocol/react-helpers'; import type { OrderFields } from './__generated__/OrderFields'; @@ -78,19 +79,20 @@ export const prepareIncomingOrders = (delta: OrderFields[]) => { return incoming; }; -const update = (draft: OrderFields[], delta: OrderFields[]) => { - const incoming = prepareIncomingOrders(delta); +const update = (data: OrderFields[], delta: OrderFields[]) => + produce(data, (draft) => { + const incoming = prepareIncomingOrders(delta); - // Add or update incoming orders - incoming.forEach((order) => { - const index = draft.findIndex((o) => o.id === order.id); - if (index === -1) { - draft.unshift(order); - } else { - draft[index] = order; - } + // Add or update incoming orders + incoming.forEach((order) => { + const index = draft.findIndex((o) => o.id === order.id); + if (index === -1) { + draft.unshift(order); + } else { + draft[index] = order; + } + }); }); -}; const getData = (responseData: Orders): Orders_party_orders[] | null => responseData?.party?.orders || null; diff --git a/libs/positions/src/lib/positions-data-provider.ts b/libs/positions/src/lib/positions-data-provider.ts index 9776f201f..e030eb437 100644 --- a/libs/positions/src/lib/positions-data-provider.ts +++ b/libs/positions/src/lib/positions-data-provider.ts @@ -1,3 +1,4 @@ +import produce from 'immer'; import { gql } from '@apollo/client'; import type { Positions, @@ -75,16 +76,17 @@ export const POSITIONS_SUB = gql` `; const update = ( - draft: Positions_party_positions[], + data: Positions_party_positions[], delta: PositionSubscribe_positions -) => { - const index = draft.findIndex((m) => m.market.id === delta.market.id); - if (index !== -1) { - draft[index] = delta; - } else { - draft.push(delta); - } -}; +) => + produce(data, (draft) => { + const index = draft.findIndex((m) => m.market.id === delta.market.id); + if (index !== -1) { + draft[index] = delta; + } else { + draft.push(delta); + } + }); const getData = (responseData: Positions): Positions_party_positions[] | null => responseData.party ? responseData.party.positions : null; const getDelta = ( diff --git a/libs/react-helpers/src/lib/generic-data-provider.ts b/libs/react-helpers/src/lib/generic-data-provider.ts index 101fc9a04..41113c61b 100644 --- a/libs/react-helpers/src/lib/generic-data-provider.ts +++ b/libs/react-helpers/src/lib/generic-data-provider.ts @@ -1,5 +1,3 @@ -import { produce } from 'immer'; -import type { Draft } from 'immer'; import type { ApolloClient, DocumentNode, @@ -34,11 +32,7 @@ export interface Subscribe { type Query = DocumentNode | TypedDocumentNode; export interface Update { - ( - draft: Draft, - delta: Delta, - reload: (forceReset?: boolean) => void - ): void; + (data: Data, delta: Delta, reload: (forceReset?: boolean) => void): Data; } interface GetData { @@ -105,14 +99,12 @@ function makeDataProviderInternal( data = getData(res.data); // if there was some updates received from subscription during initial query loading apply them on just received data if (data && updateQueue && updateQueue.length > 0) { - data = produce(data, (draft) => { - while (updateQueue.length) { - const delta = updateQueue.shift(); - if (delta) { - update(draft, delta, reload); - } + while (updateQueue.length) { + const delta = updateQueue.shift(); + if (delta) { + data = update(data, delta, reload); } - }); + } } } catch (e) { // if error will occur data provider stops subscription @@ -168,9 +160,7 @@ function makeDataProviderInternal( if (loading || !data) { updateQueue.push(delta); } else { - const newData = produce(data, (draft) => { - update(draft, delta, reload); - }); + const newData = update(data, delta, reload); if (newData === data) { return; } diff --git a/libs/trades/src/lib/trades-data-provider.ts b/libs/trades/src/lib/trades-data-provider.ts index 6381cb8b0..2234e530e 100644 --- a/libs/trades/src/lib/trades-data-provider.ts +++ b/libs/trades/src/lib/trades-data-provider.ts @@ -4,6 +4,7 @@ import type { TradeFields } from './__generated__/TradeFields'; import type { Trades } from './__generated__/Trades'; import type { TradesSub } from './__generated__/TradesSub'; import orderBy from 'lodash/orderBy'; +import produce from 'immer'; export const MAX_TRADES = 50; @@ -52,17 +53,18 @@ export const sortTrades = (trades: TradeFields[]) => { ); }; -const update = (draft: TradeFields[], delta: TradeFields[]) => { - const incoming = sortTrades(delta); +const update = (data: TradeFields[], delta: TradeFields[]) => + produce(data, (draft) => { + const incoming = sortTrades(delta); - // Add new trades to the top - draft.unshift(...incoming); + // Add new trades to the top + draft.unshift(...incoming); - // Remove old trades from the bottom - if (draft.length > MAX_TRADES) { - draft.splice(MAX_TRADES, draft.length - MAX_TRADES); - } -}; + // Remove old trades from the bottom + if (draft.length > MAX_TRADES) { + draft.splice(MAX_TRADES, draft.length - MAX_TRADES); + } + }); const getData = (responseData: Trades): TradeFields[] | null => responseData.market ? responseData.market.trades : null; From 9377c9d9de8215c0769a6cfa2b95f6428507bc4e Mon Sep 17 00:00:00 2001 From: mattrussell36 Date: Mon, 27 Jun 2022 12:05:16 +0000 Subject: [PATCH 30/31] chore: update tranches Signed-off-by: github-actions[bot] --- apps/static/src/assets/mainnet-tranches.json | 79 +++++++++++++------ apps/static/src/assets/stagnet1-tranches.json | 4 +- apps/static/src/assets/testnet-tranches.json | 2 +- 3 files changed, 59 insertions(+), 26 deletions(-) diff --git a/apps/static/src/assets/mainnet-tranches.json b/apps/static/src/assets/mainnet-tranches.json index 735bb5449..d20907146 100644 --- a/apps/static/src/assets/mainnet-tranches.json +++ b/apps/static/src/assets/mainnet-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "129999.45", "total_removed": "0", - "locked_amount": "124720.37494345599486729", + "locked_amount": "124661.013711767544930765", "deposits": [ { "amount": "129999.45", @@ -488,7 +488,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "97499.58", "total_removed": "0", - "locked_amount": "65561.271213988326568374", + "locked_amount": "65503.04337545080622283", "deposits": [ { "amount": "97499.58", @@ -521,7 +521,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "135173.4239508", "total_removed": "0", - "locked_amount": "89610.93906823598018542464768", + "locked_amount": "89531.35166557213976323285608", "deposits": [ { "amount": "135173.4239508", @@ -554,7 +554,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "32499.86", "total_removed": "0", - "locked_amount": "27580.494617129630953698", + "locked_amount": "27555.99917099787937361", "deposits": [ { "amount": "32499.86", @@ -587,7 +587,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "10833.29", "total_removed": "0", - "locked_amount": "8977.183363090957711151", + "locked_amount": "8969.210333073256934278", "deposits": [ { "amount": "10833.29", @@ -675,7 +675,7 @@ "tranche_end": "2022-11-01T00:00:00.000Z", "total_added": "22500", "total_removed": "0", - "locked_amount": "15498.9017210144925", + "locked_amount": "15468.3027626811615", "deposits": [ { "amount": "15000", @@ -761,7 +761,7 @@ "tranche_end": "2023-06-02T00:00:00.000Z", "total_added": "1939928.38", "total_removed": "0", - "locked_amount": "1805709.64672347542469696", + "locked_amount": "1804379.69836047439128314", "deposits": [ { "amount": "1852091.69", @@ -1776,8 +1776,8 @@ "tranche_start": "2021-09-05T00:00:00.000Z", "tranche_end": "2022-09-30T00:00:00.000Z", "total_added": "60916.66666633337", - "total_removed": "18323.723696937179372649", - "locked_amount": "14799.0909503780327149564735797834", + "total_removed": "18705.279504739679372649", + "locked_amount": "14760.0056484630890178248654459722", "deposits": [ { "amount": "2833.333333", @@ -1876,6 +1876,11 @@ } ], "withdrawals": [ + { + "amount": "381.5558078025", + "user": "0x9fd50776F133751E8Ae6abE1Be124638Bb917E05", + "tx": "0xdf5387ab07596bf2a4a608ea38d3f98f8020941f4fa7ad88f1ccd223669ac2c7" + }, { "amount": "327.532400005", "user": "0x1887D97F9C875108Aa6bE109B282f87A666472f2", @@ -2591,6 +2596,12 @@ } ], "withdrawals": [ + { + "amount": "381.5558078025", + "user": "0x9fd50776F133751E8Ae6abE1Be124638Bb917E05", + "tranche_id": 13, + "tx": "0xdf5387ab07596bf2a4a608ea38d3f98f8020941f4fa7ad88f1ccd223669ac2c7" + }, { "amount": "490.9767850775", "user": "0x9fd50776F133751E8Ae6abE1Be124638Bb917E05", @@ -2635,8 +2646,8 @@ } ], "total_tokens": "4250", - "withdrawn_tokens": "2838.102475055", - "remaining_tokens": "1411.897524945" + "withdrawn_tokens": "3219.6582828575", + "remaining_tokens": "1030.3417171425" }, { "address": "0xDFaF6D0a0102ea5e4688F95Eb22Dc353751a7563", @@ -5217,7 +5228,7 @@ "tranche_end": "2022-09-03T00:00:00.000Z", "total_added": "19455.000000000000000003", "total_removed": "5056.88782409978", - "locked_amount": "3610.98520167427761510055682115677321166", + "locked_amount": "3597.64752092846370375055476445966514475", "deposits": [ { "amount": "75", @@ -14112,7 +14123,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "3732368.4671", "total_removed": "74162.9780761646031", - "locked_amount": "2799248.37041713009339334414", + "locked_amount": "2797204.7028220379638062054", "deposits": [ { "amount": "1998.95815", @@ -14824,8 +14835,8 @@ "tranche_start": "2022-06-05T00:00:00.000Z", "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "15788853.065470999700000001", - "total_removed": "7574.446194553191375", - "locked_amount": "15147692.0164032229790690133199637774087592", + "total_removed": "7926.7627792759659", + "locked_amount": "15140482.7365636033722263648641426217383077", "deposits": [ { "amount": "16249.93", @@ -15344,6 +15355,11 @@ "user": "0x20CD77B9FC2f1fEDfb6F184E25f7127BFE991C8b", "tx": "0xcb5d0a1e6fdae5bed77fe2f8a29df14985d9f21d0e681416c618104b530fab36" }, + { + "amount": "352.316584722774525", + "user": "0x20CD77B9FC2f1fEDfb6F184E25f7127BFE991C8b", + "tx": "0xa79f7f3e6436a1f473f3beab9e0a5c8bc4f52b38ac7aedb8610a1a9a9c4a786c" + }, { "amount": "2446.31552516990115", "user": "0x20CD77B9FC2f1fEDfb6F184E25f7127BFE991C8b", @@ -15460,6 +15476,12 @@ "tranche_id": 2, "tx": "0xcb5d0a1e6fdae5bed77fe2f8a29df14985d9f21d0e681416c618104b530fab36" }, + { + "amount": "352.316584722774525", + "user": "0x20CD77B9FC2f1fEDfb6F184E25f7127BFE991C8b", + "tranche_id": 2, + "tx": "0xa79f7f3e6436a1f473f3beab9e0a5c8bc4f52b38ac7aedb8610a1a9a9c4a786c" + }, { "amount": "2446.31552516990115", "user": "0x20CD77B9FC2f1fEDfb6F184E25f7127BFE991C8b", @@ -15504,8 +15526,8 @@ } ], "total_tokens": "194999.1675", - "withdrawn_tokens": "7574.446194553191375", - "remaining_tokens": "187424.721305446808625" + "withdrawn_tokens": "7926.7627792759659", + "remaining_tokens": "187072.4047207240341" }, { "address": "0x89051CAb67Bc7F8CC44F7e270c6EDaf1EC57676c", @@ -16909,8 +16931,8 @@ "tranche_start": "2021-11-05T00:00:00.000Z", "tranche_end": "2023-05-05T00:00:00.000Z", "total_added": "14597706.0446472999", - "total_removed": "2112989.023385471584318882", - "locked_amount": "8334770.47583199158064192190614498", + "total_removed": "2113641.840890679071831632", + "locked_amount": "8328080.66510881884167481291924447", "deposits": [ { "amount": "129284.449", @@ -17154,6 +17176,11 @@ "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", "tx": "0x77d249279d8ea7554d19c557311687d57884b5e08537ac9574897ca58a13d880" }, + { + "amount": "652.81750520748751275", + "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", + "tx": "0xc62ffa6bf5029422f44d9406972fc074b498e02f667a86ae9faba138b6cfd758" + }, { "amount": "652.48254356494551875", "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", @@ -18766,6 +18793,12 @@ "tranche_id": 3, "tx": "0x77d249279d8ea7554d19c557311687d57884b5e08537ac9574897ca58a13d880" }, + { + "amount": "652.81750520748751275", + "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", + "tranche_id": 3, + "tx": "0xc62ffa6bf5029422f44d9406972fc074b498e02f667a86ae9faba138b6cfd758" + }, { "amount": "652.48254356494551875", "user": "0x4Aa3c35F6CC2d507E5C18205ee57099A4C80B19b", @@ -20004,8 +20037,8 @@ } ], "total_tokens": "359123.469575", - "withdrawn_tokens": "153440.15828600857552375", - "remaining_tokens": "205683.31128899142447625" + "withdrawn_tokens": "154092.9757912160630365", + "remaining_tokens": "205030.4937837839369635" }, { "address": "0xBdd412797c1B78535Afc5F71503b91fAbD0160fB", @@ -21002,7 +21035,7 @@ "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "5778205.3912159303", "total_removed": "1390546.591547348229906227", - "locked_amount": "2976214.81973319186750170948948533", + "locked_amount": "2973571.63505682836710488797665665", "deposits": [ { "amount": "552496.6455", @@ -22125,7 +22158,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "472355.6199999996", "total_removed": "34.173053016", - "locked_amount": "443556.89050015374303524476712328", + "locked_amount": "443233.07466590775804275636428212", "deposits": [ { "amount": "3000", diff --git a/apps/static/src/assets/stagnet1-tranches.json b/apps/static/src/assets/stagnet1-tranches.json index 4da29f5e2..a78237143 100644 --- a/apps/static/src/assets/stagnet1-tranches.json +++ b/apps/static/src/assets/stagnet1-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2022-11-26T13:48:10.000Z", "total_added": "100", "total_removed": "0", - "locked_amount": "41.731972983257226", + "locked_amount": "41.663429096905125", "deposits": [ { "amount": "100", @@ -242,7 +242,7 @@ "tranche_end": "2022-10-12T00:53:20.000Z", "total_added": "1100", "total_removed": "673.04388635", - "locked_amount": "321.81365740740744", + "locked_amount": "321.05967465753423", "deposits": [ { "amount": "1000", diff --git a/apps/static/src/assets/testnet-tranches.json b/apps/static/src/assets/testnet-tranches.json index e8b1a984b..52379dd1f 100644 --- a/apps/static/src/assets/testnet-tranches.json +++ b/apps/static/src/assets/testnet-tranches.json @@ -69,7 +69,7 @@ "tranche_end": "2022-10-12T00:53:20.000Z", "total_added": "1010.000000000000000001", "total_removed": "668.4622323651", - "locked_amount": "295.4834490740741040002925578703703704", + "locked_amount": "294.7911558219177930002918724315068493", "deposits": [ { "amount": "1000", From b269ad16cf8ea1fb7442ea3182f257287b177438 Mon Sep 17 00:00:00 2001 From: Edd Date: Mon, 27 Jun 2022 12:56:13 +0000 Subject: [PATCH 31/31] chore: workaround for #641 - ignoreErrors on governance page (#642) * chore: workaround for #641 - ignoreErrors on governance page * chore: #641 comment on errorPolicy - this is to get around some backend issues Co-authored-by: madalinaraicu --- .../src/routes/governance/proposals/proposals-container.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/token/src/routes/governance/proposals/proposals-container.tsx b/apps/token/src/routes/governance/proposals/proposals-container.tsx index e635d90b7..fba6c3243 100644 --- a/apps/token/src/routes/governance/proposals/proposals-container.tsx +++ b/apps/token/src/routes/governance/proposals/proposals-container.tsx @@ -24,6 +24,7 @@ export const ProposalsContainer = () => { const { t } = useTranslation(); const { data, loading, error } = useQuery(PROPOSALS_QUERY, { pollInterval: 5000, + errorPolicy: 'ignore', // this is to get around some backend issues and should be removed in future }); const proposals = React.useMemo(() => {