-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Balancer Stable Math: calculate_invariant_v2 (#368)
There has been a change to the calculateInvariant method in Balancer's stable math. Previously they had a boolean indicator for rounding up or down on division and now they only support rounding up. The Balancer team have assured us that this computation will always return the same results as the previous implementation of the contract (also confirmed by out unit tests still agreeing), and that the only difference is better convergence. This means we can simply adjust the implementation and use it for all stable pools going forward.
- Loading branch information
Showing
2 changed files
with
35 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters