Skip to content

Commit

Permalink
Remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin committed Jul 8, 2024
1 parent 8a848f7 commit dd477c9
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions libs/services/src/SlippageService/SlippageService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,11 @@ export class SlippageServiceImpl implements SlippageService {
quoteTokenAddress: string,
baseTokenAddress: string
): Promise<Bps> {
console.log(
'getSlippageBps',
quoteTokenAddress,
baseTokenAddress,
this.usdRepository
);
const [slippageQuoteToken, slippageBaseToken] = await Promise.all([
this.getSlippageForToken(quoteTokenAddress),
this.getSlippageForToken(quoteTokenAddress),
]);

console.log(
'slippageQuoteToken, slippageBaseToken',
slippageQuoteToken,
slippageBaseToken
);

return Math.max(slippageQuoteToken, slippageBaseToken);
}

Expand All @@ -56,11 +44,9 @@ export class SlippageServiceImpl implements SlippageService {
tokenAddress,
yesterday
);
console.log('Today price, yesterday', todayPrice, yesterdayPrice);
const bps = Math.abs(
((todayPrice - yesterdayPrice) / yesterdayPrice) * 10000
);
console.log('bps', bps);

return Math.ceil(bps);
}
Expand Down

0 comments on commit dd477c9

Please # to comment.