Skip to content

Commit

Permalink
improves borrow caps transactions a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
peetzweg committed Jan 26, 2023
1 parent a6fd8eb commit 60fecc9
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -273,7 +274,9 @@ export const AssetSettings = ({
await txBorrowCap.wait();
}

LogRocket.track('Fuse-UpdateBorrowCaps');
LogRocket.track('Midas-UpdateBorrowCaps', {
comptroller: comptrollerAddress,
});

await queryClient.refetchQueries();

Expand Down

0 comments on commit 60fecc9

Please sign in to comment.