Skip to content

Commit

Permalink
chore: better readability for isPool decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
woodenfurniture committed Jan 7, 2025
1 parent ebc1cd0 commit d3df239
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/utils/src/assetData/decodeAssetData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,13 @@ export const decodeAssetData = (encodedAssetData: EncodedAssetData) => {
case 'symbol':
asset.symbol = value as FieldToType[typeof field]
break
case 'isPool':
if ((value as FieldToType[typeof field]) === 1) {
case 'isPool': {
const isPool = value as FieldToType[typeof field]
if (isPool) {
asset.isPool = true
}
break
}
case 'assetIdx':
// Skip assetIdx as we already have assetId
break
Expand Down

0 comments on commit d3df239

Please sign in to comment.