@ape.swap/bonds-sdk 1.0.152 → 1.0.153
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.
|
@@ -58,7 +58,6 @@ import { defaultTheme } from '../../theme';
|
|
|
58
58
|
import Svg from '../uikit/Svg';
|
|
59
59
|
import '../../scss/Bonds.scss';
|
|
60
60
|
import { BigNumber } from 'bignumber.js';
|
|
61
|
-
import { ChainId } from '@ape.swap/apeswap-lists';
|
|
62
61
|
var Bonds = function (_a) {
|
|
63
62
|
var connectionString = _a.connectionString;
|
|
64
63
|
var _b = useWeb3React(), account = _b.account, isActive = _b.isActive;
|
|
@@ -131,7 +130,7 @@ var Bonds = function (_a) {
|
|
|
131
130
|
return true;
|
|
132
131
|
if (!bond.tokensRemaining)
|
|
133
132
|
return false;
|
|
134
|
-
if (bond.discount && bond.discount > 25 && bond.chainId ===
|
|
133
|
+
if (bond.discount && bond.discount > 25 && bond.chainId === 8453 /*BASE*/)
|
|
135
134
|
return true;
|
|
136
135
|
return ((_b = new BigNumber(bond.tokensRemaining)) === null || _b === void 0 ? void 0 : _b.lte(thresholdToHide)) || bond.discount === 100;
|
|
137
136
|
}, []);
|