Skip to content

Commit

Permalink
fix: arb eth asset by chain (#743)
Browse files Browse the repository at this point in the history
  • Loading branch information
towanTG committed Apr 17, 2024
1 parent 46fddcd commit e30dc33
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/pink-parrots-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@swapkit/helpers": patch
---

Returns correct Arb ETH asset when getting asset by chain
3 changes: 3 additions & 0 deletions packages/swapkit/helpers/src/helpers/asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ export const getCommonAssetInfo = (
case `${Chain.Ethereum}.vTHOR`:
return { identifier: "ETH.vTHOR-0x815c23eca83261b6ec689b60cc4a58b54bc24d8d", decimal: 18 };

case Chain.Arbitrum:
return { identifier: `${Chain.Arbitrum}.ETH`, decimal: 18 };

case Chain.Cosmos:
return { identifier: "GAIA.ATOM", decimal: BaseDecimal[assetString] };
case Chain.THORChain:
Expand Down

0 comments on commit e30dc33

Please sign in to comment.