@scallop-io/sui-scallop-sdk 2.3.11 → 2.3.12

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.
@@ -524,22 +524,17 @@ export const calculateBorrowIncentivePoolPointData = (
524
524
  .multipliedBy(rewardCoinPrice);
525
525
 
526
526
  const weightScale = BigNumber(1_000_000_000_000);
527
+ const rewardScale = BigNumber(
528
+ parsedBorrowIncentivePoolPointData.baseWeight
529
+ ).dividedBy(weightScale);
527
530
 
528
531
  const rewardRate =
529
532
  rewardValueForYear
530
- .multipliedBy(
531
- BigNumber(parsedBorrowIncentivePoolPointData.baseWeight).dividedBy(
532
- weightScale
533
- )
534
- )
533
+ .multipliedBy(rewardScale)
535
534
  .dividedBy(weightedStakedValue)
536
535
  .isFinite() && parsedBorrowIncentivePoolPointData.points > 0
537
536
  ? rewardValueForYear
538
- .multipliedBy(
539
- BigNumber(parsedBorrowIncentivePoolPointData.baseWeight).dividedBy(
540
- weightScale
541
- )
542
- )
537
+ .multipliedBy(rewardScale)
543
538
  .dividedBy(weightedStakedValue)
544
539
  .toNumber()
545
540
  : Infinity;