@gainsnetwork/sdk 1.0.0-rc2 → 1.0.0-rc3

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.
@@ -50,8 +50,8 @@ const getPairHoldingFeeRates = (input) => {
50
50
  // Get APR multipliers
51
51
  const { longAprMultiplier, shortAprMultiplier } = (0, fundingFees_1.getLongShortAprMultiplier)(currentFundingRatePerSecondP, pairOiToken.oiLongToken, pairOiToken.oiShortToken, fundingParams.aprMultiplierEnabled);
52
52
  // Calculate hourly rates
53
- // Funding rate * seconds per hour * current price * APR multiplier / 100
54
- const baseHourlyRate = (currentFundingRatePerSecondP * SECONDS_PER_HOUR * currentPairPrice) /
53
+ // Funding rate * seconds per hour * APR multiplier / 100
54
+ const baseHourlyRate = (currentFundingRatePerSecondP * SECONDS_PER_HOUR) /
55
55
  PERCENTAGE_PRECISION;
56
56
  // Long side pays when rate is positive, earns when negative
57
57
  fundingFeeLongHourlyRate = baseHourlyRate * longAprMultiplier;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gainsnetwork/sdk",
3
- "version": "1.0.0-rc2",
3
+ "version": "1.0.0-rc3",
4
4
  "description": "Gains Network SDK",
5
5
  "main": "./lib/index.js",
6
6
  "files": [