Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/sweet-lands-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@venusprotocol/evm": minor
---

add Ad banner to Pool page
3 changes: 2 additions & 1 deletion apps/evm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
"@venusprotocol/stylelint-config": "*",
"@venusprotocol/token-bridge": "2.7.0",
"@venusprotocol/typescript-config": "*",
"@venusprotocol/venus-periphery": "^1.1.0",
"@venusprotocol/venus-protocol": "10.0.0",
"@vitejs/plugin-react": "^4.3.3",
"@vitest/coverage-v8": "^2.1.5",
Expand Down Expand Up @@ -167,4 +168,4 @@
"last 1 safari version"
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('getSwapQuote', () => {
expect(restService).toHaveBeenCalledTimes(1);
expect((restService as Mock).mock.calls[0][0]).toMatchInlineSnapshot(`
{
"endpoint": "/find-swap/pcs",
"endpoint": "/find-swap",
"method": "GET",
"params": {
"chainId": 56,
Expand Down Expand Up @@ -106,7 +106,7 @@ describe('getSwapQuote', () => {
expect(restService).toHaveBeenCalledTimes(1);
expect((restService as Mock).mock.calls[0][0]).toMatchInlineSnapshot(`
{
"endpoint": "/find-swap/pcs",
"endpoint": "/find-swap",
"method": "GET",
"params": {
"chainId": 56,
Expand Down Expand Up @@ -158,7 +158,7 @@ describe('getSwapQuote', () => {
expect(restService).toHaveBeenCalledTimes(1);
expect((restService as Mock).mock.calls[0][0]).toMatchInlineSnapshot(`
{
"endpoint": "/find-swap/pcs",
"endpoint": "/find-swap",
"method": "GET",
"params": {
"chainId": 56,
Expand Down
2 changes: 1 addition & 1 deletion apps/evm/src/clients/api/queries/getSwapQuote/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const getSwapQuote = async ({
}

const txsResponse = await restService<SwapApiResponse>({
endpoint: '/find-swap/pcs',
endpoint: '/find-swap',
method: 'GET',
params,
});
Expand Down
2 changes: 1 addition & 1 deletion apps/evm/src/components/Carousel/CarouselItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const CarouselItem = forwardRef<HTMLDivElement, React.HTMLAttributes<HTML
ref={ref}
role="group"
aria-roledescription="slide"
className={cn('min-w-0 shrink-0 grow-0 basis-full', 'pl-4', className)}
className={cn('min-w-0 shrink-0 grow-0 basis-full pl-4', className)}
{...props}
/>
),
Expand Down
8 changes: 4 additions & 4 deletions apps/evm/src/components/Carousel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,24 +60,24 @@ export const Carousel = forwardRef<
return (
<div
ref={ref}
className={cn('relative select-none', className)}
className={cn('relative select-none overflow-hidden', className)}
role="region"
aria-roledescription="carousel"
{...props}
>
<div ref={carouselRef} className="overflow-hidden">
<div ref={carouselRef}>
<div className="flex -ml-4">{children}</div>
</div>

{slidesCount > 1 && (
<div className="flex mx-auto gap-3 w-max mt-4">
<div className="flex mx-auto gap-x-[6px] w-max mt-3">
{Array.from({ length: slidesCount }).map((_s, i) => (
<button
type="button"
onClick={() => api?.scrollTo(i)}
key={i}
className={cn(
'w-2 h-2 rounded-full',
'size-[6px] rounded-full',
i === activeSlideIndex ? 'bg-offWhite' : 'bg-offWhite/30',
)}
/>
Expand Down
147 changes: 0 additions & 147 deletions apps/evm/src/components/EModeBanner/index.tsx

This file was deleted.

1 change: 0 additions & 1 deletion apps/evm/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export * from './AccountHealthBar';
export * from './AreaChart';
export * from './ChartTooltipContent';
export * from './ChartYAxisTick';
export * from './EModeBanner';
export * from './InfoIcon';
export * from './EModeIcon';
export * from './MarketStatus';
Expand Down
2 changes: 1 addition & 1 deletion apps/evm/src/containers/AssetAccessor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { useAccountAddress } from 'libs/wallet';
import type { Asset, Pool, TokenAction, VToken } from 'types';
import { areTokensEqual } from 'utilities';

import { EModeButton } from 'components/EModeBanner/EModeButton';
import { useTranslation } from 'libs/translations';
import { EModeButton } from 'pages/Market/OperationForm/BorrowForm/EModeBanner/EModeButton';
import type { Address } from 'viem';
import DisabledActionNotice from './DisabledActionNotice';

Expand Down
4 changes: 2 additions & 2 deletions apps/evm/src/hooks/useIsFeatureEnabled/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ export const featureFlags = {
ChainId.UNICHAIN_SEPOLIA,
],
transactionHistory: [ChainId.BSC_MAINNET, ChainId.ETHEREUM, ChainId.UNICHAIN_MAINNET],
leveragedPositions: [ChainId.BSC_TESTNET],
repayWithCollateral: [ChainId.BSC_TESTNET],
leveragedPositions: [ChainId.BSC_MAINNET, ChainId.BSC_TESTNET],
repayWithCollateral: [ChainId.BSC_MAINNET, ChainId.BSC_TESTNET],
};

export type FeatureFlag = keyof typeof featureFlags;
Expand Down
Loading