Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaituVR committed Feb 8, 2025
1 parent b0f28eb commit ed14830
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 18 deletions.
3 changes: 2 additions & 1 deletion src/strategies/aks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ export async function strategy(

return {
...accum,
[address]: total <= MINIMUM_VOTING_POWER ? MINIMUM_VOTING_POWER : total
[address]:
total <= MINIMUM_VOTING_POWER ? MINIMUM_VOTING_POWER : total
};
},
{}
Expand Down
7 changes: 1 addition & 6 deletions src/strategies/dappcomposer-getvotingunits/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,7 @@ export async function strategy(

// Third batch: Get voting power for each token
addresses.forEach((address) => {
multi.call(
`${address}`,
options.address,
'getVotingUnits',
[address]
);
multi.call(`${address}`, options.address, 'getVotingUnits', [address]);
});

const voteByTokenIds: Record<string, BigNumberish> = await multi.execute();
Expand Down
12 changes: 3 additions & 9 deletions src/strategies/erc20-votes/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
"symbol": {
"type": "string",
"title": "Symbol",
"examples": [
"e.g. ENS"
],
"examples": ["e.g. ENS"],
"maxLength": 16
},
"address": {
Expand All @@ -25,16 +23,12 @@
"decimals": {
"type": "integer",
"title": "Decimals",
"examples": [
"e.g. 18"
],
"examples": ["e.g. 18"],
"minimum": 0,
"maximum": 18
}
},
"required": [
"address"
],
"required": ["address"],
"additionalProperties": false
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/strategies/fountainhead/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export async function strategy(
const mCall2Result: Record<string, any> = await mCall2.execute();
const lockerByAddress = Object.fromEntries(
Object.entries(mCall2Result)
.filter(([_, { isCreated }]) => isCreated)
.filter(([, { isCreated }]) => isCreated)
.map(([addr, { lockerAddress }]) => [addr, lockerAddress])
);
const existingLockers = Object.values(lockerByAddress);
Expand Down
2 changes: 1 addition & 1 deletion src/strategies/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ const strategies = {
realt,
'superfluid-vesting': superfluidVesting,
synapse,
'dappcomposer-getvotingunits': dappcomposerGetVotingUnits,
'dappcomposer-getvotingunits': dappcomposerGetVotingUnits
};

Object.keys(strategies).forEach(function (strategyName) {
Expand Down

0 comments on commit ed14830

Please sign in to comment.