@gearbox-protocol/ui-kit 4.0.0-next.76 → 4.0.0-next.77
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/locale/en.json.cjs +1 -1
- package/dist/esm/locale/en.json.js +4 -4
- package/dist/types/components/base/values/position-type-badge.d.ts +1 -1
- package/dist/types/components/base/values/scalars.d.ts +3 -8
- package/dist/types/locale/en.json.d.ts +4 -4
- package/dist/types/utils/format-pnl.d.ts +0 -5
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e={"errors.incorrectAddressError":"Incorrect address. Please, check url","errors.noOpenedAccountsError":"You have no open Positions. Perhaps, you have recently been liquidated? Check notification centre to see more.","errors.incorrectAddress":"Incorrect address","components.errorMessage.oops":"Oops...","components.infiniteScrollWrapper.showMore":"Show more","components.alertModal.ok":"Ok","components.footer.privacy":"Privacy Notice","components.sdkStatus.connecting":"Connecting…","components.sdkStatus.connected":"Connected","components.sdkStatus.disconnected":"Not connected","components.notificationCenter.empty":"No notifications yet","components.notificationCenter.requests":"Requests","components.notificationCenter.recent":"Recent","components.notificationCenter.clear":"Clear all","components.loading.loading":"Loading","components.loading.loadingPercent":"Loading {percent}%","components.loading.wait":"Please wait...","components.tipWindow.title":"Tip","components.value.accruing":"Averaged data is still being computed and will be available shortly.","components.apyParts.extraAPY":"{symbol} Incentive","components.apyParts.totalAPY":"Overall APY","components.yieldBreakdown.titleNetAtLeverage":"Net APY at {leverage}× Leverage","components.yieldBreakdown.titleNetAtLeverage7d":"Net APY (7d) at {leverage}× Leverage","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.exposure":"Exposure","components.poolAssetsTable.cap":"Cap","components.poolAssetsTable.capUtilization":"Cap Utilization","components.poolAssetsTable.capBelowExposure.tip":"The curator has lowered the cap below current exposure. Exposure cannot be increased.","components.poolTable.line.rwa.tip":"This is RWA market.","components.strategiesTable.line.name.disabled":"This
|
|
1
|
+
"use strict";const e={"errors.incorrectAddressError":"Incorrect address. Please, check url","errors.noOpenedAccountsError":"You have no open Positions. Perhaps, you have recently been liquidated? Check notification centre to see more.","errors.incorrectAddress":"Incorrect address","components.errorMessage.oops":"Oops...","components.infiniteScrollWrapper.showMore":"Show more","components.alertModal.ok":"Ok","components.footer.privacy":"Privacy Notice","components.sdkStatus.connecting":"Connecting…","components.sdkStatus.connected":"Connected","components.sdkStatus.disconnected":"Not connected","components.notificationCenter.empty":"No notifications yet","components.notificationCenter.requests":"Requests","components.notificationCenter.recent":"Recent","components.notificationCenter.clear":"Clear all","components.loading.loading":"Loading","components.loading.loadingPercent":"Loading {percent}%","components.loading.wait":"Please wait...","components.tipWindow.title":"Tip","components.value.accruing":"Averaged data is still being computed and will be available shortly.","components.apyParts.extraAPY":"{symbol} Incentive","components.apyParts.totalAPY":"Overall APY","components.yieldBreakdown.titleNetAtLeverage":"Net APY at {leverage}× Leverage","components.yieldBreakdown.titleNetAtLeverage7d":"Net APY (7d) at {leverage}× Leverage","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.exposure":"Exposure","components.poolAssetsTable.cap":"Cap","components.poolAssetsTable.capUtilization":"Cap Utilization","components.poolAssetsTable.capBelowExposure.tip":"The curator has lowered the cap below current exposure. Exposure cannot be increased.","components.poolTable.line.rwa.tip":"This is RWA market.","components.strategiesTable.line.name.disabled":"This Leverage Opportunity is currently not available","components.strategiesTable.line.rwa":"RWA","components.strategiesTable.line.rwa.tip":"This Leverage Opportunity 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 Position '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 Position'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 Position 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":"Lend","components.positionTypeBadge.strategy":"Leverage","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.poolApyBreakdownCard.tokenIncentiveApy":"{symbol} Incentive APY","components.poolApyBreakdownCard.tokenIncentiveApy7d":"{symbol} 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 Position value or Debt amount.","components.transactionConfirm.previewLoading":"Parsing transaction…","components.transactionConfirm.previewErrorTitle":"Preview error"};module.exports=e;
|
|
@@ -43,9 +43,9 @@ const e = {
|
|
|
43
43
|
"components.poolAssetsTable.capUtilization": "Cap Utilization",
|
|
44
44
|
"components.poolAssetsTable.capBelowExposure.tip": "The curator has lowered the cap below current exposure. Exposure cannot be increased.",
|
|
45
45
|
"components.poolTable.line.rwa.tip": "This is RWA market.",
|
|
46
|
-
"components.strategiesTable.line.name.disabled": "This
|
|
46
|
+
"components.strategiesTable.line.name.disabled": "This Leverage Opportunity is currently not available",
|
|
47
47
|
"components.strategiesTable.line.rwa": "RWA",
|
|
48
|
-
"components.strategiesTable.line.rwa.tip": "This
|
|
48
|
+
"components.strategiesTable.line.rwa.tip": "This Leverage Opportunity is available on RWA market.",
|
|
49
49
|
"dialogs.common.review": "Review",
|
|
50
50
|
"components.amountInput.max": "Max",
|
|
51
51
|
"components.amountInput.label": "Amount",
|
|
@@ -63,8 +63,8 @@ const e = {
|
|
|
63
63
|
"components.timeToLiquidationBlock.tip": "Time to liquidation estimates how long the Position can stay open if prices remain constant and no yield is earned—only accounting for borrow interest accrual.",
|
|
64
64
|
"components.historyChart.error": "Couldn't load chart data",
|
|
65
65
|
"components.historyChart.empty": "No data",
|
|
66
|
-
"components.positionTypeBadge.pool": "
|
|
67
|
-
"components.positionTypeBadge.strategy": "
|
|
66
|
+
"components.positionTypeBadge.pool": "Lend",
|
|
67
|
+
"components.positionTypeBadge.strategy": "Leverage",
|
|
68
68
|
"components.positionTypeBadge.liquidation": "Liquidation",
|
|
69
69
|
"components.positionStatusBadge.active": "Active",
|
|
70
70
|
"components.positionStatusBadge.repaid": "Repaid",
|
|
@@ -6,6 +6,6 @@ export interface PositionTypeBadgeProps {
|
|
|
6
6
|
readonly size?: "table" | "aside" | "title";
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
* Colored kind label of a position row: "
|
|
9
|
+
* Colored kind label of a position row: "Lend" / "Leverage" / "Liquidation".
|
|
10
10
|
*/
|
|
11
11
|
export declare function PositionTypeBadge({ data, size, }: PositionTypeBadgeProps): React.ReactElement;
|
|
@@ -37,14 +37,9 @@ export declare function UtilizationValue({ data, }: {
|
|
|
37
37
|
readonly data: Bps | undefined;
|
|
38
38
|
}): React.ReactElement;
|
|
39
39
|
/**
|
|
40
|
-
* Health factor with its zone: below 1 the account is liquidatable.
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* liquidate the figure has no zone, and the SDK reports one that would read as
|
|
44
|
-
* the worst there is — `0` bps from the on-chain `MAX_UINT256` sentinel, or
|
|
45
|
-
* `65535` down the price-failed path. The figure still shows; only the colour
|
|
46
|
-
* goes. ({@link HealthFactor}, the block, takes the same prop and answers
|
|
47
|
-
* "N/A" instead — a table cell that blanks out loses its column's alignment.)
|
|
40
|
+
* Health factor with its zone: below 1 the account is liquidatable. A `debt` of
|
|
41
|
+
* `0n` drops the zone — a repaid account still reports a figure, and it reads
|
|
42
|
+
* as the worst there is.
|
|
48
43
|
*/
|
|
49
44
|
export declare function HealthFactorValue({ data, debt, }: {
|
|
50
45
|
readonly data: Bps | undefined;
|
|
@@ -56,10 +56,10 @@ declare const _default: {
|
|
|
56
56
|
|
|
57
57
|
"components.poolTable.line.rwa.tip": "This is RWA market.",
|
|
58
58
|
|
|
59
|
-
"components.strategiesTable.line.name.disabled": "This
|
|
59
|
+
"components.strategiesTable.line.name.disabled": "This Leverage Opportunity is currently not available",
|
|
60
60
|
|
|
61
61
|
"components.strategiesTable.line.rwa": "RWA",
|
|
62
|
-
"components.strategiesTable.line.rwa.tip": "This
|
|
62
|
+
"components.strategiesTable.line.rwa.tip": "This Leverage Opportunity is available on RWA market.",
|
|
63
63
|
|
|
64
64
|
"dialogs.common.review": "Review",
|
|
65
65
|
|
|
@@ -85,8 +85,8 @@ declare const _default: {
|
|
|
85
85
|
"components.historyChart.error": "Couldn't load chart data",
|
|
86
86
|
"components.historyChart.empty": "No data",
|
|
87
87
|
|
|
88
|
-
"components.positionTypeBadge.pool": "
|
|
89
|
-
"components.positionTypeBadge.strategy": "
|
|
88
|
+
"components.positionTypeBadge.pool": "Lend",
|
|
89
|
+
"components.positionTypeBadge.strategy": "Leverage",
|
|
90
90
|
"components.positionTypeBadge.liquidation": "Liquidation",
|
|
91
91
|
|
|
92
92
|
"components.positionStatusBadge.active": "Active",
|
|
@@ -2,11 +2,6 @@
|
|
|
2
2
|
* A USD figure as a badge shows it: cents below ten thousand, an abbreviation
|
|
3
3
|
* above it.
|
|
4
4
|
*
|
|
5
|
-
* Neither existing formatter can do this. `formatMoney` abbreviates from a
|
|
6
|
-
* thousand, suffixes billions `Bn`, and truncates through the SDK's `formatBN`
|
|
7
|
-
* (`12.34` comes back as `12.33`); `formatOraclePrice` never abbreviates and drops
|
|
8
|
-
* the cents from a thousand up.
|
|
9
|
-
*
|
|
10
5
|
* @example
|
|
11
6
|
* ```ts
|
|
12
7
|
* formatPnl(1234.56) // "$1,234.56"
|