Skip to content

Commit 65b19d8

Browse files
committed
hotfix: canopy vault balance 0
1 parent 4dc0139 commit 65b19d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/canopy/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ module.exports = {
153153
const asset_name = vault.asset_name;
154154

155155
// Handle Meridian LP tokens
156-
if (asset_name === "Meridian LP Token") {
156+
if (asset_name === "Meridian LP Token" && balance !== '0') {
157157
// Get the underlying assets in the pool
158158
const poolAssetsMetadata = await function_view({
159159
functionStr: `${meridianPkg}::pool::pool_assets_metadata`,

0 commit comments

Comments
 (0)