File tree Expand file tree Collapse file tree
modules/aprs/handlers/merkl-apr Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,23 +16,20 @@ export async function createAlerts(chainId: string): Promise<void> {
1616 await createCronAlertsIfNotExist ( chainId , config . workerJobs ) ;
1717
1818 const subgraphs = Object . entries ( config . data . subgraphs ) . filter (
19- ( [ subgraphName , subgraphUrl ] ) => subgraphUrl . includes ( 'thegraph' ) || subgraphUrl . includes ( 'goldsky' ) ,
19+ ( [ subgraphName , subgraphUrl ] ) =>
20+ subgraphUrl . includes ( 'thegraph' ) || subgraphUrl . includes ( 'goldsky' ) || subgraphUrl . includes ( 'ormi' ) ,
2021 ) ;
2122
2223 const subgraphsToAlert : { subgraphName : string ; subgraphUrl : string } [ ] = [ ] ;
2324
2425 for ( const [ subgraphName , subgraphUrl ] of subgraphs ) {
2526 let subgraphUrlClean = subgraphUrl ;
26- if ( subgraphUrl . includes ( 'gateway' ) || subgraphUrl . includes ( 'ormi' ) ) {
27+ if ( subgraphUrl . includes ( 'gateway' ) ) {
2728 const parts = subgraphUrl . split ( '/' ) ;
2829 parts . splice ( 4 , 1 ) ;
2930 subgraphUrlClean = parts . join ( '/' ) ;
3031 }
3132
32- if ( subgraphUrl . includes ( 'ormi' ) ) {
33- subgraphUrlClean = subgraphUrl ;
34- }
35-
3633 subgraphsToAlert . push ( { subgraphName, subgraphUrl : subgraphUrlClean } ) ;
3734 }
3835
Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ import { chainIdToChain } from '../../../network/chain-id-to-chain';
44import { AaveV3Plasma } from '@bgd-labs/aave-address-book' ;
55
66const opportunityUrl =
7- 'https://api- merkl.angle.money /v4/opportunities/?test=false&status=LIVE&campaigns=true&mainProtocolId=balancer&page=0&items=100' ;
7+ 'https://api. merkl.fr /v4/opportunities/?test=false&status=LIVE&campaigns=true&mainProtocolId=balancer&page=0&items=100' ;
88
9- const tokenOpportunityUrlBase = `https://api- merkl.angle.money /v4/opportunities/?status=LIVE&explorerAddress=` ;
9+ const tokenOpportunityUrlBase = `https://api. merkl.fr /v4/opportunities/?status=LIVE&explorerAddress=` ;
1010
1111interface MerklOpportunity {
1212 chainId : number ;
You can’t perform that action at this time.
0 commit comments