@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.
@@ -51,7 +51,7 @@ function getConfig(env, indexerUrl) {
51
51
  REF_FI_CONTRACT_ID: 'v2.ref-finance.near',
52
52
  REF_TOKEN_ID: 'token.v2.ref-finance.near',
53
53
  indexerUrl: indexerUrl || 'https://indexer.ref.finance',
54
- explorerUrl: 'https://testnet.nearblocks.io',
54
+ explorerUrl: 'https://nearblocks.io',
55
55
  REF_DCL_SWAP_CONTRACT_ID: 'dclv2.ref-labs.near'
56
56
  };
57
57
  case 'testnet':
@@ -5206,7 +5206,7 @@ var useTokenBalances = function useTokenBalances(tokens, AccountId) {
5206
5206
  }(), [tokens]);
5207
5207
  useEffect(function () {
5208
5208
  // Initializes token balances
5209
- // Called in 1 minute intervals
5209
+ // Called in 15 seconds intervals
5210
5210
  var initTokenBalances = /*#__PURE__*/function () {
5211
5211
  var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
5212
5212
  var validTokens, ids;
@@ -5240,7 +5240,7 @@ var useTokenBalances = function useTokenBalances(tokens, AccountId) {
5240
5240
  };
5241
5241
  }();
5242
5242
  initTokenBalances();
5243
- var interval = setInterval(initTokenBalances, 60000);
5243
+ var interval = setInterval(initTokenBalances, 15000);
5244
5244
  return function () {
5245
5245
  return clearInterval(interval);
5246
5246
  };
@@ -6471,7 +6471,7 @@ var Notification = function Notification(_ref15) {
6471
6471
  style: {
6472
6472
  color: primary
6473
6473
  }
6474
- }, (state === null || state === undefined) && React.createElement("p", null, "Waiting for confirmation"), state === 'fail' && !!tx && React.createElement("a", {
6474
+ }, (state === null || state === undefined) && React.createElement("p", null, "Waiting for confirmation"), state === 'success' && tx && React.createElement("a", {
6475
6475
  className: "text-primary font-semibold",
6476
6476
  href: config.explorerUrl + "/txns/" + tx,
6477
6477
  target: "_blank",