Skip to content

Commit

Permalink
chore: ext added graph currency prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-wallet committed Jan 6, 2025
1 parent c6bd091 commit 2c130ec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/types/src/currency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export type AppCurrency =
export interface FiatCurrency {
readonly currency: string;
readonly symbol: string;
readonly symbolName: string;
readonly maxDecimals: number;
readonly locale: string;
readonly name?: string;
Expand Down
10 changes: 10 additions & 0 deletions packages/unit/src/price-pretty.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ describe("Test PricePretty", () => {
{
currency: "usd",
symbol: "$",
symbolName: "$",
maxDecimals: 2,
locale: "en-US",
},
Expand All @@ -29,6 +30,7 @@ describe("Test PricePretty", () => {
{
currency: "usd",
symbol: "$",
symbolName: "$",
maxDecimals: 2,
locale: "en-US",
},
Expand All @@ -41,6 +43,7 @@ describe("Test PricePretty", () => {
{
currency: "usd",
symbol: "$",
symbolName: "$",
maxDecimals: 2,
locale: "en-US",
},
Expand All @@ -53,6 +56,7 @@ describe("Test PricePretty", () => {
{
currency: "usd",
symbol: "$",
symbolName: "$",
maxDecimals: 2,
locale: "en-US",
},
Expand All @@ -65,6 +69,7 @@ describe("Test PricePretty", () => {
{
currency: "usd",
symbol: "$",
symbolName: "$",
maxDecimals: 2,
locale: "en-US",
},
Expand All @@ -79,6 +84,7 @@ describe("Test PricePretty", () => {
{
currency: "usd",
symbol: "$",
symbolName: "$",
maxDecimals: 2,
locale: "en-US",
},
Expand All @@ -91,6 +97,7 @@ describe("Test PricePretty", () => {
{
currency: "usd",
symbol: "$",
symbolName: "$",
maxDecimals: 2,
locale: "en-US",
},
Expand All @@ -106,6 +113,7 @@ describe("Test PricePretty", () => {
{
currency: "usd",
symbol: "$",
symbolName: "$",
maxDecimals: 3,
locale: "en-US",
},
Expand All @@ -118,6 +126,7 @@ describe("Test PricePretty", () => {
{
currency: "usd",
symbol: "$",
symbolName: "$",
maxDecimals: 3,
locale: "en-US",
},
Expand All @@ -131,6 +140,7 @@ describe("Test PricePretty", () => {
{
currency: "usd",
symbol: "$",
symbolName: "$",
maxDecimals: 4,
locale: "en-US",
},
Expand Down

0 comments on commit 2c130ec

Please sign in to comment.