Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Commit

Permalink
CamelCase -> human readable (#1211)
Browse files Browse the repository at this point in the history
  • Loading branch information
Velenir authored Jul 9, 2020
1 parent 9205e39 commit 4c1016e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/components/TradesWidget/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ function csvTransformer(trade: Trade): CsvColumns {
return {
Date: new Date(timestamp).toISOString(),
Market: `${symbolOrAddress(buyToken)}/${symbolOrAddress(sellToken)}`,
BuyTokenSymbol: buyToken.symbol || '',
BuyTokenAddress: buyToken.address,
SellTokenSymbol: sellToken.symbol || '',
SellTokenAddress: sellToken.address,
LimitPrice: limitPrice ? formatPrice({ price: limitPrice, decimals: 8 }) : 'N/A',
FillPrice: formatPrice({ price: fillPrice, decimals: 8 }),
'Buy Token symbol': buyToken.symbol || '',
'Buy Token address': buyToken.address,
'Sell Token symbol': sellToken.symbol || '',
'Sell Token address': sellToken.address,
'Limit Price': limitPrice ? formatPrice({ price: limitPrice, decimals: 8 }) : 'N/A',
'Fill Price': formatPrice({ price: fillPrice, decimals: 8 }),
Sold: formatAmount({
amount: sellAmount,
precision: sellToken.decimals as number,
Expand All @@ -84,10 +84,10 @@ function csvTransformer(trade: Trade): CsvColumns {
isLocaleAware: false,
}),
Type: trade.type || '',
TransactionHash: txHash,
EventLogIndex: eventIndex.toString(),
OrderId: orderId,
BatchId: batchId.toString(),
'Transaction Hash': txHash,
'Event Log Index': eventIndex.toString(),
'Order Id': orderId,
'Batch Id': batchId.toString(),
}
}

Expand Down

0 comments on commit 4c1016e

Please sign in to comment.