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

Update link to WeightedMath #1266

Merged
merged 3 commits into from
Feb 6, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pkg/solidity-utils/contracts/math/WeightedMath.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import { FixedPoint } from "./FixedPoint.sol";
/**
* @notice Implementation of Balancer Weighted Math, essentially unchanged since v1.
* @dev It is a generalization of the x * y = k constant product formula, accounting for cases with more than two
* tokens, and weights that are not 50/50. See https://docs.qr68.com/tech-implementations/weighted-math.
* tokens, and weights that are not 50/50.
*
* See https://docs.balancer.fi/concepts/explore-available-balancer-pools/weighted-pool/weighted-math.
*
* For security reasons, to help ensure that for all possible "round trip" paths the caller always receives the same
* or fewer tokens than supplied, we have chosen the rounding direction to favor the protocol in all cases.
Expand Down