Skip to content

Commit

Permalink
fix: add core coin to safesnap
Browse files Browse the repository at this point in the history
Signed-off-by: Reinis Martinsons <[email protected]>
  • Loading branch information
Reinis-FRP committed Feb 13, 2024
1 parent b2e614f commit bad0a2e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/plugins/safeSnap/utils/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ const BNB_COIN: TokenAsset = {
logoUri:
'https://safe-transaction-assets.safe.global/chains/56/currency_logo.png'
};
const CORE_COIN: TokenAsset = {
name: 'Core',
symbol: 'CORE',
address: 'main',
decimals: 18,
logoUri:
'https://cloudflare-ipfs.com/ipfs/bafkreigjv5yb7uhlrryzib7j2f73nnwqan2tmfnwjdu26vkk365fyesoiu'
};

export function getNativeAsset(network: Network) {
switch (parseInt(network)) {
Expand All @@ -53,7 +61,9 @@ export function getNativeAsset(network: Network) {
return EWC_COIN;
case 56:
return BNB_COIN;
}
case 1116:
return CORE_COIN;
}

return ETHEREUM_COIN;
}

0 comments on commit bad0a2e

Please sign in to comment.