@gearbox-protocol/ui-kit 4.0.0-next.68 → 4.0.0-next.69
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/composites/pool-assets-table/constants.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-row.cjs +1 -1
- package/dist/cjs/locale/en.json.cjs +1 -1
- package/dist/esm/components/composites/pool-assets-table/constants.js +1 -0
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-row.js +88 -63
- package/dist/esm/locale/en.json.js +1 -0
- package/dist/types/components/composites/pool-assets-table/constants.d.ts +1 -0
- package/dist/types/locale/en.json.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class e{static root="pool-assets-table-root";static exposureCell="pool-assets-table-exposure-cell";static capCell="pool-assets-table-cap-cell";static capBelowExposureTip="pool-assets-table-cap-below-exposure-tip";static capUtilizationCell="pool-assets-table-cap-utilization-cell"}exports.PoolAssetsTableTest=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),C=require("../../no-value/no-value.cjs");require("clsx");require("tailwind-merge");const S=require("../../../utils/format-money.cjs");require("@gearbox-protocol/sdk/onchain");require("../../../utils/z-index.cjs");const k=require("../../base/values/scalars.cjs");require("../../badge/badge.cjs");require("../../badge/chip.cjs");const n=require("../../typed-intl/index.cjs"),z=require("../../collateral-allocation-tooltip/allocation-wheel.cjs"),N=require("../../help-tip/help-tip.cjs"),I=require("../../name-cell/name-cell.cjs"),P=require("../../short-string/short-string.cjs"),o=require("../../table/grid-table.cjs"),a=require("../../table/table-sm.cjs"),w=require("../../token-symbol/token-symbol.cjs"),j=require("../../token-template/token-template.cjs"),M=require("../../vertical-indicator/vertical-indicator.cjs"),i=require("./constants.cjs");function G(l,s){return l>=s?1e4:Number(l*10000n/s)}function B(l,s){return s<=0n||l<=0n?0:Number(l*10000n/s)/1e4}function F({asset:l,underlyingToken:s,last:_,isCompact:p,totalUsed:q,colorIndex:v,explorerUrl:m}){const f=n.useIntlTyped(),{token:r,limit:c,used:t}=l,y=p?40:21,u=B(t.value,q),A=c.value<t.value,d=f.formatMessage({messageId:"components.poolAssetsTable.capBelowExposure.tip"}),x=()=>e.jsx(I.NameCell,{leading:e.jsx(w.TokenSymbol,{size:32,token:r}),title:e.jsx(P.ShortString,{maxLength:y,children:r.symbol})}),T=()=>e.jsxs("div",{className:"flex items-center justify-end gap-2","data-testid":i.PoolAssetsTableTest.exposureCell,children:[e.jsx(z.AllocationWheel,{share:u,colorIndex:v,idle:u===0}),e.jsx(M.VerticalIndicator,{value:e.jsx(j.TokenTemplate,{decimalPartLength:2,precision:2,showSymbol:!1,token:s,value:t.value}),valueDescription:t.valueUsd===null?e.jsx(C.NoValue,{}):S.formatMoney(t.valueUsd)})]}),h=()=>e.jsxs("span",{className:"inline-flex items-center gap-1","data-testid":i.PoolAssetsTableTest.capCell,children:[A&&e.jsxs(e.Fragment,{children:[e.jsx(N.HelpTip,{"data-testid":i.PoolAssetsTableTest.capBelowExposureTip,tabIndex:0,onClick:g=>{g.preventDefault(),g.stopPropagation()},children:d}),e.jsx("span",{className:"sr-only",children:d})]}),e.jsx(j.TokenTemplate,{decimalPartLength:2,precision:2,showSymbol:!1,token:s,value:c.value})]}),b=()=>e.jsx("div",{"data-testid":i.PoolAssetsTableTest.capUtilizationCell,children:e.jsx(k.UtilizationValue,{data:G(t.value,c.value)})});return e.jsx(o.GridTableRow,{last:_,height:"auto",href:m?`${m}/address/${r.address}`:void 0,target:"_blank",style:{minHeight:"75px"},children:p?e.jsx(o.GridTableCell,{className:"px-3 py-0!",size:"sm",span:"full",children:e.jsxs(a.TableLineSm,{className:"w-full",columns:3,columnsXs:3,title:x(),children:[e.jsx(a.TableCellSm,{title:e.jsx(n.FormattedMessageTyped,{messageId:"components.poolAssetsTable.exposure"}),children:T()}),e.jsx(a.TableCellSm,{title:e.jsx(n.FormattedMessageTyped,{messageId:"components.poolAssetsTable.cap"}),children:h()}),e.jsx(a.TableCellSm,{title:e.jsx(n.FormattedMessageTyped,{messageId:"components.poolAssetsTable.capUtilization"}),children:b()})]})}):e.jsxs(e.Fragment,{children:[e.jsx(o.GridTableCell,{className:"pl-4",size:"sm",textAlign:"left",children:x()}),e.jsx(o.GridTableCell,{size:"sm",textAlign:"right",children:T()}),e.jsx(o.GridTableCell,{size:"sm",textAlign:"right",children:h()}),e.jsx(o.GridTableCell,{className:"pr-4",size:"sm",textAlign:"right",children:b()})]})})}exports.PoolAssetsTableRow=F;
|
|
@@ -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.poolTable.line.rwa.tip":"This is RWA market.","components.strategiesTable.line.name.disabled":"This strategy is currently not available","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 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":"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.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;
|
|
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 strategy is currently not available","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 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":"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.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;
|
|
@@ -2,6 +2,7 @@ class t {
|
|
|
2
2
|
static root = "pool-assets-table-root";
|
|
3
3
|
static exposureCell = "pool-assets-table-exposure-cell";
|
|
4
4
|
static capCell = "pool-assets-table-cap-cell";
|
|
5
|
+
static capBelowExposureTip = "pool-assets-table-cap-below-exposure-tip";
|
|
5
6
|
static capUtilizationCell = "pool-assets-table-cap-utilization-cell";
|
|
6
7
|
}
|
|
7
8
|
export {
|
|
@@ -1,64 +1,66 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { NoValue as
|
|
1
|
+
import { jsx as e, jsxs as o, Fragment as v } from "react/jsx-runtime";
|
|
2
|
+
import { NoValue as k } from "../../no-value/no-value.js";
|
|
3
3
|
import "clsx";
|
|
4
4
|
import "tailwind-merge";
|
|
5
|
-
import { formatMoney as
|
|
5
|
+
import { formatMoney as I } from "../../../utils/format-money.js";
|
|
6
6
|
import "@gearbox-protocol/sdk/onchain";
|
|
7
7
|
import "../../../utils/z-index.js";
|
|
8
|
-
import { UtilizationValue as
|
|
8
|
+
import { UtilizationValue as B } from "../../base/values/scalars.js";
|
|
9
9
|
import "../../badge/badge.js";
|
|
10
10
|
import "../../badge/chip.js";
|
|
11
|
-
import { FormattedMessageTyped as
|
|
12
|
-
import { AllocationWheel as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
11
|
+
import { useIntlTyped as L, FormattedMessageTyped as m } from "../../typed-intl/index.js";
|
|
12
|
+
import { AllocationWheel as P } from "../../collateral-allocation-tooltip/allocation-wheel.js";
|
|
13
|
+
import { HelpTip as U } from "../../help-tip/help-tip.js";
|
|
14
|
+
import { NameCell as j } from "../../name-cell/name-cell.js";
|
|
15
|
+
import { ShortString as E } from "../../short-string/short-string.js";
|
|
16
|
+
import { GridTableRow as M, GridTableCell as s } from "../../table/grid-table.js";
|
|
17
|
+
import { TableLineSm as V, TableCellSm as p } from "../../table/table-sm.js";
|
|
18
|
+
import { TokenSymbol as D } from "../../token-symbol/token-symbol.js";
|
|
19
|
+
import { TokenTemplate as z } from "../../token-template/token-template.js";
|
|
20
|
+
import { VerticalIndicator as F } from "../../vertical-indicator/vertical-indicator.js";
|
|
21
|
+
import { PoolAssetsTableTest as a } from "./constants.js";
|
|
22
|
+
function G(l, t) {
|
|
23
|
+
return l >= t ? 1e4 : Number(l * 10000n / t);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function H(l, t) {
|
|
26
26
|
return t <= 0n || l <= 0n ? 0 : Number(l * 10000n / t) / 1e4;
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function me({
|
|
29
29
|
asset: l,
|
|
30
30
|
underlyingToken: t,
|
|
31
|
-
last:
|
|
32
|
-
isCompact:
|
|
33
|
-
totalUsed:
|
|
34
|
-
colorIndex:
|
|
31
|
+
last: A,
|
|
32
|
+
isCompact: c,
|
|
33
|
+
totalUsed: N,
|
|
34
|
+
colorIndex: y,
|
|
35
35
|
explorerUrl: d
|
|
36
36
|
}) {
|
|
37
|
-
const { token:
|
|
38
|
-
|
|
37
|
+
const C = L(), { token: r, limit: n, used: i } = l, w = c ? 40 : 21, u = H(i.value, N), S = n.value < i.value, h = C.formatMessage({
|
|
38
|
+
messageId: "components.poolAssetsTable.capBelowExposure.tip"
|
|
39
|
+
}), f = () => /* @__PURE__ */ e(
|
|
40
|
+
j,
|
|
39
41
|
{
|
|
40
|
-
leading: /* @__PURE__ */ e(
|
|
41
|
-
title: /* @__PURE__ */ e(
|
|
42
|
+
leading: /* @__PURE__ */ e(D, { size: 32, token: r }),
|
|
43
|
+
title: /* @__PURE__ */ e(E, { maxLength: w, children: r.symbol })
|
|
42
44
|
}
|
|
43
|
-
),
|
|
45
|
+
), g = () => /* @__PURE__ */ o(
|
|
44
46
|
"div",
|
|
45
47
|
{
|
|
46
48
|
className: "flex items-center justify-end gap-2",
|
|
47
|
-
"data-testid":
|
|
49
|
+
"data-testid": a.exposureCell,
|
|
48
50
|
children: [
|
|
49
51
|
/* @__PURE__ */ e(
|
|
50
|
-
|
|
52
|
+
P,
|
|
51
53
|
{
|
|
52
54
|
share: u,
|
|
53
|
-
colorIndex:
|
|
55
|
+
colorIndex: y,
|
|
54
56
|
idle: u === 0
|
|
55
57
|
}
|
|
56
58
|
),
|
|
57
59
|
/* @__PURE__ */ e(
|
|
58
|
-
|
|
60
|
+
F,
|
|
59
61
|
{
|
|
60
62
|
value: /* @__PURE__ */ e(
|
|
61
|
-
|
|
63
|
+
z,
|
|
62
64
|
{
|
|
63
65
|
decimalPartLength: 2,
|
|
64
66
|
precision: 2,
|
|
@@ -67,69 +69,92 @@ function le({
|
|
|
67
69
|
value: i.value
|
|
68
70
|
}
|
|
69
71
|
),
|
|
70
|
-
valueDescription: i.valueUsd === null ? /* @__PURE__ */ e(
|
|
72
|
+
valueDescription: i.valueUsd === null ? /* @__PURE__ */ e(k, {}) : I(i.valueUsd)
|
|
71
73
|
}
|
|
72
74
|
)
|
|
73
75
|
]
|
|
74
76
|
}
|
|
75
|
-
),
|
|
76
|
-
|
|
77
|
+
), x = () => /* @__PURE__ */ o(
|
|
78
|
+
"span",
|
|
77
79
|
{
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
className: "inline-flex items-center gap-1",
|
|
81
|
+
"data-testid": a.capCell,
|
|
82
|
+
children: [
|
|
83
|
+
S && /* @__PURE__ */ o(v, { children: [
|
|
84
|
+
/* @__PURE__ */ e(
|
|
85
|
+
U,
|
|
86
|
+
{
|
|
87
|
+
"data-testid": a.capBelowExposureTip,
|
|
88
|
+
tabIndex: 0,
|
|
89
|
+
onClick: (b) => {
|
|
90
|
+
b.preventDefault(), b.stopPropagation();
|
|
91
|
+
},
|
|
92
|
+
children: h
|
|
93
|
+
}
|
|
94
|
+
),
|
|
95
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: h })
|
|
96
|
+
] }),
|
|
97
|
+
/* @__PURE__ */ e(
|
|
98
|
+
z,
|
|
99
|
+
{
|
|
100
|
+
decimalPartLength: 2,
|
|
101
|
+
precision: 2,
|
|
102
|
+
showSymbol: !1,
|
|
103
|
+
token: t,
|
|
104
|
+
value: n.value
|
|
105
|
+
}
|
|
106
|
+
)
|
|
107
|
+
]
|
|
83
108
|
}
|
|
84
|
-
)
|
|
109
|
+
), T = () => /* @__PURE__ */ e("div", { "data-testid": a.capUtilizationCell, children: /* @__PURE__ */ e(B, { data: G(i.value, n.value) }) });
|
|
85
110
|
return /* @__PURE__ */ e(
|
|
86
|
-
|
|
111
|
+
M,
|
|
87
112
|
{
|
|
88
|
-
last:
|
|
113
|
+
last: A,
|
|
89
114
|
height: "auto",
|
|
90
|
-
href: d ? `${d}/address/${
|
|
115
|
+
href: d ? `${d}/address/${r.address}` : void 0,
|
|
91
116
|
target: "_blank",
|
|
92
117
|
style: { minHeight: "75px" },
|
|
93
|
-
children:
|
|
94
|
-
|
|
118
|
+
children: c ? /* @__PURE__ */ e(s, { className: "px-3 py-0!", size: "sm", span: "full", children: /* @__PURE__ */ o(
|
|
119
|
+
V,
|
|
95
120
|
{
|
|
96
121
|
className: "w-full",
|
|
97
122
|
columns: 3,
|
|
98
123
|
columnsXs: 3,
|
|
99
|
-
title:
|
|
124
|
+
title: f(),
|
|
100
125
|
children: [
|
|
101
126
|
/* @__PURE__ */ e(
|
|
102
|
-
|
|
127
|
+
p,
|
|
103
128
|
{
|
|
104
|
-
title: /* @__PURE__ */ e(
|
|
105
|
-
children:
|
|
129
|
+
title: /* @__PURE__ */ e(m, { messageId: "components.poolAssetsTable.exposure" }),
|
|
130
|
+
children: g()
|
|
106
131
|
}
|
|
107
132
|
),
|
|
108
133
|
/* @__PURE__ */ e(
|
|
109
|
-
|
|
134
|
+
p,
|
|
110
135
|
{
|
|
111
|
-
title: /* @__PURE__ */ e(
|
|
112
|
-
children:
|
|
136
|
+
title: /* @__PURE__ */ e(m, { messageId: "components.poolAssetsTable.cap" }),
|
|
137
|
+
children: x()
|
|
113
138
|
}
|
|
114
139
|
),
|
|
115
140
|
/* @__PURE__ */ e(
|
|
116
|
-
|
|
141
|
+
p,
|
|
117
142
|
{
|
|
118
|
-
title: /* @__PURE__ */ e(
|
|
119
|
-
children:
|
|
143
|
+
title: /* @__PURE__ */ e(m, { messageId: "components.poolAssetsTable.capUtilization" }),
|
|
144
|
+
children: T()
|
|
120
145
|
}
|
|
121
146
|
)
|
|
122
147
|
]
|
|
123
148
|
}
|
|
124
|
-
) }) : /* @__PURE__ */
|
|
125
|
-
/* @__PURE__ */ e(
|
|
126
|
-
/* @__PURE__ */ e(
|
|
127
|
-
/* @__PURE__ */ e(
|
|
128
|
-
/* @__PURE__ */ e(
|
|
149
|
+
) }) : /* @__PURE__ */ o(v, { children: [
|
|
150
|
+
/* @__PURE__ */ e(s, { className: "pl-4", size: "sm", textAlign: "left", children: f() }),
|
|
151
|
+
/* @__PURE__ */ e(s, { size: "sm", textAlign: "right", children: g() }),
|
|
152
|
+
/* @__PURE__ */ e(s, { size: "sm", textAlign: "right", children: x() }),
|
|
153
|
+
/* @__PURE__ */ e(s, { className: "pr-4", size: "sm", textAlign: "right", children: T() })
|
|
129
154
|
] })
|
|
130
155
|
}
|
|
131
156
|
);
|
|
132
157
|
}
|
|
133
158
|
export {
|
|
134
|
-
|
|
159
|
+
me as PoolAssetsTableRow
|
|
135
160
|
};
|
|
@@ -41,6 +41,7 @@ const e = {
|
|
|
41
41
|
"components.poolAssetsTable.exposure": "Exposure",
|
|
42
42
|
"components.poolAssetsTable.cap": "Cap",
|
|
43
43
|
"components.poolAssetsTable.capUtilization": "Cap Utilization",
|
|
44
|
+
"components.poolAssetsTable.capBelowExposure.tip": "The curator has lowered the cap below current exposure. Exposure cannot be increased.",
|
|
44
45
|
"components.poolTable.line.rwa.tip": "This is RWA market.",
|
|
45
46
|
"components.strategiesTable.line.name.disabled": "This strategy is currently not available",
|
|
46
47
|
"components.strategiesTable.line.rwa": "RWA",
|
|
@@ -52,6 +52,7 @@ declare const _default: {
|
|
|
52
52
|
"components.poolAssetsTable.exposure": "Exposure",
|
|
53
53
|
"components.poolAssetsTable.cap": "Cap",
|
|
54
54
|
"components.poolAssetsTable.capUtilization": "Cap Utilization",
|
|
55
|
+
"components.poolAssetsTable.capBelowExposure.tip": "The curator has lowered the cap below current exposure. Exposure cannot be increased.",
|
|
55
56
|
|
|
56
57
|
"components.poolTable.line.rwa.tip": "This is RWA market.",
|
|
57
58
|
|