static version.json file
This commit is contained in:
@@ -14,18 +14,6 @@ socket.on('disconnect', () => {
|
||||
console.log(new Date(), 'ws disconnected')
|
||||
})
|
||||
|
||||
socket.on('welcome', async (data) => {
|
||||
console.log('welcome', data)
|
||||
const s = useStore()
|
||||
// todo put the vaultInitCodeHash into the chainInfo
|
||||
s.chainInfo = data.chainInfo
|
||||
s.vaultInitCodeHash = data.vaultInitCodeHash
|
||||
const p = new ethers.BrowserProvider(window.ethereum)
|
||||
const network = await p.getNetwork()
|
||||
if (network !== null)
|
||||
onChainChanged(network.chainId)
|
||||
})
|
||||
|
||||
socket.on('p', async (chainId, pool, price) => {
|
||||
console.log('pool price from message', chainId, pool, price)
|
||||
const s = useStore()
|
||||
|
||||
Reference in New Issue
Block a user