@gearbox-protocol/ui-kit 4.0.0-next.33 → 4.0.0-next.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/base/index.cjs +1 -1
- package/dist/cjs/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.cjs +1 -1
- package/dist/cjs/components/base/values/constants.cjs +1 -1
- package/dist/cjs/components/base/values/index.cjs +1 -1
- package/dist/cjs/components/base/values/price-impact-value.cjs +1 -0
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/locale/en.json.cjs +1 -1
- package/dist/esm/components/base/index.js +62 -59
- package/dist/esm/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.js +29 -26
- package/dist/esm/components/base/values/constants.js +1 -0
- package/dist/esm/components/base/values/index.js +17 -14
- package/dist/esm/components/base/values/price-impact-value.js +23 -0
- package/dist/esm/components/index.js +605 -602
- package/dist/esm/index.js +795 -792
- package/dist/esm/locale/en.json.js +1 -1
- package/dist/types/components/base/values/constants.d.ts +1 -0
- package/dist/types/components/base/values/index.d.ts +1 -0
- package/dist/types/components/base/values/price-impact-value.d.ts +25 -0
- package/dist/types/locale/en.json.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e={"errors.networkError":"Network error. Can't fetch data","errors.incorrectAddressError":"Incorrect address. Please, check url","errors.noOpenedAccountsError":"You have no opened Credit Accounts. Perhaps, you have recently been liquidated? Check notification centre to see more.","errors.notFound":"Not found","errors.tooManyRequests":"Too many requests","errors.incorrectAddress":"Incorrect address","components.errorMessage.oops":"Oops...","components.networkIndicator.title":"Network","components.infiniteScrollWrapper.showMore":"Show more","components.alertModal.ok":"Ok","components.footer.privacy":"Privacy Notice","components.footer.terms":"Terms of Service","components.footer.disclosure":"Risk Disclosure Statement","components.footer.legalNotice":"Legal Notice","components.footer.legal":"Legal Info","components.footer.gearbox":"Copyright © Gearbox Foundation 2023-2026.","components.footer.built":"Built at ETHGlobal MarketMake hackathon.","components.footer.version":"Version {value}","components.sdkStatus.connecting":"Connecting…","components.sdkStatus.connected":"Connected","components.sdkStatus.disconnected":"Not connected","components.creditAccountHistory.table.protocol":"Protocol","components.creditAccountHistory.table.operation":"Operation","components.creditAccountHistory.table.details":"Details","components.notificationCenter.empty":"No notifications yet","components.notificationCenter.requests":"Requests","components.notificationCenter.recent":"Recent","components.notificationCenter.clear":"Clear all","components.liquidationPrice.check":"Check Area","components.loading.loading":"Loading","components.loading.loadingPercent":"Loading {percent}%","components.loading.wait":"Please wait...","components.smartNumberInput.balance":"Balance","components.smartNumberInput.amountLabel":"Amount","components.smartNumberInput.inputTitle":"Token Amount","components.smartNumberInput.confirm.input":"Input","components.smartNumberInput.selectToken":"Select token","components.tipWindow.title":"Tip","components.healthFactor.low":"Extremely low! This HF may not cover possible oracle deviations.","components.headCell":"Sort by {value}","components.graphView.noData":"Can't get data for this graph","components.filterBlock.reset":"Reset All","components.filterModal.searchPlaceholder":"Search options...","components.filterModal.noOptionsAvailable":"No options available","components.filterModal.noOptionsMatchSearch":"No options match your search","components.filterModal.reset":"Reset","components.filterModal.apply":"Apply","components.APY.tip":"These APYs are derived from the underlying protocols’ APIs and may differ in reality. Check respective protocols for their methodology.","components.creditSessionDetailedLiquidation.graph.noData":"No data","components.creditSessionDetailedLiquidation.graph.legend.point":"Current price","components.creditSessionDetailedLiquidation.graph.legend.area":"Liquidation Area","components.creditSessionDetailedLiquidation.graph.tip.hf":"Health Factor","components.creditSessionDetailedLiquidation.graph.tip.price":"Price","components.creditSessionDetailedLiquidation.table.noData":"No data","components.creditSessionDetailedLiquidation.table.seeGraph":"See graph","components.creditSessionDetailedLiquidation.table.asset":"Asset","components.creditSessionDetailedLiquidation.table.currentPrice":"Current price","components.creditSessionDetailedLiquidation.table.modelPrice":"Model price","components.apyParts.features.points":"Points","components.apyParts.features.incent":"Incent.","components.apyParts.supplyAPY":"Organic APY","components.apyParts.title":"APY type","components.apyParts.supplyAPY.tip":"Yield from lending funds","components.apyParts.tokenYield":"Intrinsic APY","components.apyParts.tokenYield.tip":"Yield from holding wstETH","components.apyParts.extraAPY":"{symbol} Incentive","components.apyParts.extraAPY.tip":"Calculated at the current rate","components.apyParts.totalAPY":"Overall APY","components.apyParts.points":"{symbol} Incentive","components.apyParts.points.condition.crossDeposit":"For cross-chain deposits made via Omni","components.yieldBreakdown.titleNetAtLeverage":"Net APY at {leverage}× Leverage","components.yieldBreakdown.titleNetAtLeverage7d":"Net APY at {leverage}× Leverage (7d)","components.yieldBreakdown.titleNet":"Net APY","components.yieldBreakdown.titleNet7d":"Net APY (7d)","components.yieldBreakdown.collateralApy":"Collateral APY","components.yieldBreakdown.collateralApy7d":"Collateral APY (7d)","components.yieldBreakdown.baseApy":"Base APY","components.yieldBreakdown.baseApy7d":"Base APY (7d)","components.yieldBreakdown.incentive":"Incentive","components.yieldBreakdown.incentiveApy":"Incentive APY","components.yieldBreakdown.incentiveApy7d":"Incentive APY (7d)","components.yieldBreakdown.borrowRate":"Borrow Rate","components.yieldBreakdown.borrowRate7d":"Borrow Rate (7d)","components.yieldBreakdown.programPoints":"{name} Points","components.yieldBreakdown.points":"Points","components.openCopyButtons.copy":"Copy to clipboard","components.openCopyButtons.explorer":"View in explorer","components.poolAssetsTable.asset":"Name","components.poolAssetsTable.rate":"Effective rate","components.poolAssetsTable.exposure":"Exposure","components.poolAssetsTable.cap":"Cap","components.poolAssetsTable.capUtilization":"Cap utilization","components.poolAssetsTable.usage":"{amount} of {total}","components.poolAssetsTable.head.name":"Credit Manager","components.poolAssetsTable.head.currentDebt":"Current Debt","components.poolAssetsTable.head.assets":"Asset LT","components.poolCreditManagersTable.assets":"{amount} assets","components.creditManagerInfo.title":"Assets and LT’s","components.creditManagerInfo.info.title":"Credit Managers","components.creditManagerInfo.info.copy.tip":"Copy Credit Manager address","components.creditManagerInfo.info.minDebt":"Min debt","components.creditManagerInfo.info.maxDebt":"Max debt","components.creditManagerInfo.info.liquidationFee":"Liquid. fee","components.creditManagerInfo.info.liquidationPremium":"Liquid. premium","components.creditManagerInfo.info.interestFee":"Interest fee","components.creditManagerInfo.info.debtLimit":"Debt limit","components.creditManagerInfo.info.maxEnabledTokens":"Max tokens","dialogs.oraclesAndLTInfo.filter.hide0Quota":"Hide 0-Quota","components.oraclesAndLTInfo.title":"Oracles and LTs","components.oraclesAndLTTable.head.token":"Token","components.oraclesAndLTTable.head.oracles":"Oracles","components.oraclesAndLTTable.head.lt":"LT","components.poolTable.pool":"Market","components.poolTable.market":"Market","components.poolTable.description.universal":"Universal","components.poolTable.supply":"Supply","components.poolTable.borrowed":"Borrowed","components.poolTable.supplyApy":"Supply APY","components.poolTable.supplyApy.tip":"Annual percentage yield that you earn for supplying capital. This number constantly changes as the utilization of the Markets goes up and down","components.poolTable.depositApy":"Deposit APY","components.poolTable.depositApy.tip":"Deposit APY breakdown: base rate, extra rewards, and points","components.poolTable.borrowApy":"Borrow APY","components.poolTable.utilizationApy":"Utilization APY","components.poolTable.borrowApy.tip":"On top of the utilization borrow APY, there is a borrow quota APY for different assets","components.poolTable.utilization":"Utilization","components.poolTable.collateral":"Collateral","components.poolTable.collateral.showAll":"Show All","components.poolTable.balance":"Your Balance","components.poolTable.balance.tip":`You don't earn token rewards, only organic yield. Please migrate liquidity by using "Migrate" flow above.`,"components.poolTable.emptyList":"No Pools found","components.poolTable.notFound.dashboard":"You currently have no open Market positions.","components.poolTable.notFound.list":"No Markets found","components.poolTable.notFound.description.dashboard":"Choose earn above.","components.poolTable.notFound.description.list":"Choose another chain or toggle Show All Markets","components.poolTable.externalApy.tooltipShort":"{value} APY boost when depositing via {name}","components.poolTable.line.rwa.tip":"This is RWA market.","components.rewardsTooltip.without.title":"Without Leverage","components.rewardsTooltip.without.extra":"Extra APY","components.rewardsTooltip.without.extra.tip":"Any deposit through Gearbox","components.rewardsTooltip.with.title":"With {leverage} Leverage","components.rewardsTooltip.with.borrowRate":"{symbol} borrow rate","components.rewardsTooltip.with.quotaRate":"Quota rate","components.rewardsTooltip.with.extra":"+ Extra APR","components.rewardsTooltip.button":"Click to show rewards details","components.strategiesTable.head.name":"Strategy","components.strategiesTable.head.rewards":"Rewards","components.strategiesTable.head.leverage":"Max Leverage","components.strategiesTable.head.earn":"You Can Earn","components.strategiesTable.body.notFound":"No strategy found","components.strategiesTable.line.disabled":"This strategy is currently not available, cause of lack or quota or liquidity. Please contact us on Discord, and we’ll assist you.","components.strategiesTable.line.name.disabled":"This strategy is currently not available","components.strategiesTable.line.points.tip":"For debt nominated in {symbol}","components.strategiesTable.line.points.tipAny":"For debt","components.strategiesTable.line.0slippage":"0-slippage","components.strategiesTable.line.0slippage.tip":"Wrapping/unwrapping happens directly through smart-contracts, so {symbol} deposits and withdrawals don't incur slippage.","components.strategiesTable.line.rwa":"RWA","components.strategiesTable.line.rwa.tip":"This strategy is available on RWA market.","dialogs.common.review":"Review","components.amountInput.max":"Max","components.amountInput.label":"Amount","components.amountInput.balance":"Balance","components.amountInput.selectToken":"Select token","components.amountInput.inputTitle":"Token Amount","components.leverageInput.label":"Leverage","components.leverageInput.reset":"Reset","components.leverageInput.available":"Available leverage","components.healthFactorBlock.label":"Health factor","components.healthFactorBlock.tip":"Health Factor is a numeric representation of your account 'health'. If your health factor drops below 1 or close to it, you might be liquidated.","components.liquidationPriceBlock.label":"Liquidation Price","components.liquidationPriceBlock.tip":"The asset price at which the account's health factor would reach 1 and become eligible for liquidation.","components.timeToLiquidationBlock.label":"Time to liquidation","components.timeToLiquidationBlock.tip":"Time to liquidation estimates how long the account can stay open if prices remain constant and no yield is earned—only accounting for borrow interest accrual.","components.historyChart.error":"Couldn't load chart data","components.historyChart.empty":"No data","components.positionTypeBadge.pool":"LP","components.positionTypeBadge.strategy":"Strategy","components.positionTypeBadge.liquidation":"Liquidation","components.positionStatusBadge.active":"Active","components.positionStatusBadge.repaid":"Repaid","components.titleMeta.unknownCurator":"Curator","components.moreAccordion.more":"More details","components.moreAccordion.less":"Less details","components.poolApyBreakdownCard.title":"Net APY","components.poolApyBreakdownCard.title7d":"Net APY (7d)","components.poolApyBreakdownCard.organicApy":"Base APY","components.poolApyBreakdownCard.organicApy7d":"Base APY (7d)","components.poolApyBreakdownCard.incentiveApy":"Incentive APY","components.poolApyBreakdownCard.incentiveApy7d":"Incentive APY (7d)","components.strategyApyBreakdownCard.formula":"{leverage} × {base}","components.strategyApyBreakdownCard.borrowFormula":"{leverage} × ({borrowRate} + {quotaRate}) − {borrowRate}","components.leveragePresetChips.label":"Leverage:","components.liquidationParamsTable.lt":"Liquidation threshold","components.liquidationParamsTable.penalty":"Liquidation discount","components.liquidationParamsTable.premium":"Liquidation premium","components.liquidationParamsTable.fee":"Liquidation fee","components.borrowRateBlock.label":"Borrow rate","components.borrowRateBlock.tip":"Borrow rate is displayed for your entire position size in total. You can reduce it in quota management.","components.borrowRateBlock.description":"Your borrow rate consists of the Base Rate plus the Quota Rates for every asset separately.","components.borrowRateBlock.baseRate":"Base Rate for Debt","components.borrowRateBlock.normalization":"Rates normalization","components.borrowRateBlock.normalization.tip":"Borrowers pay {quota} and {utilization}, which have a different base. Therefore, the total borrow rate value is normalized by Account value or Debt amount.","components.transactionConfirm.previewLoading":"Parsing transaction…","components.transactionConfirm.previewErrorTitle":"Preview error"};module.exports=e;
|
|
1
|
+
"use strict";const e={"errors.networkError":"Network error. Can't fetch data","errors.incorrectAddressError":"Incorrect address. Please, check url","errors.noOpenedAccountsError":"You have no opened Credit Accounts. Perhaps, you have recently been liquidated? Check notification centre to see more.","errors.notFound":"Not found","errors.tooManyRequests":"Too many requests","errors.incorrectAddress":"Incorrect address","components.errorMessage.oops":"Oops...","components.networkIndicator.title":"Network","components.infiniteScrollWrapper.showMore":"Show more","components.alertModal.ok":"Ok","components.footer.privacy":"Privacy Notice","components.footer.terms":"Terms of Service","components.footer.disclosure":"Risk Disclosure Statement","components.footer.legalNotice":"Legal Notice","components.footer.legal":"Legal Info","components.footer.gearbox":"Copyright © Gearbox Foundation 2023-2026.","components.footer.built":"Built at ETHGlobal MarketMake hackathon.","components.footer.version":"Version {value}","components.sdkStatus.connecting":"Connecting…","components.sdkStatus.connected":"Connected","components.sdkStatus.disconnected":"Not connected","components.creditAccountHistory.table.protocol":"Protocol","components.creditAccountHistory.table.operation":"Operation","components.creditAccountHistory.table.details":"Details","components.notificationCenter.empty":"No notifications yet","components.notificationCenter.requests":"Requests","components.notificationCenter.recent":"Recent","components.notificationCenter.clear":"Clear all","components.liquidationPrice.check":"Check Area","components.loading.loading":"Loading","components.loading.loadingPercent":"Loading {percent}%","components.loading.wait":"Please wait...","components.smartNumberInput.balance":"Balance","components.smartNumberInput.amountLabel":"Amount","components.smartNumberInput.inputTitle":"Token Amount","components.smartNumberInput.confirm.input":"Input","components.smartNumberInput.selectToken":"Select token","components.tipWindow.title":"Tip","components.healthFactor.low":"Extremely low! This HF may not cover possible oracle deviations.","components.headCell":"Sort by {value}","components.graphView.noData":"Can't get data for this graph","components.filterBlock.reset":"Reset All","components.filterModal.searchPlaceholder":"Search options...","components.filterModal.noOptionsAvailable":"No options available","components.filterModal.noOptionsMatchSearch":"No options match your search","components.filterModal.reset":"Reset","components.filterModal.apply":"Apply","components.APY.tip":"These APYs are derived from the underlying protocols’ APIs and may differ in reality. Check respective protocols for their methodology.","components.creditSessionDetailedLiquidation.graph.noData":"No data","components.creditSessionDetailedLiquidation.graph.legend.point":"Current price","components.creditSessionDetailedLiquidation.graph.legend.area":"Liquidation Area","components.creditSessionDetailedLiquidation.graph.tip.hf":"Health Factor","components.creditSessionDetailedLiquidation.graph.tip.price":"Price","components.creditSessionDetailedLiquidation.table.noData":"No data","components.creditSessionDetailedLiquidation.table.seeGraph":"See graph","components.creditSessionDetailedLiquidation.table.asset":"Asset","components.creditSessionDetailedLiquidation.table.currentPrice":"Current price","components.creditSessionDetailedLiquidation.table.modelPrice":"Model price","components.apyParts.features.points":"Points","components.apyParts.features.incent":"Incent.","components.apyParts.supplyAPY":"Organic APY","components.apyParts.title":"APY type","components.apyParts.supplyAPY.tip":"Yield from lending funds","components.apyParts.tokenYield":"Intrinsic APY","components.apyParts.tokenYield.tip":"Yield from holding wstETH","components.apyParts.extraAPY":"{symbol} Incentive","components.apyParts.extraAPY.tip":"Calculated at the current rate","components.apyParts.totalAPY":"Overall APY","components.apyParts.points":"{symbol} Incentive","components.apyParts.points.condition.crossDeposit":"For cross-chain deposits made via Omni","components.yieldBreakdown.titleNetAtLeverage":"Net APY at {leverage}× Leverage","components.yieldBreakdown.titleNetAtLeverage7d":"Net APY at {leverage}× Leverage (7d)","components.yieldBreakdown.titleNet":"Net APY","components.yieldBreakdown.titleNet7d":"Net APY (7d)","components.yieldBreakdown.collateralApy":"Collateral APY","components.yieldBreakdown.collateralApy7d":"Collateral APY (7d)","components.yieldBreakdown.baseApy":"Base APY","components.yieldBreakdown.baseApy7d":"Base APY (7d)","components.yieldBreakdown.incentive":"Incentive","components.yieldBreakdown.incentiveApy":"Incentive APY","components.yieldBreakdown.incentiveApy7d":"Incentive APY (7d)","components.yieldBreakdown.borrowRate":"Borrow Rate","components.yieldBreakdown.borrowRate7d":"Borrow Rate (7d)","components.yieldBreakdown.programPoints":"{name} Points","components.yieldBreakdown.points":"Points","components.openCopyButtons.copy":"Copy to clipboard","components.openCopyButtons.explorer":"View in explorer","components.poolAssetsTable.asset":"Name","components.poolAssetsTable.rate":"Effective rate","components.poolAssetsTable.exposure":"Exposure","components.poolAssetsTable.cap":"Cap","components.poolAssetsTable.capUtilization":"Cap utilization","components.poolAssetsTable.usage":"{amount} of {total}","components.poolAssetsTable.head.name":"Credit Manager","components.poolAssetsTable.head.currentDebt":"Current Debt","components.poolAssetsTable.head.assets":"Asset LT","components.poolCreditManagersTable.assets":"{amount} assets","components.creditManagerInfo.title":"Assets and LT’s","components.creditManagerInfo.info.title":"Credit Managers","components.creditManagerInfo.info.copy.tip":"Copy Credit Manager address","components.creditManagerInfo.info.minDebt":"Min debt","components.creditManagerInfo.info.maxDebt":"Max debt","components.creditManagerInfo.info.liquidationFee":"Liquid. fee","components.creditManagerInfo.info.liquidationPremium":"Liquid. premium","components.creditManagerInfo.info.interestFee":"Interest fee","components.creditManagerInfo.info.debtLimit":"Debt limit","components.creditManagerInfo.info.maxEnabledTokens":"Max tokens","dialogs.oraclesAndLTInfo.filter.hide0Quota":"Hide 0-Quota","components.oraclesAndLTInfo.title":"Oracles and LTs","components.oraclesAndLTTable.head.token":"Token","components.oraclesAndLTTable.head.oracles":"Oracles","components.oraclesAndLTTable.head.lt":"LT","components.poolTable.pool":"Market","components.poolTable.market":"Market","components.poolTable.description.universal":"Universal","components.poolTable.supply":"Supply","components.poolTable.borrowed":"Borrowed","components.poolTable.supplyApy":"Supply APY","components.poolTable.supplyApy.tip":"Annual percentage yield that you earn for supplying capital. This number constantly changes as the utilization of the Markets goes up and down","components.poolTable.depositApy":"Deposit APY","components.poolTable.depositApy.tip":"Deposit APY breakdown: base rate, extra rewards, and points","components.poolTable.borrowApy":"Borrow APY","components.poolTable.utilizationApy":"Utilization APY","components.poolTable.borrowApy.tip":"On top of the utilization borrow APY, there is a borrow quota APY for different assets","components.poolTable.utilization":"Utilization","components.poolTable.collateral":"Collateral","components.poolTable.collateral.showAll":"Show All","components.poolTable.balance":"Your Balance","components.poolTable.balance.tip":`You don't earn token rewards, only organic yield. Please migrate liquidity by using "Migrate" flow above.`,"components.poolTable.emptyList":"No Pools found","components.poolTable.notFound.dashboard":"You currently have no open Market positions.","components.poolTable.notFound.list":"No Markets found","components.poolTable.notFound.description.dashboard":"Choose earn above.","components.poolTable.notFound.description.list":"Choose another chain or toggle Show All Markets","components.poolTable.externalApy.tooltipShort":"{value} APY boost when depositing via {name}","components.poolTable.line.rwa.tip":"This is RWA market.","components.rewardsTooltip.without.title":"Without Leverage","components.rewardsTooltip.without.extra":"Extra APY","components.rewardsTooltip.without.extra.tip":"Any deposit through Gearbox","components.rewardsTooltip.with.title":"With {leverage} Leverage","components.rewardsTooltip.with.borrowRate":"{symbol} borrow rate","components.rewardsTooltip.with.quotaRate":"Quota rate","components.rewardsTooltip.with.extra":"+ Extra APR","components.rewardsTooltip.button":"Click to show rewards details","components.strategiesTable.head.name":"Strategy","components.strategiesTable.head.rewards":"Rewards","components.strategiesTable.head.leverage":"Max Leverage","components.strategiesTable.head.earn":"You Can Earn","components.strategiesTable.body.notFound":"No strategy found","components.strategiesTable.line.disabled":"This strategy is currently not available, cause of lack or quota or liquidity. Please contact us on Discord, and we’ll assist you.","components.strategiesTable.line.name.disabled":"This strategy is currently not available","components.strategiesTable.line.points.tip":"For debt nominated in {symbol}","components.strategiesTable.line.points.tipAny":"For debt","components.strategiesTable.line.0slippage":"0-slippage","components.strategiesTable.line.0slippage.tip":"Wrapping/unwrapping happens directly through smart-contracts, so {symbol} deposits and withdrawals don't incur slippage.","components.strategiesTable.line.rwa":"RWA","components.strategiesTable.line.rwa.tip":"This strategy is available on RWA market.","dialogs.common.review":"Review","components.amountInput.max":"Max","components.amountInput.label":"Amount","components.amountInput.balance":"Balance","components.amountInput.selectToken":"Select token","components.amountInput.inputTitle":"Token Amount","components.leverageInput.label":"Leverage","components.leverageInput.reset":"Reset","components.leverageInput.available":"Available leverage","components.healthFactorBlock.label":"Health factor","components.healthFactorBlock.tip":"Health Factor is a numeric representation of your account 'health'. If your health factor drops below 1 or close to it, you might be liquidated.","components.liquidationPriceBlock.label":"Liquidation Price","components.liquidationPriceBlock.tip":"The asset price at which the account's health factor would reach 1 and become eligible for liquidation.","components.timeToLiquidationBlock.label":"Time to liquidation","components.timeToLiquidationBlock.tip":"Time to liquidation estimates how long the account can stay open if prices remain constant and no yield is earned—only accounting for borrow interest accrual.","components.historyChart.error":"Couldn't load chart data","components.historyChart.empty":"No data","components.positionTypeBadge.pool":"LP","components.positionTypeBadge.strategy":"Strategy","components.positionTypeBadge.liquidation":"Liquidation","components.positionStatusBadge.active":"Active","components.positionStatusBadge.repaid":"Repaid","components.titleMeta.unknownCurator":"Curator","components.moreAccordion.more":"More details","components.moreAccordion.less":"Less details","components.poolApyBreakdownCard.title":"Net APY","components.poolApyBreakdownCard.title7d":"Net APY (7d)","components.poolApyBreakdownCard.organicApy":"Base APY","components.poolApyBreakdownCard.organicApy7d":"Base APY (7d)","components.poolApyBreakdownCard.incentiveApy":"Incentive APY","components.poolApyBreakdownCard.incentiveApy7d":"Incentive APY (7d)","components.strategyApyBreakdownCard.formula":"{leverage} × {base}","components.strategyApyBreakdownCard.borrowFormula":"{leverage} × {totalRate} − {borrowRate}","components.leveragePresetChips.label":"Leverage:","components.liquidationParamsTable.lt":"Liquidation threshold","components.liquidationParamsTable.penalty":"Liquidation discount","components.liquidationParamsTable.premium":"Liquidation premium","components.liquidationParamsTable.fee":"Liquidation fee","components.borrowRateBlock.label":"Borrow rate","components.borrowRateBlock.tip":"Borrow rate is displayed for your entire position size in total. You can reduce it in quota management.","components.borrowRateBlock.description":"Your borrow rate consists of the Base Rate plus the Quota Rates for every asset separately.","components.borrowRateBlock.baseRate":"Base Rate for Debt","components.borrowRateBlock.normalization":"Rates normalization","components.borrowRateBlock.normalization.tip":"Borrowers pay {quota} and {utilization}, which have a different base. Therefore, the total borrow rate value is normalized by Account value or Debt amount.","components.transactionConfirm.previewLoading":"Parsing transaction…","components.transactionConfirm.previewErrorTitle":"Preview error"};module.exports=e;
|
|
@@ -5,13 +5,13 @@ import { BorrowRateBlockTest as f } from "./borrow-rate-block/constants.js";
|
|
|
5
5
|
import { ChartWithSideCard as x } from "./chart-with-side-card/chart-with-side-card.js";
|
|
6
6
|
import { ChartWithSideCardTest as T } from "./chart-with-side-card/constants.js";
|
|
7
7
|
import { DetailedPageTitle as d } from "./detailed-page-title/detailed-page-title.js";
|
|
8
|
-
import { AsideAlignAnchor as
|
|
8
|
+
import { AsideAlignAnchor as c } from "./details-view/detail-aside/detail-aside-scope.js";
|
|
9
9
|
import { DetailAsideScreenLayout as g } from "./details-view/detail-aside/detail-aside-screen-layout.js";
|
|
10
10
|
import { DetailsView as k, DetailsViewLeftPane as B, DetailsViewManagePane as A } from "./details-view/details-view.js";
|
|
11
11
|
import { HealthFactorBlockTest as L } from "./health-factor-block/constants.js";
|
|
12
|
-
import { HealthFactorBlock as
|
|
12
|
+
import { HealthFactorBlock as I } from "./health-factor-block/health-factor-block.js";
|
|
13
13
|
import { HistoryChart as h } from "./history-chart/history-chart.js";
|
|
14
|
-
import { InfoLine as
|
|
14
|
+
import { InfoLine as w, InfoList as M, InfoSectionTitle as D, PointsInfoLine as H } from "./info-list/info-list.js";
|
|
15
15
|
import { InfoPortalOut as E, InfoPortalProvider as q } from "./info-portal/info-portal.js";
|
|
16
16
|
import { LeverageInput as N } from "./leverage-input/leverage-input.js";
|
|
17
17
|
import { LeveragePresetChipsTest as F } from "./leverage-preset-chips/constants.js";
|
|
@@ -27,13 +27,13 @@ import { NestedInfoStackTest as fe } from "./nested-info-stack/constants.js";
|
|
|
27
27
|
import { NestedInfoStack as xe } from "./nested-info-stack/nested-info-stack.js";
|
|
28
28
|
import { PageHeadProvider as Te, PageTitle as le } from "./page-title/page-title.js";
|
|
29
29
|
import { PoolApyBreakdownCardTest as Pe } from "./pool-apy-breakdown-card/constants.js";
|
|
30
|
-
import { PoolApyBreakdownCard as
|
|
30
|
+
import { PoolApyBreakdownCard as Se } from "./pool-apy-breakdown-card/pool-apy-breakdown-card.js";
|
|
31
31
|
import { PositionAssetsTest as ue } from "./position-assets/constants.js";
|
|
32
32
|
import { PositionAssets as Be } from "./position-assets/position-assets.js";
|
|
33
33
|
import { ReviewButton as be } from "./review-button/review-button.js";
|
|
34
34
|
import { SectionHeading as Ce } from "./section-heading/section-heading.js";
|
|
35
|
-
import { SEGMENTED_TABS_INACTIVE_BUTTON_CLASS as
|
|
36
|
-
import { SideCardTest as
|
|
35
|
+
import { SEGMENTED_TABS_INACTIVE_BUTTON_CLASS as ye, SegmentedTabs as he } from "./segmented-tabs/segmented-tabs.js";
|
|
36
|
+
import { SideCardTest as we } from "./side-card/constants.js";
|
|
37
37
|
import { SideCard as De } from "./side-card/side-card.js";
|
|
38
38
|
import { SPACE_HEIGHT as ve, SPACE_PX as Ee } from "./spacing.js";
|
|
39
39
|
import { Stack as _e } from "./stack/stack.js";
|
|
@@ -51,63 +51,64 @@ import { TitleMeta as fo } from "./title-meta/title-meta.js";
|
|
|
51
51
|
import { TokenAmount as xo } from "./token-amount/token-amount.js";
|
|
52
52
|
import { TokenPairSymbolTest as To } from "./token-pair-symbol/constants.js";
|
|
53
53
|
import { TokenPairSymbol as Po } from "./token-pair-symbol/token-pair-symbol.js";
|
|
54
|
-
import { TokenPairTitleTest as
|
|
54
|
+
import { TokenPairTitleTest as So } from "./token-pair-title/constants.js";
|
|
55
55
|
import { TokenPairTitle as uo } from "./token-pair-title/token-pair-title.js";
|
|
56
56
|
import { PositionShortLabelTest as Bo, ValueTest as Ao } from "./values/constants.js";
|
|
57
57
|
import { PnlValue as Lo } from "./values/pnl-value.js";
|
|
58
|
-
import { PointsValue as
|
|
58
|
+
import { PointsValue as Io } from "./values/points-value.js";
|
|
59
59
|
import { PositionShortLabel as ho } from "./values/position-short-label.js";
|
|
60
|
-
import { PositionStatusBadge as
|
|
60
|
+
import { PositionStatusBadge as wo } from "./values/position-status-badge.js";
|
|
61
61
|
import { PositionTypeBadge as Do } from "./values/position-type-badge.js";
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
62
|
+
import { PriceImpactValue as vo, priceImpact as Eo } from "./values/price-impact-value.js";
|
|
63
|
+
import { ApyValue as _o, HealthFactorValue as No, LeverageValue as Ro, TokenBigint as Fo, UsdValue as Go, UtilizationValue as Uo, bps as Oo } from "./values/scalars.js";
|
|
64
|
+
import { AmountInputTest as zo } from "./amount-input/constants.js";
|
|
65
|
+
import { DetailedPageTitleTest as jo } from "./detailed-page-title/constants.js";
|
|
66
|
+
import { DetailsViewTest as Ko } from "./details-view/constants.js";
|
|
67
|
+
import { HistoryChartTest as Yo } from "./history-chart/constants.js";
|
|
68
|
+
import { InfoListTest as $o } from "./info-list/constants.js";
|
|
69
|
+
import { LeverageInputTest as or } from "./leverage-input/constants.js";
|
|
70
|
+
import { ManagePaneTest as tr } from "./manage-pane/constants.js";
|
|
71
|
+
import { PageTitleTest as ir } from "./page-title/constants.js";
|
|
72
|
+
import { ReviewButtonTest as mr } from "./review-button/constants.js";
|
|
73
|
+
import { SectionHeadingTest as nr } from "./section-heading/constants.js";
|
|
74
|
+
import { SegmentedTabsTest as sr } from "./segmented-tabs/constants.js";
|
|
75
|
+
import { StackTest as lr } from "./stack/constants.js";
|
|
76
|
+
import { StatBadgeTest as Pr } from "./stat-badge/constants.js";
|
|
77
|
+
import { StickyBarTest as Sr } from "./sticky-bar/constants.js";
|
|
78
|
+
import { TabberTest as ur } from "./tabber/constants.js";
|
|
79
|
+
import { TokenAmountTest as Br } from "./token-amount/constants.js";
|
|
79
80
|
export {
|
|
80
81
|
r as AmountInput,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
zo as AmountInputTest,
|
|
83
|
+
_o as ApyValue,
|
|
84
|
+
c as AsideAlignAnchor,
|
|
84
85
|
p as BorrowRateBlock,
|
|
85
86
|
f as BorrowRateBlockTest,
|
|
86
87
|
x as ChartWithSideCard,
|
|
87
88
|
T as ChartWithSideCardTest,
|
|
88
89
|
g as DetailAsideScreenLayout,
|
|
89
90
|
d as DetailedPageTitle,
|
|
90
|
-
|
|
91
|
+
jo as DetailedPageTitleTest,
|
|
91
92
|
k as DetailsView,
|
|
92
93
|
B as DetailsViewLeftPane,
|
|
93
94
|
A as DetailsViewManagePane,
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
Ko as DetailsViewTest,
|
|
96
|
+
I as HealthFactorBlock,
|
|
96
97
|
L as HealthFactorBlockTest,
|
|
97
|
-
|
|
98
|
+
No as HealthFactorValue,
|
|
98
99
|
h as HistoryChart,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
Yo as HistoryChartTest,
|
|
101
|
+
w as InfoLine,
|
|
102
|
+
M as InfoList,
|
|
103
|
+
$o as InfoListTest,
|
|
103
104
|
E as InfoPortalOut,
|
|
104
105
|
q as InfoPortalProvider,
|
|
105
106
|
D as InfoSectionTitle,
|
|
106
107
|
N as LeverageInput,
|
|
107
|
-
|
|
108
|
+
or as LeverageInputTest,
|
|
108
109
|
U as LeveragePresetChips,
|
|
109
110
|
F as LeveragePresetChipsTest,
|
|
110
|
-
|
|
111
|
+
Ro as LeverageValue,
|
|
111
112
|
X as LiquidationParamsTable,
|
|
112
113
|
W as LiquidationParamsTableTest,
|
|
113
114
|
Q as LiquidationPriceBlock,
|
|
@@ -117,65 +118,67 @@ export {
|
|
|
117
118
|
ee as ManagePaneMessage,
|
|
118
119
|
oe as ManagePaneTab,
|
|
119
120
|
re as ManagePaneTabDropdown,
|
|
120
|
-
|
|
121
|
+
tr as ManagePaneTest,
|
|
121
122
|
pe as MoreAccordion,
|
|
122
123
|
ae as MoreAccordionTest,
|
|
123
124
|
xe as NestedInfoStack,
|
|
124
125
|
fe as NestedInfoStackTest,
|
|
125
126
|
Te as PageHeadProvider,
|
|
126
127
|
le as PageTitle,
|
|
127
|
-
|
|
128
|
+
ir as PageTitleTest,
|
|
128
129
|
Lo as PnlValue,
|
|
129
130
|
H as PointsInfoLine,
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
Io as PointsValue,
|
|
132
|
+
Se as PoolApyBreakdownCard,
|
|
132
133
|
Pe as PoolApyBreakdownCardTest,
|
|
133
134
|
Be as PositionAssets,
|
|
134
135
|
ue as PositionAssetsTest,
|
|
135
136
|
ho as PositionShortLabel,
|
|
136
137
|
Bo as PositionShortLabelTest,
|
|
137
|
-
|
|
138
|
+
wo as PositionStatusBadge,
|
|
138
139
|
Do as PositionTypeBadge,
|
|
140
|
+
vo as PriceImpactValue,
|
|
139
141
|
be as ReviewButton,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
+
mr as ReviewButtonTest,
|
|
143
|
+
ye as SEGMENTED_TABS_INACTIVE_BUTTON_CLASS,
|
|
142
144
|
ve as SPACE_HEIGHT,
|
|
143
145
|
Ee as SPACE_PX,
|
|
144
146
|
Ce as SectionHeading,
|
|
145
|
-
|
|
147
|
+
nr as SectionHeadingTest,
|
|
146
148
|
he as SegmentedTabs,
|
|
147
|
-
|
|
149
|
+
sr as SegmentedTabsTest,
|
|
148
150
|
De as SideCard,
|
|
149
|
-
|
|
151
|
+
we as SideCardTest,
|
|
150
152
|
_e as Stack,
|
|
151
|
-
|
|
153
|
+
lr as StackTest,
|
|
152
154
|
Re as StatBadge,
|
|
153
155
|
Fe as StatBadgeGrid,
|
|
154
|
-
|
|
156
|
+
Pr as StatBadgeTest,
|
|
155
157
|
Ue as StickyBar,
|
|
156
|
-
|
|
158
|
+
Sr as StickyBarTest,
|
|
157
159
|
Xe as StrategyApyBreakdownCard,
|
|
158
160
|
We as StrategyApyBreakdownCardTest,
|
|
159
161
|
Je as Tabber,
|
|
160
162
|
Ke as TabberSection,
|
|
161
|
-
|
|
163
|
+
ur as TabberTest,
|
|
162
164
|
ao as TimeToLiquidationBlock,
|
|
163
165
|
ro as TimeToLiquidationBlockTest,
|
|
164
166
|
fo as TitleMeta,
|
|
165
167
|
po as TitleMetaTest,
|
|
166
168
|
xo as TokenAmount,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
+
Br as TokenAmountTest,
|
|
170
|
+
Fo as TokenBigint,
|
|
169
171
|
Po as TokenPairSymbol,
|
|
170
172
|
To as TokenPairSymbolTest,
|
|
171
173
|
uo as TokenPairTitle,
|
|
172
|
-
|
|
174
|
+
So as TokenPairTitleTest,
|
|
173
175
|
a as TokenSelectPanel,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
+
Go as UsdValue,
|
|
177
|
+
Uo as UtilizationValue,
|
|
176
178
|
Ao as ValueTest,
|
|
177
|
-
|
|
179
|
+
Oo as bps,
|
|
178
180
|
Qe as isTabber,
|
|
181
|
+
Eo as priceImpact,
|
|
179
182
|
Ze as useDetailScrollSpy,
|
|
180
183
|
eo as useTitleText
|
|
181
184
|
};
|
|
@@ -6,7 +6,7 @@ import { TokenIcon as S } from "../../token-icon/token-icon.js";
|
|
|
6
6
|
import { FormattedMessageTyped as r } from "../../typed-intl/index.js";
|
|
7
7
|
import { totalApyOf as L, positiveTokenRewardsOf as M, pointProgramsOf as $ } from "../../../utils/apy-breakdown.js";
|
|
8
8
|
import { formatLeverage as d } from "../../../utils/format-leverage.js";
|
|
9
|
-
import { StrategyApyBreakdownCardTest as
|
|
9
|
+
import { StrategyApyBreakdownCardTest as n } from "./constants.js";
|
|
10
10
|
function j(p) {
|
|
11
11
|
const { borrowApyAvg7D: o, quotaRateAvg7D: i, liquidationThreshold: c } = p;
|
|
12
12
|
return o === void 0 || i === void 0 ? null : {
|
|
@@ -21,26 +21,26 @@ function J({
|
|
|
21
21
|
showFormula: i = !1,
|
|
22
22
|
period: c
|
|
23
23
|
}) {
|
|
24
|
-
const
|
|
24
|
+
const a = j(p), s = a && p.collateralApyAvg7D ? p.collateralApyAvg7D : void 0, u = a !== null && s !== void 0, h = u && a && s ? {
|
|
25
25
|
organicApy: T(
|
|
26
|
-
|
|
26
|
+
a,
|
|
27
27
|
s.organicApy,
|
|
28
28
|
o
|
|
29
29
|
),
|
|
30
30
|
totalApy: T(
|
|
31
|
-
|
|
31
|
+
a,
|
|
32
32
|
s.totalApy ?? s.organicApy,
|
|
33
33
|
o
|
|
34
34
|
),
|
|
35
35
|
...s.rewards ? { rewards: s.rewards } : {}
|
|
36
|
-
} : { organicApy: 0, totalApy: 0 }, A = u &&
|
|
36
|
+
} : { organicApy: 0, totalApy: 0 }, A = u && a ? C(a, o) : 0, v = L(h), R = v + A, x = s ? M(s) : [], b = s ? $(s) : [], g = x.map((e) => ({
|
|
37
37
|
reward: e,
|
|
38
38
|
value: Math.round(o * (e.supplyApr ?? 0))
|
|
39
|
-
})), f = R -
|
|
39
|
+
})), f = R - g.reduce((e, w) => e + w.value, 0), I = o > 0 ? f / o : void 0, B = u && a && o > 0 ? (A - a.borrowApy * (o - 1)) / o : void 0;
|
|
40
40
|
return /* @__PURE__ */ m(
|
|
41
41
|
D,
|
|
42
42
|
{
|
|
43
|
-
testId:
|
|
43
|
+
testId: n.root,
|
|
44
44
|
title: /* @__PURE__ */ t(
|
|
45
45
|
r,
|
|
46
46
|
{
|
|
@@ -54,14 +54,14 @@ function J({
|
|
|
54
54
|
),
|
|
55
55
|
chip: l(v),
|
|
56
56
|
chipPositive: v > 0,
|
|
57
|
-
chipTestId:
|
|
57
|
+
chipTestId: n.net,
|
|
58
58
|
children: [
|
|
59
59
|
/* @__PURE__ */ t(
|
|
60
60
|
y,
|
|
61
61
|
{
|
|
62
|
-
testId:
|
|
63
|
-
valueTestId:
|
|
64
|
-
captionTestId:
|
|
62
|
+
testId: n.collateral,
|
|
63
|
+
valueTestId: n.value,
|
|
64
|
+
captionTestId: n.caption,
|
|
65
65
|
label: /* @__PURE__ */ t(
|
|
66
66
|
r,
|
|
67
67
|
{
|
|
@@ -85,11 +85,11 @@ function J({
|
|
|
85
85
|
) : void 0
|
|
86
86
|
}
|
|
87
87
|
),
|
|
88
|
-
|
|
88
|
+
g.map(({ reward: e, value: w }) => /* @__PURE__ */ t(
|
|
89
89
|
y,
|
|
90
90
|
{
|
|
91
|
-
valueTestId:
|
|
92
|
-
captionTestId:
|
|
91
|
+
valueTestId: n.value,
|
|
92
|
+
captionTestId: n.caption,
|
|
93
93
|
label: /* @__PURE__ */ m("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
94
94
|
/* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(
|
|
95
95
|
r,
|
|
@@ -126,9 +126,9 @@ function J({
|
|
|
126
126
|
y,
|
|
127
127
|
{
|
|
128
128
|
muted: !0,
|
|
129
|
-
testId:
|
|
130
|
-
valueTestId:
|
|
131
|
-
captionTestId:
|
|
129
|
+
testId: n.borrow,
|
|
130
|
+
valueTestId: n.value,
|
|
131
|
+
captionTestId: n.caption,
|
|
132
132
|
label: /* @__PURE__ */ t(
|
|
133
133
|
r,
|
|
134
134
|
{
|
|
@@ -140,29 +140,32 @@ function J({
|
|
|
140
140
|
}
|
|
141
141
|
),
|
|
142
142
|
value: l(-A),
|
|
143
|
-
subtext: i &&
|
|
143
|
+
subtext: i && a && B !== void 0 ? /* @__PURE__ */ t(
|
|
144
144
|
r,
|
|
145
145
|
{
|
|
146
146
|
messageId: "components.strategyApyBreakdownCard.borrowFormula",
|
|
147
147
|
values: {
|
|
148
148
|
leverage: d(o),
|
|
149
|
+
// What the position is charged per unit of itself: base
|
|
150
|
+
// interest plus the quota, added before either is rounded, so
|
|
151
|
+
// the caption is not the sum of two figures it also printed.
|
|
152
|
+
totalRate: l(a.borrowApy + B),
|
|
149
153
|
// Magnitudes, not signed rates: the row above already carries
|
|
150
|
-
// the minus, and `−
|
|
154
|
+
// the minus, and `− −0.88%` reads as arithmetic to decode
|
|
151
155
|
// rather than a cost to understand.
|
|
152
|
-
borrowRate: l(
|
|
153
|
-
quotaRate: l(B)
|
|
156
|
+
borrowRate: l(a.borrowApy)
|
|
154
157
|
}
|
|
155
158
|
}
|
|
156
159
|
) : void 0
|
|
157
160
|
}
|
|
158
161
|
),
|
|
159
|
-
|
|
162
|
+
b.length > 0 ? /* @__PURE__ */ m(N, { children: [
|
|
160
163
|
/* @__PURE__ */ t(P, {}),
|
|
161
|
-
|
|
164
|
+
b.map((e) => /* @__PURE__ */ t(
|
|
162
165
|
y,
|
|
163
166
|
{
|
|
164
|
-
valueTestId:
|
|
165
|
-
captionTestId:
|
|
167
|
+
valueTestId: n.points,
|
|
168
|
+
captionTestId: n.caption,
|
|
166
169
|
label: /* @__PURE__ */ m("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
167
170
|
/* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(
|
|
168
171
|
r,
|
|
@@ -201,5 +204,5 @@ function J({
|
|
|
201
204
|
}
|
|
202
205
|
export {
|
|
203
206
|
J as StrategyApyBreakdownCard,
|
|
204
|
-
|
|
207
|
+
n as StrategyApyBreakdownCardTest
|
|
205
208
|
};
|
|
@@ -5,6 +5,7 @@ class a {
|
|
|
5
5
|
static utilization = "value-utilization";
|
|
6
6
|
static healthFactor = "value-health-factor";
|
|
7
7
|
static pnl = "value-pnl";
|
|
8
|
+
static priceImpact = "value-price-impact";
|
|
8
9
|
static tokenBigint = "value-token-bigint";
|
|
9
10
|
static points = "value-points";
|
|
10
11
|
static placeholder = "value-placeholder";
|
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
import { PositionShortLabelTest as t, ValueTest as r } from "./constants.js";
|
|
2
2
|
import { PnlValue as i } from "./pnl-value.js";
|
|
3
3
|
import { PointsValue as p } from "./points-value.js";
|
|
4
|
-
import { PositionShortLabel as
|
|
5
|
-
import { PositionStatusBadge as
|
|
6
|
-
import { PositionTypeBadge as
|
|
7
|
-
import {
|
|
4
|
+
import { PositionShortLabel as s } from "./position-short-label.js";
|
|
5
|
+
import { PositionStatusBadge as n } from "./position-status-badge.js";
|
|
6
|
+
import { PositionTypeBadge as f } from "./position-type-badge.js";
|
|
7
|
+
import { PriceImpactValue as P, priceImpact as c } from "./price-impact-value.js";
|
|
8
|
+
import { ApyValue as T, HealthFactorValue as b, LeverageValue as d, TokenBigint as h, UsdValue as B, UtilizationValue as L, bps as S } from "./scalars.js";
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
T as ApyValue,
|
|
11
|
+
b as HealthFactorValue,
|
|
12
|
+
d as LeverageValue,
|
|
12
13
|
i as PnlValue,
|
|
13
14
|
p as PointsValue,
|
|
14
|
-
|
|
15
|
+
s as PositionShortLabel,
|
|
15
16
|
t as PositionShortLabelTest,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
n as PositionStatusBadge,
|
|
18
|
+
f as PositionTypeBadge,
|
|
19
|
+
P as PriceImpactValue,
|
|
20
|
+
h as TokenBigint,
|
|
21
|
+
B as UsdValue,
|
|
22
|
+
L as UtilizationValue,
|
|
21
23
|
r as ValueTest,
|
|
22
|
-
|
|
24
|
+
S as bps,
|
|
25
|
+
c as priceImpact
|
|
23
26
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "@gearbox-protocol/sdk/onchain";
|
|
4
|
+
import "clsx";
|
|
5
|
+
import "tailwind-merge";
|
|
6
|
+
import "sonner";
|
|
7
|
+
import { formatPercentAmount as o } from "../../../utils/format-money.js";
|
|
8
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
9
|
+
import "luxon";
|
|
10
|
+
import "../../../utils/z-index.js";
|
|
11
|
+
import { ValueTest as i } from "./constants.js";
|
|
12
|
+
function m(r) {
|
|
13
|
+
return `${r > 0n ? "+" : ""}${o(Number(r) / 1e4, 2)}%`;
|
|
14
|
+
}
|
|
15
|
+
function g({
|
|
16
|
+
data: r
|
|
17
|
+
}) {
|
|
18
|
+
return r === void 0 ? /* @__PURE__ */ t("span", { "data-testid": i.placeholder, children: "—" }) : /* @__PURE__ */ t("span", { "data-testid": i.priceImpact, children: m(r) });
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
g as PriceImpactValue,
|
|
22
|
+
m as priceImpact
|
|
23
|
+
};
|