@@ -45,6 +45,7 @@ export const CurrencyUnit = {
4545 RWF : "RWF" ,
4646 ZMW : "ZMW" ,
4747 AED : "AED" ,
48+ GTQ : "GTQ" ,
4849 USDT : "USDT" ,
4950 USDC : "USDC" ,
5051
@@ -115,6 +116,7 @@ const standardUnitConversionObj = {
115116 [ CurrencyUnit . RWF ] : ( v : number ) => v ,
116117 [ CurrencyUnit . ZMW ] : ( v : number ) => v ,
117118 [ CurrencyUnit . AED ] : ( v : number ) => v ,
119+ [ CurrencyUnit . GTQ ] : ( v : number ) => v ,
118120 [ CurrencyUnit . USDT ] : ( v : number ) => v ,
119121 [ CurrencyUnit . USDC ] : ( v : number ) => v ,
120122} ;
@@ -168,6 +170,7 @@ const CONVERSION_MAP = {
168170 [ CurrencyUnit . RWF ] : toBitcoinConversion ,
169171 [ CurrencyUnit . ZMW ] : toBitcoinConversion ,
170172 [ CurrencyUnit . AED ] : toBitcoinConversion ,
173+ [ CurrencyUnit . GTQ ] : toBitcoinConversion ,
171174 [ CurrencyUnit . USDT ] : toBitcoinConversion ,
172175 [ CurrencyUnit . USDC ] : toBitcoinConversion ,
173176 } ,
@@ -205,6 +208,7 @@ const CONVERSION_MAP = {
205208 [ CurrencyUnit . RWF ] : toMicrobitcoinConversion ,
206209 [ CurrencyUnit . ZMW ] : toMicrobitcoinConversion ,
207210 [ CurrencyUnit . AED ] : toMicrobitcoinConversion ,
211+ [ CurrencyUnit . GTQ ] : toMicrobitcoinConversion ,
208212 [ CurrencyUnit . USDT ] : toMicrobitcoinConversion ,
209213 [ CurrencyUnit . USDC ] : toMicrobitcoinConversion ,
210214 } ,
@@ -242,6 +246,7 @@ const CONVERSION_MAP = {
242246 [ CurrencyUnit . RWF ] : toMillibitcoinConversion ,
243247 [ CurrencyUnit . ZMW ] : toMillibitcoinConversion ,
244248 [ CurrencyUnit . AED ] : toMillibitcoinConversion ,
249+ [ CurrencyUnit . GTQ ] : toMillibitcoinConversion ,
245250 [ CurrencyUnit . USDT ] : toMillibitcoinConversion ,
246251 [ CurrencyUnit . USDC ] : toMillibitcoinConversion ,
247252 } ,
@@ -279,6 +284,7 @@ const CONVERSION_MAP = {
279284 [ CurrencyUnit . RWF ] : toMillisatoshiConversion ,
280285 [ CurrencyUnit . ZMW ] : toMillisatoshiConversion ,
281286 [ CurrencyUnit . AED ] : toMillisatoshiConversion ,
287+ [ CurrencyUnit . GTQ ] : toMillisatoshiConversion ,
282288 [ CurrencyUnit . USDT ] : toMillisatoshiConversion ,
283289 [ CurrencyUnit . USDC ] : toMillisatoshiConversion ,
284290 } ,
@@ -316,6 +322,7 @@ const CONVERSION_MAP = {
316322 [ CurrencyUnit . RWF ] : toNanobitcoinConversion ,
317323 [ CurrencyUnit . ZMW ] : toNanobitcoinConversion ,
318324 [ CurrencyUnit . AED ] : toNanobitcoinConversion ,
325+ [ CurrencyUnit . GTQ ] : toNanobitcoinConversion ,
319326 [ CurrencyUnit . USDT ] : toNanobitcoinConversion ,
320327 [ CurrencyUnit . USDC ] : toNanobitcoinConversion ,
321328 } ,
@@ -353,6 +360,7 @@ const CONVERSION_MAP = {
353360 [ CurrencyUnit . RWF ] : toSatoshiConversion ,
354361 [ CurrencyUnit . ZMW ] : toSatoshiConversion ,
355362 [ CurrencyUnit . AED ] : toSatoshiConversion ,
363+ [ CurrencyUnit . GTQ ] : toSatoshiConversion ,
356364 [ CurrencyUnit . USDT ] : toSatoshiConversion ,
357365 [ CurrencyUnit . USDC ] : toSatoshiConversion ,
358366 } ,
@@ -383,6 +391,7 @@ const CONVERSION_MAP = {
383391 [ CurrencyUnit . RWF ] : standardUnitConversionObj ,
384392 [ CurrencyUnit . ZMW ] : standardUnitConversionObj ,
385393 [ CurrencyUnit . AED ] : standardUnitConversionObj ,
394+ [ CurrencyUnit . GTQ ] : standardUnitConversionObj ,
386395 [ CurrencyUnit . USDT ] : standardUnitConversionObj ,
387396 [ CurrencyUnit . USDC ] : standardUnitConversionObj ,
388397} ;
@@ -473,6 +482,7 @@ export type CurrencyMap = {
473482 [ CurrencyUnit . RWF ] : number ;
474483 [ CurrencyUnit . ZMW ] : number ;
475484 [ CurrencyUnit . AED ] : number ;
485+ [ CurrencyUnit . GTQ ] : number ;
476486 [ CurrencyUnit . USDT ] : number ;
477487 [ CurrencyUnit . USDC ] : number ;
478488 [ CurrencyUnit . FUTURE_VALUE ] : number ;
@@ -513,6 +523,7 @@ export type CurrencyMap = {
513523 [ CurrencyUnit . RWF ] : string ;
514524 [ CurrencyUnit . ZMW ] : string ;
515525 [ CurrencyUnit . AED ] : string ;
526+ [ CurrencyUnit . GTQ ] : string ;
516527 [ CurrencyUnit . USDT ] : string ;
517528 [ CurrencyUnit . USDC ] : string ;
518529 [ CurrencyUnit . FUTURE_VALUE ] : string ;
@@ -734,6 +745,7 @@ function convertCurrencyAmountValues(
734745 rwf : CurrencyUnit . RWF ,
735746 zmw : CurrencyUnit . ZMW ,
736747 aed : CurrencyUnit . AED ,
748+ gtq : CurrencyUnit . GTQ ,
737749 mibtc : CurrencyUnit . MICROBITCOIN ,
738750 mlbtc : CurrencyUnit . MILLIBITCOIN ,
739751 nbtc : CurrencyUnit . NANOBITCOIN ,
@@ -819,6 +831,7 @@ export function mapCurrencyAmount(
819831 rwf,
820832 zmw,
821833 aed,
834+ gtq,
822835 usdt,
823836 usdc,
824837 } = convertCurrencyAmountValues ( unit , value , unitsPerBtc , conversionOverride ) ;
@@ -854,6 +867,7 @@ export function mapCurrencyAmount(
854867 [ CurrencyUnit . RWF ] : rwf ,
855868 [ CurrencyUnit . ZMW ] : zmw ,
856869 [ CurrencyUnit . AED ] : aed ,
870+ [ CurrencyUnit . GTQ ] : gtq ,
857871 [ CurrencyUnit . MICROBITCOIN ] : mibtc ,
858872 [ CurrencyUnit . MILLIBITCOIN ] : mlbtc ,
859873 [ CurrencyUnit . NANOBITCOIN ] : nbtc ,
@@ -993,6 +1007,10 @@ export function mapCurrencyAmount(
9931007 value : aed ,
9941008 unit : CurrencyUnit . AED ,
9951009 } ) ,
1010+ [ CurrencyUnit . GTQ ] : formatCurrencyStr ( {
1011+ value : gtq ,
1012+ unit : CurrencyUnit . GTQ ,
1013+ } ) ,
9961014 [ CurrencyUnit . USDT ] : formatCurrencyStr ( {
9971015 value : usdt ,
9981016 unit : CurrencyUnit . USDT ,
@@ -1127,6 +1145,8 @@ export const abbrCurrencyUnit = (unit: CurrencyUnitType) => {
11271145 return "ZMW" ;
11281146 case CurrencyUnit . AED :
11291147 return "AED" ;
1148+ case CurrencyUnit . GTQ :
1149+ return "GTQ" ;
11301150 }
11311151 return "Unsupported CurrencyUnit" ;
11321152} ;
0 commit comments