File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
apps/namadillo/src/App/Transfer Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import BigNumber from "bignumber.js";
77import clsx from "clsx" ;
88import { wallets } from "integrations" ;
99import { Address } from "types" ;
10+ import { amountMaxDecimalPlaces } from "utils/assets" ;
1011import namadaShieldedIcon from "./assets/namada-shielded.svg" ;
1112import namadaTransparentIcon from "./assets/namada-transparent.svg" ;
1213import { isShieldedAddress , isTransparentAddress } from "./common" ;
@@ -27,17 +28,6 @@ export type TransferSourceProps = {
2728 onChangeAmount ?: ( amount : BigNumber | undefined ) => void ;
2829} ;
2930
30- const amountMaxDecimalPlaces = ( asset ?: Asset ) : number | undefined => {
31- if ( typeof asset !== "undefined" ) {
32- for ( const { denom, exponent } of asset . denom_units ) {
33- if ( denom === asset . display ) {
34- return exponent ;
35- }
36- }
37- }
38- return undefined ;
39- } ;
40-
4131const getWalletIcon = (
4232 sourceAddress ?: string ,
4333 selectedTokenType ?: "shielded" | "transparent" | "keplr"
You can’t perform that action at this time.
0 commit comments