Skip to content

Commit

Permalink
fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
jsy1218 committed Jul 18, 2024
1 parent e9aa20f commit d379409
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions lib/graphql/graphql-token-fee-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,21 @@ export class GraphQLTokenFeeFetcher implements ITokenFeeFetcher {
const feeTakenOnTransfer = token.feeData.feeTakenOnTransfer
const externalTransferFailed = token.feeData.externalTransferFailed
const sellReverted = token.feeData.sellReverted
tokenFeeMap[token.address] = { buyFeeBps, sellFeeBps, feeTakenOnTransfer, externalTransferFailed, sellReverted }
tokenFeeMap[token.address] = {
buyFeeBps,
sellFeeBps,
feeTakenOnTransfer,

Check failure on line 55 in lib/graphql/graphql-token-fee-fetcher.ts

View workflow job for this annotation

GitHub Actions / Run tests

Type '{ buyFeeBps: BigNumber | undefined; sellFeeBps: BigNumber | undefined; feeTakenOnTransfer: boolean | undefined; externalTransferFailed: boolean | undefined; sellReverted: boolean | undefined; }' is not assignable to type 'TokenFeeResult'.
externalTransferFailed,
sellReverted,
}
} else {
tokenFeeMap[token.address] = { buyFeeBps: undefined, sellFeeBps: undefined, feeTakenOnTransfer: false, externalTransferFailed: false, sellReverted: false }
tokenFeeMap[token.address] = {
buyFeeBps: undefined,
sellFeeBps: undefined,
feeTakenOnTransfer: false,

Check failure on line 63 in lib/graphql/graphql-token-fee-fetcher.ts

View workflow job for this annotation

GitHub Actions / Run tests

Type '{ buyFeeBps: undefined; sellFeeBps: undefined; feeTakenOnTransfer: boolean; externalTransferFailed: boolean; sellReverted: boolean; }' is not assignable to type 'TokenFeeResult'.
externalTransferFailed: false,
sellReverted: false,
}
}
})
metric.putMetric('GraphQLTokenFeeFetcherFetchFeesSuccess', 1, MetricLoggerUnit.Count)
Expand Down

0 comments on commit d379409

Please sign in to comment.