diff --git a/src/strategies/sablier-v1-deposit/examples.json b/src/strategies/sablier-v1-deposit/examples.json index 6785e6bbd..565a0ed59 100644 --- a/src/strategies/sablier-v1-deposit/examples.json +++ b/src/strategies/sablier-v1-deposit/examples.json @@ -21,8 +21,7 @@ "name": "sablier-v1-deposit", "params": { "sender": "0xC9F2D9adfa6C24ce0D5a999F2BA3c6b06E36F75E", - "token": "0x7f8F6E42C169B294A384F5667c303fd8Eedb3CF3", - "subGraphURL": "https://api.thegraph.com/subgraphs/name/sablierhq/sablier-goerli" + "token": "0x7f8F6E42C169B294A384F5667c303fd8Eedb3CF3" } }, "network": "5", diff --git a/src/strategies/sablier-v1-deposit/index.ts b/src/strategies/sablier-v1-deposit/index.ts index e7463028f..e83febe47 100644 --- a/src/strategies/sablier-v1-deposit/index.ts +++ b/src/strategies/sablier-v1-deposit/index.ts @@ -11,8 +11,10 @@ const SUBGRAPH_URL = { '42': 'https://api.thegraph.com/subgraphs/name/sablier-labs/sablier-kovan', // kovan '56': 'https://api.thegraph.com/subgraphs/name/sablier-labs/sablier-bsc', // bsc '137': 'https://api.thegraph.com/subgraphs/name/sablier-labs/sablier-matic', // polygon - '42161': 'https://api.thegraph.com/subgraphs/name/sablier-labs/sablier-arbitrum', // arbitrum - '43114': 'https://api.thegraph.com/subgraphs/name/sablier-labs/sablier-avalanche' // avalanche + '42161': + 'https://api.thegraph.com/subgraphs/name/sablier-labs/sablier-arbitrum', // arbitrum + '43114': + 'https://api.thegraph.com/subgraphs/name/sablier-labs/sablier-avalanche' // avalanche }; export const author = 'sablier-labs'; @@ -48,10 +50,7 @@ export async function strategy( // @ts-ignore params.streams.__args.block = { number: snapshot }; } - const result = await subgraphRequest( - options.subGraphURL ? options.subGraphURL : SUBGRAPH_URL[network], - params - ); + const result = await subgraphRequest(SUBGRAPH_URL[network], params); const score = Object.fromEntries( addresses.map((address) => [getAddress(address), 0]) ); diff --git a/src/strategies/sablier-v1-deposit/schema.json b/src/strategies/sablier-v1-deposit/schema.json index 583a6148d..2e364e335 100644 --- a/src/strategies/sablier-v1-deposit/schema.json +++ b/src/strategies/sablier-v1-deposit/schema.json @@ -21,11 +21,6 @@ "pattern": "^0x[a-fA-F0-9]{40}$", "minLength": 42, "maxLength": 42 - }, - "subGraphURL": { - "type": "string", - "title": "Optional subgraph url", - "examples": ["e.g. 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984"] } }, "required": ["sender", "token"],