Skip to content

Commit

Permalink
Merge pull request #312 from reflexer-labs/develop
Browse files Browse the repository at this point in the history
fix auctions bids sorting
  • Loading branch information
mstfash authored May 9, 2022
2 parents fea3870 + 8e6a41c commit 5926062
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 3 additions & 1 deletion src/hooks/useAuctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export default function useAuctions() {
} = auc
const isOngoingAuction =
Number(auctionDeadline) * 1000 > Date.now()
const bidders = englishAuctionBids
const bidders = englishAuctionBids.sort(
(a, b) => Number(a.createdAt) - Number(b.createdAt)
)
const kickBidder = {
bidder: startedBy,
buyAmount: buyInitialAmount,
Expand Down
9 changes: 1 addition & 8 deletions src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ type AddressMap = { [chainId: number]: string }
const {
REACT_APP_GRAPH_API_URLS,
REACT_APP_NETWORK_ID,
REACT_APP_COIN_TICKER_PRODUCTION,
REACT_APP_COIN_TICKER_KOVAN,
REACT_APP_SYSTEM_STATUS,
REACT_APP_MAILCHIMP_URL,
REACT_APP_SHOW_AUCTIONS,
Expand All @@ -34,12 +32,7 @@ export enum Network {
export const ETH_NETWORK =
REACT_APP_NETWORK_ID === '1' ? Network.MAINNET : Network.KOVAN

export const COIN_TICKER =
REACT_APP_NETWORK_ID === '1'
? REACT_APP_COIN_TICKER_PRODUCTION
: REACT_APP_COIN_TICKER_KOVAN
? REACT_APP_COIN_TICKER_KOVAN
: 'RAI'
export const COIN_TICKER = 'RAI'

export const COLLATERAL_TYPE_ID = 'ETH-A'
export const EMPTY_ADDRESS = '0x0000000000000000000000000000000000000000'
Expand Down

0 comments on commit 5926062

Please sign in to comment.