Skip to content

Commit

Permalink
Merge pull request #5130 from balancer/release/1.140.0
Browse files Browse the repository at this point in the history
Release 1.140.0
  • Loading branch information
garethfuller authored Jan 22, 2024
2 parents 1908960 + 93b9868 commit 456b77d
Show file tree
Hide file tree
Showing 13 changed files with 58 additions and 44 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '18.x'
- name: Install deps
run: npm install -g npm@7 && npm ci
- name: Run build
Expand All @@ -31,7 +31,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '18.x'
- name: Install deps
run: npm install -g npm@7 && npm ci
- name: Run lint
Expand All @@ -48,7 +48,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '18.x'
- name: Install deps
run: npm install -g npm@7 && npm ci
- name: Run typecheck
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@balancer/frontend-v2",
"version": "1.139.85",
"version": "1.140.0",
"engines": {
"node": "=16",
"npm": ">=8"
Expand Down Expand Up @@ -115,7 +115,7 @@
"ethereumjs-util": "^7.0.7",
"events": "^3.3.0",
"feather-icons": "^4.28.0",
"happy-dom": "^12.10.3",
"happy-dom": "^13.1.4",
"husky": "^8.0.0",
"jest-extended": "^3.2.4",
"json-to-graphql-query": "^2.0.0",
Expand Down
1 change: 1 addition & 0 deletions src/components/contextual/pages/pools/StakedPoolsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ watch(
() => userGaugeShares.value,
async val => {
if (!val || isVeBalSupported.value) return;
console.log('userGaugeShares', val);
for (const gauge of val) {
try {
const id = gauge?.gauge.id;
Expand Down
6 changes: 3 additions & 3 deletions src/components/contextual/pages/vebal/MyVebalInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ const userRank = computed(() => {
const vebalInfo = computed(() => {
const arr: { icon: any; value: string }[] = [];
if (bnum(veBalBalance.value).isGreaterThan(0)) {
const hasVebalBalance = bnum(veBalBalance.value).isGreaterThan(0);
if (hasVebalBalance) {
arr.push({
icon: share,
value: t('veBAL.myVeBAL.cards.myVeBAL.secondaryText', [
Expand All @@ -186,7 +186,7 @@ const vebalInfo = computed(() => {
});
}
if (userRank.value) {
if (hasVebalBalance && userRank.value) {
arr.unshift({
icon: rank,
value: `Rank ${userRank.value}`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ function onCloseModal() {
<template #activator>
<BalLink
:href="syncLayerZeroTxLinks[network]"
:disabled="
!checkIfNetworkSyncing(network) ||
!syncLayerZeroTxLinks[network]
"
external
noStyle
class="group flex items-center"
Expand Down
22 changes: 14 additions & 8 deletions src/components/pool/PoolPageHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,20 @@ function symbolFor(titleTokenIndex: number): string {
</BalTooltip>
</div>
</div>
<BalAlert
v-if="pool.isInRecoveryMode && pool.isPaused"
type="warning"
:title="$t('recoveryMode')"
:description="$t('recoveryModeDescription')"
class="mt-2"
block
/>
<div v-if="pool.isInRecoveryMode || pool.isPaused" class="flex mt-2">
<BalChip
v-if="pool.isInRecoveryMode"
class="mr-2"
color="orange"
:outline="false"
>
Recovery Mode
</BalChip>
<BalChip v-if="pool.isPaused" color="orange" :outline="false">
Paused
</BalChip>
</div>

<BalAlert
v-if="hasNonApprovedRateProviders"
type="warning"
Expand Down
1 change: 0 additions & 1 deletion src/composables/usePoolHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ export function totalAprLabel(
return '-';
}
if (boost && boost !== '1' && isConnected) {
console.log('boosted');
return numF(absMaxApr(aprs, boost), FNumFormats.bp);
}
if (
Expand Down
18 changes: 9 additions & 9 deletions src/pages/pool/_id.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
import { useTokens } from '@/providers/tokens.provider';
import { POOLS } from '@/constants/pools';
import { includesAddress } from '@/lib/utils';
import useHistoricalPricesQuery from '@/composables/queries/useHistoricalPricesQuery';
// import useHistoricalPricesQuery from '@/composables/queries/useHistoricalPricesQuery';
import { PoolToken } from '@/services/pool/types';
import useWeb3 from '@/services/web3/useWeb3';
import BrandedRedirectCard from '@/components/pool/branded-redirect/BrandedRedirectCard.vue';
Expand Down Expand Up @@ -78,13 +78,13 @@ const snapshots = computed(() => poolSnapshotsQuery.data.value);
//#endregion
//#region historical prices query
const historicalPricesQuery = useHistoricalPricesQuery(
poolId,
undefined,
// in order to prevent multiple coingecko requests
{ refetchOnWindowFocus: false }
);
const historicalPrices = computed(() => historicalPricesQuery.data.value);
// const historicalPricesQuery = useHistoricalPricesQuery(
// poolId,
// undefined,
// // in order to prevent multiple coingecko requests
// { refetchOnWindowFocus: false }
// );
// const historicalPrices = computed(() => historicalPricesQuery.data.value);
//#endregion
//#region APR query
Expand Down Expand Up @@ -217,7 +217,7 @@ watch(
<div class="grid grid-cols-1 gap-y-8">
<div class="px-4 lg:px-0">
<PoolChart
:historicalPrices="historicalPrices"
:historicalPrices="null"
:snapshots="snapshots"
:loading="isLoadingSnapshots"
:totalLiquidity="pool?.totalLiquidity"
Expand Down
12 changes: 6 additions & 6 deletions src/pages/swap.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, onMounted } from 'vue';
import MyWallet from '@/components/cards/MyWallet/MyWallet.vue';
import PairPriceGraph from '@/components/cards/PairPriceGraph/PairPriceGraph.vue';
// import PairPriceGraph from '@/components/cards/PairPriceGraph/PairPriceGraph.vue';
import SwapCard from '@/components/cards/SwapCard/SwapCard.vue';
import Col3Layout from '@/components/layouts/Col3Layout.vue';
import usePoolFilters from '@/composables/pools/usePoolFilters';
Expand All @@ -27,7 +27,7 @@ const { upToLargeBreakpoint } = useBreakpoints();
const sections = computed(() => {
const sections = [
{ title: 'My wallet', id: 'my-wallet' },
{ title: 'Price chart', id: 'price-chart' },
// { title: 'Price chart', id: 'price-chart' },
];
if (hasBridge.value) sections.push({ title: 'Bridge assets', id: 'bridge' });
return sections;
Expand Down Expand Up @@ -59,17 +59,17 @@ onMounted(() => {
<template #my-wallet>
<MyWallet />
</template>
<template #price-chart>
<PairPriceGraph />
</template>
<!-- <template #price-chart> -->
<!-- <PairPriceGraph /> -->
<!-- </template> -->
<template v-if="hasBridge" #bridge>
<BridgeLink />
</template>
</BalAccordion>
</div>

<template #gutterRight>
<PairPriceGraph />
<!-- <PairPriceGraph /> -->
<BridgeLink v-if="hasBridge" class="mt-4" />
</template>
</Col3Layout>
Expand Down
2 changes: 1 addition & 1 deletion src/providers/cross-chain-sync.provider.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ test('Calculates L2 network balances', async () => {
`);
});

test.skip('Synchronizes Arbitrum', async () => {
test('Synchronizes Arbitrum', async () => {
mockOmniEscrowLocks([]);
const { sync } = await mountCrossChainSync();

Expand Down
4 changes: 2 additions & 2 deletions src/providers/cross-chain-sync.provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,9 @@ export const crossChainSyncProvider = () => {
return '';
}

const { srcUaAddress, dstUaAddress, dstChainId, srcUaNonce } = message;
const link = `https://layerzeroscan.com/101/address/${srcUaAddress}/message/${dstChainId}/address/${dstUaAddress}/nonce/${srcUaNonce}`;
const { srcTxHash } = message;

const link = `https://layerzeroscan.com/tx/${srcTxHash}`;
return link;
}

Expand Down
4 changes: 4 additions & 0 deletions tests/vitest/setup-msw.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { server } from '@tests/msw/server';
import { fetch } from 'cross-fetch';

// By default, our setup would use happy-dom fetch() implementation which is not 100% compatible with MSW
global.fetch = fetch;

// MSW SETUP
// Establish API mocking before all tests.
Expand Down

1 comment on commit 456b77d

@vercel
Copy link

@vercel vercel bot commented on 456b77d Jan 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.