Skip to content
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

token_(symbol)_weights to normalized weights #77

Closed
AngelaKTE opened this issue Mar 8, 2021 · 3 comments
Closed

token_(symbol)_weights to normalized weights #77

AngelaKTE opened this issue Mar 8, 2021 · 3 comments
Assignees
Labels
model logic (concept) all issues related to model logic, how we'll translate a mechanism to our model

Comments

@AngelaKTE
Copy link
Contributor

Refactor "token_(symbol)_weight" to normalized weights:

The white paper defines it in terms of the normalized weights (such that the sum of all normalized weights is 1) - so 0.8 and 0.2 in that case.

As for the why, it's not explicitly stated in the white paper, but from eq 10 in this proof we see that Wn must be a number between 0 and 1 (since 0<Vn<V by definition).

Originally posted by @markusbkoch in #45 (comment)

@AngelaKTE AngelaKTE changed the title [The white paper](https://balancer.finance/whitepaper/#value-function) defines it in terms of the normalized weights (such that the sum of all normalized weights is 1) - so 0.8 and 0.2 in that case. token_(symbol)_weights to normalized weights Mar 8, 2021
@AngelaKTE AngelaKTE added the model logic (concept) all issues related to model logic, how we'll translate a mechanism to our model label Mar 8, 2021
@Ramarti
Copy link
Collaborator

Ramarti commented Mar 8, 2021

So i add token_(symbol)denorm and token(symbol)_weight from 0 to 1

@AngelaKTE
Copy link
Contributor Author

Wait - no need to touch token_(symbol)_denorm.

Just change token_(symbol)_weight as outlined (0 to 1).

@Ramarti
Copy link
Collaborator

Ramarti commented Mar 8, 2021

Done

@Ramarti Ramarti closed this as completed Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
model logic (concept) all issues related to model logic, how we'll translate a mechanism to our model
Projects
None yet
Development

No branches or pull requests

2 participants