-
Notifications
You must be signed in to change notification settings - Fork 104
Description
On every Swap event we update pool's tokens weights if they're variable (e.g. LBPs) by making on-chain calls. We could improve this and avoid the calls by calculating the weights at the timestamp of the swap using the GradualWeightUpdate entities. This is pretty much a refactor of the updatePoolWeights function.
Please use the comments to document your journey from cloning the repository and setting up the environment to coding the solution. You can ignore most of the README and it has instructions to run graph-node locally and that's not what we're looking for.
https://github.com/balancer/balancer-subgraph-v2
Relevant commands are the following:
yarnyarn generate-assetsyarn codegenyarn deploy
* Recommend yarn since that's the package manager we're using and there's already a yarn.lock file.