Skip to content

Commit

Permalink
Automated lint (#1684)
Browse files Browse the repository at this point in the history
Co-authored-by: ChaituVR <[email protected]>
  • Loading branch information
github-actions[bot] and ChaituVR authored Jan 27, 2025
1 parent b986a9e commit 7c7b5db
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/strategies/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ import * as morphoDelegation from './morpho-delegation';
import * as lizcoinStrategy2024 from './lizcoin-strategy-2024';
import * as realt from './realt';
import * as superfluidVesting from './superfluid-vesting';
import * as spookyLpSonic from './spooky-lp-sonic';
import * as spookyLpSonic from './spooky-lp-sonic';
import * as synapse from './synapse';

const strategies = {
Expand Down
7 changes: 2 additions & 5 deletions src/strategies/nedao/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const abi = [

function bytes32ToBool(bytes32) {
const hex = bytes32.startsWith('0x') ? bytes32.slice(2) : bytes32;
return (hex != 0) ? 1 : 0;
return hex != 0 ? 1 : 0;
}

export async function strategy(
Expand All @@ -34,9 +34,6 @@ export async function strategy(
const result: Record<string, BigNumber> = await multi.execute();

return Object.fromEntries(
Object.entries(result).map(([address, id]) => [
address,
bytes32ToBool(id),
])
Object.entries(result).map(([address, id]) => [address, bytes32ToBool(id)])
);
}
4 changes: 3 additions & 1 deletion src/strategies/nedao/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
"typeValidation": {
"type": "string",
"title": "The keccak256 value of the bot",
"examples": ["e.g. 0xd36f63907c7fad13dd9dc69aa8b9af9c3296a3edad0b0b1eb50c10fd066fc910"],
"examples": [
"e.g. 0xd36f63907c7fad13dd9dc69aa8b9af9c3296a3edad0b0b1eb50c10fd066fc910"
],
"pattern": "^0x[a-fA-F0-9]{64}$",
"minLength": 66,
"maxLength": 66
Expand Down
15 changes: 8 additions & 7 deletions src/strategies/spooky-lp-sonic/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { subgraphRequest } from '../../utils';
import { getAddress } from '@ethersproject/address';

const MY_SUBGRAPH_URL = {
'146': 'https://api.0xgraph.xyz/api/public/28820bd2-ad8b-4d40-a142-ce8d7c786f66/subgraphs/spookyswap/v3/v0.0.1/gn'
'146':
'https://api.0xgraph.xyz/api/public/28820bd2-ad8b-4d40-a142-ce8d7c786f66/subgraphs/spookyswap/v3/v0.0.1/gn'
};

export const author = '0xaaiden';
Expand All @@ -17,12 +18,12 @@ export async function strategy(
snapshot
) {
const poolIds = [
"0x686d873a9e0696afaca0bc163dcc95b577d9e3e8",
"0xf4dcfaa2711908a8c61d9516d84b24ffdae241db",
"0xb7228a39cdd2c734064fc95c54e75910ff06eed6",
"0x84d4716c1cf4d7b1b1c247ad69b62fa72ccc46d7",
"0xaa4ee51f55f9baa7cf180fbaf2688cc35fdc8012"
];
'0x686d873a9e0696afaca0bc163dcc95b577d9e3e8',
'0xf4dcfaa2711908a8c61d9516d84b24ffdae241db',
'0xb7228a39cdd2c734064fc95c54e75910ff06eed6',
'0x84d4716c1cf4d7b1b1c247ad69b62fa72ccc46d7',
'0xaa4ee51f55f9baa7cf180fbaf2688cc35fdc8012'
];

const subgraphURL = MY_SUBGRAPH_URL[network];
const score = {};
Expand Down

0 comments on commit 7c7b5db

Please sign in to comment.