Skip to content

Commit

Permalink
add usdcpolygon. Throw error if asset not identified
Browse files Browse the repository at this point in the history
  • Loading branch information
localhuman committed Feb 22, 2024
1 parent 9ad1af7 commit 0d71aea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/utils/blockchain/blockchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,10 @@ export function getPolygonAssetID(asset: string): string {
return '0001'
case 'usdc.e':
return '0003'
case 'usdcpolygon':
return '0004'
default:
return 'ffff'
throw new Error(`Cannot get Polygon AssetId for ${asset}`)
}
}

Expand Down Expand Up @@ -312,6 +314,6 @@ export function getETHAssetID(asset: string): string {
case 'noia':
return '0019'
default:
return 'ffff'
throw new Error(`Cannot get ETH AssetId for ${asset}`)
}
}

0 comments on commit 0d71aea

Please sign in to comment.