Skip to content

Commit

Permalink
Merge pull request #6446 from Agoric/wallet-logos
Browse files Browse the repository at this point in the history
Wallet logos
  • Loading branch information
mergify[bot] authored Oct 12, 2022
2 parents 194e153 + fd035b1 commit d5beb3c
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const stringifyNat = (
if (placesToShow === undefined) {
placesToShow = Math.max(
Math.min(decimalPlaces, CONVENTIONAL_DECIMAL_PLACES),
decimalPlaces - calcTrailingZeros(natValue),
natValue > 0n ? decimalPlaces - calcTrailingZeros(natValue) : 0,
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,7 @@ test('stringifyNat shows correct number of decimal places by default', t => {
test('stringifyNat empty value', t => {
t.is(stringifyNat(undefined), '');
t.is(stringifyNat(null), '');
t.is(stringifyNat(0n), '0');
t.is(stringifyNat(0n, 1), '0.0');
t.is(stringifyNat(0n, 4), '0.00');
});
Binary file added packages/wallet/ui/public/tokens/USDC_axl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/wallet/ui/public/tokens/USDC_grv.webp
Binary file not shown.
Binary file added packages/wallet/ui/public/tokens/USDT_axl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/wallet/ui/public/tokens/USDT_grv.webp
Binary file not shown.
4 changes: 4 additions & 0 deletions packages/wallet/ui/src/util/Icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ export const icons = {
ATOM: 'tokens/cosmos.svg',
LINK: 'tokens/chainlink.png',
USDC: 'tokens/usdc.svg',
USDC_grv: 'tokens/USDC_grv.webp',
USDC_axl: 'tokens/USDC_axl.png',
USDT_grv: 'tokens/USDT_grv.webp',
USDT_axl: 'tokens/USDT_axl.png',
};

export const defaultIcon = 'tokens/default.png';

0 comments on commit d5beb3c

Please sign in to comment.