@uniswap/conedison
Advanced tools
Comparing version 1.5.3 to 1.6.0
@@ -20,2 +20,3 @@ import { Currency, CurrencyAmount, Percent, Price } from '@uniswap/sdk-core'; | ||
export declare function formatPriceImpact(priceImpact: Percent | undefined): string; | ||
export declare function formatSlippage(slippage: Percent | undefined): string; | ||
export declare function formatPrice(price: Nullish<Price<Currency, Currency>>, type?: NumberType): string; | ||
@@ -22,0 +23,0 @@ /** |
@@ -286,2 +286,7 @@ var __read = (this && this.__read) || function (o, n) { | ||
} | ||
export function formatSlippage(slippage) { | ||
if (!slippage) | ||
return '-'; | ||
return "".concat(slippage.toFixed(3), "%"); | ||
} | ||
export function formatPrice(price, type) { | ||
@@ -288,0 +293,0 @@ if (type === void 0) { type = NumberType.FiatTokenPrice; } |
{ | ||
"name": "@uniswap/conedison", | ||
"version": "1.5.3", | ||
"version": "1.6.0", | ||
"description": "Utilities for Uniswap front-end development", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/Uniswap/conedison", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59391
1177