@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.
- package/dist/cjs/browser.js +1 -1
- package/dist/cjs/{calculate-farm-efficiency-BVpffn8k.js → calculate-farm-efficiency-CKxIgfpG.js} +9 -9
- package/dist/cjs/calculate-farm-efficiency-CKxIgfpG.js.map +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/esm/browser.js +2 -2
- package/dist/esm/{calculate-farm-efficiency-Cq10L_Uq.js → calculate-farm-efficiency-DbFNiaxO.js} +9 -9
- package/dist/esm/calculate-farm-efficiency-DbFNiaxO.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/package.json +1 -1
- package/src/constants/addresses.ts +2 -2
- package/src/lib/hooks/use-forwarder.ts +6 -6
- package/dist/cjs/calculate-farm-efficiency-BVpffn8k.js.map +0 -1
- package/dist/esm/calculate-farm-efficiency-Cq10L_Uq.js.map +0 -1
package/dist/cjs/browser.js
CHANGED
package/dist/cjs/{calculate-farm-efficiency-BVpffn8k.js → calculate-farm-efficiency-CKxIgfpG.js}
RENAMED
|
@@ -248,7 +248,7 @@ const ERC20_ABI = [
|
|
|
248
248
|
|
|
249
249
|
// Contract-specific addresses
|
|
250
250
|
const mainnetAddresses = {
|
|
251
|
-
AUDIT_FEE_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: "
|
|
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:
|
|
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:
|
|
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
|
|
771
|
-
const sendToCounterfactualWallet =
|
|
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:
|
|
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:
|
|
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-
|
|
5334
|
+
//# sourceMappingURL=calculate-farm-efficiency-CKxIgfpG.js.map
|