Skip to content

Commit

Permalink
clean function
Browse files Browse the repository at this point in the history
  • Loading branch information
Canestin committed Jan 17, 2025
1 parent c3e63dd commit 948d2cb
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions libs/ledgerjs/packages/cryptoassets/src/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,35 +468,6 @@ function convertStellarTokens([
};
}

function convertCasperTokens([
assetCode,
assetIssuer,
assetType,
name,
precision,
enableCountervalues,
]: CasperToken): TokenCurrency {
const parentCurrency = getCryptoCurrencyById("casper");

return {
type: "TokenCurrency",
id: `casper/asset/${assetCode}:${assetIssuer}`,
contractAddress: assetIssuer,
parentCurrency,
tokenType: assetType,
name,
ticker: assetCode,
disableCountervalue: !enableCountervalues,
units: [
{
name,
code: assetCode,
magnitude: precision,
},
],
};
}

export function convertJettonToken([address, name, ticker, magnitude, delisted]: TonJettonToken):
| TokenCurrency
| undefined {
Expand Down

0 comments on commit 948d2cb

Please sign in to comment.