mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
fix missing chain id on preview (#1305)
* fix missing chain id when user is not connected * remove log
This commit is contained in:
parent
48c3190fed
commit
4ded93afed
@ -133,7 +133,7 @@ function PoolProvider({ children }: { children: ReactNode }): ReactElement {
|
|||||||
|
|
||||||
setPoolInfo(newPoolInfo)
|
setPoolInfo(newPoolInfo)
|
||||||
LoggerInstance.log('[pool] Created new pool info:', newPoolInfo)
|
LoggerInstance.log('[pool] Created new pool info:', newPoolInfo)
|
||||||
}, [asset.chainId, chainId, poolData, web3])
|
}, [asset?.chainId, chainId, poolData, web3])
|
||||||
|
|
||||||
//
|
//
|
||||||
// 2 Pool Creator Info
|
// 2 Pool Creator Info
|
||||||
@ -153,8 +153,6 @@ function PoolProvider({ children }: { children: ReactNode }): ReactElement {
|
|||||||
.mul(100)
|
.mul(100)
|
||||||
.toFixed(2)
|
.toFixed(2)
|
||||||
|
|
||||||
console.log(ownerPoolShares, poolShare)
|
|
||||||
|
|
||||||
const newPoolOwnerInfo = {
|
const newPoolOwnerInfo = {
|
||||||
liquidity: new Decimal(ownerPoolShares), // liquidity in base token, values from from `calcSingleOutGivenPoolIn` method
|
liquidity: new Decimal(ownerPoolShares), // liquidity in base token, values from from `calcSingleOutGivenPoolIn` method
|
||||||
poolShares: ownerPoolShares,
|
poolShares: ownerPoolShares,
|
||||||
|
Loading…
Reference in New Issue
Block a user