-
Notifications
You must be signed in to change notification settings - Fork 0
Liquidity Data, Governance Proposal Fix, Performance #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| import { type Transaction, activityFromTx } from '../../../utils/activityFromTx' | ||
| import { ADDRESS_ZERO } from '../../../utils/addresses' | ||
| import { DECIMALS_18 } from '../../../utils/constants' | ||
| import { multicall } from '../../../utils/multicall' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
viem has a built in multicall btw https://viem.sh/docs/contract/multicall.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am using a multicall contract in most cases, however when we are prior to that contract's deploy date I make an rpc batch call instead. It does result in less back and forth which improves performance still. This function gives us a single interface no matter what block height we're at.
nick
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicee
No description provided.