Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/application/common/forceWindowRefresh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export function refreshWindow(options?: { noCache?: boolean }) {
globalThis.location.reload(options?.noCache)
} catch (err) {
// eslint-disable-next-line no-console
console.log('err: ', err)
console.error(err) //console.log was not allowed by eslint anyway in eslint settings
}
}
2 changes: 1 addition & 1 deletion src/application/createPool/recordCreatedPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function recordCreatedPool() {
}

// eslint-disable-next-line no-console
console.log('new created pool history Item: ', newRecordedItem)
// console.log('new created pool history Item: ', newRecordedItem)

const { createdPoolHistory } = useCreatePool.getState()

Expand Down
12 changes: 6 additions & 6 deletions src/application/token/useTokenListsLoader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ async function loadTokenList(
configs.map((raw) => {
const task = async () => {
// eslint-disable-next-line no-console
console.time(`load ${raw.url()}`)
// console.time(`load ${raw.url()}`)
const response = await jFetch<
| RaydiumTokenListJsonInfo
| RaydiumDevTokenListJsonInfo
Expand Down Expand Up @@ -259,7 +259,7 @@ async function loadTokenList(
}
}
// eslint-disable-next-line no-console
console.timeEnd(`load ${raw.url()}`)
// console.timeEnd(`load ${raw.url()}`)
}
return task()
})
Expand Down Expand Up @@ -296,18 +296,18 @@ async function fetchTokenLists(
tokens: {}
}
// eslint-disable-next-line no-console
console.info('tokenList start fetching')
// console.info('tokenList start fetching')

// we need it execute in order (main->dev->v2->v3->...),
// bcz RAYDIUM_MAIN contain almost 90% of tokens and we don't run "isAnIncludedMint" check w/ them
// eslint-disable-next-line no-console
console.time('load token list cost')
// console.time('load token list cost')
await loadTokenList(rawListConfigs, tokenCollector)
// eslint-disable-next-line no-console
console.timeEnd('load token list cost')
// console.timeEnd('load token list cost')

// eslint-disable-next-line no-console
console.info('tokenList end fetching, total tokens #: ', Object.keys(tokenCollector.tokens).length)
// console.info('tokenList end fetching, total tokens #: ', Object.keys(tokenCollector.tokens).length)

// check if any of fetchings is failed (has response, but not code: 200)
// then replace it w/ current list value (if current list is not undefined)
Expand Down
4 changes: 2 additions & 2 deletions src/functions/lazyMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ async function lazyMapCoreMap<T, U>({
return wholeResult
} else {
if (source.length === 0) return []
console.time(`lazy load ${loopTaskName}`)
// console.time(`lazy load ${loopTaskName}`)
const taskResults = await loadTasks(
source.map((item, index) => () => loopFn(item, index, source)),
loopTaskName,
options
)
console.timeEnd(`lazy load ${loopTaskName}`)
// console.timeEnd(`lazy load ${loopTaskName}`)
return taskResults
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/acceleraytor/detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ function LotteryInputPanel({ className }: { className?: string }) {
recursivelyDo(
() => {
// eslint-disable-next-line no-console
console.info('refresh idoInfo by txIdoPurchase')
// console.info('refresh idoInfo by txIdoPurchase')
refreshIdo(idoInfo.id)
return {
ticketCount: idoInfo.depositedTickets?.length
Expand Down
4 changes: 2 additions & 2 deletions src/pages/clmm/pools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ function PoolLabelBlock({ className }: { className?: string }) {
<Col>
<div className="font-medium text-xl mobile:text-base text-white">Concentrated Pools</div>
<div className="font-medium text-[rgba(196,214,255,.5)] text-base mobile:text-sm">
Concentrate liquidity for increased captial efficiency.{' '}
Concentrate liquidity for increased capital efficiency.{' '}
<Link
className="inline-block"
href="https://docs.raydium.io/raydium/concentrated-liquidity/what-is-concentrated-liquidity"
Expand Down Expand Up @@ -1397,7 +1397,7 @@ function PoolCardDatabaseBodyCollapseItemContent({ poolInfo: info }: { poolInfo:
)
}, [openNewPosition, isMobile, info])

console.log('info: ', info)
// console.log('info: ', info)
return (
<AutoBox
is={'Col'}
Expand Down