import { BigNumber } from "@ethersproject/bignumber" ; import { toBn } from "evm-bn" ; export const DECIMALS = BigNumber . from ( "18" ) ; export const E = toBn ( "2.718281828459045235" ) ; export const HALF_SCALE = toBn ( "0.5" ) ; export const MAX_SD59x18 = toBn ( "57896044618658097711785492504343953926634992332820282019728.792003956564819967" ) ; export const MAX_UD60x18 = toBn ( "115792089237316195423570985008687907853269984665640564039457.584007913129639935" ) ; export const MAX_WHOLE_SD59x18 = toBn ( "57896044618658097711785492504343953926634992332820282019728" ) ; export const MAX_WHOLE_UD60x18 = toBn ( "115792089237316195423570985008687907853269984665640564039457" ) ; export const MIN_SD59x18 = toBn ( "-57896044618658097711785492504343953926634992332820282019728.792003956564819968" ) ; export const MIN_WHOLE_SD59x18 = toBn ( "-57896044618658097711785492504343953926634992332820282019728" ) ; export const SQRT_MAX_SD59x18 = "240615969168004511545033772477.625056927114980741" ; export const SQRT_MAX_UD60x18 = "340282366920938463463374607431.768211455999999999" ; export const PI = toBn ( "3.141592653589793238" ) ; export const SCALE = toBn ( "1" ) ;