@ape.swap/bonds-sdk 3.0.13 → 3.0.14-test.2
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/README.md +9 -10
- package/dist/components/uikit-sdk/Svg/tokens/MONAD.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/SONIC.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/index.d.ts +2 -0
- package/dist/components/uikit-sdk/Svg/types.d.ts +2 -0
- package/dist/main.d.ts +2 -2
- package/dist/main.js +411 -312
- package/dist/styles.css +2 -0
- package/dist/views/{BuyBond/BuyBond.d.ts → BondModal/BondModal.d.ts} +3 -3
- package/dist/views/BondModal/index.d.ts +7 -0
- package/dist/views/SingleBond/SingleBond.d.ts +1 -4
- package/dist/views/SingleBond/index.d.ts +1 -4
- package/dist/views/YourBonds/YourBonds.d.ts +1 -3
- package/package.json +2 -2
- package/dist/components/uikit-sdk/TabNav/index.d.ts +0 -8
- package/dist/views/BuyBond/BuyBondModal.d.ts +0 -4
- package/dist/views/BuyBond/index.d.ts +0 -7
- package/dist/views/SingleBond/SoldOutBuyBondPlaceholder.d.ts +0 -8
- /package/dist/views/{BuyBond → BondModal}/components/BondCards.d.ts +0 -0
- /package/dist/views/{BuyBond → BondModal}/components/BondModalHeader.d.ts +0 -0
- /package/dist/views/{BuyBond → BondModal}/components/BondModalHeaderAlt.d.ts +0 -0
- /package/dist/views/{BuyBond → BondModal}/components/BondModalMinTierHeader.d.ts +0 -0
- /package/dist/views/{BuyBond → BondModal}/components/Estimations.d.ts +0 -0
- /package/dist/views/{BuyBond → BondModal}/components/ExpandedViewButton.d.ts +0 -0
- /package/dist/views/{BuyBond → BondModal}/components/ImageAndShortDescription.d.ts +0 -0
- /package/dist/views/{BuyBond → BondModal}/components/NewRateModal/NewRateModal.d.ts +0 -0
- /package/dist/views/{BuyBond → BondModal}/components/NoBonusModal/NoBonusModal.d.ts +0 -0
- /package/dist/views/{BuyBond → BondModal}/components/ProjectDescription.d.ts +0 -0
package/dist/main.js
CHANGED
|
@@ -3925,6 +3925,8 @@ var icons;
|
|
|
3925
3925
|
icons["BASE"] = "base";
|
|
3926
3926
|
icons["BLAST"] = "blast";
|
|
3927
3927
|
icons["CROSSFI"] = "crossfi";
|
|
3928
|
+
icons["MONAD"] = "monad";
|
|
3929
|
+
icons["SONIC"] = "sonic";
|
|
3928
3930
|
//Social media icons
|
|
3929
3931
|
icons["DISCORD"] = "discord";
|
|
3930
3932
|
icons["REDDIT"] = "reddit";
|
|
@@ -6753,7 +6755,15 @@ const BLAST = ({ width }) => {
|
|
|
6753
6755
|
};
|
|
6754
6756
|
|
|
6755
6757
|
const CROSSFI = ({ width }) => {
|
|
6756
|
-
return (jsx$2("svg", { width: width || '30', height: width || '30', xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 30 30", children: jsxs("g", { children: [jsx$2("title", { children: "Layer 1" }), jsxs("g", { stroke: "null", id: "svg_6", children: [jsx$2("rect", { stroke: "null", id: "svg_7", fill: "#1d2022", height: "48.28147", width: "48.28147", y: "-2.74187", x: "-1.02475" }), jsx$2("rect", { stroke: "null", id: "svg_1", fill: "#34393E", rx: "595.5", height: "25.54054", width: "25.54054", y: "2.48368", x: "2.44511" }), jsx$2("rect", { stroke: "null", id: "svg_2",
|
|
6758
|
+
return (jsx$2("svg", { width: width || '30', height: width || '30', xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 30 30", children: jsxs("g", { children: [jsx$2("title", { children: "Layer 1" }), jsxs("g", { stroke: "null", id: "svg_6", children: [jsx$2("rect", { stroke: "null", id: "svg_7", fill: "#1d2022", height: "48.28147", width: "48.28147", y: "-2.74187", x: "-1.02475" }), jsx$2("rect", { stroke: "null", id: "svg_1", fill: "#34393E", rx: "595.5", height: "25.54054", width: "25.54054", y: "2.48368", x: "2.44511" }), jsx$2("rect", { stroke: "null", id: "svg_2", fillOpacity: "0.2", fill: "black", rx: "595.5", height: "25.54054", width: "25.54054", y: "2.48368", x: "2.44511" }), jsx$2("rect", { stroke: "null", id: "svg_3", fillOpacity: "0.2", fill: "black", rx: "595.5", height: "25.54054", width: "25.54054", y: "2.48368", x: "2.44511" }), jsx$2("path", { stroke: "null", id: "svg_4", fill: "white", d: "m10.68808,10.67793c0,1.21364 0.48227,2.37756 1.34072,3.23574c0.85845,0.85817 2.02277,1.34028 3.23679,1.34028l-9.22885,0c-0.00019,-1.20527 0.23711,-2.3988 0.69839,-3.51239c0.46125,-1.1136 1.13742,-2.12546 1.98989,-2.9778c0.85247,-0.85232 1.86454,-1.52844 2.97842,-1.98974c1.11388,-0.46127 2.30774,-0.69871 3.51343,-0.69871l0.04872,0l0,0.02659c-1.21402,0 -2.37834,0.48209 -3.23679,1.34028c-0.85845,0.85817 -1.34072,2.0221 -1.34072,3.23574l0,0.00001z" }), jsx$2("path", { stroke: "null", id: "svg_5", fill: "white", d: "m24.39411,15.25395c0,2.42515 -0.9601,4.75174 -2.6705,6.47156c-1.7104,1.71979 -4.03214,2.69302 -6.45802,2.70717l0,-0.02659c1.21402,0 2.37834,-0.4822 3.23679,-1.34037c0.85845,-0.85817 1.34072,-2.0221 1.34072,-3.23574c0,-1.21364 -0.48227,-2.37756 -1.34072,-3.23574c-0.85845,-0.85817 -2.02277,-1.34028 -3.23679,-1.34028l9.12853,0l0,-0.00001z" })] })] }) }));
|
|
6759
|
+
};
|
|
6760
|
+
|
|
6761
|
+
const MONAD$1 = ({ width }) => {
|
|
6762
|
+
return (jsx$2("svg", { width: width || '30', height: width || '30', xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 30 30", children: jsxs("g", { children: [jsx$2("title", { children: "Layer 1" }), jsx$2("rect", { id: "svg_7", fill: "#1d2022", height: "32.15663", width: "32.0266", y: "-0.07832", x: "-0.0133", stroke: "null" }), jsx$2("path", { id: "svg_1", fill: "#836EF9", d: "m14.99992,3.54125c-3.29267,0 -11.40217,8.14946 -11.40217,11.45868c0,3.30922 8.1095,11.45882 11.40217,11.45882c3.29267,0 11.40232,-8.14975 11.40232,-11.45882c0,-3.30907 -8.1095,-11.45868 -11.40232,-11.45868zm-1.77682,18.01115c-1.38851,-0.38022 -5.1216,-6.94271 -4.74318,-8.3381c0.37843,-1.39546 6.90845,-5.14699 8.29689,-4.7667c1.38859,0.38024 5.12163,6.94264 4.74328,8.3381c-0.37843,1.39539 -6.90855,5.14698 -8.29699,4.7667z", stroke: "null" })] }) }));
|
|
6763
|
+
};
|
|
6764
|
+
|
|
6765
|
+
const MONAD = ({ width }) => {
|
|
6766
|
+
return (jsxs("svg", { width: width || '30', height: width || '30', xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 30 30", children: [jsx$2("title", { children: "Layer 1" }), jsxs("g", { children: [jsx$2("title", { children: "Layer 1" }), jsx$2("rect", { stroke: "null", x: "-0.0133", y: "-0.12069", width: "32.0266", height: "32.15663", fill: "#1d2022", id: "svg_7" }), jsx$2("path", { id: "svg_1", fill: "#f5f5f5", d: "m17.82919,18.32412l0.00336,-0.00224s-0.00336,0.00224 -0.0056,0.00336c0.00112,0 0.00224,0 0.00336,0l0,0l-0.00112,-0.00112z", className: "cls-1", stroke: "null" }), jsxs("g", { stroke: "null", id: "svg_8", children: [jsx$2("path", { stroke: "null", id: "svg_2", fill: "#f5f5f5", d: "m17.17092,17.60435c-4.02378,1.2086 -7.3513,2.97164 -9.43583,5.03639l-0.09198,0.09198c0.55444,0.52436 1.16218,0.99369 1.81891,1.39256l0.14098,-0.17278c0.56905,-0.69542 1.17938,-1.36677 1.81462,-1.99943c1.70459,-1.69857 3.65416,-3.16848 5.7533,-4.34872z", className: "cls-1" }), jsx$2("path", { stroke: "null", id: "svg_3", fill: "#f5f5f5", d: "m17.63597,15.81294l-13.2834,0c0.16074,2.15502 0.96103,4.13124 2.2169,5.73869l0.05759,-0.05759c1.29026,-1.27307 2.96992,-2.43008 4.99599,-3.4384c1.77594,-0.88454 3.81491,-1.64355 6.0129,-2.2427l0,0.00001l0.00001,0z", className: "cls-1" }), jsx$2("path", { stroke: "null", id: "svg_4", fill: "#f5f5f5", d: "m12.5437,6.91914c3.60086,3.58797 8.13268,5.96046 13.10374,6.86047c-0.59914,-5.3192 -5.12665,-9.45646 -10.62809,-9.45646c-1.45273,0 -2.83754,0.28969 -4.10202,0.81232c0.51318,0.61805 1.0616,1.21978 1.62637,1.78453l0,0l0,-0.00086l0.00001,0l-0.00001,-0.00001z", className: "cls-1" }), jsx$2("path", { stroke: "null", id: "svg_5", fill: "#f5f5f5", d: "m7.73508,7.3584c2.08454,2.0682 5.41375,3.82866 9.43841,5.03983c-2.10086,-1.18281 -4.05216,-2.65187 -5.7576,-4.35129c-0.63352,-0.63095 -1.24298,-1.3023 -1.81462,-1.99943l-0.14098,-0.17278c-0.65673,0.39885 -1.26447,0.86734 -1.81634,1.39169l0.09198,0.09198l-0.00086,0l0.00001,0z", className: "cls-1" }), jsx$2("path", { stroke: "null", id: "svg_6", fill: "#f5f5f5", d: "m12.45773,23.08c-0.56733,0.56476 -1.11491,1.16648 -1.62637,1.78453c1.26276,0.52263 2.64928,0.81232 4.10202,0.81232c5.50144,0 10.02895,-4.13811 10.62981,-9.45903c-4.9702,0.9 -9.50202,3.2725 -13.10374,6.86047l-0.00172,0.00172l-0.00001,0l0.00001,-0.00001z", className: "cls-1" }), jsx$2("path", { stroke: "null", id: "svg_7", fill: "#f5f5f5", d: "m11.62048,11.94093l0,0.00172c-2.02436,-1.00831 -3.70316,-2.16619 -4.99342,-3.43755l-0.05759,-0.05759c-1.25587,1.60745 -2.05616,3.58367 -2.2169,5.73869l13.28082,0c-2.19714,-0.59914 -4.2344,-1.35817 -6.0129,-2.24528l0.00001,0.00001l-0.00001,0z", className: "cls-1" })] })] })] }));
|
|
6757
6767
|
};
|
|
6758
6768
|
|
|
6759
6769
|
const Icon$a = ({ width }) => {
|
|
@@ -7160,6 +7170,10 @@ const Svg = (_a) => {
|
|
|
7160
7170
|
return jsx$2(BLAST, Object.assign({}, props, { getStyles: getStyles }));
|
|
7161
7171
|
case icons.CROSSFI:
|
|
7162
7172
|
return jsx$2(CROSSFI, Object.assign({}, props, { getStyles: getStyles }));
|
|
7173
|
+
case icons.MONAD:
|
|
7174
|
+
return jsx$2(MONAD$1, Object.assign({}, props, { getStyles: getStyles }));
|
|
7175
|
+
case icons.SONIC:
|
|
7176
|
+
return jsx$2(MONAD, Object.assign({}, props, { getStyles: getStyles }));
|
|
7163
7177
|
default:
|
|
7164
7178
|
return null;
|
|
7165
7179
|
}
|
|
@@ -17805,10 +17819,10 @@ var types = {};
|
|
|
17805
17819
|
_14,
|
|
17806
17820
|
_15,
|
|
17807
17821
|
_16,
|
|
17808
|
-
_17
|
|
17809
|
-
|
|
17810
|
-
_19
|
|
17811
|
-
|
|
17822
|
+
_17,
|
|
17823
|
+
_18,
|
|
17824
|
+
_19;
|
|
17825
|
+
var _20,
|
|
17812
17826
|
_21,
|
|
17813
17827
|
_22,
|
|
17814
17828
|
_23,
|
|
@@ -17865,7 +17879,15 @@ var types = {};
|
|
|
17865
17879
|
_74,
|
|
17866
17880
|
_75,
|
|
17867
17881
|
_76,
|
|
17868
|
-
_77
|
|
17882
|
+
_77,
|
|
17883
|
+
_78,
|
|
17884
|
+
_79,
|
|
17885
|
+
_80,
|
|
17886
|
+
_81,
|
|
17887
|
+
_82,
|
|
17888
|
+
_83,
|
|
17889
|
+
_84,
|
|
17890
|
+
_85;
|
|
17869
17891
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
17870
17892
|
exports.dexToZapMapping =
|
|
17871
17893
|
exports.defaultDexFactories =
|
|
@@ -17924,6 +17946,8 @@ var types = {};
|
|
|
17924
17946
|
ChainId[(ChainId['BLAST'] = 81457)] = 'BLAST';
|
|
17925
17947
|
ChainId[(ChainId['SINGULARITY_TESTNET'] = 751)] = 'SINGULARITY_TESTNET';
|
|
17926
17948
|
ChainId[(ChainId['CROSSFI'] = 4158)] = 'CROSSFI';
|
|
17949
|
+
ChainId[(ChainId['SONIC'] = 146)] = 'SONIC';
|
|
17950
|
+
ChainId[(ChainId['MONAD_TESTNET'] = 10143)] = 'MONAD_TESTNET';
|
|
17927
17951
|
})((ChainId = exports.ChainId || (exports.ChainId = {})));
|
|
17928
17952
|
var LiquidityDex
|
|
17929
17953
|
;(function (LiquidityDex) {
|
|
@@ -17943,6 +17967,7 @@ var types = {};
|
|
|
17943
17967
|
LiquidityDex['QuickswapV2'] = 'QuickswapV2';
|
|
17944
17968
|
LiquidityDex['UniswapV3'] = 'UniswapV3';
|
|
17945
17969
|
LiquidityDex['Curve'] = 'Curve';
|
|
17970
|
+
LiquidityDex['Wagmi'] = 'Wagmi';
|
|
17946
17971
|
LiquidityDex['External'] = 'External';
|
|
17947
17972
|
//Linea
|
|
17948
17973
|
LiquidityDex['Spartadex'] = 'Spartadex';
|
|
@@ -17958,7 +17983,6 @@ var types = {};
|
|
|
17958
17983
|
LiquidityDex['SmarDex'] = 'SmarDex';
|
|
17959
17984
|
//IOTA
|
|
17960
17985
|
LiquidityDex['MagicSea'] = 'MagicSea';
|
|
17961
|
-
LiquidityDex['Wagmi'] = 'Wagmi';
|
|
17962
17986
|
//ARBITRUM
|
|
17963
17987
|
LiquidityDex['CamelotV2'] = 'Camelotv2';
|
|
17964
17988
|
//AVALANCHE
|
|
@@ -17973,6 +17997,11 @@ var types = {};
|
|
|
17973
17997
|
LiquidityDex['Citea'] = 'Citea';
|
|
17974
17998
|
//CROSSFI
|
|
17975
17999
|
LiquidityDex['XSwap'] = 'XSwap';
|
|
18000
|
+
//SONIC
|
|
18001
|
+
LiquidityDex['ShadowExchange'] = 'ShadowExchange';
|
|
18002
|
+
// ShadowExchangeV3 = 'ShadowExchangeV3',
|
|
18003
|
+
LiquidityDex['SwapX'] = 'SwapX';
|
|
18004
|
+
LiquidityDex['SwapXAlgebraIntegral'] = 'SwapXAlgebraIntegral';
|
|
17976
18005
|
})((LiquidityDex = exports.LiquidityDex || (exports.LiquidityDex = {})));
|
|
17977
18006
|
(function (IchiSupportedDex) {
|
|
17978
18007
|
IchiSupportedDex['Ascent'] = 'Ascent';
|
|
@@ -18019,6 +18048,7 @@ var types = {};
|
|
|
18019
18048
|
Protocols[(Protocols['Solidly'] = 7)] = 'Solidly';
|
|
18020
18049
|
Protocols[(Protocols['XFAI'] = 8)] = 'XFAI';
|
|
18021
18050
|
Protocols[(Protocols['Curve'] = 9)] = 'Curve';
|
|
18051
|
+
Protocols[(Protocols['AlgebraIntegral'] = 10)] = 'AlgebraIntegral';
|
|
18022
18052
|
})((Protocols = exports.Protocols || (exports.Protocols = {})));
|
|
18023
18053
|
(function (Wrappers) {
|
|
18024
18054
|
Wrappers[(Wrappers['Gamma'] = 0)] = 'Gamma';
|
|
@@ -18028,9 +18058,8 @@ var types = {};
|
|
|
18028
18058
|
(function (BillVersion) {
|
|
18029
18059
|
BillVersion['V1'] = 'V1';
|
|
18030
18060
|
BillVersion['V2'] = 'V2';
|
|
18031
|
-
BillVersion['V3'] = 'V3';
|
|
18032
|
-
BillVersion['V4'] = 'V4';
|
|
18033
18061
|
BillVersion['FixedPrice'] = 'FixedPrice';
|
|
18062
|
+
BillVersion['V3'] = 'V3';
|
|
18034
18063
|
BillVersion['TieredSale'] = 'TieredSale';
|
|
18035
18064
|
BillVersion['FlashTieredSale'] = 'FlashTieredSale';
|
|
18036
18065
|
})((exports.BillVersion || (exports.BillVersion = {})));
|
|
@@ -18298,248 +18327,293 @@ var types = {};
|
|
|
18298
18327
|
protocol: Protocols.V2,
|
|
18299
18328
|
}),
|
|
18300
18329
|
_o)),
|
|
18330
|
+
(_a[ChainId.SONIC] =
|
|
18331
|
+
((_p = {}),
|
|
18332
|
+
(_p[LiquidityDex.ShadowExchange] = {
|
|
18333
|
+
factory: '0x2dA25E7446A70D7be65fd4c053948BEcAA6374c8',
|
|
18334
|
+
protocol: Protocols.Solidly,
|
|
18335
|
+
}),
|
|
18336
|
+
// [LiquidityDex.ShadowExchangeV3]: {
|
|
18337
|
+
// factory: ' 0xcD2d0637c94fe77C2896BbCBB174cefFb08DE6d7',
|
|
18338
|
+
// protocol: Protocols.V3,
|
|
18339
|
+
// },
|
|
18340
|
+
(_p[LiquidityDex.SwapX] = {
|
|
18341
|
+
factory: '0x05c1be79d3aC21Cc4B727eeD58C9B2fF757F5663',
|
|
18342
|
+
protocol: Protocols.Solidly,
|
|
18343
|
+
}),
|
|
18344
|
+
(_p[LiquidityDex.SwapXAlgebraIntegral] = {
|
|
18345
|
+
factory: '0x8121a3F8c4176E9765deEa0B95FA2BDfD3016794',
|
|
18346
|
+
protocol: Protocols.AlgebraIntegral,
|
|
18347
|
+
}),
|
|
18348
|
+
(_p[LiquidityDex.Wagmi] = {
|
|
18349
|
+
factory: '0x56CFC796bC88C9c7e1b38C2b0aF9B7120B079aef',
|
|
18350
|
+
protocol: Protocols.V3,
|
|
18351
|
+
}),
|
|
18352
|
+
_p)),
|
|
18301
18353
|
_a);
|
|
18302
18354
|
exports.defaultDexFactories =
|
|
18303
|
-
((
|
|
18304
|
-
(
|
|
18305
|
-
((
|
|
18306
|
-
(
|
|
18307
|
-
(
|
|
18308
|
-
null || _19 === void 0
|
|
18309
|
-
? void 0
|
|
18310
|
-
: _19.factory),
|
|
18311
|
-
(_q[Protocols.V3] =
|
|
18312
|
-
(_21 = (_20 = exports.dexFactories[ChainId.MAINNET]) === null || _20 === void 0 ? void 0 : _20.UniswapV3) ===
|
|
18355
|
+
((_q = {}),
|
|
18356
|
+
(_q[ChainId.MAINNET] =
|
|
18357
|
+
((_r = {}),
|
|
18358
|
+
(_r[Protocols.V2] =
|
|
18359
|
+
(_21 = (_20 = exports.dexFactories[ChainId.MAINNET]) === null || _20 === void 0 ? void 0 : _20.ApeSwapV2) ===
|
|
18313
18360
|
null || _21 === void 0
|
|
18314
18361
|
? void 0
|
|
18315
18362
|
: _21.factory),
|
|
18316
|
-
|
|
18317
|
-
|
|
18318
|
-
|
|
18319
|
-
(_r[Protocols.V2] =
|
|
18320
|
-
(_23 = (_22 = exports.dexFactories[ChainId.BSC]) === null || _22 === void 0 ? void 0 : _22.ApeSwapV2) === null ||
|
|
18321
|
-
_23 === void 0
|
|
18363
|
+
(_r[Protocols.V3] =
|
|
18364
|
+
(_23 = (_22 = exports.dexFactories[ChainId.MAINNET]) === null || _22 === void 0 ? void 0 : _22.UniswapV3) ===
|
|
18365
|
+
null || _23 === void 0
|
|
18322
18366
|
? void 0
|
|
18323
18367
|
: _23.factory),
|
|
18324
|
-
|
|
18325
|
-
|
|
18368
|
+
_r)),
|
|
18369
|
+
(_q[ChainId.BSC] =
|
|
18370
|
+
((_s = {}),
|
|
18371
|
+
(_s[Protocols.V2] =
|
|
18372
|
+
(_25 = (_24 = exports.dexFactories[ChainId.BSC]) === null || _24 === void 0 ? void 0 : _24.ApeSwapV2) === null ||
|
|
18326
18373
|
_25 === void 0
|
|
18327
18374
|
? void 0
|
|
18328
18375
|
: _25.factory),
|
|
18329
|
-
(
|
|
18330
|
-
(_27 = (_26 = exports.dexFactories[ChainId.BSC]) === null || _26 === void 0 ? void 0 : _26.
|
|
18376
|
+
(_s[Protocols.V3] =
|
|
18377
|
+
(_27 = (_26 = exports.dexFactories[ChainId.BSC]) === null || _26 === void 0 ? void 0 : _26.UniswapV3) === null ||
|
|
18331
18378
|
_27 === void 0
|
|
18332
18379
|
? void 0
|
|
18333
18380
|
: _27.factory),
|
|
18334
|
-
(
|
|
18335
|
-
(_29 = (_28 = exports.dexFactories[ChainId.BSC]) === null || _28 === void 0 ? void 0 : _28.
|
|
18381
|
+
(_s[Protocols.Algebra] =
|
|
18382
|
+
(_29 = (_28 = exports.dexFactories[ChainId.BSC]) === null || _28 === void 0 ? void 0 : _28.Algebra) === null ||
|
|
18336
18383
|
_29 === void 0
|
|
18337
18384
|
? void 0
|
|
18338
18385
|
: _29.factory),
|
|
18339
|
-
|
|
18340
|
-
|
|
18341
|
-
|
|
18342
|
-
(_s[Protocols.V2] =
|
|
18343
|
-
(_31 = (_30 = exports.dexFactories[ChainId.MATIC]) === null || _30 === void 0 ? void 0 : _30.ApeSwapV2) ===
|
|
18344
|
-
null || _31 === void 0
|
|
18386
|
+
(_s[Protocols.Solidly] =
|
|
18387
|
+
(_31 = (_30 = exports.dexFactories[ChainId.BSC]) === null || _30 === void 0 ? void 0 : _30.ThenaV1) === null ||
|
|
18388
|
+
_31 === void 0
|
|
18345
18389
|
? void 0
|
|
18346
18390
|
: _31.factory),
|
|
18347
|
-
|
|
18348
|
-
|
|
18391
|
+
_s)),
|
|
18392
|
+
(_q[ChainId.MATIC] =
|
|
18393
|
+
((_t = {}),
|
|
18394
|
+
(_t[Protocols.V2] =
|
|
18395
|
+
(_33 = (_32 = exports.dexFactories[ChainId.MATIC]) === null || _32 === void 0 ? void 0 : _32.ApeSwapV2) ===
|
|
18349
18396
|
null || _33 === void 0
|
|
18350
18397
|
? void 0
|
|
18351
18398
|
: _33.factory),
|
|
18352
|
-
(
|
|
18353
|
-
(_35 = (_34 = exports.dexFactories[ChainId.MATIC]) === null || _34 === void 0 ? void 0 : _34.
|
|
18354
|
-
|
|
18399
|
+
(_t[Protocols.V3] =
|
|
18400
|
+
(_35 = (_34 = exports.dexFactories[ChainId.MATIC]) === null || _34 === void 0 ? void 0 : _34.UniswapV3) ===
|
|
18401
|
+
null || _35 === void 0
|
|
18355
18402
|
? void 0
|
|
18356
18403
|
: _35.factory),
|
|
18357
|
-
|
|
18358
|
-
|
|
18359
|
-
|
|
18360
|
-
(_t[Protocols.V2] =
|
|
18361
|
-
(_37 = (_36 = exports.dexFactories[ChainId.ARBITRUM]) === null || _36 === void 0 ? void 0 : _36.ApeSwapV2) ===
|
|
18362
|
-
null || _37 === void 0
|
|
18404
|
+
(_t[Protocols.Algebra] =
|
|
18405
|
+
(_37 = (_36 = exports.dexFactories[ChainId.MATIC]) === null || _36 === void 0 ? void 0 : _36.Algebra) === null ||
|
|
18406
|
+
_37 === void 0
|
|
18363
18407
|
? void 0
|
|
18364
18408
|
: _37.factory),
|
|
18365
|
-
|
|
18366
|
-
|
|
18409
|
+
_t)),
|
|
18410
|
+
(_q[ChainId.ARBITRUM] =
|
|
18411
|
+
((_u = {}),
|
|
18412
|
+
(_u[Protocols.V2] =
|
|
18413
|
+
(_39 = (_38 = exports.dexFactories[ChainId.ARBITRUM]) === null || _38 === void 0 ? void 0 : _38.ApeSwapV2) ===
|
|
18367
18414
|
null || _39 === void 0
|
|
18368
18415
|
? void 0
|
|
18369
18416
|
: _39.factory),
|
|
18370
|
-
(
|
|
18371
|
-
(_41 = (_40 = exports.dexFactories[ChainId.ARBITRUM]) === null || _40 === void 0 ? void 0 : _40.
|
|
18417
|
+
(_u[Protocols.V3] =
|
|
18418
|
+
(_41 = (_40 = exports.dexFactories[ChainId.ARBITRUM]) === null || _40 === void 0 ? void 0 : _40.UniswapV3) ===
|
|
18372
18419
|
null || _41 === void 0
|
|
18373
18420
|
? void 0
|
|
18374
18421
|
: _41.factory),
|
|
18375
|
-
(
|
|
18376
|
-
(_43 = (_42 = exports.dexFactories[ChainId.ARBITRUM]) === null || _42 === void 0 ? void 0 : _42.
|
|
18377
|
-
|
|
18422
|
+
(_u[Protocols.Algebra] =
|
|
18423
|
+
(_43 = (_42 = exports.dexFactories[ChainId.ARBITRUM]) === null || _42 === void 0 ? void 0 : _42.Algebra) ===
|
|
18424
|
+
null || _43 === void 0
|
|
18378
18425
|
? void 0
|
|
18379
18426
|
: _43.factory),
|
|
18380
|
-
|
|
18381
|
-
|
|
18382
|
-
|
|
18383
|
-
(_u[Protocols.V2] =
|
|
18384
|
-
(_45 = (_44 = exports.dexFactories[ChainId.LINEA]) === null || _44 === void 0 ? void 0 : _44.Spartadex) ===
|
|
18385
|
-
null || _45 === void 0
|
|
18427
|
+
(_u[Protocols.Curve] =
|
|
18428
|
+
(_45 = (_44 = exports.dexFactories[ChainId.ARBITRUM]) === null || _44 === void 0 ? void 0 : _44.Curve) === null ||
|
|
18429
|
+
_45 === void 0
|
|
18386
18430
|
? void 0
|
|
18387
18431
|
: _45.factory),
|
|
18388
|
-
|
|
18389
|
-
|
|
18390
|
-
|
|
18432
|
+
_u)),
|
|
18433
|
+
(_q[ChainId.LINEA] =
|
|
18434
|
+
((_v = {}),
|
|
18435
|
+
(_v[Protocols.V2] =
|
|
18436
|
+
(_47 = (_46 = exports.dexFactories[ChainId.LINEA]) === null || _46 === void 0 ? void 0 : _46.Spartadex) ===
|
|
18437
|
+
null || _47 === void 0
|
|
18391
18438
|
? void 0
|
|
18392
18439
|
: _47.factory),
|
|
18393
|
-
(
|
|
18394
|
-
(_49 = (_48 = exports.dexFactories[ChainId.LINEA]) === null || _48 === void 0 ? void 0 : _48.
|
|
18440
|
+
(_v[Protocols.V3] =
|
|
18441
|
+
(_49 = (_48 = exports.dexFactories[ChainId.LINEA]) === null || _48 === void 0 ? void 0 : _48.Nile) === null ||
|
|
18395
18442
|
_49 === void 0
|
|
18396
18443
|
? void 0
|
|
18397
18444
|
: _49.factory),
|
|
18398
|
-
(
|
|
18399
|
-
(_51 = (_50 = exports.dexFactories[ChainId.LINEA]) === null || _50 === void 0 ? void 0 : _50.
|
|
18445
|
+
(_v[Protocols.Algebra] =
|
|
18446
|
+
(_51 = (_50 = exports.dexFactories[ChainId.LINEA]) === null || _50 === void 0 ? void 0 : _50.Algebra) === null ||
|
|
18400
18447
|
_51 === void 0
|
|
18401
18448
|
? void 0
|
|
18402
18449
|
: _51.factory),
|
|
18403
|
-
(
|
|
18404
|
-
(_53 = (_52 = exports.dexFactories[ChainId.LINEA]) === null || _52 === void 0 ? void 0 : _52.
|
|
18450
|
+
(_v[Protocols.Solidly] =
|
|
18451
|
+
(_53 = (_52 = exports.dexFactories[ChainId.LINEA]) === null || _52 === void 0 ? void 0 : _52.Lynex) === null ||
|
|
18405
18452
|
_53 === void 0
|
|
18406
18453
|
? void 0
|
|
18407
18454
|
: _53.factory),
|
|
18408
|
-
|
|
18409
|
-
|
|
18410
|
-
|
|
18411
|
-
(_v[Protocols.V3] =
|
|
18412
|
-
(_55 = (_54 = exports.dexFactories[ChainId.LIGHTLINK]) === null || _54 === void 0 ? void 0 : _54.Elektrik) ===
|
|
18413
|
-
null || _55 === void 0
|
|
18455
|
+
(_v[Protocols.XFAI] =
|
|
18456
|
+
(_55 = (_54 = exports.dexFactories[ChainId.LINEA]) === null || _54 === void 0 ? void 0 : _54.XFAI) === null ||
|
|
18457
|
+
_55 === void 0
|
|
18414
18458
|
? void 0
|
|
18415
18459
|
: _55.factory),
|
|
18416
18460
|
_v)),
|
|
18417
|
-
(
|
|
18461
|
+
(_q[ChainId.LIGHTLINK] =
|
|
18418
18462
|
((_w = {}),
|
|
18419
|
-
(_w[Protocols.
|
|
18420
|
-
(_57 = (_56 = exports.dexFactories[ChainId.
|
|
18421
|
-
|
|
18463
|
+
(_w[Protocols.V3] =
|
|
18464
|
+
(_57 = (_56 = exports.dexFactories[ChainId.LIGHTLINK]) === null || _56 === void 0 ? void 0 : _56.Elektrik) ===
|
|
18465
|
+
null || _57 === void 0
|
|
18422
18466
|
? void 0
|
|
18423
18467
|
: _57.factory),
|
|
18424
|
-
|
|
18425
|
-
|
|
18468
|
+
_w)),
|
|
18469
|
+
(_q[ChainId.BASE] =
|
|
18470
|
+
((_x = {}),
|
|
18471
|
+
(_x[Protocols.V2] =
|
|
18472
|
+
(_59 = (_58 = exports.dexFactories[ChainId.BASE]) === null || _58 === void 0 ? void 0 : _58.SmarDex) === null ||
|
|
18426
18473
|
_59 === void 0
|
|
18427
18474
|
? void 0
|
|
18428
18475
|
: _59.factory),
|
|
18429
|
-
(
|
|
18430
|
-
(_61 = (_60 = exports.dexFactories[ChainId.BASE]) === null || _60 === void 0 ? void 0 : _60.
|
|
18476
|
+
(_x[Protocols.V3] =
|
|
18477
|
+
(_61 = (_60 = exports.dexFactories[ChainId.BASE]) === null || _60 === void 0 ? void 0 : _60.UniswapV3) === null ||
|
|
18431
18478
|
_61 === void 0
|
|
18432
18479
|
? void 0
|
|
18433
18480
|
: _61.factory),
|
|
18434
|
-
(
|
|
18435
|
-
(_63 = (_62 = exports.dexFactories[ChainId.BASE]) === null || _62 === void 0 ? void 0 : _62.
|
|
18481
|
+
(_x[Protocols.Algebra] =
|
|
18482
|
+
(_63 = (_62 = exports.dexFactories[ChainId.BASE]) === null || _62 === void 0 ? void 0 : _62.Algebra) === null ||
|
|
18436
18483
|
_63 === void 0
|
|
18437
18484
|
? void 0
|
|
18438
18485
|
: _63.factory),
|
|
18439
|
-
|
|
18440
|
-
|
|
18441
|
-
((_x = {}),
|
|
18442
|
-
(_x[Protocols.V2] =
|
|
18443
|
-
(_65 = (_64 = exports.dexFactories[ChainId.IOTA]) === null || _64 === void 0 ? void 0 : _64.MagicSea) === null ||
|
|
18486
|
+
(_x[Protocols.Solidly] =
|
|
18487
|
+
(_65 = (_64 = exports.dexFactories[ChainId.BASE]) === null || _64 === void 0 ? void 0 : _64.Aerodrome) === null ||
|
|
18444
18488
|
_65 === void 0
|
|
18445
18489
|
? void 0
|
|
18446
18490
|
: _65.factory),
|
|
18447
18491
|
_x)),
|
|
18448
|
-
(
|
|
18492
|
+
(_q[ChainId.IOTA] =
|
|
18449
18493
|
((_y = {}),
|
|
18450
18494
|
(_y[Protocols.V2] =
|
|
18451
|
-
(_67 = (_66 = exports.dexFactories[ChainId.
|
|
18495
|
+
(_67 = (_66 = exports.dexFactories[ChainId.IOTA]) === null || _66 === void 0 ? void 0 : _66.MagicSea) === null ||
|
|
18452
18496
|
_67 === void 0
|
|
18453
18497
|
? void 0
|
|
18454
18498
|
: _67.factory),
|
|
18455
|
-
(_y[Protocols.V3] =
|
|
18456
|
-
(_69 = (_68 = exports.dexFactories[ChainId.AVAX]) === null || _68 === void 0 ? void 0 : _68.Pharaoh) === null ||
|
|
18457
|
-
_69 === void 0
|
|
18458
|
-
? void 0
|
|
18459
|
-
: _69.factory),
|
|
18460
18499
|
_y)),
|
|
18461
|
-
(
|
|
18500
|
+
(_q[ChainId.AVAX] =
|
|
18462
18501
|
((_z = {}),
|
|
18463
18502
|
(_z[Protocols.V2] =
|
|
18464
|
-
(
|
|
18465
|
-
|
|
18503
|
+
(_69 = (_68 = exports.dexFactories[ChainId.AVAX]) === null || _68 === void 0 ? void 0 : _68.LFJ) === null ||
|
|
18504
|
+
_69 === void 0
|
|
18466
18505
|
? void 0
|
|
18467
|
-
:
|
|
18506
|
+
: _69.factory),
|
|
18468
18507
|
(_z[Protocols.V3] =
|
|
18469
|
-
(
|
|
18470
|
-
|
|
18508
|
+
(_71 = (_70 = exports.dexFactories[ChainId.AVAX]) === null || _70 === void 0 ? void 0 : _70.Pharaoh) === null ||
|
|
18509
|
+
_71 === void 0
|
|
18471
18510
|
? void 0
|
|
18472
|
-
:
|
|
18511
|
+
: _71.factory),
|
|
18473
18512
|
_z)),
|
|
18474
|
-
(
|
|
18513
|
+
(_q[ChainId.BLAST] =
|
|
18475
18514
|
((_0 = {}),
|
|
18476
18515
|
(_0[Protocols.V2] =
|
|
18477
|
-
(
|
|
18478
|
-
|
|
18516
|
+
(_73 = (_72 = exports.dexFactories[ChainId.BLAST]) === null || _72 === void 0 ? void 0 : _72.ThrusterV2_03) ===
|
|
18517
|
+
null || _73 === void 0
|
|
18518
|
+
? void 0
|
|
18519
|
+
: _73.factory),
|
|
18520
|
+
(_0[Protocols.V3] =
|
|
18521
|
+
(_75 = (_74 = exports.dexFactories[ChainId.BLAST]) === null || _74 === void 0 ? void 0 : _74.ThrusterV3) ===
|
|
18479
18522
|
null || _75 === void 0
|
|
18480
18523
|
? void 0
|
|
18481
18524
|
: _75.factory),
|
|
18482
18525
|
_0)),
|
|
18483
|
-
(
|
|
18526
|
+
(_q[ChainId.SINGULARITY_TESTNET] =
|
|
18484
18527
|
((_1 = {}),
|
|
18485
18528
|
(_1[Protocols.V2] =
|
|
18486
|
-
(_77 =
|
|
18487
|
-
|
|
18529
|
+
(_77 =
|
|
18530
|
+
(_76 = exports.dexFactories[ChainId.SINGULARITY_TESTNET]) === null || _76 === void 0 ? void 0 : _76.Citea) ===
|
|
18531
|
+
null || _77 === void 0
|
|
18488
18532
|
? void 0
|
|
18489
18533
|
: _77.factory),
|
|
18490
18534
|
_1)),
|
|
18491
|
-
|
|
18492
|
-
|
|
18493
|
-
|
|
18494
|
-
|
|
18535
|
+
(_q[ChainId.CROSSFI] =
|
|
18536
|
+
((_2 = {}),
|
|
18537
|
+
(_2[Protocols.V2] =
|
|
18538
|
+
(_79 = (_78 = exports.dexFactories[ChainId.CROSSFI]) === null || _78 === void 0 ? void 0 : _78.XSwap) === null ||
|
|
18539
|
+
_79 === void 0
|
|
18540
|
+
? void 0
|
|
18541
|
+
: _79.factory),
|
|
18542
|
+
_2)),
|
|
18543
|
+
(_q[ChainId.SONIC] =
|
|
18495
18544
|
((_3 = {}),
|
|
18496
|
-
(_3[
|
|
18497
|
-
|
|
18498
|
-
|
|
18499
|
-
|
|
18500
|
-
|
|
18501
|
-
(_3[
|
|
18502
|
-
|
|
18545
|
+
(_3[Protocols.Solidly] =
|
|
18546
|
+
(_81 = (_80 = exports.dexFactories[ChainId.SONIC]) === null || _80 === void 0 ? void 0 : _80.ShadowExchange) ===
|
|
18547
|
+
null || _81 === void 0
|
|
18548
|
+
? void 0
|
|
18549
|
+
: _81.factory),
|
|
18550
|
+
(_3[Protocols.V3] =
|
|
18551
|
+
(_83 = (_82 = exports.dexFactories[ChainId.SONIC]) === null || _82 === void 0 ? void 0 : _82.Wagmi) === null ||
|
|
18552
|
+
_83 === void 0
|
|
18553
|
+
? void 0
|
|
18554
|
+
: _83.factory),
|
|
18555
|
+
(_3[Protocols.AlgebraIntegral] =
|
|
18556
|
+
(_85 =
|
|
18557
|
+
(_84 = exports.dexFactories[ChainId.SONIC]) === null || _84 === void 0 ? void 0 : _84.SwapXAlgebraIntegral) ===
|
|
18558
|
+
null || _85 === void 0
|
|
18559
|
+
? void 0
|
|
18560
|
+
: _85.factory),
|
|
18503
18561
|
_3)),
|
|
18504
|
-
|
|
18505
|
-
|
|
18506
|
-
|
|
18507
|
-
|
|
18508
|
-
(
|
|
18509
|
-
|
|
18510
|
-
|
|
18511
|
-
(
|
|
18512
|
-
|
|
18513
|
-
|
|
18514
|
-
|
|
18515
|
-
(
|
|
18516
|
-
|
|
18517
|
-
(
|
|
18518
|
-
|
|
18519
|
-
|
|
18520
|
-
|
|
18521
|
-
|
|
18522
|
-
|
|
18523
|
-
(
|
|
18524
|
-
|
|
18525
|
-
(
|
|
18526
|
-
(
|
|
18527
|
-
(
|
|
18528
|
-
|
|
18529
|
-
(
|
|
18530
|
-
(
|
|
18531
|
-
(
|
|
18532
|
-
(
|
|
18533
|
-
(
|
|
18534
|
-
(
|
|
18535
|
-
(
|
|
18536
|
-
(
|
|
18537
|
-
(
|
|
18538
|
-
(
|
|
18539
|
-
(
|
|
18540
|
-
(
|
|
18541
|
-
(
|
|
18542
|
-
|
|
18562
|
+
_q);
|
|
18563
|
+
exports.dexToZapMapping =
|
|
18564
|
+
((_4 = {}),
|
|
18565
|
+
(_4[LiquidityDex.ApeSwapV2] =
|
|
18566
|
+
((_5 = {}),
|
|
18567
|
+
(_5[ChainId.BSC] = ZapVersion.SoulZap),
|
|
18568
|
+
(_5[ChainId.BSC_TESTNET] = ZapVersion.ZapV1),
|
|
18569
|
+
(_5[ChainId.MATIC] = ZapVersion.ZapV1),
|
|
18570
|
+
(_5[ChainId.MATIC_TESTNET] = ZapVersion.ZapV1),
|
|
18571
|
+
(_5[ChainId.MAINNET] = ZapVersion.ZapV1),
|
|
18572
|
+
(_5[ChainId.ARBITRUM] = ZapVersion.External),
|
|
18573
|
+
(_5[ChainId.TLOS] = ZapVersion.ZapV1),
|
|
18574
|
+
_5)),
|
|
18575
|
+
(_4[LiquidityDex.Algebra] =
|
|
18576
|
+
((_6 = {}),
|
|
18577
|
+
(_6[ChainId.BSC] = ZapVersion.SoulZapApi),
|
|
18578
|
+
(_6[ChainId.MATIC] = ZapVersion.SoulZapApi),
|
|
18579
|
+
(_6[ChainId.LINEA] = ZapVersion.SoulZapApi),
|
|
18580
|
+
_6)),
|
|
18581
|
+
(_4[LiquidityDex.PancakeSwapV2] =
|
|
18582
|
+
((_7 = {}), (_7[ChainId.BSC] = ZapVersion.SoulZap), (_7[ChainId.MAINNET] = ZapVersion.External), _7)),
|
|
18583
|
+
(_4[LiquidityDex.QuickswapV2] = ((_8 = {}), (_8[ChainId.MATIC] = ZapVersion.SoulZap), _8)),
|
|
18584
|
+
(_4[LiquidityDex.ApeSwapV3] = {}),
|
|
18585
|
+
(_4[LiquidityDex.UniswapV3] =
|
|
18586
|
+
((_9 = {}), (_9[ChainId.ARBITRUM] = ZapVersion.SoulZapApi), (_9[ChainId.MATIC] = ZapVersion.SoulZapApi), _9)),
|
|
18587
|
+
(_4[LiquidityDex.ThenaV1] = ((_10 = {}), (_10[ChainId.BSC] = ZapVersion.SoulZapApi), _10)),
|
|
18588
|
+
(_4[LiquidityDex.UniswapV2] = ((_11 = {}), (_11[ChainId.BASE] = ZapVersion.SoulZapApi), _11)),
|
|
18589
|
+
(_4[LiquidityDex.PancakeSwapV3] = {}),
|
|
18590
|
+
(_4[LiquidityDex.External] = {}),
|
|
18591
|
+
(_4[LiquidityDex.Spartadex] = {}),
|
|
18592
|
+
(_4[LiquidityDex.Nile] = {}),
|
|
18593
|
+
(_4[LiquidityDex.XFAI] = {}),
|
|
18594
|
+
(_4[LiquidityDex.Lynex] = {}),
|
|
18595
|
+
(_4[LiquidityDex.Metavault] = {}),
|
|
18596
|
+
(_4[LiquidityDex.Elektrik] = {}),
|
|
18597
|
+
(_4[LiquidityDex.SushiSwapV3] = {}),
|
|
18598
|
+
(_4[LiquidityDex.Synthswap] = {}),
|
|
18599
|
+
(_4[LiquidityDex.Aerodrome] = ((_12 = {}), (_12[ChainId.BASE] = ZapVersion.SoulZapApi), _12)),
|
|
18600
|
+
(_4[LiquidityDex.SmarDex] = {}),
|
|
18601
|
+
(_4[LiquidityDex.MagicSea] = ((_13 = {}), (_13[ChainId.IOTA] = ZapVersion.External), _13)),
|
|
18602
|
+
(_4[LiquidityDex.Wagmi] = ((_14 = {}), (_14[ChainId.IOTA] = ZapVersion.External), _14)),
|
|
18603
|
+
(_4[LiquidityDex.CamelotV2] = ((_15 = {}), (_15[ChainId.ARBITRUM] = ZapVersion.SoulZapApi), _15)),
|
|
18604
|
+
(_4[LiquidityDex.LFJ] = ((_16 = {}), (_16[ChainId.AVAX] = ZapVersion.SoulZapApi), _16)),
|
|
18605
|
+
(_4[LiquidityDex.Pharaoh] = {}),
|
|
18606
|
+
(_4[LiquidityDex.Pangolin] = ((_17 = {}), (_17[ChainId.AVAX] = ZapVersion.SoulZapApi), _17)),
|
|
18607
|
+
(_4[LiquidityDex.Curve] = {}),
|
|
18608
|
+
(_4[LiquidityDex.ThrusterV2_03] = ((_18 = {}), (_18[ChainId.BLAST] = ZapVersion.SoulZapApi), _18)),
|
|
18609
|
+
(_4[LiquidityDex.ThrusterV2_1] = ((_19 = {}), (_19[ChainId.BLAST] = ZapVersion.SoulZapApi), _19)),
|
|
18610
|
+
(_4[LiquidityDex.ThrusterV3] = {}),
|
|
18611
|
+
(_4[LiquidityDex.Citea] = {}),
|
|
18612
|
+
(_4[LiquidityDex.XSwap] = {}),
|
|
18613
|
+
(_4[LiquidityDex.ShadowExchange] = {}),
|
|
18614
|
+
(_4[LiquidityDex.SwapX] = {}),
|
|
18615
|
+
(_4[LiquidityDex.SwapXAlgebraIntegral] = {}),
|
|
18616
|
+
_4);
|
|
18543
18617
|
|
|
18544
18618
|
} (types));
|
|
18545
18619
|
|
|
@@ -18558,6 +18632,8 @@ const MAINNET_CHAINS = [
|
|
|
18558
18632
|
types.ChainId.AVAX,
|
|
18559
18633
|
types.ChainId.BLAST,
|
|
18560
18634
|
types.ChainId.CROSSFI,
|
|
18635
|
+
types.ChainId.MONAD_TESTNET,
|
|
18636
|
+
types.ChainId.SONIC,
|
|
18561
18637
|
];
|
|
18562
18638
|
// Network Icons
|
|
18563
18639
|
const NETWORK_ICONS = {
|
|
@@ -18576,6 +18652,8 @@ const NETWORK_ICONS = {
|
|
|
18576
18652
|
[types.ChainId.AVAX]: icons.AVAX_TOKEN,
|
|
18577
18653
|
[types.ChainId.BLAST]: icons.BLAST,
|
|
18578
18654
|
[types.ChainId.CROSSFI]: icons.CROSSFI,
|
|
18655
|
+
[types.ChainId.MONAD_TESTNET]: icons.MONAD,
|
|
18656
|
+
[types.ChainId.SONIC]: icons.SONIC,
|
|
18579
18657
|
};
|
|
18580
18658
|
// Network labels
|
|
18581
18659
|
const NETWORK_LABEL = {
|
|
@@ -18596,6 +18674,8 @@ const NETWORK_LABEL = {
|
|
|
18596
18674
|
[types.ChainId.AVAX]: 'Avalanche',
|
|
18597
18675
|
[types.ChainId.BLAST]: 'Blast',
|
|
18598
18676
|
[types.ChainId.CROSSFI]: 'Crossfi',
|
|
18677
|
+
[types.ChainId.MONAD_TESTNET]: 'Monad Testnet',
|
|
18678
|
+
[types.ChainId.SONIC]: 'Sonic',
|
|
18599
18679
|
};
|
|
18600
18680
|
// Network block explorers
|
|
18601
18681
|
const BLOCK_EXPLORER = {
|
|
@@ -18616,6 +18696,8 @@ const BLOCK_EXPLORER = {
|
|
|
18616
18696
|
[types.ChainId.AVAX]: 'https://snowscan.xyz',
|
|
18617
18697
|
[types.ChainId.BLAST]: 'https://blastscan.io',
|
|
18618
18698
|
[types.ChainId.CROSSFI]: 'https://xfiscan.com',
|
|
18699
|
+
[types.ChainId.MONAD_TESTNET]: 'https://testnet.monadexplorer.com/',
|
|
18700
|
+
[types.ChainId.SONIC]: 'https://sonicscan.org',
|
|
18619
18701
|
};
|
|
18620
18702
|
|
|
18621
18703
|
const supportedByLIFI = [
|
|
@@ -18812,6 +18894,8 @@ const NETWORK_COLORS = {
|
|
|
18812
18894
|
[types.ChainId.AVAX]: '#e74344',
|
|
18813
18895
|
[types.ChainId.BLAST]: '#fcfc03',
|
|
18814
18896
|
[types.ChainId.CROSSFI]: '#7c8084',
|
|
18897
|
+
[types.ChainId.MONAD_TESTNET]: '#836EF9',
|
|
18898
|
+
[types.ChainId.SONIC]: '#fb9a4c',
|
|
18815
18899
|
};
|
|
18816
18900
|
const TokenInfoAndName = ({ bill, vestEnds, isHotBond, }) => {
|
|
18817
18901
|
var _a, _b, _c, _d, _e;
|
|
@@ -21954,6 +22038,15 @@ function formatUSDNumber(input) {
|
|
|
21954
22038
|
const youSpendUSD = (bond, inputValue) => {
|
|
21955
22039
|
return (parseFloat(inputValue) * parseFloat(bond.principalTokenPrice)).toString();
|
|
21956
22040
|
};
|
|
22041
|
+
// receives depositAmount and returns the payoutTokens the user will receive. IT DOES NOT SUBTRACT FEE
|
|
22042
|
+
const getRawPayoutAmount = (bond, inputValue) => {
|
|
22043
|
+
var _a;
|
|
22044
|
+
if (!inputValue || !bond)
|
|
22045
|
+
return 0;
|
|
22046
|
+
const bigValue = new BigNumber$1(inputValue).times(new BigNumber$1(10).pow(18));
|
|
22047
|
+
const billValue = bigValue.div(new BigNumber$1((_a = bond.trueBillPrice) !== null && _a !== void 0 ? _a : 0));
|
|
22048
|
+
return billValue.toNumber();
|
|
22049
|
+
};
|
|
21957
22050
|
// receives depositAmount and returns the payoutTokens the user will receive. IT DOES SUBTRACT FEE
|
|
21958
22051
|
const getPayoutAmount = (bond, inputValue) => {
|
|
21959
22052
|
var _a;
|
|
@@ -31734,6 +31827,26 @@ const WNATIVE = {
|
|
|
31734
31827
|
},
|
|
31735
31828
|
active: true,
|
|
31736
31829
|
},
|
|
31830
|
+
[types.ChainId.MONAD_TESTNET]: {
|
|
31831
|
+
symbol: 'wMONAD',
|
|
31832
|
+
address: {
|
|
31833
|
+
[types.ChainId.MONAD_TESTNET]: '0x760AfE86e5de5fa0Ee542fc7B7B713e1c5425701',
|
|
31834
|
+
},
|
|
31835
|
+
decimals: {
|
|
31836
|
+
[types.ChainId.MONAD_TESTNET]: 18,
|
|
31837
|
+
},
|
|
31838
|
+
active: true,
|
|
31839
|
+
},
|
|
31840
|
+
[types.ChainId.SONIC]: {
|
|
31841
|
+
symbol: 'wSONIC',
|
|
31842
|
+
address: {
|
|
31843
|
+
[types.ChainId.SONIC]: '0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38',
|
|
31844
|
+
},
|
|
31845
|
+
decimals: {
|
|
31846
|
+
[types.ChainId.SONIC]: 18,
|
|
31847
|
+
},
|
|
31848
|
+
active: true,
|
|
31849
|
+
},
|
|
31737
31850
|
};
|
|
31738
31851
|
const zapInputTokens = {
|
|
31739
31852
|
[types.ChainId.MAINNET]: [
|
|
@@ -32186,6 +32299,7 @@ const PRICE_GETTER_ADDRESSES = {
|
|
|
32186
32299
|
[types.ChainId.BLAST]: '0x218EB9ACDC721E235969A30f5DA46FB1224Fa7A7', // Price getter V3
|
|
32187
32300
|
[types.ChainId.AVAX]: '0x01dadaa586D30d93Ac92C79A5Cb02a8F276a8B4F', // Price getter V3
|
|
32188
32301
|
[types.ChainId.CROSSFI]: '0xC22Db8dDe3A3591fFB02be868Ce2901d30671FE4', // Price getter V3
|
|
32302
|
+
[types.ChainId.SONIC]: '0xC22Db8dDe3A3591fFB02be868Ce2901d30671FE4', // Price getter V3
|
|
32189
32303
|
};
|
|
32190
32304
|
const MULTICALL_V2 = {
|
|
32191
32305
|
[types.ChainId.BSC]: '0x38ce767d81de3940CFa5020B55af1A400ED4F657',
|
|
@@ -32204,6 +32318,8 @@ const MULTICALL_V2 = {
|
|
|
32204
32318
|
[types.ChainId.AVAX]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
32205
32319
|
[types.ChainId.BLAST]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
32206
32320
|
[types.ChainId.CROSSFI]: '0x007bAC6A07894A69fBcA94ED6274005093E1c44E',
|
|
32321
|
+
[types.ChainId.MONAD_TESTNET]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
32322
|
+
[types.ChainId.SONIC]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
32207
32323
|
};
|
|
32208
32324
|
const SoulZapTokenManager = {
|
|
32209
32325
|
[types.ChainId.MAINNET]: '0x2F87f76336A560bbB0d18d357D10646bB96E8802',
|
|
@@ -68014,6 +68130,8 @@ const PUBLIC_RPC_URLS = {
|
|
|
68014
68130
|
[types.ChainId.AVAX]: ['https://avax.meowrpc.com'],
|
|
68015
68131
|
[types.ChainId.BLAST]: ['https://rpc.blast.io'],
|
|
68016
68132
|
[types.ChainId.CROSSFI]: ['https://rpc.mainnet.ms'],
|
|
68133
|
+
[types.ChainId.MONAD_TESTNET]: ['https://testnet-rpc2.monad.xyz/52227f026fa8fac9e2014c58fbf5643369b3bfc6'],
|
|
68134
|
+
[types.ChainId.SONIC]: ['https://rpc.soniclabs.com'],
|
|
68017
68135
|
};
|
|
68018
68136
|
|
|
68019
68137
|
// This is the legacy multicall
|
|
@@ -71190,7 +71308,7 @@ const YourBondsMenu = ({ chainFilterOption, setChainFilterOption, filterOptions,
|
|
|
71190
71308
|
return (jsxs("div", { className: "bonds-menu", children: [jsx$2(BondFilters, { chainFilterOption: chainFilterOption !== null && chainFilterOption !== void 0 ? chainFilterOption : ['All Chains'], setChainFilterOption: setChainFilterOption, filterOptions: filterOptions, filterOption: filterOption, setFilterOption: setFilterOption, onHandleQueryChange: () => setInputValue('') }), jsxs("div", { className: "table-header-container", children: [jsx$2("div", { className: "search-container", children: jsx$2(Flex$1, { sx: { width: '100%', maxWidth: '300px' }, children: jsx$2(Input, { className: "search-input", value: inputValue, onChange: (event) => setInputValue(event.target.value), variant: "search", sx: { fontWeight: 600, background: 'white2', height: '30px', fontSize: '14px', color: 'white' }, width: '100%', placeholder: 'Search...' }) }) }), jsxs("div", { className: "headers-container", children: [jsxs("div", { className: "your-bonds-table-headers", onClick: () => handleSort('claimable'), children: ["CLAIMABLE", jsx$2(Flex$1, { sx: { ml: '5px' }, children: jsx$2(Svg, { icon: "sort", width: "12px", color: "textDisabledButton" }) })] }), jsxs("div", { className: "your-bonds-table-headers", onClick: () => handleSort('pending'), children: ["PENDING", jsx$2(Flex$1, { sx: { ml: '5px' }, children: jsx$2(Svg, { icon: "sort", width: "12px", color: "textDisabledButton" }) })] }), jsxs("div", { className: "your-bonds-table-headers", onClick: () => handleSort('terms'), children: ["TERMS", jsx$2(Flex$1, { sx: { ml: '5px' }, children: jsx$2(Svg, { icon: "sort", width: "12px", color: "textDisabledButton" }) })] }), jsx$2(Flex$1, { className: "claim-all-button-container", children: SDKConfig.referenceId === 'apebond' && jsx$2(ClaimAll, {}) })] })] })] }));
|
|
71191
71309
|
};
|
|
71192
71310
|
|
|
71193
|
-
const YourBonds = (
|
|
71311
|
+
const YourBonds = () => {
|
|
71194
71312
|
// Hooks
|
|
71195
71313
|
const { address: account } = useAccount();
|
|
71196
71314
|
const { data: userBonds, isFetched: userBondsFetched } = useUserBonds();
|
|
@@ -71216,13 +71334,6 @@ const YourBonds = ({ showOnly }) => {
|
|
|
71216
71334
|
return [];
|
|
71217
71335
|
let bondsToReturn = userBonds;
|
|
71218
71336
|
// Handle Filtering //
|
|
71219
|
-
// Filter Single Token View
|
|
71220
|
-
if (showOnly) {
|
|
71221
|
-
bondsToReturn = bondsToReturn === null || bondsToReturn === void 0 ? void 0 : bondsToReturn.filter((bond) => {
|
|
71222
|
-
var _a, _b, _c;
|
|
71223
|
-
return ((_c = (_b = (_a = bond === null || bond === void 0 ? void 0 : bond.bond) === null || _a === void 0 ? void 0 : _a.earnToken) === null || _b === void 0 ? void 0 : _b.symbol) === null || _c === void 0 ? void 0 : _c.toLowerCase()) === showOnly.toLowerCase();
|
|
71224
|
-
});
|
|
71225
|
-
}
|
|
71226
71337
|
// Filter by search query
|
|
71227
71338
|
if (inputValue !== '') {
|
|
71228
71339
|
bondsToReturn = bondsToReturn === null || bondsToReturn === void 0 ? void 0 : bondsToReturn.filter((bond) => {
|
|
@@ -71289,7 +71400,7 @@ const YourBonds = ({ showOnly }) => {
|
|
|
71289
71400
|
const handleFilterOption = useCallback((newOption) => {
|
|
71290
71401
|
setFilterOption(newOption);
|
|
71291
71402
|
}, []);
|
|
71292
|
-
return (jsxs(Flex$1, { className: "yourbonds table-container", children: [
|
|
71403
|
+
return (jsxs(Flex$1, { className: "yourbonds table-container", children: [jsx$2(YourBondsMenu, { chainFilterOption: chainFilterOption, setChainFilterOption: setChainFilterOption, filterOptions: filterOptions, filterOption: filterOption, setFilterOption: handleFilterOption, setInputValue: setInputValue, inputValue: inputValue, handleSort: handleSort }), !account ? (jsx$2(PlaceholderMonkey, { text: 'You are not connected' })) : bondsToRender && (bondsToRender === null || bondsToRender === void 0 ? void 0 : bondsToRender.length) > 0 ? (bondsToRender === null || bondsToRender === void 0 ? void 0 : bondsToRender.map((bill) => jsx$2(UserBondRow, { bill: bill }, bill.id))) : inputValue !== '' || !chainFilterOption.includes('All Chains') ? (jsx$2(PlaceholderMonkey, { text: 'No results, change filters!' })) : userBondsFetched && (userBonds === null || userBonds === void 0 ? void 0 : userBonds.length) === 0 ? (jsxs(Flex$1, { sx: { flexDirection: 'column', justifyContent: 'center', alignItems: 'center', width: '100%', mt: '30px' }, children: [jsx$2(Svg, { icon: "placeholderMonkey" }), jsx$2(Flex$1, { sx: { mt: '15px' }, children: "You do not own any Bonds." })] })) : (jsx$2(Flex$1, { className: "yourbonds-spinner", children: jsx$2(Spinner, { size: 100 }) }))] }));
|
|
71293
71404
|
};
|
|
71294
71405
|
|
|
71295
71406
|
// This basically returns the 2 tags with the higher active bond count
|
|
@@ -72990,6 +73101,13 @@ const ZapModal = ({ onDismiss, outputToken, account, chainId }) => {
|
|
|
72990
73101
|
: 'BUY' })) }), jsx$2(Flex, { sx: { marginTop: '10px', justifyContent: 'center' }, children: jsx$2(Link, { href: "https://docs.ape.bond/apebond/products-and-features/zap", target: "_blank", rel: "noopener noreferrer", sx: { textDecoration: 'none' }, children: jsxs(Text, { style: { fontSize: '12px', lineHeight: '18px', fontWeight: 400, borderBottom: '1px solid' }, children: ["Learn more", '>'] }) }) })] })] }));
|
|
72991
73102
|
};
|
|
72992
73103
|
|
|
73104
|
+
const AccordionText = ({ isVisible = false }) => {
|
|
73105
|
+
if (!isVisible) {
|
|
73106
|
+
return null;
|
|
73107
|
+
}
|
|
73108
|
+
return (jsxs(Fragment$1, { children: [jsx$2(Flex, { className: "accordion-title", children: "Bonds at Seedify are an exciting new product!" }), jsx$2(AnimatePresence, { children: jsx$2(motion.div, { initial: { height: 0 }, animate: { height: 'fit-content' }, transition: { opacity: { duration: 0.2 } }, exit: { height: 0 }, sx: { overflow: 'hidden', width: '100%' }, children: jsxs(Flex, { className: "accordion-body", sx: { flexDirection: 'column' }, children: [jsx$2(Flex, { sx: { mt: '10px' }, children: "Are you a strong believer in a project? Do you want to buy project tokens at a discount compared to the market? If so, you've arrived at the right place!" }), jsx$2(Flex, { sx: { mt: '10px' }, children: "Bonds allow you to purchase project tokens at a discounted price with a short-term linear vesting. Its a perfect solution for projects you're planning to buy and hold tokens of!" }), jsx$2(Flex, { sx: { mt: '10px' }, children: "When you buy a Bond, you essentially are given an NFT (which you can transfer across your wallets). Whichever wallet owns the NFT will be able to Claim tokens of that project post-purchase until vesting period ends. Bonds at Seedify can range their vesting from 7 Days to 90 Days, with 30 Days being the standard." })] }) }) })] }));
|
|
73109
|
+
};
|
|
73110
|
+
|
|
72993
73111
|
const useSoulZapBondQuote = (typedValue, inputCurrency, bond, account) => {
|
|
72994
73112
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11;
|
|
72995
73113
|
const debouncedInput = useDebounce(typedValue, 400);
|
|
@@ -73580,7 +73698,7 @@ const BondModalHeader = ({ bondData, onDismiss, showProjectInfoButton, }) => {
|
|
|
73580
73698
|
},
|
|
73581
73699
|
});
|
|
73582
73700
|
};
|
|
73583
|
-
return (jsxs(Flex, { className: "modaltable-container title-container", sx: { flexDirection: 'column', justifyContent: 'center', alignItems: 'start' }, children: [jsxs(Flex, { className: "slipagge-close-icon", sx: { width: '100%', height: '30px', mb: ['10px', '10px', '10px', '0px'] }, children: [jsx$2(Flex, { sx: { display: ['flex', 'flex', 'flex', 'none', 'none'] }, children: jsx$2(BondModalMinTierHeader, { minTier: minTier }) }), jsx$2(Flex, { sx: { flexDirection: 'column', position: 'absolute', right: '0px' }, children: onDismiss ? (jsxs(Fragment$1, { children: [showProjectInfoButton && jsx$2(ExpandedViewButton, { handleNavigation: handleProjectViewNavigation }), jsx$2(IconButton, { icon: "close", color: "text", variant: "transparent", onClick: handleClose }), jsx$2(Flex, { sx: { py: '3px' }, onClick: onOpenSlippageModal, children: jsx$2(Svg, { icon: "cog", width: "16px" }) })] })) : (jsx$2(Flex, { sx: { py: '3px'
|
|
73701
|
+
return (jsxs(Flex, { className: "modaltable-container title-container", sx: { flexDirection: 'column', justifyContent: 'center', alignItems: 'start' }, children: [jsxs(Flex, { className: "slipagge-close-icon", sx: { width: '100%', height: '30px', mb: ['10px', '10px', '10px', '0px'], mt: '-10px' }, children: [jsx$2(Flex, { sx: { display: ['flex', 'flex', 'flex', 'none', 'none'] }, children: jsx$2(BondModalMinTierHeader, { minTier: minTier }) }), jsx$2(Flex, { sx: { flexDirection: 'column', position: 'absolute', right: '0px' }, children: onDismiss ? (jsxs(Fragment$1, { children: [showProjectInfoButton && jsx$2(ExpandedViewButton, { handleNavigation: handleProjectViewNavigation }), jsx$2(IconButton, { icon: "close", color: "text", variant: "transparent", onClick: handleClose }), jsx$2(Flex, { sx: { py: '3px' }, onClick: onOpenSlippageModal, children: jsx$2(Svg, { icon: "cog", width: "16px" }) })] })) : (jsx$2(Flex, { sx: { py: '3px' }, onClick: onOpenSlippageModal, children: jsx$2(Svg, { icon: "cog", width: "16px" }) })) })] }), jsxs(Flex, { sx: { width: '100%' }, children: [jsx$2(Flex, { className: "title-container bondicon", children: jsx$2(TokenImage, { symbol: (_a = bondData.showcaseTokenName) !== null && _a !== void 0 ? _a : bondData.earnToken.symbol, size: 50, chain: bondData.chainId }) }), jsxs(Flex, { className: "title-container bondname", children: [bondData === null || bondData === void 0 ? void 0 : bondData.showcaseTokenName, jsx$2(ListTag, { text: (_b = bondData === null || bondData === void 0 ? void 0 : bondData.tags) === null || _b === void 0 ? void 0 : _b[0] })] }), jsxs(Flex, { className: "title-container price-container", sx: { flexDirection: 'column', paddingLeft: '20px' }, children: [jsxs(Flex, { className: "price-container price", children: ["$", earnTokenPrice(bondData)] }), jsxs(Flex, { className: "price-container discounted", children: ["$", discountEarnTokenPrice(bondData)] })] }), jsx$2(Flex, { sx: { display: ['none', 'none', 'none', 'flex', 'flex'], ml: '10px' }, children: jsx$2(BondModalMinTierHeader, { minTier: minTier }) })] })] }));
|
|
73584
73702
|
};
|
|
73585
73703
|
|
|
73586
73704
|
const BondCards = ({ bondData }) => {
|
|
@@ -73638,7 +73756,7 @@ const Estimations = ({ depositAmount, bondData, youSpendString, isZap, fetchingZ
|
|
|
73638
73756
|
const feeUSD = fee * parseFloat((_a = bondData === null || bondData === void 0 ? void 0 : bondData.payoutTokenPrice) !== null && _a !== void 0 ? _a : '0');
|
|
73639
73757
|
const estimatedOutputAmount = getPayoutAmount(bondData, depositAmount);
|
|
73640
73758
|
const estimatedOutputUSD = estimatedOutputAmount * parseFloat((_b = bondData === null || bondData === void 0 ? void 0 : bondData.payoutTokenPrice) !== null && _b !== void 0 ? _b : '0');
|
|
73641
|
-
return (jsxs(Flex, { className: "modaltable-container text-container", children: [jsxs(Flex, { className: "text-container row", children: [jsx$2(Flex, { className: "row-container spend", children: "You Spend:" }), jsx$2(Flex, { className: "row-container spend-val", children: youSpendString })] }), jsxs(Flex, { className: "text-container row", children: [jsxs(Flex, { className: "row-container premium", children: ["Bonus:", jsx$2(TooltipBubble, { className: "tooltip-bubble", body: jsx$2(Flex, { children: TooltipText.Premium }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)", children: jsx$2(Flex, { className: "row-container premium-icon", children: jsx$2(Svg, { icon: "questionCircle", width: "12px" }) }) })] }), isZap && fetchingZapQuote ? (jsx$2(Dots, {})) : isZap && zapError ? ('-') : (jsxs(Flex, { className: `row-container premium-val ${getBonusColor(bonusString)}`, children: ["$ ", formatUSDNumber(bonusString)] }))] }),
|
|
73759
|
+
return (jsxs(Flex, { className: "modaltable-container text-container", children: [jsxs(Flex, { className: "text-container row", children: [jsx$2(Flex, { className: "row-container spend", children: "You Spend:" }), jsx$2(Flex, { className: "row-container spend-val", children: youSpendString })] }), jsxs(Flex, { className: "text-container row", children: [jsxs(Flex, { className: "row-container premium", children: ["Bonus:", jsx$2(TooltipBubble, { className: "tooltip-bubble", body: jsx$2(Flex, { children: TooltipText.Premium }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)", children: jsx$2(Flex, { className: "row-container premium-icon", children: jsx$2(Svg, { icon: "questionCircle", width: "12px" }) }) })] }), isZap && fetchingZapQuote ? (jsx$2(Dots, {})) : isZap && zapError ? ('-') : (jsxs(Flex, { className: `row-container premium-val ${getBonusColor(bonusString)}`, children: ["$ ", formatUSDNumber(bonusString)] }))] }), bondData.feeInPayout !== undefined && bondData.feeInPayout > 0 && (jsxs(Flex, { className: "text-container row", children: [jsxs(Flex, { className: "row-container premium", children: ["Fee:", jsx$2(TooltipBubble, { className: "tooltip-bubble", body: jsx$2(Flex, { children: TooltipText.Fee }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)", children: jsx$2(Flex, { className: "row-container premium-icon", children: jsx$2(Svg, { icon: "questionCircle", width: "12px" }) }) })] }), jsxs(Flex, { className: `row-container premium-val`, children: ["$ ", formatUSDNumber(feeUSD.toString())] })] })), jsxs(Flex, { className: "text-container row", children: [jsxs(Flex, { className: "row-container get", children: ["You Get (over ", vestingTime(((_c = bondData === null || bondData === void 0 ? void 0 : bondData.vestingTerm) !== null && _c !== void 0 ? _c : 0) - ((_d = bondData.vestingCliff) !== null && _d !== void 0 ? _d : 0)).days, " days):"] }), isZap && fetchingZapQuote ? (jsx$2(Dots, {})) : isZap && zapError ? ('-') : (jsxs(Flex, { className: "row-container get-val", children: [formatNumber$2(estimatedOutputAmount.toString()), " ", bondData === null || bondData === void 0 ? void 0 : bondData.showcaseTokenName, " = $", ' ', formatUSDNumber(estimatedOutputUSD.toString())] }))] })] }));
|
|
73642
73760
|
};
|
|
73643
73761
|
|
|
73644
73762
|
// Custom HTML sanitizer
|
|
@@ -73686,6 +73804,68 @@ const ProjectDescription = ({ description }) => {
|
|
|
73686
73804
|
}, onClick: () => setIsOpen(true), children: ["View More ", '>'] }))] }), jsx$2(Flex, { sx: { display: ['none', 'none', 'none', 'flex'] }, children: jsx$2(SafeHTMLComponent, { html: description !== null && description !== void 0 ? description : '' }) })] }));
|
|
73687
73805
|
};
|
|
73688
73806
|
|
|
73807
|
+
const BondModalHeaderAlt = ({ bondData, onDismiss, showProjectInfoButton, }) => {
|
|
73808
|
+
var _a, _b, _c, _d, _e, _f;
|
|
73809
|
+
const [onOpenSlippageModal] = useModal(jsx$2(SlippageModal, {}));
|
|
73810
|
+
const handleClose = () => {
|
|
73811
|
+
if (typeof window !== 'undefined') {
|
|
73812
|
+
window.history.pushState({}, '', `/bonds`);
|
|
73813
|
+
}
|
|
73814
|
+
onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
|
|
73815
|
+
};
|
|
73816
|
+
// const handleProjectViewNavigation = () => {
|
|
73817
|
+
// window.open(`${window.location.origin}/bonds/${bondData.billAddress}/${bondData.chainId}`, '_self')
|
|
73818
|
+
// track({
|
|
73819
|
+
// event: 'projectInfoClick',
|
|
73820
|
+
// chain: bondData.chainId,
|
|
73821
|
+
// data: {
|
|
73822
|
+
// cat: 'Modal',
|
|
73823
|
+
// bond: bondData.earnToken.symbol,
|
|
73824
|
+
// bondChain: bondData.chainId,
|
|
73825
|
+
// },
|
|
73826
|
+
// })
|
|
73827
|
+
// }
|
|
73828
|
+
return (jsx$2(Flex, { className: "modaltable-container title-container", children: jsx$2(Flex, { className: "slipagge-close-icons", sx: { flexDirection: 'row' }, children: onDismiss ? (jsxs(Fragment$1, { children: [jsx$2(TooltipBubble, { className: "tooltip-bubble", body: jsx$2(BondInfoTooltip, { earnTokenContract: (_c = (_b = (_a = bondData === null || bondData === void 0 ? void 0 : bondData.earnToken) === null || _a === void 0 ? void 0 : _a.address) === null || _b === void 0 ? void 0 : _b[bondData === null || bondData === void 0 ? void 0 : bondData.chainId]) !== null && _c !== void 0 ? _c : '', earnTokenSymbol: (_e = (_d = bondData === null || bondData === void 0 ? void 0 : bondData.earnToken) === null || _d === void 0 ? void 0 : _d.symbol) !== null && _e !== void 0 ? _e : '', bondContract: (_f = bondData.billAddress) !== null && _f !== void 0 ? _f : '', projectLink: bondData === null || bondData === void 0 ? void 0 : bondData.projectLink, twitter: bondData === null || bondData === void 0 ? void 0 : bondData.twitter, audit: bondData === null || bondData === void 0 ? void 0 : bondData.audit, chain: bondData === null || bondData === void 0 ? void 0 : bondData.chainId }), width: "205px", placement: "bottomRight", transformTip: "translate(7%, -2%)", children: jsx$2(Flex, { className: "more-icon", sx: { opacity: 0.8 }, children: jsx$2(Svg, { icon: "more", width: "25px" }) }) }), jsx$2(Flex, { sx: { pr: '10px' }, onClick: onOpenSlippageModal, children: jsx$2(Svg, { icon: "cog", width: "16px" }) }), jsx$2(IconButton, { icon: "close", color: "text", variant: "transparent", onClick: handleClose })] })) : (jsx$2(Flex, { sx: {}, onClick: onOpenSlippageModal, children: jsx$2(Svg, { icon: "cog", width: "16px" }) })) }) }));
|
|
73829
|
+
};
|
|
73830
|
+
|
|
73831
|
+
const ImageAndShortDescription = ({ bondData, onDismiss }) => {
|
|
73832
|
+
var _a;
|
|
73833
|
+
const SDKConfig = useSDKConfig();
|
|
73834
|
+
// Swiper logic for the alt view
|
|
73835
|
+
const [activeSlide, setActiveSlide] = useState(0);
|
|
73836
|
+
const { swiper, setSwiper } = useSwiper();
|
|
73837
|
+
const imagesLength = 3;
|
|
73838
|
+
const handleSlide = (event) => {
|
|
73839
|
+
const slideNumber = getDotPos(event.activeIndex, imagesLength);
|
|
73840
|
+
setActiveSlide(slideNumber);
|
|
73841
|
+
};
|
|
73842
|
+
const slideTo = (index) => {
|
|
73843
|
+
setActiveSlide(index);
|
|
73844
|
+
swiper === null || swiper === void 0 ? void 0 : swiper.slideTo(index);
|
|
73845
|
+
};
|
|
73846
|
+
return (jsxs(Flex, { sx: { maxWidth: ['unset', 'unset', 'unset', '500px'], flexDirection: 'column', alignItems: 'center' }, children: [jsxs(Flex, { sx: {
|
|
73847
|
+
flexDirection: 'column',
|
|
73848
|
+
width: '100%',
|
|
73849
|
+
alignItems: 'center',
|
|
73850
|
+
overflow: 'hidden',
|
|
73851
|
+
position: 'relative',
|
|
73852
|
+
}, children: [jsxs(Swiper, { id: "hotbondsSweper", onSwiper: setSwiper, slidesPerView: "auto", centeredSlides: true, lazy: true, preloadImages: false, onSlideChange: handleSlide, style: { width: '100%', overflow: 'visible' }, children: [jsx$2(SwiperSlide, { style: {
|
|
73853
|
+
width: '100%',
|
|
73854
|
+
display: 'flex',
|
|
73855
|
+
justifyContent: 'center',
|
|
73856
|
+
}, children: jsx$2("img", { className: "project-image", src: "https://placehold.co/400x200" }) }, 0), jsx$2(SwiperSlide, { style: {
|
|
73857
|
+
width: '100%',
|
|
73858
|
+
display: 'flex',
|
|
73859
|
+
justifyContent: 'center',
|
|
73860
|
+
}, children: jsx$2("img", { className: "project-image", src: "https://placehold.co/400x200" }) }, 1), jsx$2(SwiperSlide, { style: {
|
|
73861
|
+
width: '100%',
|
|
73862
|
+
display: 'flex',
|
|
73863
|
+
justifyContent: 'center',
|
|
73864
|
+
}, children: jsx$2("img", { className: "project-image", src: "https://placehold.co/400x200" }) }, 2)] }), jsx$2(Flex, { sx: { position: 'absolute', bottom: ['15px', '15px', '15px', '20px'], left: 'calc(50% - 28,5px)', zIndex: 2 }, children: [...Array(imagesLength)].map((_, i) => {
|
|
73865
|
+
return jsx$2(SwiperDots, { isActive: i === activeSlide, onClick: () => slideTo(i) }, i);
|
|
73866
|
+
}) })] }), jsxs(Flex, { sx: { alignItems: 'center', display: ['flex', 'flex', 'flex', 'none'], p: '10px', width: '100%' }, children: [jsxs(Flex, { sx: { width: ['50%', '50%', '50%', '100%'], alignItems: 'center' }, children: [jsx$2(Flex, { sx: { mr: '5px' }, children: jsx$2(TokenImage, { symbol: (_a = bondData.showcaseTokenName) !== null && _a !== void 0 ? _a : bondData.earnToken.symbol, size: 30, chain: bondData.chainId }) }), jsxs("h2", { className: "modal-tokenname-chainicon", sx: { margin: '0px' }, children: [bondData === null || bondData === void 0 ? void 0 : bondData.showcaseTokenName, ' '] })] }), jsx$2(Flex, { className: "modal-marketprice-header", sx: { justifyContent: 'flex-end', alignItems: 'center' }, children: jsxs("span", { className: "modal-marketprice", children: ["Market Price: $", earnTokenPrice(bondData)] }) }), jsx$2(Flex, { className: "bondmodal-header-alt", sx: { mb: '10px' }, children: jsx$2(BondModalHeaderAlt, { bondData: bondData, onDismiss: onDismiss, showProjectInfoButton: (SDKConfig === null || SDKConfig === void 0 ? void 0 : SDKConfig.referenceId) === 'apebond' }) })] }), jsx$2(Flex, { className: "description-container paragraph-spaced", sx: { px: '10px', opacity: 0.7, mt: ['0', '0', '0', '10px'] }, children: jsx$2(ProjectDescription, { description: bondData === null || bondData === void 0 ? void 0 : bondData.shortDescription }) })] }));
|
|
73867
|
+
};
|
|
73868
|
+
|
|
73689
73869
|
// Fetch country code to check if the region is allowed
|
|
73690
73870
|
const fetchLocation = (apiv2URL) => __awaiter$9(void 0, void 0, void 0, function* () {
|
|
73691
73871
|
const resp = yield axios.get(`${apiv2URL}/check`);
|
|
@@ -73768,10 +73948,13 @@ const NoBonusModal = ({ onAcknowledge, showcaseTokenName }) => {
|
|
|
73768
73948
|
return (isOpen && (jsxs(Modal, { className: "nobonus-modal", title: "Warning", onClose: handleAcknowledge, children: [jsxs("p", { children: ["You're buying ", showcaseTokenName, " at a higher price than the market, which will result in receiving fewer tokens compared to swapping via an exchange."] }), jsx$2("p", { children: "You will not receive any bonus tokens when buying this bond." }), jsxs(Flex, { className: "nobonus-checkbox-row", sx: { flexDirection: 'row', gap: '8px', pb: '20px' }, children: [jsx$2(Flex, { className: "nobonus-checkbox", children: jsx$2(Checkbox, { onChange: handleCheckboxChange }) }), jsx$2(Flex, { className: "nobonus-checkbox-text", children: "I understand and want to proceed." })] }), jsxs(Flex, { className: "nobonus-actions", sx: { flexDirection: 'row', gap: '8px' }, children: [jsx$2(Button, { classname: "nobonus-cancel", onClick: handleCancel, sx: { width: '100%', justifyContent: 'center' }, variant: "secondary", children: "Cancel" }), jsx$2(Button, { className: "nobonus-buy", onClick: handleAcknowledge, disabled: !isChecked, sx: { width: '100%', justifyContent: 'center' }, children: "Buy" })] })] })));
|
|
73769
73949
|
};
|
|
73770
73950
|
|
|
73771
|
-
const
|
|
73772
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
73951
|
+
const BondModal = ({ onDismiss, bondAddress, bondChain, handlePurchasedBond }) => {
|
|
73952
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
73773
73953
|
const SDKConfig = useSDKConfig();
|
|
73774
73954
|
const { data: geoData } = useGeoFencing();
|
|
73955
|
+
// State
|
|
73956
|
+
const [modalVariant, setModalVariant] = useState(SDKConfig === null || SDKConfig === void 0 ? void 0 : SDKConfig.modalVariant);
|
|
73957
|
+
const [accordionVisible, setAccordionVisible] = useState(false);
|
|
73775
73958
|
// Hooks
|
|
73776
73959
|
const userChainId = useChainId();
|
|
73777
73960
|
const { address: account } = useAccount();
|
|
@@ -74004,24 +74187,48 @@ const BuyBond = ({ onDismiss, bondAddress, bondChain, handlePurchasedBond }) =>
|
|
|
74004
74187
|
console.log('change to native');
|
|
74005
74188
|
}
|
|
74006
74189
|
}, [inputCurrencyBalance]);
|
|
74007
|
-
return
|
|
74008
|
-
|
|
74009
|
-
|
|
74010
|
-
|
|
74011
|
-
|
|
74012
|
-
|
|
74013
|
-
|
|
74014
|
-
|
|
74015
|
-
|
|
74016
|
-
|
|
74017
|
-
|
|
74018
|
-
|
|
74019
|
-
|
|
74020
|
-
|
|
74021
|
-
}
|
|
74022
|
-
|
|
74023
|
-
|
|
74024
|
-
|
|
74190
|
+
return (jsx$2(Modal, { className: "modal", onDismiss: onDismiss, sx: { width: '400px' }, children: modalVariant === 'standard' ? (jsx$2(Fragment$1, { children: bondData && (jsxs(Flex, { className: "modal-content", children: [typeof window !== 'undefined' && window.location.origin === 'http://localhost:5173' && (jsxs(Text, { sx: { borderBottom: '1px solid white', fontSize: '14px', mb: '10px' }, children: ["Dev mode - Current view: \"standard\"", jsx$2(Text, { onClick: () => setModalVariant('alt'), sx: { ml: '15px', textDecoration: 'underline', cursor: 'pointer' }, children: "Switch view" })] })), jsxs(Flex, { className: "modaltable-container", children: [jsx$2(BondModalHeader, { bondData: bondData, onDismiss: onDismiss, showProjectInfoButton: (SDKConfig === null || SDKConfig === void 0 ? void 0 : SDKConfig.referenceId) === 'apebond' }), jsx$2(ProjectDescription, { description: bondData.shortDescription }), jsx$2(BondCards, { bondData: bondData }), jsx$2(Estimations, { depositAmount: depositAmount, bondData: bondData, youSpendString: youSpendString, isZap: isZap, fetchingZapQuote: fetchingZapQuote, zapError: zapError }), jsx$2(TokenSelectorPanel, { typedValue: inputValue, setTypedValue: setInputValue, selectedToken: inputToken, handleValueBtn: () => { var _a; return setInputValue((_a = new BigNumber$1(inputCurrencyBalance !== null && inputCurrencyBalance !== void 0 ? inputCurrencyBalance : '0')) === null || _a === void 0 ? void 0 : _a.toString()); }, handleCurrencySelect: handleCurrencySelect, chainId: bondData === null || bondData === void 0 ? void 0 : bondData.chainId, enableZap: supportedByLIFI.includes(bondData === null || bondData === void 0 ? void 0 : bondData.chainId), bondPrincipalToken: bondData === null || bondData === void 0 ? void 0 : bondData.lpToken, tokenBalance: inputCurrencyBalance, selectedTokenPrice: inputTokenPrice === null || inputTokenPrice === void 0 ? void 0 : inputTokenPrice.price, inputDisabled: minTier !== null && (!userTier || userTier < minTier) ? true : false }), minTier !== null && jsx$2(TagMinTierBond, { userTier: userTier, minTier: minTier }), jsxs(Flex, { className: "modaltable-container button-container", children: [account && (minTier === null || (minTier !== null && userTier !== null && userTier >= minTier)) && (jsx$2(Flex, { className: "button-container get", children: jsxs(Button, { className: "action-button", onClick: () => supportedByLIFI.includes(bondData === null || bondData === void 0 ? void 0 : bondData.chainId) ? handleOpenZapModal() : openExternal(), variant: "secondary", fullWidth: true, children: ["Get ", getSymbol(bondData === null || bondData === void 0 ? void 0 : bondData.lpToken)] }) })), jsx$2(Flex, { className: "button-container buy", children: !account ? (jsx$2(ConnectButton, {})) : minTier !== null && (!userTier || userTier < minTier) ? (jsx$2(Button, { className: "action-button", onClick: () => window.open(`https://www.ape.bond/tier-staking`, '_blank'), children: "GET YOUR TIER" })) : userChainId !== bondData.chainId ? (jsx$2(Button, { className: "action-button", disabled: loadingTx || isConfirming || (bondData === null || bondData === void 0 ? void 0 : bondData.soldOut), onClick: (event) => {
|
|
74191
|
+
event.stopPropagation();
|
|
74192
|
+
switchChain({ chainId: bondData.chainId });
|
|
74193
|
+
}, style: { fontSize: '14px', padding: '6px', marginLeft: '0px' }, children: `Switch to ${NETWORK_LABEL[bondData.chainId]}` })) : approvalState === ApprovalState.APPROVED ? (jsx$2(Button, { className: "action-button", load: load || fetchingZapQuote, disabled: load ||
|
|
74194
|
+
(bondData === null || bondData === void 0 ? void 0 : bondData.soldOut) ||
|
|
74195
|
+
!account ||
|
|
74196
|
+
!inputValue ||
|
|
74197
|
+
parseFloat(inputValue) === 0 ||
|
|
74198
|
+
fetchingZapQuote ||
|
|
74199
|
+
zapError, onClick: handleOpenModal, children: zapError ? 'something went wrong' : `buy` })) : (jsx$2(Button, { className: "action-button", load: approvalState === ApprovalState.PENDING, disabled: approvalState === ApprovalState.PENDING ||
|
|
74200
|
+
(bondData === null || bondData === void 0 ? void 0 : bondData.soldOut) ||
|
|
74201
|
+
!account ||
|
|
74202
|
+
!inputValue ||
|
|
74203
|
+
parseFloat(inputValue) === 0, onClick: handleApprove, children: "enable" })) })] })] })] })) })) : (jsx$2(Fragment$1, { children: bondData && (jsxs(Fragment$1, { children: [jsxs(Flex, { className: "modal-content font-small", children: [typeof window !== 'undefined' && window.location.origin === 'http://localhost:5173' && (jsxs(Text, { sx: { borderBottom: '1px solid white' }, children: ["Dev Mode - Current view: \"alt\"", jsx$2(Text, { onClick: () => setModalVariant('standard'), sx: { ml: '15px', textDecoration: 'underline', cursor: 'pointer' }, children: "Switch view" })] })), jsxs(Flex, { className: "modaltable-container", sx: { flexDirection: 'row', gap: ['0px', '0px', '0px', '20px'] }, children: [jsx$2(ImageAndShortDescription, { bondData: bondData, onDismiss: onDismiss }), jsxs(Flex, { sx: { flexDirection: 'column', width: '600px' }, children: [jsxs(Flex, { sx: { alignItems: 'center', display: ['none', 'none', 'none', 'flex'] }, children: [jsx$2(Flex, { sx: { width: ['50%', '50%', '50%', '50%'], ml: ['0px', '0px', '0px', '10px'] }, children: jsxs(Flex, { className: "modal-tokenname-chainicon", sx: { margin: '0px' }, children: [jsx$2(Flex, { sx: { fontSize: '26px', fontWeight: 700, mr: '4px' }, children: bondData === null || bondData === void 0 ? void 0 : bondData.showcaseTokenName }), jsx$2(Svg, { width: 20, height: 20, icon: (_l = NETWORK_ICONS === null || NETWORK_ICONS === void 0 ? void 0 : NETWORK_ICONS[bondData.chainId]) !== null && _l !== void 0 ? _l : 'question' })] }) }), jsxs(Flex, { className: "modal-marketprice-header", sx: { justifyContent: 'space-between', width: '100%', alignItems: 'center' }, children: [jsx$2(TokenImage, { symbol: (_m = bondData.showcaseTokenName) !== null && _m !== void 0 ? _m : bondData.earnToken.symbol, size: 30 }), jsx$2("span", { className: "modal-marketprice-token", children: bondData.earnToken.symbol }), jsx$2("hr", { className: "fading-hr rotate-hr" }), jsxs("span", { className: "modal-marketprice", children: ["Market Price: $", earnTokenPrice(bondData)] }), jsx$2("hr", { className: "fading-hr rotate-hr" })] }), jsx$2(Flex, { className: "bondmodal-header-alt", sx: { mb: '10px' }, children: jsx$2(BondModalHeaderAlt, { bondData: bondData, onDismiss: onDismiss, showProjectInfoButton: (SDKConfig === null || SDKConfig === void 0 ? void 0 : SDKConfig.referenceId) === 'apebond' }) })] }), jsxs(Flex, { sx: { flexDirection: 'column', marginTop: '20px', mx: '10px' }, children: [jsx$2(TokenSelectorPanel, { typedValue: inputValue, setTypedValue: setInputValue, selectedToken: inputToken, handleValueBtn: (value) => setInputValue(value), handleCurrencySelect: handleCurrencySelect, chainId: bondData === null || bondData === void 0 ? void 0 : bondData.chainId, enableZap: true, bondPrincipalToken: bondData === null || bondData === void 0 ? void 0 : bondData.lpToken, tokenBalance: inputCurrencyBalance, selectedTokenPrice: inputTokenPrice === null || inputTokenPrice === void 0 ? void 0 : inputTokenPrice.price, modalVariant: modalVariant }), jsxs(Flex, { className: "modal-youreceive-row", sx: { justifyContent: 'space-between', alignItems: 'center', fontSize: '14px' }, children: [jsxs(Flex, { className: "modal-youreceive-textbox", children: [jsx$2(Flex, { sx: { opacity: 0.8 }, children: "You will receive:" }), jsxs(Flex, { children: [jsx$2(Flex, { className: "modal-youreceive-tokenimage", sx: { marginLeft: '15px', marginRight: '5px' }, children: jsx$2(TokenImage, { symbol: (_o = bondData.showcaseTokenName) !== null && _o !== void 0 ? _o : bondData.earnToken.symbol, size: 20 }) }), jsxs(Flex, { className: "modal-receive-text", sx: { opacity: 0.8 }, children: [formatNumber$2((lodashExports.toNumber(inputValue) / lodashExports.toNumber(earnTokenPrice(bondData))).toFixed(0)), ' ', bondData.earnToken.symbol, " + \u00A0", formatNumber$2((getRawPayoutAmount(bondData, inputValue) -
|
|
74204
|
+
lodashExports.toNumber(inputValue) / lodashExports.toNumber(earnTokenPrice(bondData))).toFixed(0))] }), jsx$2("span", { className: "text-highlight", children: "\u00A0Additional" })] })] }), jsx$2(Flex, { className: "button-container buy", sx: { justifyContent: 'end' }, children: !account ? (jsx$2(ConnectButton, {})) : userChainId !== bondData.chainId ? (jsx$2(Button, { className: "action-button", disabled: loadingTx || isConfirming || (bondData === null || bondData === void 0 ? void 0 : bondData.soldOut), onClick: (event) => {
|
|
74205
|
+
event.stopPropagation();
|
|
74206
|
+
switchChain({ chainId: bondData.chainId });
|
|
74207
|
+
}, children: `Switch Chain` })) : approvalState === ApprovalState.APPROVED ? (jsxs(Button, { className: "action-button", load: load, disabled: load || (bondData === null || bondData === void 0 ? void 0 : bondData.soldOut) || !account || !inputValue || parseFloat(inputValue) === 0, onClick: handleBothPurchases, children: ["buy", ' ', isZap ? (jsx$2("span", { style: { marginLeft: '8px' }, children: jsx$2(Svg, { icon: "ZapIcon" }) })) : ('')] })) : (jsx$2(Button, { className: "action-button", load: approvalState === ApprovalState.PENDING, disabled: approvalState === ApprovalState.PENDING ||
|
|
74208
|
+
(bondData === null || bondData === void 0 ? void 0 : bondData.soldOut) ||
|
|
74209
|
+
!account ||
|
|
74210
|
+
!inputValue ||
|
|
74211
|
+
parseFloat(inputValue) === 0, onClick: handleApprove, children: "enable" })) })] }), jsx$2(Flex, { sx: { width: '100%', margin: ['0', '0', '0', '10px 0'] }, children: jsx$2("hr", { className: "fading-hr" }) }), jsxs(Flex, { sx: { width: '100%', fontSize: '14px', display: ['none', 'none', 'none', 'flex'] }, children: [jsxs(Flex, { sx: { width: '50%', flexDirection: 'column', opacity: 0.8 }, children: ["Market Price: $", formatUSDNumber((getRawPayoutAmount(bondData, inputValue) * lodashExports.toNumber(earnTokenPrice(bondData))).toString()), jsx$2("hr", { className: "fading-hr" }), jsx$2("span", { className: "text-highlight flex-inline", children: "Our price: " }), jsxs("span", { className: "flex-inline", children: ["$", formatUSDNumber((lodashExports.toNumber(inputValue) * lodashExports.toNumber(bondData.principalTokenPrice)).toString()), ' '] }), jsxs("span", { className: "text-highlight flex-inline", children: ["(discount rate ", bondData === null || bondData === void 0 ? void 0 : bondData.discount.toFixed(2), "%)"] })] }), jsx$2(Flex, { sx: { width: '50px', alignItems: 'center', justifyContent: 'center' }, children: "vs." }), jsxs(Flex, { sx: { width: '50%', flexDirection: 'column', opacity: 0.8 }, children: ["If purchased from market:", ' ', formatNumber$2((lodashExports.toNumber(inputValue) / lodashExports.toNumber(earnTokenPrice(bondData))).toFixed(0)), ' ', bondData.earnToken.symbol, jsx$2("hr", { className: "fading-hr" }), jsx$2("span", { className: "text-highlight flex-inline", children: "Amount you will get:" }), ' ', formatNumber$2(getRawPayoutAmount(bondData, inputValue).toFixed(0)), ' ', jsx$2("span", { className: "flex-inline", children: bondData.earnToken.symbol })] })] }), jsxs(Flex, { sx: {
|
|
74212
|
+
width: '100%',
|
|
74213
|
+
fontSize: '14px',
|
|
74214
|
+
display: ['flex', 'flex', 'flex', 'none'],
|
|
74215
|
+
flexDirection: 'column',
|
|
74216
|
+
}, children: [jsxs(Flex, { sx: { opacity: 0.8 }, children: ["Market Price: $", formatUSDNumber((getRawPayoutAmount(bondData, inputValue) * lodashExports.toNumber(earnTokenPrice(bondData))).toString())] }), jsxs(Flex, { sx: { opacity: 0.8 }, children: ["If purchased from market:", ' ', formatNumber$2((lodashExports.toNumber(inputValue) / lodashExports.toNumber(earnTokenPrice(bondData))).toFixed(0)), ' ', bondData.earnToken.symbol] }), jsxs(Flex, { sx: { mt: '10px' }, children: [jsx$2("span", { className: "text-highlight flex-inline", children: "Our price: " }), jsxs("span", { className: "flex-inline", children: ["$", formatUSDNumber((lodashExports.toNumber(inputValue) * lodashExports.toNumber(bondData.principalTokenPrice)).toString()), ' '] }), jsxs("span", { className: "text-highlight flex-inline", children: ["(discount rate ", bondData === null || bondData === void 0 ? void 0 : bondData.discount.toFixed(2), "%)"] })] }), jsxs(Flex, { sx: { mt: '10px' }, children: [jsx$2("span", { className: "text-highlight flex-inline", children: "Amount you will get:" }), ' ', formatNumber$2(getRawPayoutAmount(bondData, inputValue).toFixed(0)), ' ', jsx$2("span", { className: "flex-inline", children: bondData.earnToken.symbol })] })] })] })] })] }), jsxs(Flex, { className: "footer-details", children: [jsxs(Flex, { sx: { width: '100%', flexDirection: 'row', justifyContent: 'space-around' }, children: [jsxs(Flex, { sx: {
|
|
74217
|
+
width: '100%',
|
|
74218
|
+
justifyContent: 'center',
|
|
74219
|
+
flexDirection: ['column', 'column', 'column', 'row'],
|
|
74220
|
+
}, children: [jsx$2(Flex, { className: "modal-footer-header", children: "Vesting start Date:\u00A0" }), jsxs(Flex, { children: [' ', new Intl.DateTimeFormat('en-GB', { day: '2-digit', month: 'short', year: 'numeric' }).format(new Date())] })] }), jsxs(Flex, { sx: {
|
|
74221
|
+
width: '100%',
|
|
74222
|
+
justifyContent: 'center',
|
|
74223
|
+
flexDirection: ['column', 'column', 'column', 'row'],
|
|
74224
|
+
}, children: [jsx$2(Flex, { className: "modal-footer-header", sx: { justifyContent: ['flex-end', 'flex-end', 'flex-end', 'flex-start'] }, children: "Vesting end Date:\u00A0" }), jsxs(Flex, { sx: { justifyContent: ['flex-end', 'flex-end', 'flex-end', 'flex-start'] }, children: [' ', new Intl.DateTimeFormat('en-GB', { day: '2-digit', month: 'short', year: 'numeric' }).format(new Date(Date.now() + vestingTime((_p = bondData === null || bondData === void 0 ? void 0 : bondData.vestingTerm) !== null && _p !== void 0 ? _p : 0).days * 86400000))] })] })] }), jsx$2("hr", { className: "fading-hr hide-mobile" }), jsxs(Flex, { sx: {
|
|
74225
|
+
width: '100%',
|
|
74226
|
+
justifyContent: ['space-between', 'space-between', 'space-between', 'space-around'],
|
|
74227
|
+
}, children: [jsxs(Flex, { sx: { justifyContent: 'center', flexDirection: ['column', 'column', 'column', 'row'] }, children: [jsx$2(Flex, { className: "modal-footer-header", children: "Vesting type:\u00A0" }), " ", jsx$2(Flex, { children: " Linear" })] }), jsxs(Flex, { sx: {
|
|
74228
|
+
justifyContent: 'center',
|
|
74229
|
+
cursor: 'pointer',
|
|
74230
|
+
alignItems: 'center',
|
|
74231
|
+
}, onClick: () => setAccordionVisible(!accordionVisible), className: "modal-expander", children: ["What are bonds? \u00A0 ", jsx$2(Svg, { icon: "caret", direction: accordionVisible ? 'up' : 'down' })] })] })] })] }), accordionVisible && (jsx$2(Flex, { className: "modaltable-container accordion-container", children: jsx$2(AccordionText, { isVisible: accordionVisible }) }))] })) })) }));
|
|
74025
74232
|
};
|
|
74026
74233
|
|
|
74027
74234
|
/*
|
|
@@ -74062,7 +74269,7 @@ const ModalHandler = ({ onDismiss, bondAddress, bondChain, }) => {
|
|
|
74062
74269
|
refetch();
|
|
74063
74270
|
}
|
|
74064
74271
|
}, [billId]);
|
|
74065
|
-
return billId ? (jsx$2(YourBondsModal, { userBill: userBill, onDismiss: onDismiss })) : (jsx$2(
|
|
74272
|
+
return billId ? (jsx$2(YourBondsModal, { userBill: userBill, onDismiss: onDismiss })) : (jsx$2(BondModal, { bondAddress: bondAddress, bondChain: bondChain, handlePurchasedBond: setBuyTxHash, onDismiss: () => {
|
|
74066
74273
|
window.history.pushState({}, '', `${locationPath !== '/bonds' ? locationPath : '/bonds'}`);
|
|
74067
74274
|
onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
|
|
74068
74275
|
} }));
|
|
@@ -74111,8 +74318,9 @@ const ChainTitle = ({ chain, pt, hideTitles, isOpen, }) => {
|
|
|
74111
74318
|
cursor: 'pointer',
|
|
74112
74319
|
textTransform: 'uppercase',
|
|
74113
74320
|
display: hideTitles ? 'none' : 'flex',
|
|
74114
|
-
width: '
|
|
74115
|
-
|
|
74321
|
+
width: '300px',
|
|
74322
|
+
alignItems: 'center',
|
|
74323
|
+
}, children: [NETWORK_LABEL[chain], " Bonds", jsx$2(Flex, { sx: { ml: '7px' }, children: jsx$2(Svg, { icon: "caret", direction: isOpen ? 'down' : 'up', width: 8, color: "textDisabledButton" }) }), NETWORK_LABEL[chain].includes('Testnet') && (jsxs(Flex, { sx: { ml: '15px' }, children: [jsx$2(Text, { sx: { fontSize: '12px', color: '#DE62F3', fontWeight: 700, mr: '7px' }, children: "TESTNET" }), jsx$2(TooltipBubble, { className: "tooltip-bubble", body: jsx$2(Text, { sx: { textTransform: 'none' }, children: "Bear in mind this is a testnet and funds are not real" }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)", children: jsx$2(Svg, { icon: "questionCircle", width: 14, color: "textDisabledButton" }) })] }))] }));
|
|
74116
74324
|
};
|
|
74117
74325
|
|
|
74118
74326
|
const ProgressBar = ({ value, color = 'text' }) => {
|
|
@@ -74206,7 +74414,7 @@ const HotBondCard = ({ bond }) => {
|
|
|
74206
74414
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
74207
74415
|
const { bonus } = bond;
|
|
74208
74416
|
// Modal
|
|
74209
|
-
const [openBuyModal] = useModal(jsx$2(
|
|
74417
|
+
const [openBuyModal] = useModal(jsx$2(BondModal, { bondAddress: bond.billAddress, bondChain: bond.chainId }), true, true, `buyBondModal-${bond.billAddress}-${bond.chainId}`);
|
|
74210
74418
|
const handleOpenModal = () => {
|
|
74211
74419
|
openBuyModal();
|
|
74212
74420
|
track({
|
|
@@ -75410,9 +75618,9 @@ const YourBondsWithProviders = (props) => {
|
|
|
75410
75618
|
return (jsx$2(Providers, { theme: props.theme, children: jsx$2(YourBonds, {}) }));
|
|
75411
75619
|
};
|
|
75412
75620
|
|
|
75413
|
-
const
|
|
75621
|
+
const BondModalWithProviders = (props) => {
|
|
75414
75622
|
useSDKConfig(props);
|
|
75415
|
-
return (jsx$2(Providers, { theme: props.theme, children: jsx$2(
|
|
75623
|
+
return (jsx$2(Providers, { theme: props.theme, children: jsx$2(BondModal, Object.assign({}, props)) }));
|
|
75416
75624
|
};
|
|
75417
75625
|
|
|
75418
75626
|
const FullBondsViewWithProviders = (props) => {
|
|
@@ -91065,7 +91273,7 @@ const ProjectView = ({ bondAddress, bondChain, historicalPrices }) => {
|
|
|
91065
91273
|
p: '20px',
|
|
91066
91274
|
borderRadius: '10px',
|
|
91067
91275
|
mt: '5px',
|
|
91068
|
-
}, className: `project-view`, children: [jsx$2(
|
|
91276
|
+
}, className: `project-view`, children: [jsx$2(BondModalHeader, { bondData: bondData }), jsx$2(ProjectDescription, { description: bondData.shortDescription }), jsx$2(Estimations, { depositAmount: depositAmount, bondData: bondData, youSpendString: youSpendString, isZap: isZap, fetchingZapQuote: fetchingZapQuote, zapError: zapError }), jsx$2(TokenSelectorPanel, { typedValue: inputValue, setTypedValue: setInputValue, selectedToken: inputToken, handleValueBtn: () => { var _a; return setInputValue((_a = new BigNumber$1(inputCurrencyBalance !== null && inputCurrencyBalance !== void 0 ? inputCurrencyBalance : '0')) === null || _a === void 0 ? void 0 : _a.toString()); }, handleCurrencySelect: handleCurrencySelect, chainId: bondData === null || bondData === void 0 ? void 0 : bondData.chainId, enableZap: supportedByLIFI.includes(bondData === null || bondData === void 0 ? void 0 : bondData.chainId), bondPrincipalToken: bondData === null || bondData === void 0 ? void 0 : bondData.lpToken, tokenBalance: inputCurrencyBalance, selectedTokenPrice: inputTokenPrice === null || inputTokenPrice === void 0 ? void 0 : inputTokenPrice.price }), minTier && (bondData === null || bondData === void 0 ? void 0 : bondData.minTier) !== undefined && (jsx$2(TagMinTierBond, { userTier: userTier, minTier: bondData === null || bondData === void 0 ? void 0 : bondData.minTier })), jsxs(Flex, { className: "modaltable-container button-container", children: [account &&
|
|
91069
91277
|
(!minTier || (minTier && bondData.minTier && (!userTier || userTier >= bondData.minTier))) && (jsx$2(Flex, { className: "button-container get", children: jsxs(Button, { className: "action-button", onClick: () => supportedByLIFI.includes(bondData === null || bondData === void 0 ? void 0 : bondData.chainId) ? handleOpenZapModal() : openExternal(), variant: "secondary", children: ["Get ", getSymbol(bondData === null || bondData === void 0 ? void 0 : bondData.lpToken)] }) })), jsx$2(Flex, { className: "button-container buy", children: !account ? (jsx$2(ConnectButton, {})) : minTier && bondData.minTier && (!userTier || userTier < bondData.minTier) ? (jsx$2(Button, { className: "action-button", onClick: () => window.open(`https://www.ape.bond/tier-staking`, '_blank'), children: "GET YOUR TIER" })) : userChainId !== bondData.chainId ? (jsx$2(Button, { className: "switch-button", disabled: loadingTx || isConfirming || (bondData === null || bondData === void 0 ? void 0 : bondData.soldOut), onClick: (event) => {
|
|
91070
91278
|
event.stopPropagation();
|
|
91071
91279
|
switchChain({ chainId: bondData.chainId });
|
|
@@ -91087,123 +91295,14 @@ const ProjectViewWithProviders = (props) => {
|
|
|
91087
91295
|
return (jsx$2(Providers, { theme: props.theme, children: jsx$2(ProjectView, Object.assign({}, props)) }));
|
|
91088
91296
|
};
|
|
91089
91297
|
|
|
91090
|
-
const
|
|
91091
|
-
|
|
91092
|
-
return (jsxs(Flex, { sx: {
|
|
91093
|
-
flexDirection: 'row',
|
|
91094
|
-
width: '100%',
|
|
91095
|
-
marginTop: '5px',
|
|
91096
|
-
position: 'relative',
|
|
91097
|
-
justifyContent: 'space-between',
|
|
91098
|
-
}, children: [tabOptions.map((tab, index) => (jsx$2(Flex, { onClick: () => onChangeActiveTab && onChangeActiveTab(tab), sx: {
|
|
91099
|
-
flexDirection: 'column',
|
|
91100
|
-
justifyContent: 'center',
|
|
91101
|
-
alignItems: 'center',
|
|
91102
|
-
cursor: 'pointer',
|
|
91103
|
-
fontWeight: activeTab === tab ? 700 : 500,
|
|
91104
|
-
color: activeTab === tab ? 'text' : 'textDisabled',
|
|
91105
|
-
transition: 'all 0.3s ease-out',
|
|
91106
|
-
width: '100%',
|
|
91107
|
-
my: '10px',
|
|
91108
|
-
}, children: tab }, tab))), jsx$2(Flex, { sx: {
|
|
91109
|
-
position: 'absolute',
|
|
91110
|
-
width: '100%',
|
|
91111
|
-
bottom: 0,
|
|
91112
|
-
background: 'textDisabled',
|
|
91113
|
-
height: '3px',
|
|
91114
|
-
borderRadius: 'normal',
|
|
91115
|
-
} }), jsx$2(Flex, { sx: {
|
|
91116
|
-
position: 'absolute',
|
|
91117
|
-
width: '50%', // 50% width
|
|
91118
|
-
bottom: 0,
|
|
91119
|
-
background: 'text', // Line color
|
|
91120
|
-
height: '3px',
|
|
91121
|
-
borderRadius: 'normal',
|
|
91122
|
-
transition: 'transform 0.3s ease-out', // Add smooth transition
|
|
91123
|
-
transform: `translateX(${translateX})`, // Dynamically move left/right
|
|
91124
|
-
} })] }));
|
|
91125
|
-
};
|
|
91126
|
-
|
|
91127
|
-
const SoldOutBuyBondPlaceholder = ({ bond }) => {
|
|
91128
|
-
var _a, _b, _c, _d, _e, _f;
|
|
91129
|
-
const SDKConfig = useSDKConfig();
|
|
91130
|
-
// Hooks
|
|
91131
|
-
const { address: account } = useAccount();
|
|
91132
|
-
const { data: userEscrowWeight } = useGetUserEscrowWeight(account);
|
|
91133
|
-
const userTier = getUserTier(userEscrowWeight !== null && userEscrowWeight !== void 0 ? userEscrowWeight : '0');
|
|
91134
|
-
// State
|
|
91135
|
-
const bondData = bond;
|
|
91136
|
-
const minTier = (bondData === null || bondData === void 0 ? void 0 : bondData.minTier) !== undefined ? bondData.minTier : null;
|
|
91137
|
-
const [inputValue, setInputValue] = useState('');
|
|
91138
|
-
const [inputTokenString, setInputTokenString] = useState((_b = (_a = bondData === null || bondData === void 0 ? void 0 : bondData.lpToken) === null || _a === void 0 ? void 0 : _a.address) === null || _b === void 0 ? void 0 : _b[bondData.chainId]);
|
|
91139
|
-
// Data
|
|
91140
|
-
const inputToken = useTokenFromZapList(inputTokenString, bondData === null || bondData === void 0 ? void 0 : bondData.chainId, bondData === null || bondData === void 0 ? void 0 : bondData.lpToken);
|
|
91141
|
-
const isZap = (inputTokenString === null || inputTokenString === void 0 ? void 0 : inputTokenString.toLowerCase()) !== ((_e = (_d = (_c = bondData === null || bondData === void 0 ? void 0 : bondData.lpToken) === null || _c === void 0 ? void 0 : _c.address) === null || _d === void 0 ? void 0 : _d[bondData === null || bondData === void 0 ? void 0 : bondData.chainId]) === null || _e === void 0 ? void 0 : _e.toLowerCase());
|
|
91142
|
-
const { data: inputCurrencyBalance } = useCurrencyBalance(inputToken !== null && inputToken !== void 0 ? inputToken : null, account !== null && account !== void 0 ? account : null, (_f = bondData === null || bondData === void 0 ? void 0 : bondData.chainId) !== null && _f !== void 0 ? _f : null);
|
|
91143
|
-
return bondData ? (jsx$2(Flex, { className: "modal-content", children: jsxs(Flex, { className: "modaltable-container", children: [jsxs(Flex, { sx: {
|
|
91144
|
-
position: 'absolute',
|
|
91145
|
-
width: 'calc(100% + 40px)',
|
|
91146
|
-
height: 'calc(100% + 20px)',
|
|
91147
|
-
top: '0',
|
|
91148
|
-
left: '-20px',
|
|
91149
|
-
overflow: 'hidden',
|
|
91150
|
-
borderRadius: 'normal',
|
|
91151
|
-
}, children: [jsx$2(Flex, { sx: {
|
|
91152
|
-
position: 'absolute',
|
|
91153
|
-
width: '100%',
|
|
91154
|
-
height: '100%',
|
|
91155
|
-
zIndex: 999,
|
|
91156
|
-
backgroundColor: 'rgba(255,255,255,0.1)',
|
|
91157
|
-
backdropFilter: 'blur(1px)',
|
|
91158
|
-
WebkitBackdropFilter: 'blur(1px)', // Ensure compatibility with Safari
|
|
91159
|
-
} }), jsx$2(Flex, { sx: {
|
|
91160
|
-
position: 'absolute',
|
|
91161
|
-
top: '50px',
|
|
91162
|
-
left: '-50px',
|
|
91163
|
-
backgroundColor: 'error',
|
|
91164
|
-
color: 'white',
|
|
91165
|
-
padding: '5px 20px',
|
|
91166
|
-
fontSize: '14px',
|
|
91167
|
-
fontWeight: 'bold',
|
|
91168
|
-
transform: 'rotate(-45deg)',
|
|
91169
|
-
zIndex: 1000, // Ensure it appears above other elements
|
|
91170
|
-
boxShadow: '0 2px 4px rgba(0,0,0,0.2)',
|
|
91171
|
-
width: '220px',
|
|
91172
|
-
justifyContent: 'center',
|
|
91173
|
-
}, children: "SOLD OUT" })] }), jsx$2(BondModalHeader, { bondData: bondData,
|
|
91174
|
-
// onDismiss={onDismiss}
|
|
91175
|
-
showProjectInfoButton: (SDKConfig === null || SDKConfig === void 0 ? void 0 : SDKConfig.referenceId) === 'apebond' }), jsx$2(ProjectDescription, { description: bondData.shortDescription }), jsx$2(BondCards, { bondData: Object.assign(Object.assign({}, bondData), { bonusWithFee: -1 }) }), jsx$2(Estimations, { depositAmount: '0',
|
|
91176
|
-
/*@ts-ignore*/
|
|
91177
|
-
bondData: bondData, youSpendString: '0', isZap: isZap, fetchingZapQuote: false, zapError: false }), jsx$2(TokenSelectorPanel, { typedValue: inputValue, setTypedValue: setInputValue, selectedToken: inputToken, handleValueBtn: () => null, handleCurrencySelect: () => null, chainId: bondData === null || bondData === void 0 ? void 0 : bondData.chainId, enableZap: supportedByLIFI.includes(bondData === null || bondData === void 0 ? void 0 : bondData.chainId), bondPrincipalToken: bondData === null || bondData === void 0 ? void 0 : bondData.lpToken, tokenBalance: inputCurrencyBalance, selectedTokenPrice: 0, inputDisabled: true }), minTier !== null && jsx$2(TagMinTierBond, { userTier: userTier, minTier: minTier }), jsxs(Flex, { className: "modaltable-container button-container", children: [account && (minTier === null || (userTier !== null && userTier >= minTier)) && (jsx$2(Flex, { className: "button-container get", children: jsxs(Button, { className: "action-button", variant: "secondary", fullWidth: true, disabled: true, children: ["Get ", getSymbol(bondData === null || bondData === void 0 ? void 0 : bondData.lpToken)] }) })), jsx$2(Flex, { className: "button-container buy", children: jsx$2(Button, { className: "action-button", fullWidth: true, disabled: true, children: "Buy" }) })] })] }) })) : (jsx$2(Fragment$1, {}));
|
|
91178
|
-
};
|
|
91179
|
-
|
|
91180
|
-
const SingleBond = ({ tokenSymbol }) => {
|
|
91181
|
-
// Data Hooks
|
|
91182
|
-
const { data: bonds, isFetched } = useBondsData();
|
|
91183
|
-
const { data: allBonds } = useBondsList();
|
|
91184
|
-
// State
|
|
91185
|
-
const [activeTab, setActiveTab] = useState('Buy Bond');
|
|
91186
|
-
// Data
|
|
91187
|
-
const filteredBonds = bonds === null || bonds === void 0 ? void 0 : bonds.filter((bond) => tokenSymbol === null || tokenSymbol === void 0 ? void 0 : tokenSymbol.some((symbol) => { var _a; return ((_a = bond.earnToken.symbol) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === symbol.toLowerCase(); }));
|
|
91188
|
-
const soldOutBonds = allBonds === null || allBonds === void 0 ? void 0 : allBonds.filter((bond) => tokenSymbol === null || tokenSymbol === void 0 ? void 0 : tokenSymbol.some((symbol) => { var _a; return ((_a = bond.earnToken.symbol) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === symbol.toLowerCase(); }));
|
|
91189
|
-
const activeBond = filteredBonds === null || filteredBonds === void 0 ? void 0 : filteredBonds[0];
|
|
91190
|
-
const soldOutBond = soldOutBonds === null || soldOutBonds === void 0 ? void 0 : soldOutBonds[0];
|
|
91191
|
-
const bondAddress = activeBond === null || activeBond === void 0 ? void 0 : activeBond.billAddress;
|
|
91192
|
-
const bondChain = activeBond === null || activeBond === void 0 ? void 0 : activeBond.chainId;
|
|
91193
|
-
return (jsx$2(Flex, { sx: { flexDirection: 'column' }, children: jsxs(Flex, { sx: {
|
|
91194
|
-
flexDirection: 'column',
|
|
91195
|
-
}, children: [jsx$2(Flex, { sx: { width: '100%', justifyContent: 'center', mb: '15px' }, children: jsx$2(TabNav, { activeTab: activeTab, tabOptions: ['Buy Bond', 'Your Bonds'], onChangeActiveTab: (newValue) => setActiveTab(newValue) }) }), activeTab === 'Buy Bond' ? (jsx$2(Flex, { sx: {
|
|
91196
|
-
background: activeTab === 'Buy Bond' && 'white2',
|
|
91197
|
-
borderRadius: 'normal',
|
|
91198
|
-
p: '0 20px 20px 20px',
|
|
91199
|
-
mx: '10px',
|
|
91200
|
-
}, children: activeBond ? (jsx$2(BuyBond, { bondAddress: bondAddress, bondChain: bondChain })) : soldOutBond && isFetched ? (jsx$2(SoldOutBuyBondPlaceholder, { bond: soldOutBond })) : isFetched ? (jsx$2(Flex, { sx: { justifyContent: 'center', width: '100%', pt: '20px' }, children: "No bond" })) : (jsx$2(Flex, { className: "yourbonds-spinner", children: jsx$2(Spinner, { size: 100 }) })) })) : (jsx$2(YourBonds, { showOnly: tokenSymbol === null || tokenSymbol === void 0 ? void 0 : tokenSymbol[0] }))] }) }));
|
|
91298
|
+
const SingleBond = () => {
|
|
91299
|
+
return jsx$2(Flex, { children: "asd!" });
|
|
91201
91300
|
};
|
|
91202
91301
|
|
|
91203
91302
|
const SingleBondWithProviders = (props) => {
|
|
91204
91303
|
useSDKConfig(props);
|
|
91205
|
-
return (jsx$2(Providers, { theme: props.theme, children: jsx$2(SingleBond,
|
|
91304
|
+
return (jsx$2(Providers, { theme: props.theme, children: jsx$2(SingleBond, {}) }));
|
|
91206
91305
|
};
|
|
91207
91306
|
|
|
91208
91307
|
var ChainId = types.ChainId;
|
|
91209
|
-
export {
|
|
91308
|
+
export { BondModalWithProviders as BondModal, BondsWithProviders as Bonds, ChainId, FullBondsViewWithProviders as FullBondsView, ProjectViewWithProviders as ProjectView, SingleBondWithProviders as SingleBond, YourBondsWithProviders as YourBonds, generateImageFromTemplate };
|