Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
gmbronco committed Dec 7, 2023
1 parent f7ac2dd commit 3792147
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 27 deletions.
12 changes: 6 additions & 6 deletions modules/pool/lib/pool-creator.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class PoolCreatorService {
}

private get chain() {
return networkContext.chain
return networkContext.chain;
}

public async syncAllPoolsFromSubgraph(blockNumber: number): Promise<string[]> {
Expand Down Expand Up @@ -60,15 +60,15 @@ export class PoolCreatorService {
z: subgraphPool.z || '',
dSq: subgraphPool.dSq || '',
},
}
},
},
where: {
id_chain: {
id: subgraphPool.id,
chain: networkContext.chain
}
}
})
chain: this.chain,
},
},
});
}
}

Expand Down
4 changes: 1 addition & 3 deletions modules/sor/utils.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { TokenAmount, Token, Address, ChainId } from '@balancer/sdk';
import { TokenAmount, Token, Address } from '@balancer/sdk';
import { tokenService } from '../token/token.service';
import { networkContext } from '../network/network-context.service';
import { Chain } from '@prisma/client';
import { chainToIdMap } from '../network/network-config';


export async function getTokenAmountHuman(tokenAddr: string, humanAmount: string, chain: Chain): Promise<TokenAmount> {
const chainId = Number(chainToIdMap[chain]);
const prismaToken = await tokenService.getToken(tokenAddr, chain);
Expand Down
32 changes: 14 additions & 18 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
{
"compilerOptions": {
"esModuleInterop": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": ["es2018"],
"module": "commonjs",
"strict": true,
"target": "ES2020",
"resolveJsonModule": true,
"outDir": "./dist",
"skipLibCheck": true
},
"exclude": [
"node_modules",
"debug",
"**/*.spec.ts",
"**/*.test.ts"
]
"compilerOptions": {
"esModuleInterop": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": ["es2018"],
"module": "commonjs",
"strict": true,
"target": "ES2020",
"resolveJsonModule": true,
"outDir": "./dist",
"skipLibCheck": true,
"sourceMap": true
},
"exclude": ["node_modules", "debug", "**/*.spec.ts", "**/*.test.ts"]
}

0 comments on commit 3792147

Please sign in to comment.