Skip to content

Commit

Permalink
Merge pull request DefiLlama#1279 from DefiLlama/fix-adapter-v2
Browse files Browse the repository at this point in the history
fix adapter v2
  • Loading branch information
dtmkeng authored Mar 9, 2024
2 parents 46822bb + d783400 commit 1844356
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions helpers/getUniSubgraph/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ function univ2DimensionAdapter(params: IGetChainVolumeParams, meta: BaseAdapter[
},
};
}, {} as BaseAdapter),
version: 2
};

return adapter;
Expand Down
5 changes: 3 additions & 2 deletions helpers/getUniSubgraphVolume.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function univ2Adapter(endpoints: {
hasTotalVolume = true,
gasToken = null as string|null
}) {
const graphs = (gasToken === null?getChainVolume:getChainVolumeWithGasToken as typeof getChainVolume)({
const graphs = (gasToken === null ? getChainVolume : getChainVolumeWithGasToken as typeof getChainVolume)({
graphUrls: endpoints,
hasTotalVolume,
totalVolume: {
Expand Down Expand Up @@ -217,7 +217,8 @@ function univ2Adapter(endpoints: {
}),
}
}
}, {} as BaseAdapter)
}, {} as BaseAdapter),
version: 2
};

return adapter;
Expand Down

0 comments on commit 1844356

Please sign in to comment.