1
0
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:
Bogdan Fazakas 2022-04-15 09:25:55 +03:00
parent 5b415e615c
commit ffd1c3ebe1
5 changed files with 692 additions and 1092 deletions

1773
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -21,7 +21,7 @@
"@coingecko/cryptoformat": "^0.4.4",
"@loadable/component": "^5.15.2",
"@oceanprotocol/art": "^3.2.0",
"@oceanprotocol/lib": "^1.0.0-next.33",
"@oceanprotocol/lib": "^1.0.0-next.36",
"@oceanprotocol/typographies": "^0.1.0",
"@portis/web3": "^4.0.7",
"@tippyjs/react": "^4.2.6",

View File

@ -243,13 +243,10 @@ export async function fetchDataForMultipleChains(
let datas: any[] = []
try {
for (const chainId of chainIds) {
// console.log('fetch chainID', chainId)
const context: OperationContext = getQueryContext(chainId)
const response = await fetchData(query, variables, context)
// console.log('fetch response', response)
if (!response || response.error) continue
datas = datas.concat(response?.data)
// console.log('fetch datas', datas)
}
return datas
} catch (error) {
@ -358,10 +355,8 @@ export async function getAccountTVLInOwnAssets(
chainIds
)
let tvl = new Decimal(0)
// console.log('resss', results)
for (const result of results) {
// console.log('result.poolShares', result.poolShares)
for (const poolShare of result.poolShares) {
const poolUserTvl = calculateUserTVL(
poolShare.shares,
@ -369,7 +364,6 @@ export async function getAccountTVLInOwnAssets(
poolShare.pool.baseTokenLiquidity
)
tvl = tvl.add(new Decimal(poolUserTvl))
// console.log('result.poolShares', tvl.toString())
}
}
return tvl.toDecimalPlaces(MAX_DECIMALS).toString()

View File

@ -22,7 +22,7 @@ export default function Results({
const [isLoading, setIsLoading] = useState(false)
const isFinished = job.dateFinished !== null
function getDownloadButtonValue(type: ComputeResultType): String {
function getDownloadButtonValue(type: ComputeResultType): string {
let buttonName
switch (type) {
case 'output':

View File

@ -98,7 +98,6 @@ export default function ComputeJobs({
asset,
newCancelToken()
)
console.log('computeJobs index jobs: ', jobs)
isMounted() && setJobs(jobs.computeJobs)
setIsLoading(!jobs.isLoaded)
} catch (error) {