From 7c7b5db5fcd568f36c1a2d0a86c3cd35d2d8fb63 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2025 09:36:46 +0530 Subject: [PATCH] Automated lint (#1684) Co-authored-by: ChaituVR --- src/strategies/index.ts | 2 +- src/strategies/nedao/index.ts | 7 ++----- src/strategies/nedao/schema.json | 4 +++- src/strategies/spooky-lp-sonic/index.ts | 15 ++++++++------- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/strategies/index.ts b/src/strategies/index.ts index d5ce938f4..37a1487f9 100644 --- a/src/strategies/index.ts +++ b/src/strategies/index.ts @@ -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 = { diff --git a/src/strategies/nedao/index.ts b/src/strategies/nedao/index.ts index 5aefd6ee2..34568d7ca 100644 --- a/src/strategies/nedao/index.ts +++ b/src/strategies/nedao/index.ts @@ -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( @@ -34,9 +34,6 @@ export async function strategy( const result: Record = await multi.execute(); return Object.fromEntries( - Object.entries(result).map(([address, id]) => [ - address, - bytes32ToBool(id), - ]) + Object.entries(result).map(([address, id]) => [address, bytes32ToBool(id)]) ); } diff --git a/src/strategies/nedao/schema.json b/src/strategies/nedao/schema.json index 52b8997a0..511b02860 100644 --- a/src/strategies/nedao/schema.json +++ b/src/strategies/nedao/schema.json @@ -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 diff --git a/src/strategies/spooky-lp-sonic/index.ts b/src/strategies/spooky-lp-sonic/index.ts index e9ac42394..dbe8a24f3 100644 --- a/src/strategies/spooky-lp-sonic/index.ts +++ b/src/strategies/spooky-lp-sonic/index.ts @@ -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'; @@ -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 = {};