mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
bump ocean lib version and lint fixes
This commit is contained in:
parent
5b415e615c
commit
ffd1c3ebe1
1773
package-lock.json
generated
1773
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -21,7 +21,7 @@
|
|||||||
"@coingecko/cryptoformat": "^0.4.4",
|
"@coingecko/cryptoformat": "^0.4.4",
|
||||||
"@loadable/component": "^5.15.2",
|
"@loadable/component": "^5.15.2",
|
||||||
"@oceanprotocol/art": "^3.2.0",
|
"@oceanprotocol/art": "^3.2.0",
|
||||||
"@oceanprotocol/lib": "^1.0.0-next.33",
|
"@oceanprotocol/lib": "^1.0.0-next.36",
|
||||||
"@oceanprotocol/typographies": "^0.1.0",
|
"@oceanprotocol/typographies": "^0.1.0",
|
||||||
"@portis/web3": "^4.0.7",
|
"@portis/web3": "^4.0.7",
|
||||||
"@tippyjs/react": "^4.2.6",
|
"@tippyjs/react": "^4.2.6",
|
||||||
|
@ -243,13 +243,10 @@ export async function fetchDataForMultipleChains(
|
|||||||
let datas: any[] = []
|
let datas: any[] = []
|
||||||
try {
|
try {
|
||||||
for (const chainId of chainIds) {
|
for (const chainId of chainIds) {
|
||||||
// console.log('fetch chainID', chainId)
|
|
||||||
const context: OperationContext = getQueryContext(chainId)
|
const context: OperationContext = getQueryContext(chainId)
|
||||||
const response = await fetchData(query, variables, context)
|
const response = await fetchData(query, variables, context)
|
||||||
// console.log('fetch response', response)
|
|
||||||
if (!response || response.error) continue
|
if (!response || response.error) continue
|
||||||
datas = datas.concat(response?.data)
|
datas = datas.concat(response?.data)
|
||||||
// console.log('fetch datas', datas)
|
|
||||||
}
|
}
|
||||||
return datas
|
return datas
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@ -358,10 +355,8 @@ export async function getAccountTVLInOwnAssets(
|
|||||||
chainIds
|
chainIds
|
||||||
)
|
)
|
||||||
let tvl = new Decimal(0)
|
let tvl = new Decimal(0)
|
||||||
// console.log('resss', results)
|
|
||||||
|
|
||||||
for (const result of results) {
|
for (const result of results) {
|
||||||
// console.log('result.poolShares', result.poolShares)
|
|
||||||
for (const poolShare of result.poolShares) {
|
for (const poolShare of result.poolShares) {
|
||||||
const poolUserTvl = calculateUserTVL(
|
const poolUserTvl = calculateUserTVL(
|
||||||
poolShare.shares,
|
poolShare.shares,
|
||||||
@ -369,7 +364,6 @@ export async function getAccountTVLInOwnAssets(
|
|||||||
poolShare.pool.baseTokenLiquidity
|
poolShare.pool.baseTokenLiquidity
|
||||||
)
|
)
|
||||||
tvl = tvl.add(new Decimal(poolUserTvl))
|
tvl = tvl.add(new Decimal(poolUserTvl))
|
||||||
// console.log('result.poolShares', tvl.toString())
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return tvl.toDecimalPlaces(MAX_DECIMALS).toString()
|
return tvl.toDecimalPlaces(MAX_DECIMALS).toString()
|
||||||
|
@ -22,7 +22,7 @@ export default function Results({
|
|||||||
const [isLoading, setIsLoading] = useState(false)
|
const [isLoading, setIsLoading] = useState(false)
|
||||||
const isFinished = job.dateFinished !== null
|
const isFinished = job.dateFinished !== null
|
||||||
|
|
||||||
function getDownloadButtonValue(type: ComputeResultType): String {
|
function getDownloadButtonValue(type: ComputeResultType): string {
|
||||||
let buttonName
|
let buttonName
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'output':
|
case 'output':
|
||||||
|
@ -98,7 +98,6 @@ export default function ComputeJobs({
|
|||||||
asset,
|
asset,
|
||||||
newCancelToken()
|
newCancelToken()
|
||||||
)
|
)
|
||||||
console.log('computeJobs index jobs: ', jobs)
|
|
||||||
isMounted() && setJobs(jobs.computeJobs)
|
isMounted() && setJobs(jobs.computeJobs)
|
||||||
setIsLoading(!jobs.isLoaded)
|
setIsLoading(!jobs.isLoaded)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user