0.2.0 • Published 3 years ago

@ageira/base-rate-calculator v0.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Haulers Channel Base Rate Calculator

The Base Rate Calculator as a stand-alone node.js module.

All I have done is extract the code from the calculator. All credit for its development goes to the original author(s).

Install

> npm i @ageira/base-rate-calculator [--save]

Usage

import { calcReward } from "@ageira/base-rate-calculator";

const reward = calcReward(
  100000, // volume
  4, // jumps
  1000000000, // collateral
  "H", // type - 'H' for high-sec only, 'L' for low/nullsec
  false, // rush
);