vault upgrades; fees; refactoring

This commit is contained in:
Tim
2024-06-17 02:39:12 -04:00
parent 4769d1c6fc
commit 930ba86ef3
3 changed files with 5 additions and 5 deletions

2
abi.js
View File

@@ -33,7 +33,7 @@ const factoryAbi = [
export const abi = {
'ERC20': erc20Abi,
'Factory': factoryAbi,
'VaultFactory': factoryAbi,
}

View File

@@ -25,7 +25,7 @@ for (const chain of _chains) {
}
let maybeFactory = null
for (const tx of deployment.transactions) {
if (tx.contractName === 'Factory')
if (tx.contractName === 'VaultFactory')
chain.factory = tx.contractAddress
else if (tx.contractName === 'QueryHelper')
chain.helper = tx.contractAddress
@@ -42,11 +42,11 @@ for (const chain of _chains) {
if ( maybeFactory !== null && maybeFactory !== -1)
chain.factory = maybeFactory
else
throw Error(`No Factory deployment found for chainId ${chain.id} ${path}`)
throw Error(`No VaultFactory deployment found for chainId ${chain.id} ${path}`)
}
if (chain.helper === undefined)
throw Error(`No QueryHelper deployment found for chainId ${chain.id} ${path}`)
console.log('Factory', chain.factory)
console.log('VaultFactory', chain.factory)
console.log('QueryHelper', chain.helper)
chainInfo[chain.id] = chain
}

View File

@@ -7,7 +7,7 @@ import {sendVaultOrders} from "./order.js";
const vaultAbi = await getAbi('Vault')
const factoryAbi = await getAbi('Factory')
const factoryAbi = await getAbi('VaultFactory')
export function vaultAddress(chainId, owner, num=0) {