@gearbox-protocol/ui-kit 3.12.0-next.2 → 3.12.1
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/strategies-table/columns.cjs +1 -1
- package/dist/cjs/components/composites/strategies-table/components/cells/cells.cjs +1 -1
- package/dist/esm/components/composites/strategies-table/columns.js +59 -59
- package/dist/esm/components/composites/strategies-table/components/cells/cells.js +14 -14
- package/dist/types/components/composites/strategies-table/types/table.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),p=require("@gearbox-protocol/sdk"),y=require("../../network-icon/network-icon.cjs"),w=require("../../short-string/short-string.cjs"),b=require("../../token-symbol/token-symbol.cjs"),o=require("../../typed-intl/index.cjs"),x=require("../../typography/typography.cjs"),c=require("./components/cells/cells.cjs"),d=require("./components/cells/cells.styles.cjs"),T=require("./components/rewards-tooltip/rewards-tooltip.cjs");require("./components/rewards-tooltip/rewards-tooltip-root.cjs");require("../../tooltip/simple-tooltip.cjs");require("../../tooltip/tooltip.cjs");require("@fortawesome/free-solid-svg-icons");require("viem");require("../../icon-button/icon-button.cjs");require("../../icons/fa-icon.cjs");require("../../separate-line/separate-line.cjs");require("../../skeleton/skeleton.cjs");require("react");require("clsx");require("tailwind-merge");require("sonner");require("@gearbox-protocol/sdk/common-utils");require("luxon");require("../../../utils/z-index.cjs");require("../../tip-card/tip-card.cjs");require("../../vertical-indicator/vertical-indicator.cjs");require("../../vertical-list/vertical-list.cjs");require("../../help-tip/help-tip.cjs");require("./components/feature/feature.styles.cjs");require("../../points-icon/points-icon.cjs");function u(e,a,t){const s=e?.header??r.jsx(o.FormattedMessageTyped,{messageId:e?.headerMessageId??a});let i;if(e?.headerTip!==null){const n=e?.headerTipMessageId??t;i=e?.headerTip??(n&&r.jsx(o.FormattedMessageTyped,{messageId:n}))}return{header:s,headerTip:i,mobileTitle:e?.mobileTitle??s}}function f({ctx:e}){const{strategy:a,targetToken:t,row:s}=e,i=!!s.disabledStyle,n=!!a.strategyMarketType?.includes("rwa"),l=e.isMobile||e.isDesktop?38:26;return r.jsx("div",{className:"flex flex-col-auto",children:r.jsxs(d.TitleGrid,{children:[r.jsxs("div",{className:"flex items-center gap-1.5 pr-2 leading-none",children:[r.jsx(d.DisabledWrap,{disabled:i,children:r.jsx(y.NetworkIcon,{network:a.network,isTest:!1,size:14,showTooltip:!0})}),r.jsx(d.DisabledWrap,{disabled:i,children:r.jsx(b.TokenSymbol,{token:t,size:24})})]}),r.jsxs("div",{className:"flex items-center gap-x-3",children:[r.jsx(w.ShortString,{maxLength:l,children:a.name}),n&&r.jsx(c.RWAFeature,{disabledStyle:i}),s.isZeroSlippagePair&&r.jsx(c.ZeroSlippageFeature,{token:s.zeroSlippageToken,disabledStyle:i})]}),i&&r.jsx("div",{}),i&&r.jsx(x.Typography,{as:"span",variant:"caption",style:{lineHeight:"100%"},children:r.jsx(o.FormattedMessageTyped,{messageId:"components.strategiesTable.line.name.disabled"})})]})})}function h({ctx:e,mobile:a=!1}){const{rewardsCellInfo:t,row:s,targetTokenAddress:i,tokensList:n}=e,l=!!s.disabledStyle,m=r.jsx(c.StrategiesRewardsCell,{maxAPY:t.maxAPY,bonusAPY:t.bonusAPY,rewards:t.rewards,rewardRates:t.rewardRates,debtRewards:t.debtRewards,debtRewardRates:t.debtRewardRates,hasAPY:t.hasAPY??!1,hasRewards:t.hasRewards??!1,hasDebtRewards:t.hasDebtRewards??!1,apyLoading:t.apyLoading,disabledStyle:l}),g=a?r.jsx("div",{className:"pt-1",children:m}):m;return l?g:r.jsx(T.RewardsTooltip,{cellInfo:t,targetToken:i,apyList:s.apyList,tokensList:n,strategyCreditManagers:s.strategyCreditManagers,children:r.jsx("div",{children:g})})}function q(e){const{header:a,mobileTitle:t}=u(e,"components.strategiesTable.head.name");return{id:"strategy",header:a,width:e?.width??"1fr",mediumWidth:e?.mediumWidth,align:"left",className:"pl-4",sort:e?.sortField!==void 0?{field:e.sortField,defaultDirection:"desc"}:{field:"strategyName",defaultDirection:"desc"},cell:s=>r.jsx(f,{ctx:s}),mobileTitle:t}}function _(e){const{header:a,mobileTitle:t}=u(e,"components.strategiesTable.head.rewards");return{id:"rewards",header:a,width:e?.width??"310px",mediumWidth:e?.mediumWidth??"270px",align:"left",sort:e?.sortField!==void 0?{field:e.sortField,defaultDirection:"desc"}:{field:"apy",defaultDirection:"desc"},cell:s=>r.jsx(h,{ctx:s}),mobileCell:s=>r.jsx(h,{ctx:s,mobile:!0}),mobileTitle:t}}function j(e){const{header:a,mobileTitle:t}=u(e,"components.strategiesTable.head.leverage");return{id:"leverage",header:a,width:e?.width??"150px",mediumWidth:e?.mediumWidth??"76px",align:"right",className:"pr-4",headerClassName:"pr-4",cell:s=>`×${p.formatLeverage(Number(s.row.maxLeverage),0)}`,mobileTitle:t}}function S(e){return e}exports.customStrategyColumn=S;exports.strategyColumn=q;exports.strategyLeverageColumn=j;exports.strategyRewardsColumn=_;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("@gearbox-protocol/sdk"),A=require("../../../../rwa-styles/index.cjs"),P=require("../../../../skeleton/skeleton.cjs");require("react");const q=require("../../../../../utils/cn.cjs");require("sonner");require("@gearbox-protocol/sdk/common-utils");require("luxon");require("../../../../../utils/z-index.cjs");const T=require("../../../../tooltip/simple-tooltip.cjs");require("../../../../tooltip/tooltip.cjs");const d=require("../../../../typed-intl/index.cjs"),f=require("../apy-feature/apy-feature.cjs"),b=require("../points-feature/points-feature.cjs"),l=require("./cells.styles.cjs");function w({token:r,disabledStyle:n}){const o=()=>e.jsx("span",{className:q.cn(n&&"opacity-60 pointer-events-none"),children:e.jsx(f.APYFeature,{children:e.jsx(d.FormattedMessageTyped,{messageId:"components.strategiesTable.line.0slippage"})})});return e.jsx(e.Fragment,{children:n?o():e.jsx(T.SimpleTooltip,{placement:"top",triangle:!1,title:o(),children:e.jsx(d.FormattedMessageTyped,{messageId:"components.strategiesTable.line.0slippage.tip",values:{symbol:r?.title||"
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("@gearbox-protocol/sdk"),A=require("../../../../rwa-styles/index.cjs"),P=require("../../../../skeleton/skeleton.cjs");require("react");const q=require("../../../../../utils/cn.cjs");require("sonner");require("@gearbox-protocol/sdk/common-utils");require("luxon");require("../../../../../utils/z-index.cjs");const T=require("../../../../tooltip/simple-tooltip.cjs");require("../../../../tooltip/tooltip.cjs");const d=require("../../../../typed-intl/index.cjs"),f=require("../apy-feature/apy-feature.cjs"),b=require("../points-feature/points-feature.cjs"),l=require("./cells.styles.cjs");function w({token:r,disabledStyle:n}){const o=()=>e.jsx("span",{className:q.cn(n&&"opacity-60 pointer-events-none"),children:e.jsx(f.APYFeature,{children:e.jsx(d.FormattedMessageTyped,{messageId:"components.strategiesTable.line.0slippage"})})});return e.jsx(e.Fragment,{children:n?o():e.jsx(T.SimpleTooltip,{placement:"top",triangle:!1,title:o(),children:e.jsx(d.FormattedMessageTyped,{messageId:"components.strategiesTable.line.0slippage.tip",values:{symbol:r?.title||""}})})})}function R({disabledStyle:r}){const n=e.jsx("span",{className:q.cn("rounded-xl px-[10px] py-1 text-xs leading-none",A.RWA_GRADIENT_BORDER_CLASS,r&&"opacity-60 pointer-events-none"),children:e.jsx(d.FormattedMessageTyped,{messageId:"components.strategiesTable.line.rwa"})});return e.jsx(e.Fragment,{children:r?n:e.jsx(T.SimpleTooltip,{placement:"top",triangle:!1,title:n,children:e.jsx(d.FormattedMessageTyped,{messageId:"components.strategiesTable.line.rwa.tip"})})})}function k({maxAPY:r,bonusAPY:n,rewards:o,rewardRates:m,debtRewards:g,debtRewardRates:x,hasAPY:c,hasRewards:a,hasDebtRewards:j,disabledStyle:p,apyLoading:_,apyFormat:t="feature"}){const s=i=>t==="feature"?e.jsxs(f.APYFeature,{children:[u.formatPercentage(i),"% APR"]}):`${u.formatPercentage(i)}%`,S=i=>t==="feature"?e.jsxs(f.APYFeature,{children:["exp. ",u.formatPercentage(i),"% APR"]}):`exp. ${u.formatPercentage(i)}%`,v=()=>{const i=[c?e.jsx(P.Skeleton,{className:"inline-block align-text-bottom",width:50,loading:_,children:s(r)},"apy"):void 0,a||j?e.jsx(y,{rewards:o,rewardRates:m,debtRewards:g,debtRewardRates:x,hasRewards:a,hasDebtRewards:j,disabledStyle:p},"points"):void 0].filter(Boolean);return i.flatMap((h,F)=>F===i.length-1?[h]:[h,e.jsx(l.Plus,{children:"+"},`plus-${F}`)])};return e.jsxs("div",{className:"flex-row-row items-center gap-2",children:[v(),n&&e.jsx(l.Plus,{children:":"}),n&&e.jsx(P.Skeleton,{className:"inline-block align-text-bottom",loading:_,width:50,children:S(n.value)})]})}function y({rewards:r,rewardRates:n,debtRewards:o,debtRewardRates:m,hasRewards:g,hasDebtRewards:x,disabledStyle:c,theme:a}){return(()=>{const p=[g?r.map((t,s)=>e.jsx("span",{children:e.jsx(l.DisabledWrap,{disabled:c,children:e.jsx(b.PointsFeature,{reward:t,points:n?.[s]||0n,theme:a})})},["base",t.multiplier,t.name,t.type,t.units].join("-"))):void 0,x?o.map((t,s)=>e.jsx("span",{children:e.jsx(l.DisabledWrap,{disabled:c,children:e.jsx(b.PointsFeature,{reward:t,points:m?.[s]||0n,theme:a})})},["debt",t.multiplier,t.name,t.type,t.units,t.cm].join("-"))):void 0].filter(Boolean);return p.flatMap((t,s)=>s===p.length-1?[t]:[t,e.jsx(l.Plus,{children:"+"},`plus-points-${s}`)])})()}exports.RWAFeature=R;exports.StrategiesRewardsCell=k;exports.StrategyPoints=y;exports.ZeroSlippageFeature=w;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { formatLeverage as
|
|
3
|
-
import { NetworkIcon as
|
|
4
|
-
import { ShortString as
|
|
5
|
-
import { TokenSymbol as
|
|
6
|
-
import { FormattedMessageTyped as
|
|
7
|
-
import { Typography as
|
|
8
|
-
import { RWAFeature as
|
|
9
|
-
import { TitleGrid as
|
|
10
|
-
import { RewardsTooltip as
|
|
1
|
+
import { jsx as t, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { formatLeverage as f } from "@gearbox-protocol/sdk";
|
|
3
|
+
import { NetworkIcon as u } from "../../network-icon/network-icon.js";
|
|
4
|
+
import { ShortString as w } from "../../short-string/short-string.js";
|
|
5
|
+
import { TokenSymbol as b } from "../../token-symbol/token-symbol.js";
|
|
6
|
+
import { FormattedMessageTyped as n } from "../../typed-intl/index.js";
|
|
7
|
+
import { Typography as y } from "../../typography/typography.js";
|
|
8
|
+
import { RWAFeature as T, ZeroSlippageFeature as R, StrategiesRewardsCell as v } from "./components/cells/cells.js";
|
|
9
|
+
import { TitleGrid as x, DisabledWrap as g } from "./components/cells/cells.styles.js";
|
|
10
|
+
import { RewardsTooltip as k } from "./components/rewards-tooltip/rewards-tooltip.js";
|
|
11
11
|
import "./components/rewards-tooltip/rewards-tooltip-root.js";
|
|
12
12
|
import "../../tooltip/simple-tooltip.js";
|
|
13
13
|
import "../../tooltip/tooltip.js";
|
|
@@ -30,26 +30,26 @@ import "../../vertical-list/vertical-list.js";
|
|
|
30
30
|
import "../../help-tip/help-tip.js";
|
|
31
31
|
import "./components/feature/feature.styles.js";
|
|
32
32
|
import "../../points-icon/points-icon.js";
|
|
33
|
-
function
|
|
33
|
+
function m(e, i, r) {
|
|
34
34
|
const a = e?.header ?? /* @__PURE__ */ t(
|
|
35
|
-
|
|
35
|
+
n,
|
|
36
36
|
{
|
|
37
37
|
messageId: e?.headerMessageId ?? i
|
|
38
38
|
}
|
|
39
39
|
);
|
|
40
|
-
let
|
|
40
|
+
let d;
|
|
41
41
|
if (e?.headerTip !== null) {
|
|
42
|
-
const
|
|
43
|
-
|
|
42
|
+
const s = e?.headerTipMessageId ?? r;
|
|
43
|
+
d = e?.headerTip ?? (s && /* @__PURE__ */ t(n, { messageId: s }));
|
|
44
44
|
}
|
|
45
|
-
return { header: a, headerTip:
|
|
45
|
+
return { header: a, headerTip: d, mobileTitle: e?.mobileTitle ?? a };
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
const { strategy: i, targetToken: r,
|
|
49
|
-
return /* @__PURE__ */ t("div", { className: "flex flex-col-auto", children: /* @__PURE__ */
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */ t(
|
|
52
|
-
|
|
47
|
+
function S({ ctx: e }) {
|
|
48
|
+
const { strategy: i, targetToken: r, row: a } = e, d = !!a.disabledStyle, s = !!i.strategyMarketType?.includes("rwa"), l = e.isMobile || e.isDesktop ? 38 : 26;
|
|
49
|
+
return /* @__PURE__ */ t("div", { className: "flex flex-col-auto", children: /* @__PURE__ */ o(x, { children: [
|
|
50
|
+
/* @__PURE__ */ o("div", { className: "flex items-center gap-1.5 pr-2 leading-none", children: [
|
|
51
|
+
/* @__PURE__ */ t(g, { disabled: d, children: /* @__PURE__ */ t(
|
|
52
|
+
u,
|
|
53
53
|
{
|
|
54
54
|
network: i.network,
|
|
55
55
|
isTest: !1,
|
|
@@ -57,37 +57,37 @@ function L({ ctx: e }) {
|
|
|
57
57
|
showTooltip: !0
|
|
58
58
|
}
|
|
59
59
|
) }),
|
|
60
|
-
/* @__PURE__ */ t(
|
|
60
|
+
/* @__PURE__ */ t(g, { disabled: d, children: /* @__PURE__ */ t(b, { token: r, size: 24 }) })
|
|
61
61
|
] }),
|
|
62
|
-
/* @__PURE__ */
|
|
63
|
-
/* @__PURE__ */ t(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
/* @__PURE__ */ o("div", { className: "flex items-center gap-x-3", children: [
|
|
63
|
+
/* @__PURE__ */ t(w, { maxLength: l, children: i.name }),
|
|
64
|
+
s && /* @__PURE__ */ t(T, { disabledStyle: d }),
|
|
65
|
+
a.isZeroSlippagePair && /* @__PURE__ */ t(
|
|
66
|
+
R,
|
|
67
67
|
{
|
|
68
|
-
token:
|
|
69
|
-
disabledStyle:
|
|
68
|
+
token: a.zeroSlippageToken,
|
|
69
|
+
disabledStyle: d
|
|
70
70
|
}
|
|
71
71
|
)
|
|
72
72
|
] }),
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
d && /* @__PURE__ */ t("div", {}),
|
|
74
|
+
d && /* @__PURE__ */ t(
|
|
75
|
+
y,
|
|
76
76
|
{
|
|
77
77
|
as: "span",
|
|
78
78
|
variant: "caption",
|
|
79
79
|
style: { lineHeight: "100%" },
|
|
80
|
-
children: /* @__PURE__ */ t(
|
|
80
|
+
children: /* @__PURE__ */ t(n, { messageId: "components.strategiesTable.line.name.disabled" })
|
|
81
81
|
}
|
|
82
82
|
)
|
|
83
83
|
] }) });
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function h({
|
|
86
86
|
ctx: e,
|
|
87
87
|
mobile: i = !1
|
|
88
88
|
}) {
|
|
89
|
-
const { rewardsCellInfo: r, row: a, targetTokenAddress:
|
|
90
|
-
|
|
89
|
+
const { rewardsCellInfo: r, row: a, targetTokenAddress: d, tokensList: s } = e, l = !!a.disabledStyle, c = /* @__PURE__ */ t(
|
|
90
|
+
v,
|
|
91
91
|
{
|
|
92
92
|
maxAPY: r.maxAPY,
|
|
93
93
|
bonusAPY: r.bonusAPY,
|
|
@@ -99,23 +99,23 @@ function f({
|
|
|
99
99
|
hasRewards: r.hasRewards ?? !1,
|
|
100
100
|
hasDebtRewards: r.hasDebtRewards ?? !1,
|
|
101
101
|
apyLoading: r.apyLoading,
|
|
102
|
-
disabledStyle:
|
|
102
|
+
disabledStyle: l
|
|
103
103
|
}
|
|
104
|
-
),
|
|
105
|
-
return
|
|
106
|
-
|
|
104
|
+
), p = i ? /* @__PURE__ */ t("div", { className: "pt-1", children: c }) : c;
|
|
105
|
+
return l ? p : /* @__PURE__ */ t(
|
|
106
|
+
k,
|
|
107
107
|
{
|
|
108
108
|
cellInfo: r,
|
|
109
|
-
targetToken:
|
|
109
|
+
targetToken: d,
|
|
110
110
|
apyList: a.apyList,
|
|
111
|
-
tokensList:
|
|
111
|
+
tokensList: s,
|
|
112
112
|
strategyCreditManagers: a.strategyCreditManagers,
|
|
113
|
-
children: /* @__PURE__ */ t("div", { children:
|
|
113
|
+
children: /* @__PURE__ */ t("div", { children: p })
|
|
114
114
|
}
|
|
115
115
|
);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
const { header: i, mobileTitle: r } =
|
|
117
|
+
function ie(e) {
|
|
118
|
+
const { header: i, mobileTitle: r } = m(
|
|
119
119
|
e,
|
|
120
120
|
"components.strategiesTable.head.name"
|
|
121
121
|
);
|
|
@@ -127,12 +127,12 @@ function de(e) {
|
|
|
127
127
|
align: "left",
|
|
128
128
|
className: "pl-4",
|
|
129
129
|
sort: e?.sortField !== void 0 ? { field: e.sortField, defaultDirection: "desc" } : { field: "strategyName", defaultDirection: "desc" },
|
|
130
|
-
cell: (a) => /* @__PURE__ */ t(
|
|
130
|
+
cell: (a) => /* @__PURE__ */ t(S, { ctx: a }),
|
|
131
131
|
mobileTitle: r
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
const { header: i, mobileTitle: r } =
|
|
134
|
+
function de(e) {
|
|
135
|
+
const { header: i, mobileTitle: r } = m(
|
|
136
136
|
e,
|
|
137
137
|
"components.strategiesTable.head.rewards"
|
|
138
138
|
);
|
|
@@ -143,13 +143,13 @@ function oe(e) {
|
|
|
143
143
|
mediumWidth: e?.mediumWidth ?? "270px",
|
|
144
144
|
align: "left",
|
|
145
145
|
sort: e?.sortField !== void 0 ? { field: e.sortField, defaultDirection: "desc" } : { field: "apy", defaultDirection: "desc" },
|
|
146
|
-
cell: (a) => /* @__PURE__ */ t(
|
|
147
|
-
mobileCell: (a) => /* @__PURE__ */ t(
|
|
146
|
+
cell: (a) => /* @__PURE__ */ t(h, { ctx: a }),
|
|
147
|
+
mobileCell: (a) => /* @__PURE__ */ t(h, { ctx: a, mobile: !0 }),
|
|
148
148
|
mobileTitle: r
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
const { header: i, mobileTitle: r } =
|
|
151
|
+
function se(e) {
|
|
152
|
+
const { header: i, mobileTitle: r } = m(
|
|
153
153
|
e,
|
|
154
154
|
"components.strategiesTable.head.leverage"
|
|
155
155
|
);
|
|
@@ -161,16 +161,16 @@ function le(e) {
|
|
|
161
161
|
align: "right",
|
|
162
162
|
className: "pr-4",
|
|
163
163
|
headerClassName: "pr-4",
|
|
164
|
-
cell: (a) => `×${
|
|
164
|
+
cell: (a) => `×${f(Number(a.row.maxLeverage), 0)}`,
|
|
165
165
|
mobileTitle: r
|
|
166
166
|
};
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function le(e) {
|
|
169
169
|
return e;
|
|
170
170
|
}
|
|
171
171
|
export {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
172
|
+
le as customStrategyColumn,
|
|
173
|
+
ie as strategyColumn,
|
|
174
|
+
se as strategyLeverageColumn,
|
|
175
|
+
de as strategyRewardsColumn
|
|
176
176
|
};
|
|
@@ -18,19 +18,19 @@ function K({
|
|
|
18
18
|
token: n,
|
|
19
19
|
disabledStyle: r
|
|
20
20
|
}) {
|
|
21
|
-
const
|
|
22
|
-
return /* @__PURE__ */ e(N, { children: r ?
|
|
21
|
+
const l = () => /* @__PURE__ */ e("span", { className: R(r && "opacity-60 pointer-events-none"), children: /* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(m, { messageId: "components.strategiesTable.line.0slippage" }) }) });
|
|
22
|
+
return /* @__PURE__ */ e(N, { children: r ? l() : /* @__PURE__ */ e(
|
|
23
23
|
F,
|
|
24
24
|
{
|
|
25
25
|
placement: "top",
|
|
26
26
|
triangle: !1,
|
|
27
|
-
title:
|
|
27
|
+
title: l(),
|
|
28
28
|
children: /* @__PURE__ */ e(
|
|
29
29
|
m,
|
|
30
30
|
{
|
|
31
31
|
messageId: "components.strategiesTable.line.0slippage.tip",
|
|
32
32
|
values: {
|
|
33
|
-
symbol: n?.title || "
|
|
33
|
+
symbol: n?.title || ""
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
)
|
|
@@ -54,12 +54,12 @@ function Q({ disabledStyle: n }) {
|
|
|
54
54
|
function U({
|
|
55
55
|
maxAPY: n,
|
|
56
56
|
bonusAPY: r,
|
|
57
|
-
rewards:
|
|
57
|
+
rewards: l,
|
|
58
58
|
rewardRates: d,
|
|
59
59
|
debtRewards: u,
|
|
60
60
|
debtRewardRates: f,
|
|
61
61
|
hasAPY: a,
|
|
62
|
-
hasRewards:
|
|
62
|
+
hasRewards: s,
|
|
63
63
|
hasDebtRewards: g,
|
|
64
64
|
disabledStyle: p,
|
|
65
65
|
apyLoading: h,
|
|
@@ -86,14 +86,14 @@ function U({
|
|
|
86
86
|
},
|
|
87
87
|
"apy"
|
|
88
88
|
) : void 0,
|
|
89
|
-
|
|
89
|
+
s || g ? /* @__PURE__ */ e(
|
|
90
90
|
j,
|
|
91
91
|
{
|
|
92
|
-
rewards:
|
|
92
|
+
rewards: l,
|
|
93
93
|
rewardRates: d,
|
|
94
94
|
debtRewards: u,
|
|
95
95
|
debtRewardRates: f,
|
|
96
|
-
hasRewards:
|
|
96
|
+
hasRewards: s,
|
|
97
97
|
hasDebtRewards: g,
|
|
98
98
|
disabledStyle: p
|
|
99
99
|
},
|
|
@@ -117,12 +117,12 @@ function U({
|
|
|
117
117
|
function j({
|
|
118
118
|
rewards: n,
|
|
119
119
|
rewardRates: r,
|
|
120
|
-
debtRewards:
|
|
120
|
+
debtRewards: l,
|
|
121
121
|
debtRewardRates: d,
|
|
122
122
|
hasRewards: u,
|
|
123
123
|
hasDebtRewards: f,
|
|
124
124
|
disabledStyle: a,
|
|
125
|
-
theme:
|
|
125
|
+
theme: s
|
|
126
126
|
}) {
|
|
127
127
|
return (() => {
|
|
128
128
|
const p = [
|
|
@@ -134,13 +134,13 @@ function j({
|
|
|
134
134
|
{
|
|
135
135
|
reward: t,
|
|
136
136
|
points: r?.[i] || 0n,
|
|
137
|
-
theme:
|
|
137
|
+
theme: s
|
|
138
138
|
}
|
|
139
139
|
) })
|
|
140
140
|
},
|
|
141
141
|
["base", t.multiplier, t.name, t.type, t.units].join("-")
|
|
142
142
|
)) : void 0,
|
|
143
|
-
f ?
|
|
143
|
+
f ? l.map((t, i) => /* @__PURE__ */ e(
|
|
144
144
|
"span",
|
|
145
145
|
{
|
|
146
146
|
children: /* @__PURE__ */ e(L, { disabled: a, children: /* @__PURE__ */ e(
|
|
@@ -148,7 +148,7 @@ function j({
|
|
|
148
148
|
{
|
|
149
149
|
reward: t,
|
|
150
150
|
points: d?.[i] || 0n,
|
|
151
|
-
theme:
|
|
151
|
+
theme: s
|
|
152
152
|
}
|
|
153
153
|
) })
|
|
154
154
|
},
|
|
@@ -36,8 +36,8 @@ export interface StrategyTableRowDTO<S extends StrategyDTO = StrategyDTO, T exte
|
|
|
36
36
|
readonly disabledStyle?: boolean;
|
|
37
37
|
readonly disabledTooltip?: React.ReactNode;
|
|
38
38
|
readonly rewardsCellInfo: RewardsTooltipCellInfo;
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
39
|
+
readonly isZeroSlippagePair: boolean;
|
|
40
|
+
readonly zeroSlippageToken: T | undefined;
|
|
41
41
|
readonly loading?: boolean;
|
|
42
42
|
}
|
|
43
43
|
export type StrategyTableRow = StrategyTableRowDTO;
|