Remove erc20 search proxy implementation (#92)

reduce_txs_depth
Artem 2 years ago committed by GitHub
parent 0083dcf31c
commit e493a0659c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 22
      src/indexer/indexer/contracts/erc20/addContract.ts

@ -84,15 +84,15 @@ export const addContract = async (store: PostgresStorage, contract: Contract) =>
await store.erc20.addERC20(erc20)
l.info(`Found new contract "${erc20.name}" at ${contract.blockNumber}`)
const proxyAddress = await getProxyAddress(store, erc20)
if (proxyAddress) {
await store.contract.assignProxyImplementation(proxyAddress, erc20.address)
await store.erc20.addERC20({
...erc20,
address: proxyAddress,
})
l.info(
`Found proxy contract: "${proxyAddress}", implementation address: "${erc20.address}" ("${erc20.name}")`
)
}
// const proxyAddress = await getProxyAddress(store, erc20)
// if (proxyAddress) {
// await store.contract.assignProxyImplementation(proxyAddress, erc20.address)
// await store.erc20.addERC20({
// ...erc20,
// address: proxyAddress,
// })
// l.info(
// `Found proxy contract: "${proxyAddress}", implementation address: "${erc20.address}" ("${erc20.name}")`
// )
// }
}

Loading…
Cancel
Save