You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 theGradualWeightUpdate
entities. This is pretty much a refactor of theupdatePoolWeights
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:
yarn
yarn generate-assets
yarn codegen
yarn deploy
* Recommend
yarn
since that's the package manager we're using and there's already ayarn.lock
file.The text was updated successfully, but these errors were encountered: