change location of eslint-disable.

This commit is contained in:
elweyn 2023-06-15 13:44:49 +02:00
parent a2f22e0c5c
commit 414640048f

View File

@ -20,7 +20,6 @@
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable no-unused-vars */
import Decimal from 'decimal.js-light'
@ -41,11 +40,13 @@ interface Decay {
duration: number | null
}
/* eslint-disable no-unused-vars */
export enum TransactionTypeId {
CREATION = 1,
SEND = 2,
RECEIVE = 3,
}
/* eslint-enable no-unused-vars */
function decayFormula(value: Decimal, seconds: number): Decimal {
return value.mul(new Decimal('0.99999997803504048973201202316767079413460520837376').pow(seconds))