@ref-finance/ref-sdk 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58,7 +58,7 @@ function getConfig(env, indexerUrl) {
58
58
  REF_FI_CONTRACT_ID: 'v2.ref-finance.near',
59
59
  REF_TOKEN_ID: 'token.v2.ref-finance.near',
60
60
  indexerUrl: indexerUrl || 'https://indexer.ref.finance',
61
- explorerUrl: 'https://testnet.nearblocks.io',
61
+ explorerUrl: 'https://nearblocks.io',
62
62
  REF_DCL_SWAP_CONTRACT_ID: 'dclv2.ref-labs.near'
63
63
  };
64
64
  case 'testnet':
@@ -5212,7 +5212,7 @@ var useTokenBalances = function useTokenBalances(tokens, AccountId) {
5212
5212
  }(), [tokens]);
5213
5213
  React.useEffect(function () {
5214
5214
  // Initializes token balances
5215
- // Called in 1 minute intervals
5215
+ // Called in 15 seconds intervals
5216
5216
  var initTokenBalances = /*#__PURE__*/function () {
5217
5217
  var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
5218
5218
  var validTokens, ids;
@@ -5246,7 +5246,7 @@ var useTokenBalances = function useTokenBalances(tokens, AccountId) {
5246
5246
  };
5247
5247
  }();
5248
5248
  initTokenBalances();
5249
- var interval = setInterval(initTokenBalances, 60000);
5249
+ var interval = setInterval(initTokenBalances, 15000);
5250
5250
  return function () {
5251
5251
  return clearInterval(interval);
5252
5252
  };
@@ -6447,7 +6447,7 @@ var Notification = function Notification(_ref15) {
6447
6447
  style: {
6448
6448
  color: primary
6449
6449
  }
6450
- }, (state === null || state === undefined) && React__default.createElement("p", null, "Waiting for confirmation"), state === 'fail' && !!tx && React__default.createElement("a", {
6450
+ }, (state === null || state === undefined) && React__default.createElement("p", null, "Waiting for confirmation"), state === 'success' && tx && React__default.createElement("a", {
6451
6451
  className: "text-primary font-semibold",
6452
6452
  href: exports.config.explorerUrl + "/txns/" + tx,
6453
6453
  target: "_blank",