liquid-sdk 1.7.1 → 1.7.2

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/index.mjs CHANGED
@@ -1470,23 +1470,39 @@ var LiquidSDK = class {
1470
1470
  });
1471
1471
  }
1472
1472
  // ── Fee Claims ────────────────────────────────────────────────────
1473
- async getAvailableFees(feeOwner, tokenAddress) {
1473
+ /**
1474
+ * Get uncollected fees for a fee owner.
1475
+ * @param feeOwner - Address that receives fees (reward recipient)
1476
+ * @param feeToken - The token fees are denominated in. Defaults to WETH
1477
+ * (correct for all pools using LP_LOCKER_FEE_CONVERSION).
1478
+ */
1479
+ async getAvailableFees(feeOwner, feeToken = EXTERNAL.WETH) {
1474
1480
  return await this.publicClient.readContract({
1475
1481
  address: ADDRESSES.FEE_LOCKER,
1476
1482
  abi: LiquidFeeLockerAbi,
1477
1483
  functionName: "availableFees",
1478
- args: [feeOwner, tokenAddress]
1484
+ args: [feeOwner, feeToken]
1479
1485
  });
1480
1486
  }
1481
- async getFeesToClaim(feeOwner, tokenAddress) {
1487
+ /**
1488
+ * Get collected, claimable fees for a fee owner.
1489
+ * @param feeOwner - Address that receives fees (reward recipient)
1490
+ * @param feeToken - The token fees are denominated in. Defaults to WETH.
1491
+ */
1492
+ async getFeesToClaim(feeOwner, feeToken = EXTERNAL.WETH) {
1482
1493
  return await this.publicClient.readContract({
1483
1494
  address: ADDRESSES.FEE_LOCKER,
1484
1495
  abi: LiquidFeeLockerAbi,
1485
1496
  functionName: "feesToClaim",
1486
- args: [feeOwner, tokenAddress]
1497
+ args: [feeOwner, feeToken]
1487
1498
  });
1488
1499
  }
1489
- async claimFees(feeOwner, tokenAddress) {
1500
+ /**
1501
+ * Claim all accumulated fees for a fee owner.
1502
+ * @param feeOwner - Address that receives fees (reward recipient)
1503
+ * @param feeToken - The token fees are denominated in. Defaults to WETH.
1504
+ */
1505
+ async claimFees(feeOwner, feeToken = EXTERNAL.WETH) {
1490
1506
  if (!this.walletClient?.account) {
1491
1507
  throw new Error("walletClient with account required for claimFees");
1492
1508
  }
@@ -1494,7 +1510,7 @@ var LiquidSDK = class {
1494
1510
  address: ADDRESSES.FEE_LOCKER,
1495
1511
  abi: LiquidFeeLockerAbi,
1496
1512
  functionName: "claim",
1497
- args: [feeOwner, tokenAddress],
1513
+ args: [feeOwner, feeToken],
1498
1514
  chain: base2,
1499
1515
  account: this.walletClient.account
1500
1516
  });