Skip to content

Commit 8760739

Browse files
committed
feat: enable Leveraged Positions feature on mainnet
1 parent d34e166 commit 8760739

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

apps/evm/src/clients/api/queries/getSwapQuote/__ tests__/index.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('getSwapQuote', () => {
5454
expect(restService).toHaveBeenCalledTimes(1);
5555
expect((restService as Mock).mock.calls[0][0]).toMatchInlineSnapshot(`
5656
{
57-
"endpoint": "/find-swap/pcs",
57+
"endpoint": "/find-swap",
5858
"method": "GET",
5959
"params": {
6060
"chainId": 56,
@@ -106,7 +106,7 @@ describe('getSwapQuote', () => {
106106
expect(restService).toHaveBeenCalledTimes(1);
107107
expect((restService as Mock).mock.calls[0][0]).toMatchInlineSnapshot(`
108108
{
109-
"endpoint": "/find-swap/pcs",
109+
"endpoint": "/find-swap",
110110
"method": "GET",
111111
"params": {
112112
"chainId": 56,
@@ -158,7 +158,7 @@ describe('getSwapQuote', () => {
158158
expect(restService).toHaveBeenCalledTimes(1);
159159
expect((restService as Mock).mock.calls[0][0]).toMatchInlineSnapshot(`
160160
{
161-
"endpoint": "/find-swap/pcs",
161+
"endpoint": "/find-swap",
162162
"method": "GET",
163163
"params": {
164164
"chainId": 56,

apps/evm/src/clients/api/queries/getSwapQuote/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const getSwapQuote = async ({
4545
}
4646

4747
const txsResponse = await restService<SwapApiResponse>({
48-
endpoint: '/find-swap/pcs',
48+
endpoint: '/find-swap',
4949
method: 'GET',
5050
params,
5151
});

apps/evm/src/hooks/useIsFeatureEnabled/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ export const featureFlags = {
141141
ChainId.UNICHAIN_SEPOLIA,
142142
],
143143
transactionHistory: [ChainId.BSC_MAINNET, ChainId.ETHEREUM, ChainId.UNICHAIN_MAINNET],
144-
leveragedPositions: [ChainId.BSC_TESTNET],
145-
repayWithCollateral: [ChainId.BSC_TESTNET],
144+
leveragedPositions: [ChainId.BSC_MAINNET, ChainId.BSC_TESTNET],
145+
repayWithCollateral: [ChainId.BSC_MAINNET, ChainId.BSC_TESTNET],
146146
};
147147

148148
export type FeatureFlag = keyof typeof featureFlags;

apps/evm/src/pages/Pool/__tests__/__snapshots__/index.eMode.spec.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`Pool - Feature flag enabled: E-mode > Assets tab > renders correctly when pool has E-mode groups 1`] = `"AssetsE-modeTotal supply$20.99TTotal borrow$8.58TAvailable liquidity$12.4TAssets4Paused assetsMy assets onlyE-mode assets onlyAssetTotal supplySupply APY sorted descendingTotal borrowBorrow APY LiquidityUSDT> 100T USDT$10.98T4.02%5.77%232.51M USDT$31.58M-5.50%-6.51%10 USDT$55.34MBUSD> 100T BUSD$10.54B3.56%5.32%142.66M BUSD$839.1M-5.82%10 BUSD$36.54MXVS> 100T XVS$2.78M0.17%1.85M XVS$709.25K-6.48%10 XVS$80.36MSort bySupply APY / LTVUSDTTotal supply> 100T USDT$10.98TSupply APY 4.02%5.77%Total borrow232.51M USDT$31.58MBorrow APY -5.50%-6.51%Liquidity10 USDT$55.34MBUSDTotal supply> 100T BUSD$10.54BSupply APY 3.56%5.32%Total borrow142.66M BUSD$839.1MBorrow APY -5.82%Liquidity10 BUSD$36.54MXVSTotal supply> 100T XVS$2.78MSupply APY 0.17%Total borrow1.85M XVS$709.25KBorrow APY -6.48%Liquidity10 XVS$80.36M"`;
3+
exports[`Pool - Feature flag enabled: E-mode > Assets tab > renders correctly when pool has E-mode groups 1`] = `"AssetsE-modeTotal supply$20.99TTotal borrow$8.58TAvailable liquidity$12.4TAssets4Boost is available now!One-click leverage to boost your yield up to 5x.Learn moreBoost is available now!One-click leverage to boost your yield up to 5x.Venus is live on Binance Wallet Earn.Borrow USDT and share $400,000 in rewards!Learn moreVenus is live on Binance Wallet Earn.Borrow USDT and share $400,000 in rewards!Paused assetsMy assets onlyE-mode assets onlyAssetTotal supplySupply APY sorted descendingTotal borrowBorrow APY LiquidityUSDT> 100T USDT$10.98T4.02%5.77%232.51M USDT$31.58M-5.50%-6.51%10 USDT$55.34MBUSD> 100T BUSD$10.54B3.56%5.32%142.66M BUSD$839.1M-5.82%10 BUSD$36.54MXVS> 100T XVS$2.78M0.17%1.85M XVS$709.25K-6.48%10 XVS$80.36MSort bySupply APY / LTVUSDTTotal supply> 100T USDT$10.98TSupply APY 4.02%5.77%Total borrow232.51M USDT$31.58MBorrow APY -5.50%-6.51%Liquidity10 USDT$55.34MBUSDTotal supply> 100T BUSD$10.54BSupply APY 3.56%5.32%Total borrow142.66M BUSD$839.1MBorrow APY -5.82%Liquidity10 BUSD$36.54MXVSTotal supply> 100T XVS$2.78MSupply APY 0.17%Total borrow1.85M XVS$709.25KBorrow APY -6.48%Liquidity10 XVS$80.36M"`;
44

55
exports[`Pool - Feature flag enabled: E-mode > E-mode tab > filters assets correctly when using search 1`] = `"AssetsE-modeEnabling E-Mode allows you to maximize your borrowing power, however, borrowing is restricted to assets within the selected group. Learn moreSort by:Max LTVStablecoinsDisableStablecoinsDisableAssetCollateralBorrowableMax LTVsorted descendingThresholdPenaltySort byMax LTVDeFiHealth factor:15.621.66ModerateSwitchHealth factor:15.621.66ModerateBUSDCollateralBorrowableMax LTV90%Liquidation threshold92%Liquidation penalty30%DeFiHealth factor:15.621.66ModerateSwitchHealth factor:15.621.66ModerateAssetCollateralBorrowableMax LTVsorted descendingThresholdPenaltyBUSD90%92%30%Sort byMax LTVBUSDCollateralBorrowableMax LTV90%Threshold92%Penalty30%"`;
66

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`Pool > renders correctly 1`] = `"Total supply$20.99TTotal borrow$8.58TAvailable liquidity$12.4TAssets4Paused assetsMy assets onlyAssetTotal supplySupply APY sorted descendingTotal borrowBorrow APY LiquidityUSDT> 100T USDT$10.98T4.02%5.77%232.51M USDT$31.58M-5.50%-6.51%10 USDT$55.34MBUSD> 100T BUSD$10.54B3.56%5.32%142.66M BUSD$839.1M-5.82%10 BUSD$36.54MXVS> 100T XVS$2.78M0.17%1.85M XVS$709.25K-6.48%10 XVS$80.36MSort bySupply APY / LTVUSDTTotal supply> 100T USDT$10.98TSupply APY 4.02%5.77%Total borrow232.51M USDT$31.58MBorrow APY -5.50%-6.51%Liquidity10 USDT$55.34MBUSDTotal supply> 100T BUSD$10.54BSupply APY 3.56%5.32%Total borrow142.66M BUSD$839.1MBorrow APY -5.82%Liquidity10 BUSD$36.54MXVSTotal supply> 100T XVS$2.78MSupply APY 0.17%Total borrow1.85M XVS$709.25KBorrow APY -6.48%Liquidity10 XVS$80.36M"`;
3+
exports[`Pool > renders correctly 1`] = `"Total supply$20.99TTotal borrow$8.58TAvailable liquidity$12.4TAssets4Boost is available now!One-click leverage to boost your yield up to 5x.Learn moreBoost is available now!One-click leverage to boost your yield up to 5x.Venus is live on Binance Wallet Earn.Borrow USDT and share $400,000 in rewards!Learn moreVenus is live on Binance Wallet Earn.Borrow USDT and share $400,000 in rewards!Paused assetsMy assets onlyAssetTotal supplySupply APY sorted descendingTotal borrowBorrow APY LiquidityUSDT> 100T USDT$10.98T4.02%5.77%232.51M USDT$31.58M-5.50%-6.51%10 USDT$55.34MBUSD> 100T BUSD$10.54B3.56%5.32%142.66M BUSD$839.1M-5.82%10 BUSD$36.54MXVS> 100T XVS$2.78M0.17%1.85M XVS$709.25K-6.48%10 XVS$80.36MSort bySupply APY / LTVUSDTTotal supply> 100T USDT$10.98TSupply APY 4.02%5.77%Total borrow232.51M USDT$31.58MBorrow APY -5.50%-6.51%Liquidity10 USDT$55.34MBUSDTotal supply> 100T BUSD$10.54BSupply APY 3.56%5.32%Total borrow142.66M BUSD$839.1MBorrow APY -5.82%Liquidity10 BUSD$36.54MXVSTotal supply> 100T XVS$2.78MSupply APY 0.17%Total borrow1.85M XVS$709.25KBorrow APY -6.48%Liquidity10 XVS$80.36M"`;

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,7 @@
15241524
resolved "https://registry.yarnpkg.com/@emotion/sheet/-/sheet-1.4.0.tgz#c9299c34d248bc26e82563735f78953d2efca83c"
15251525
integrity sha512-fTBW9/8r2w3dXWYM4HCB1Rdp8NLibOw2+XELH5m5+AkWiL/KqYX6dc0kKYlaYyKjrQ6ds33MCdMPEwgs2z1rqg==
15261526

1527-
"@emotion/styled@^11.11.0":
1527+
"@emotion/styled@^11.0.0", "@emotion/styled@^11.11.0":
15281528
version "11.14.1"
15291529
resolved "https://registry.yarnpkg.com/@emotion/styled/-/styled-11.14.1.tgz#8c34bed2948e83e1980370305614c20955aacd1c"
15301530
integrity sha512-qEEJt42DuToa3gurlH4Qqc1kVpNq8wO8cJtDzU46TjlzWjDlsVyevtYCRijVq3SrHsROS+gVQ8Fnea108GnKzw==
@@ -16080,10 +16080,10 @@ react-dom@^19.1.0:
1608016080
dependencies:
1608116081
scheduler "^0.26.0"
1608216082

16083-
16084-
version "6.1.0"
16085-
resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.1.0.tgz#22b86256beb1c5856f08a9a228adb8121dd985f2"
16086-
integrity sha512-SN/U6Ytxf1QGkw/9ve5Y+NxBbZM6Ht95tuXNMKs8EJyFa/Vy/+Co3stop3KBHARfn/giv+Lj1uUnTfOJ3moFEQ==
16083+
react-error-overlay@6.0.11, react-error-overlay@6.1.0:
16084+
version "6.0.11"
16085+
resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.11.tgz#92835de5841c5cf08ba00ddd2d677b6d17ff9adb"
16086+
integrity sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg==
1608716087

1608816088
react-fast-compare@^2.0.1:
1608916089
version "2.0.4"

0 commit comments

Comments
 (0)