Skip to content

Commit

Permalink
Update link to WeightedMath (#1266)
Browse files Browse the repository at this point in the history
  • Loading branch information
EndymionJkb authored Feb 6, 2025
1 parent 7c29a0c commit 41a1dd4
Showing 1 changed file with 3 additions and 1 deletion.
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.html
*
* 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

0 comments on commit 41a1dd4

Please sign in to comment.