@gearbox-protocol/ui-kit 4.0.0-next.43 → 4.0.0-next.45
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/borrow-rate-block/borrow-rate-block.cjs +1 -1
- package/dist/cjs/components/base/index.cjs +1 -1
- package/dist/cjs/components/base/info-list/info-list.cjs +1 -1
- package/dist/cjs/components/base/liquidation-price-block/liquidation-price-block.cjs +1 -1
- package/dist/cjs/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.cjs +1 -1
- package/dist/cjs/components/base/position-assets/position-assets.cjs +1 -1
- package/dist/cjs/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.cjs +1 -1
- package/dist/cjs/components/base/time-to-liquidation-block/time-to-liquidation-block.cjs +1 -1
- package/dist/cjs/components/base/token-amount/token-amount.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/no-value.cjs +1 -0
- package/dist/cjs/components/base/values/pnl-value.cjs +1 -1
- package/dist/cjs/components/base/values/price-impact-value.cjs +1 -1
- package/dist/cjs/components/base/values/scalars.cjs +1 -1
- package/dist/cjs/components/base-table/base-table-line.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-row.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.cjs +1 -1
- package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
- package/dist/cjs/components/help-tip/help-tip.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/locale/en.json.cjs +1 -1
- package/dist/cjs/utils/format.cjs +1 -1
- package/dist/cjs/utils/index.cjs +1 -1
- package/dist/esm/components/base/borrow-rate-block/borrow-rate-block.js +3 -2
- package/dist/esm/components/base/index.js +63 -61
- package/dist/esm/components/base/info-list/info-list.js +8 -7
- package/dist/esm/components/base/liquidation-price-block/liquidation-price-block.js +46 -38
- package/dist/esm/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.js +74 -61
- package/dist/esm/components/base/position-assets/position-assets.js +45 -41
- package/dist/esm/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.js +86 -74
- package/dist/esm/components/base/time-to-liquidation-block/time-to-liquidation-block.js +40 -32
- package/dist/esm/components/base/token-amount/token-amount.js +32 -16
- package/dist/esm/components/base/values/constants.js +1 -0
- package/dist/esm/components/base/values/index.js +21 -19
- package/dist/esm/components/base/values/no-value.js +34 -0
- package/dist/esm/components/base/values/pnl-value.js +10 -9
- package/dist/esm/components/base/values/price-impact-value.js +6 -5
- package/dist/esm/components/base/values/scalars.js +23 -26
- package/dist/esm/components/base-table/base-table-line.js +44 -36
- package/dist/esm/components/checkbox/checkbox-labeled.js +1 -1
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +1 -1
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-row.js +47 -46
- package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js +26 -25
- package/dist/esm/components/compound-apy/compound-apy.js +48 -40
- package/dist/esm/components/help-tip/help-tip.js +64 -59
- package/dist/esm/components/index.js +624 -622
- package/dist/esm/components/with-copy/with-copy.js +1 -1
- package/dist/esm/index.js +814 -811
- package/dist/esm/locale/en.json.js +1 -0
- package/dist/esm/utils/format.js +14 -12
- package/dist/esm/utils/index.js +76 -75
- package/dist/globals.css +1 -1
- package/dist/types/components/base/apy-breakdown-body/apy-breakdown-body.d.ts +4 -3
- package/dist/types/components/base/liquidation-price-block/liquidation-price-block.d.ts +8 -1
- package/dist/types/components/base/position-assets/position-assets.d.ts +7 -1
- package/dist/types/components/base/time-to-liquidation-block/time-to-liquidation-block.d.ts +8 -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/no-value.d.ts +25 -0
- package/dist/types/components/base/values/scalars.d.ts +7 -2
- package/dist/types/locale/en.json.d.ts +1 -0
- package/dist/types/utils/format.d.ts +8 -0
- 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 Rate","components.poolTable.utilizationApy":"Utilization APY","components.poolTable.borrowApy.tip":"On top of the utilization borrow rate, there is a borrow quota rate 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;
|
|
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.value.accruing":"Averaged data is still being computed and will be available shortly.","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 Rate","components.poolTable.utilizationApy":"Utilization APY","components.poolTable.borrowApy.tip":"On top of the utilization borrow rate, there is a borrow quota rate 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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o="≈";function c(t){return`${(t/1024).toFixed(2)} KB`}function i(t){if(t===0)return"-";const e=Math.floor(t/100),r=Math.floor(t%100/10),n=t%10;return`v${e}.${r}.${n}`}function u(t){return new Date(t*1e3).toLocaleString("en-GB",{dateStyle:"short",timeStyle:"short"})}function a(t,e=4){if(!t)return"";const r=t.slice(0,e+2),n=t.slice(-e);return`${r}...${n}`}function f(t){return Math.floor(t*100)}function s(t){if(t===0)return"0";if(t>=1)return t.toFixed(0);const e=t.toPrecision(2);return e.includes("e")?Number(e).toFixed(20).replace(/\.?0+$/,""):e.replace(/\.?0+$/,"")}exports.APPROXIMATE_SYMBOL=o;exports.convertPercent=f;exports.formatBytecodeSize=c;exports.formatBytecodeVersion=i;exports.formatTimestamp=u;exports.shortenHash=a;exports.significantTrunc=s;
|
package/dist/cjs/utils/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("./a11y.cjs"),a=require("./apy-breakdown.cjs"),h=require("./bn-to-input-view.cjs"),q=require("./bn-to-pretty-view.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("./a11y.cjs"),a=require("./apy-breakdown.cjs"),h=require("./bn-to-input-view.cjs"),q=require("./bn-to-pretty-view.cjs"),P=require("./bps.cjs"),m=require("./cn.cjs"),i=require("./colors.cjs"),I=require("./copy.cjs"),e=require("./format.cjs"),b=require("./format-asset-amount.cjs"),v=require("./format-leverage.cjs"),r=require("./format-money.cjs"),t=require("./format-number.cjs"),A=require("./format-slippage.cjs"),T=require("./leverage-presets.cjs"),u=require("./loading.cjs"),o=require("./math.cjs"),k=require("./network-icons.cjs"),s=require("./parse-input-to-bn.cjs"),p=require("./plural.cjs"),y=require("./ranges.cjs"),g=require("./react.cjs"),L=require("./search.cjs"),f=require("./search-in-token.cjs"),N=require("./short-sha.cjs"),S=require("./shorten-string.cjs"),l=require("./templates.cjs"),d=require("./token-icon-source.cjs"),n=require("./ttl.cjs"),w=require("./window.cjs"),_=require("./z-index.cjs");exports.generateId=c.generateId;exports.useFormFieldIds=c.useFormFieldIds;exports.pointProgramsOf=a.pointProgramsOf;exports.positiveTokenRewardsOf=a.positiveTokenRewardsOf;exports.tokenRewardsOf=a.tokenRewardsOf;exports.totalApyOf=a.totalApyOf;exports.bnToInputView=h.bnToInputView;exports.bnToPrettyView=q.bnToPrettyView;exports.bpsToPercent=P.bpsToPercent;exports.cn=m.cn;exports.default=m.cn;exports.generateColorsFromBase=i.generateColorsFromBase;exports.getCSSVariable=i.getCSSVariable;exports.hexToRgba=i.hexToRgba;exports.hslToHex=i.hslToHex;exports.resolveCSSColor=i.resolveCSSColor;exports.copyToClipboard=I.copyToClipboard;exports.APPROXIMATE_SYMBOL=e.APPROXIMATE_SYMBOL;exports.convertPercent=e.convertPercent;exports.formatBytecodeSize=e.formatBytecodeSize;exports.formatBytecodeVersion=e.formatBytecodeVersion;exports.formatTimestamp=e.formatTimestamp;exports.shortenHash=e.shortenHash;exports.significantTrunc=e.significantTrunc;exports.formatAssetAmount=b.formatAssetAmount;exports.formatLeverage=v.formatLeverage;exports.formatCompactPercent=r.formatCompactPercent;exports.formatMoney=r.formatMoney;exports.formatMoneyAmount=r.formatMoneyAmount;exports.formatPercentAmount=r.formatPercentAmount;exports.percentTemplate=r.percentTemplate;exports.percentageTemplate=r.percentageTemplate;exports.FORMAT_CONSTANTS=t.FORMAT_CONSTANTS;exports.formatNumberWithSuffix=t.formatNumberWithSuffix;exports.formatPrice=t.formatPrice;exports.getAdaptiveDecimals=t.getAdaptiveDecimals;exports.isBelowDisplayThreshold=t.isBelowDisplayThreshold;exports.isEffectivelyZero=t.isEffectivelyZero;exports.toSignificantDigits=t.toSignificantDigits;exports.slippageTemplate=A.slippageTemplate;exports.formatChipLeverage=T.formatChipLeverage;exports.leveragePresets=T.leveragePresets;exports.allLoaded=u.allLoaded;exports.loadingProgress=u.loadingProgress;exports.round5=u.round5;exports.decimalsToStep=o.decimalsToStep;exports.findClosestPoint=o.findClosestPoint;exports.formatWithDecimals=o.formatWithDecimals;exports.formatWithoutDecimals=o.formatWithoutDecimals;exports.splitInterval=o.splitInterval;exports.validateMinMax=o.validateMinMax;exports.getNetworkIcon=k.getNetworkIcon;exports.bnToLiquidationPriceView=s.bnToLiquidationPriceView;exports.isPositiveFloat=s.isPositiveFloat;exports.parseInputToBN=s.parseInputToBN;exports.parseSmallNumber=s.parseSmallNumber;exports.pluralize=p.pluralize;exports.selectPluralString=p.selectPluralString;exports.getAvailableRanges=y.getAvailableRanges;exports.extractTextFromLabel=g.extractTextFromLabel;exports.serializeValue=g.serializeValue;exports.searchInString=L.searchInString;exports.createTokenSearchFilter=f.createTokenSearchFilter;exports.searchInToken=f.searchInToken;exports.shortSHA=N.shortSHA;exports.isLongString=S.isLongString;exports.shortenString=S.shortenString;exports.negativeTokenTemplate=l.negativeTokenTemplate;exports.tokenTemplate=l.tokenTemplate;exports.tokenTemplateNumber=l.tokenTemplateNumber;exports.tokenTemplateString=l.tokenTemplateString;exports.getTokenIcon=d.getTokenIcon;exports.parseShareTokenUnderlying=d.parseShareTokenUnderlying;exports.TTL_CONSTANTS=n.TTL_CONSTANTS;exports.getTTLZones=n.getTTLZones;exports.ttlFromTimestamp=n.ttlFromTimestamp;exports.ttlLeft=n.ttlLeft;exports.ttlLeftHuman=n.ttlLeftHuman;exports.openInNewWindow=w.openInNewWindow;exports.Z_INDEX=_.Z_INDEX;exports.Z_INDEX_VALUES=_.Z_INDEX_VALUES;
|
|
@@ -5,6 +5,7 @@ import { FormattedMessageTyped as e } from "../../typed-intl/index.js";
|
|
|
5
5
|
import { Typography as d } from "../../typography/typography.js";
|
|
6
6
|
import { VSpace as f } from "../../vspace/vspace.js";
|
|
7
7
|
import { InfoList as b, InfoLine as i } from "../info-list/info-list.js";
|
|
8
|
+
import "../../help-tip/help-tip.js";
|
|
8
9
|
import "react";
|
|
9
10
|
import "@gearbox-protocol/sdk/onchain";
|
|
10
11
|
import "clsx";
|
|
@@ -23,7 +24,7 @@ function p(t) {
|
|
|
23
24
|
function u(t) {
|
|
24
25
|
return typeof t == "number" ? t : t?.base;
|
|
25
26
|
}
|
|
26
|
-
function
|
|
27
|
+
function q({
|
|
27
28
|
data: t,
|
|
28
29
|
dataTo: r
|
|
29
30
|
}) {
|
|
@@ -84,6 +85,6 @@ function _({
|
|
|
84
85
|
) }) });
|
|
85
86
|
}
|
|
86
87
|
export {
|
|
87
|
-
|
|
88
|
+
q as BorrowRateBlock,
|
|
88
89
|
n as BorrowRateBlockTest
|
|
89
90
|
};
|
|
@@ -10,10 +10,10 @@ import { DetailAsideScreenLayout as g } from "./details-view/detail-aside/detail
|
|
|
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
12
|
import { HealthFactorBlock as I } from "./health-factor-block/health-factor-block.js";
|
|
13
|
-
import { HistoryChart as
|
|
13
|
+
import { HistoryChart as V } from "./history-chart/history-chart.js";
|
|
14
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
|
-
import { LeverageInput as
|
|
16
|
+
import { LeverageInput as _ } from "./leverage-input/leverage-input.js";
|
|
17
17
|
import { LeveragePresetChipsTest as F } from "./leverage-preset-chips/constants.js";
|
|
18
18
|
import { LeveragePresetChips as U } from "./leverage-preset-chips/leverage-preset-chips.js";
|
|
19
19
|
import { LiquidationParamsTableTest as W } from "./liquidation-params-table/constants.js";
|
|
@@ -32,11 +32,11 @@ 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 ye, SegmentedTabs as
|
|
35
|
+
import { SEGMENTED_TABS_INACTIVE_BUTTON_CLASS as ye, SegmentedTabs as Ve } from "./segmented-tabs/segmented-tabs.js";
|
|
36
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
|
-
import { Stack as
|
|
39
|
+
import { Stack as Ne } from "./stack/stack.js";
|
|
40
40
|
import { StatBadge as Re, StatBadgeGrid as Fe } from "./stat-badge/stat-badge.js";
|
|
41
41
|
import { StickyBar as Ue } from "./sticky-bar/sticky-bar.js";
|
|
42
42
|
import { StrategyApyBreakdownCardTest as We } from "./strategy-apy-breakdown-card/constants.js";
|
|
@@ -54,33 +54,34 @@ import { TokenPairSymbol as Po } from "./token-pair-symbol/token-pair-symbol.js"
|
|
|
54
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
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
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 {
|
|
79
|
-
import {
|
|
57
|
+
import { NoValue as Lo } from "./values/no-value.js";
|
|
58
|
+
import { PnlValue as Io } from "./values/pnl-value.js";
|
|
59
|
+
import { PointsValue as Vo } from "./values/points-value.js";
|
|
60
|
+
import { PositionShortLabel as wo } from "./values/position-short-label.js";
|
|
61
|
+
import { PositionStatusBadge as Do } from "./values/position-status-badge.js";
|
|
62
|
+
import { PositionTypeBadge as vo } from "./values/position-type-badge.js";
|
|
63
|
+
import { PriceImpactValue as qo, priceImpact as No } from "./values/price-impact-value.js";
|
|
64
|
+
import { ApyValue as Ro, HealthFactorValue as Fo, LeverageValue as Go, TokenBigint as Uo, UsdValue as Oo, UtilizationValue as Wo, bps as zo } from "./values/scalars.js";
|
|
65
|
+
import { AmountInputTest as jo } from "./amount-input/constants.js";
|
|
66
|
+
import { DetailedPageTitleTest as Ko } from "./detailed-page-title/constants.js";
|
|
67
|
+
import { DetailsViewTest as Yo } from "./details-view/constants.js";
|
|
68
|
+
import { HistoryChartTest as $o } from "./history-chart/constants.js";
|
|
69
|
+
import { InfoListTest as or } from "./info-list/constants.js";
|
|
70
|
+
import { LeverageInputTest as tr } from "./leverage-input/constants.js";
|
|
71
|
+
import { ManagePaneTest as ir } from "./manage-pane/constants.js";
|
|
72
|
+
import { PageTitleTest as mr } from "./page-title/constants.js";
|
|
73
|
+
import { ReviewButtonTest as nr } from "./review-button/constants.js";
|
|
74
|
+
import { SectionHeadingTest as sr } from "./section-heading/constants.js";
|
|
75
|
+
import { SegmentedTabsTest as lr } from "./segmented-tabs/constants.js";
|
|
76
|
+
import { StackTest as Pr } from "./stack/constants.js";
|
|
77
|
+
import { StatBadgeTest as Sr } from "./stat-badge/constants.js";
|
|
78
|
+
import { StickyBarTest as ur } from "./sticky-bar/constants.js";
|
|
79
|
+
import { TabberTest as Br } from "./tabber/constants.js";
|
|
80
|
+
import { TokenAmountTest as br } from "./token-amount/constants.js";
|
|
80
81
|
export {
|
|
81
82
|
r as AmountInput,
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
jo as AmountInputTest,
|
|
84
|
+
Ro as ApyValue,
|
|
84
85
|
c as AsideAlignAnchor,
|
|
85
86
|
p as BorrowRateBlock,
|
|
86
87
|
f as BorrowRateBlockTest,
|
|
@@ -88,27 +89,27 @@ export {
|
|
|
88
89
|
T as ChartWithSideCardTest,
|
|
89
90
|
g as DetailAsideScreenLayout,
|
|
90
91
|
d as DetailedPageTitle,
|
|
91
|
-
|
|
92
|
+
Ko as DetailedPageTitleTest,
|
|
92
93
|
k as DetailsView,
|
|
93
94
|
B as DetailsViewLeftPane,
|
|
94
95
|
A as DetailsViewManagePane,
|
|
95
|
-
|
|
96
|
+
Yo as DetailsViewTest,
|
|
96
97
|
I as HealthFactorBlock,
|
|
97
98
|
L as HealthFactorBlockTest,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
Fo as HealthFactorValue,
|
|
100
|
+
V as HistoryChart,
|
|
101
|
+
$o as HistoryChartTest,
|
|
101
102
|
w as InfoLine,
|
|
102
103
|
M as InfoList,
|
|
103
|
-
|
|
104
|
+
or as InfoListTest,
|
|
104
105
|
E as InfoPortalOut,
|
|
105
106
|
q as InfoPortalProvider,
|
|
106
107
|
D as InfoSectionTitle,
|
|
107
|
-
|
|
108
|
-
|
|
108
|
+
_ as LeverageInput,
|
|
109
|
+
tr as LeverageInputTest,
|
|
109
110
|
U as LeveragePresetChips,
|
|
110
111
|
F as LeveragePresetChipsTest,
|
|
111
|
-
|
|
112
|
+
Go as LeverageValue,
|
|
112
113
|
X as LiquidationParamsTable,
|
|
113
114
|
W as LiquidationParamsTableTest,
|
|
114
115
|
Q as LiquidationPriceBlock,
|
|
@@ -118,67 +119,68 @@ export {
|
|
|
118
119
|
ee as ManagePaneMessage,
|
|
119
120
|
oe as ManagePaneTab,
|
|
120
121
|
re as ManagePaneTabDropdown,
|
|
121
|
-
|
|
122
|
+
ir as ManagePaneTest,
|
|
122
123
|
pe as MoreAccordion,
|
|
123
124
|
ae as MoreAccordionTest,
|
|
124
125
|
xe as NestedInfoStack,
|
|
125
126
|
fe as NestedInfoStackTest,
|
|
127
|
+
Lo as NoValue,
|
|
126
128
|
Te as PageHeadProvider,
|
|
127
129
|
le as PageTitle,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
+
mr as PageTitleTest,
|
|
131
|
+
Io as PnlValue,
|
|
130
132
|
H as PointsInfoLine,
|
|
131
|
-
|
|
133
|
+
Vo as PointsValue,
|
|
132
134
|
Se as PoolApyBreakdownCard,
|
|
133
135
|
Pe as PoolApyBreakdownCardTest,
|
|
134
136
|
Be as PositionAssets,
|
|
135
137
|
ue as PositionAssetsTest,
|
|
136
|
-
|
|
138
|
+
wo as PositionShortLabel,
|
|
137
139
|
Bo as PositionShortLabelTest,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
140
|
+
Do as PositionStatusBadge,
|
|
141
|
+
vo as PositionTypeBadge,
|
|
142
|
+
qo as PriceImpactValue,
|
|
141
143
|
be as ReviewButton,
|
|
142
|
-
|
|
144
|
+
nr as ReviewButtonTest,
|
|
143
145
|
ye as SEGMENTED_TABS_INACTIVE_BUTTON_CLASS,
|
|
144
146
|
ve as SPACE_HEIGHT,
|
|
145
147
|
Ee as SPACE_PX,
|
|
146
148
|
Ce as SectionHeading,
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
149
|
+
sr as SectionHeadingTest,
|
|
150
|
+
Ve as SegmentedTabs,
|
|
151
|
+
lr as SegmentedTabsTest,
|
|
150
152
|
De as SideCard,
|
|
151
153
|
we as SideCardTest,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
+
Ne as Stack,
|
|
155
|
+
Pr as StackTest,
|
|
154
156
|
Re as StatBadge,
|
|
155
157
|
Fe as StatBadgeGrid,
|
|
156
|
-
|
|
158
|
+
Sr as StatBadgeTest,
|
|
157
159
|
Ue as StickyBar,
|
|
158
|
-
|
|
160
|
+
ur as StickyBarTest,
|
|
159
161
|
Xe as StrategyApyBreakdownCard,
|
|
160
162
|
We as StrategyApyBreakdownCardTest,
|
|
161
163
|
Je as Tabber,
|
|
162
164
|
Ke as TabberSection,
|
|
163
|
-
|
|
165
|
+
Br as TabberTest,
|
|
164
166
|
ao as TimeToLiquidationBlock,
|
|
165
167
|
ro as TimeToLiquidationBlockTest,
|
|
166
168
|
fo as TitleMeta,
|
|
167
169
|
po as TitleMetaTest,
|
|
168
170
|
xo as TokenAmount,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
+
br as TokenAmountTest,
|
|
172
|
+
Uo as TokenBigint,
|
|
171
173
|
Po as TokenPairSymbol,
|
|
172
174
|
To as TokenPairSymbolTest,
|
|
173
175
|
uo as TokenPairTitle,
|
|
174
176
|
So as TokenPairTitleTest,
|
|
175
177
|
a as TokenSelectPanel,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
+
Oo as UsdValue,
|
|
179
|
+
Wo as UtilizationValue,
|
|
178
180
|
Ao as ValueTest,
|
|
179
|
-
|
|
181
|
+
zo as bps,
|
|
180
182
|
Qe as isTabber,
|
|
181
|
-
|
|
183
|
+
No as priceImpact,
|
|
182
184
|
Ze as useDetailScrollSpy,
|
|
183
185
|
eo as useTitleText
|
|
184
186
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { Stack as c } from "../stack/stack.js";
|
|
3
3
|
import { useTitleText as n } from "../text/use-title-text.js";
|
|
4
|
+
import "../../help-tip/help-tip.js";
|
|
4
5
|
import "react";
|
|
6
|
+
import "react-intl";
|
|
5
7
|
import { pointProgramsOf as f } from "../../../utils/apy-breakdown.js";
|
|
6
8
|
import "@gearbox-protocol/sdk/onchain";
|
|
7
9
|
import "clsx";
|
|
@@ -13,7 +15,6 @@ import { PointsValue as l } from "../values/points-value.js";
|
|
|
13
15
|
import "viem";
|
|
14
16
|
import "../../points-icon/points-icon.js";
|
|
15
17
|
import "../../token-icon/token-icon.js";
|
|
16
|
-
import "react-intl";
|
|
17
18
|
import "../../tooltip/simple-tooltip.js";
|
|
18
19
|
import "../../tooltip/tooltip.js";
|
|
19
20
|
import "../../badge/badge.js";
|
|
@@ -21,7 +22,7 @@ import "../../badge/chip.js";
|
|
|
21
22
|
import { Typography as u } from "../../typography/typography.js";
|
|
22
23
|
import { VerticalIndicator as d } from "../../vertical-indicator/vertical-indicator.js";
|
|
23
24
|
import { InfoListTest as i } from "./constants.js";
|
|
24
|
-
function
|
|
25
|
+
function G({
|
|
25
26
|
children: t
|
|
26
27
|
}) {
|
|
27
28
|
return /* @__PURE__ */ r(c, { gap: "sm", "data-testid": i.root, children: t });
|
|
@@ -49,7 +50,7 @@ function g({
|
|
|
49
50
|
}
|
|
50
51
|
);
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
+
function H({
|
|
53
54
|
title: t
|
|
54
55
|
}) {
|
|
55
56
|
const o = n();
|
|
@@ -66,7 +67,7 @@ function G({
|
|
|
66
67
|
}
|
|
67
68
|
);
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
+
function J({
|
|
70
71
|
data: t,
|
|
71
72
|
title: o = "components.yieldBreakdown.points"
|
|
72
73
|
}) {
|
|
@@ -74,8 +75,8 @@ function H({
|
|
|
74
75
|
}
|
|
75
76
|
export {
|
|
76
77
|
g as InfoLine,
|
|
77
|
-
|
|
78
|
+
G as InfoList,
|
|
78
79
|
i as InfoListTest,
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
H as InfoSectionTitle,
|
|
81
|
+
J as PointsInfoLine
|
|
81
82
|
};
|
|
@@ -1,67 +1,75 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
1
|
+
import { jsx as i, jsxs as c, Fragment as T } from "react/jsx-runtime";
|
|
2
2
|
import { useTitleText as b } from "../text/use-title-text.js";
|
|
3
|
-
import { FadeoutLoading as
|
|
4
|
-
import { FormattedNumberString as
|
|
5
|
-
import { HealthDot as
|
|
6
|
-
import { FormattedMessageTyped as
|
|
7
|
-
import { VerticalIndicator as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
3
|
+
import { FadeoutLoading as u } from "../../fadeout-loading/fadeout-loading.js";
|
|
4
|
+
import { FormattedNumberString as g } from "../../formatted-number/formatted-number.js";
|
|
5
|
+
import { HealthDot as I } from "../../status-elements/status-elements.js";
|
|
6
|
+
import { FormattedMessageTyped as f } from "../../typed-intl/index.js";
|
|
7
|
+
import { VerticalIndicator as q } from "../../vertical-indicator/vertical-indicator.js";
|
|
8
|
+
import { APPROXIMATE_SYMBOL as x } from "../../../utils/format.js";
|
|
9
|
+
import { bnToLiquidationPriceView as B } from "../../../utils/parse-input-to-bn.js";
|
|
10
|
+
import { LiquidationPriceBlockTest as l } from "./constants.js";
|
|
11
|
+
function L(e, o) {
|
|
11
12
|
if (!(!e || !o))
|
|
12
13
|
return `${e.symbol} / ${o.symbol}`;
|
|
13
14
|
}
|
|
14
|
-
function
|
|
15
|
+
function S({
|
|
15
16
|
price: e,
|
|
16
17
|
priceTo: o,
|
|
17
18
|
collateral: t,
|
|
18
|
-
underlying:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
underlying: r,
|
|
20
|
+
approximate: n,
|
|
21
|
+
zone: a,
|
|
22
|
+
isLoading: m,
|
|
23
|
+
title: s,
|
|
24
|
+
tip: v,
|
|
25
|
+
testId: P
|
|
24
26
|
}) {
|
|
25
|
-
const
|
|
27
|
+
const h = b(), d = o !== void 0;
|
|
26
28
|
return /* @__PURE__ */ i(
|
|
27
|
-
|
|
29
|
+
q,
|
|
28
30
|
{
|
|
29
31
|
align: "center",
|
|
30
32
|
dimPreviousValue: !1,
|
|
31
|
-
"data-testid":
|
|
32
|
-
label:
|
|
33
|
-
tip:
|
|
34
|
-
value: /* @__PURE__ */ i(
|
|
35
|
-
|
|
33
|
+
"data-testid": P ?? l.root,
|
|
34
|
+
label: s !== void 0 ? h(s) : /* @__PURE__ */ i(f, { messageId: "components.liquidationPriceBlock.label" }),
|
|
35
|
+
tip: v ?? /* @__PURE__ */ i(f, { messageId: "components.liquidationPriceBlock.tip" }),
|
|
36
|
+
value: /* @__PURE__ */ i(u, { loading: m, children: /* @__PURE__ */ i(
|
|
37
|
+
p,
|
|
36
38
|
{
|
|
37
39
|
price: e,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
approximate: n,
|
|
41
|
+
zone: d ? void 0 : a,
|
|
42
|
+
testId: l.value
|
|
40
43
|
}
|
|
41
44
|
) }),
|
|
42
|
-
valueTo:
|
|
43
|
-
|
|
45
|
+
valueTo: d ? /* @__PURE__ */ i(u, { loading: m, children: /* @__PURE__ */ i(
|
|
46
|
+
p,
|
|
44
47
|
{
|
|
45
48
|
price: o ?? null,
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
approximate: n,
|
|
50
|
+
zone: a,
|
|
51
|
+
testId: l.valueTo
|
|
48
52
|
}
|
|
49
53
|
) }) : void 0,
|
|
50
|
-
valueDescription:
|
|
54
|
+
valueDescription: L(t, r)
|
|
51
55
|
}
|
|
52
56
|
);
|
|
53
57
|
}
|
|
54
|
-
function
|
|
58
|
+
function p({
|
|
55
59
|
price: e,
|
|
56
|
-
|
|
57
|
-
|
|
60
|
+
approximate: o,
|
|
61
|
+
zone: t,
|
|
62
|
+
testId: r
|
|
58
63
|
}) {
|
|
59
|
-
return /* @__PURE__ */
|
|
60
|
-
e === void 0 ? "—" : e === null || e === 0n ? "N/A" : /* @__PURE__ */
|
|
61
|
-
|
|
64
|
+
return /* @__PURE__ */ c("span", { className: "inline-flex items-center", "data-testid": r, children: [
|
|
65
|
+
e === void 0 ? "—" : e === null || e === 0n ? "N/A" : /* @__PURE__ */ c(T, { children: [
|
|
66
|
+
o ? /* @__PURE__ */ i("span", { className: "mr-0.5", children: x }) : null,
|
|
67
|
+
/* @__PURE__ */ i(g, { value: B(e) })
|
|
68
|
+
] }),
|
|
69
|
+
t ? /* @__PURE__ */ i("span", { className: "ml-1.5", children: /* @__PURE__ */ i(I, { zone: t }) }) : null
|
|
62
70
|
] });
|
|
63
71
|
}
|
|
64
72
|
export {
|
|
65
|
-
|
|
66
|
-
|
|
73
|
+
S as LiquidationPriceBlock,
|
|
74
|
+
l as LiquidationPriceBlockTest
|
|
67
75
|
};
|