Skip to content

Commit

Permalink
wallet arg
Browse files Browse the repository at this point in the history
  • Loading branch information
ewansheldon committed Nov 13, 2023
1 parent 8369420 commit 00758f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/liquidation.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { getContract } = require("./contractFactory");
const { ethers } = require('ethers');
const { getNetwork } = require('./networks');

const getVaultSupply = async _ => {
const getVaultSupply = async wallet => {
try {
return await manager.connect(wallet).totalSupply()
} catch (_) {
Expand All @@ -29,7 +29,7 @@ const scheduleLiquidation = async _ => {
console.log(`liquidation attempt failed`);
}
tokenId++;
if (tokenId > await getVaultSupply()) tokenId = 1;
if (tokenId > await getVaultSupply(wallet)) tokenId = 1;
running = false;
}
});
Expand Down

0 comments on commit 00758f0

Please sign in to comment.