@glowlabs-org/utils 0.2.169 → 0.2.173

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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var calculateFarmEfficiency = require('./calculate-farm-efficiency-BVpffn8k.js');
3
+ var calculateFarmEfficiency = require('./calculate-farm-efficiency-CKxIgfpG.js');
4
4
  require('decimal.js');
5
5
  var viem = require('viem');
6
6
  require('ethers');
@@ -248,7 +248,7 @@ const ERC20_ABI = [
248
248
 
249
249
  // Contract-specific addresses
250
250
  const mainnetAddresses = {
251
- AUDIT_FEE_WALLET: "0x3ff5af3333ddc6048d98849ec5e67868494693c9", //aka GVE wallet
251
+ AUDIT_FEE_WALLET: "0x63a74612274fbc6ca3f7096586af01fd986d69ce", //aka GVE wallet
252
252
  IMPACT_CATALYST: "0x552Fbb4E0269fd5036daf72Ec006AAF6C958F4Fa",
253
253
  USDG_REDEMPTION: "0x1c2cA537757e1823400F857EdBe72B55bbAe0F08",
254
254
  USDG: "0xe010ec500720bE9EF3F82129E7eD2Ee1FB7955F2",
@@ -269,7 +269,7 @@ const mainnetAddresses = {
269
269
  FOUNDATION_HOT_WALLET_PD: "0x465E5573c648BC50a11911Cd48D0e279F4409Ec8",
270
270
  };
271
271
  const sepoliaAddresses = {
272
- AUDIT_FEE_WALLET: "0x3ff5af3333ddc6048d98849ec5e67868494693c9",
272
+ AUDIT_FEE_WALLET: "0x63a74612274fbc6ca3f7096586af01fd986d69ce",
273
273
  IMPACT_CATALYST: "0xb793Ed3CD94357f0e1933b0bd19F921b99f4C72a",
274
274
  USDG_REDEMPTION: "0x04829038A6664C16eC994BFb87754Fa621e51135",
275
275
  USDG: "0xda78313A3fF949890112c1B746AB1c75d1b1c17B",
@@ -674,7 +674,7 @@ function useForwarder(signer, CHAIN_ID) {
674
674
  // Approve only the specific amount needed
675
675
  const approveTx = await tokenContract.approve(ADDRESSES.FORWARDER, amount);
676
676
  await waitForEthersTransactionWithRetry(signer, approveTx.hash, {
677
- timeoutMs: 30000,
677
+ timeoutMs: 60000,
678
678
  pollIntervalMs: 2000,
679
679
  });
680
680
  return true;
@@ -737,7 +737,7 @@ function useForwarder(signer, CHAIN_ID) {
737
737
  try {
738
738
  const approveTx = await tokenContract.approve(ADDRESSES.FORWARDER, ethers.MaxUint256);
739
739
  await waitForEthersTransactionWithRetry(signer, approveTx.hash, {
740
- timeoutMs: 30000,
740
+ timeoutMs: 60000,
741
741
  pollIntervalMs: 2000,
742
742
  });
743
743
  }
@@ -767,8 +767,8 @@ function useForwarder(signer, CHAIN_ID) {
767
767
  default:
768
768
  throw new Error(`Unsupported currency for forwarding: ${currency}`);
769
769
  }
770
- // Determine sendToCounterfactualWallet based on currency
771
- const sendToCounterfactualWallet = true;
770
+ // Determine sendToCounterfactualWallet: false for audit fees (paid in USDC directly)
771
+ const sendToCounterfactualWallet = !isAuditFees;
772
772
  // Run a static call first to surface any revert reason (ethers v6)
773
773
  try {
774
774
  if (!isAuditFees && currency === "USDC") {
@@ -811,7 +811,7 @@ function useForwarder(signer, CHAIN_ID) {
811
811
  : ADDRESSES.FOUNDATION_WALLET, amount, sendToCounterfactualWallet, message);
812
812
  }
813
813
  await waitForEthersTransactionWithRetry(signer, tx.hash, {
814
- timeoutMs: 30000,
814
+ timeoutMs: 60000,
815
815
  pollIntervalMs: 2000,
816
816
  });
817
817
  return tx.hash;
@@ -1049,7 +1049,7 @@ function useForwarder(signer, CHAIN_ID) {
1049
1049
  // Try to call mint function (common for test tokens)
1050
1050
  const tx = await usdcContract.mint(recipient, amount);
1051
1051
  await waitForEthersTransactionWithRetry(signer, tx.hash, {
1052
- timeoutMs: 30000,
1052
+ timeoutMs: 60000,
1053
1053
  pollIntervalMs: 2000,
1054
1054
  });
1055
1055
  return tx.hash;
@@ -5331,4 +5331,4 @@ exports.useOffchainFractions = useOffchainFractions;
5331
5331
  exports.useRewardsKernel = useRewardsKernel;
5332
5332
  exports.waitForEthersTransactionWithRetry = waitForEthersTransactionWithRetry;
5333
5333
  exports.waitForViemTransactionWithRetry = waitForViemTransactionWithRetry;
5334
- //# sourceMappingURL=calculate-farm-efficiency-BVpffn8k.js.map
5334
+ //# sourceMappingURL=calculate-farm-efficiency-CKxIgfpG.js.map