diff --git a/packages/ui/components/pages/Fuse/FusePoolEditPage/AssetConfiguration/AssetSettings.tsx b/packages/ui/components/pages/Fuse/FusePoolEditPage/AssetConfiguration/AssetSettings.tsx index 1af78b0e5..d2e801c98 100644 --- a/packages/ui/components/pages/Fuse/FusePoolEditPage/AssetConfiguration/AssetSettings.tsx +++ b/packages/ui/components/pages/Fuse/FusePoolEditPage/AssetConfiguration/AssetSettings.tsx @@ -242,9 +242,10 @@ export const AssetSettings = ({ if (!currentSdk) return; setIsUpdating(true); - const comptroller = currentSdk.createComptroller(comptrollerAddress); + + const comptroller = currentSdk.createComptroller(comptrollerAddress, currentSdk.signer); try { - if (Number(borrowCaps) === -1) { + if (Number(borrowCaps) < 0) { const tx = await comptroller._blacklistBorrowingAgainstCollateral( selectedAsset.cToken, collateralAsset, @@ -273,7 +274,9 @@ export const AssetSettings = ({ await txBorrowCap.wait(); } - LogRocket.track('Fuse-UpdateBorrowCaps'); + LogRocket.track('Midas-UpdateBorrowCaps', { + comptroller: comptrollerAddress, + }); await queryClient.refetchQueries();