price() view bugfix

This commit is contained in:
tim
2025-11-25 13:26:24 -04:00
parent 0422031c5c
commit 64e73e5570
4 changed files with 108 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ contract PartyInfo is PartyPoolHelpers, IPartyInfo {
// Convert to external units
uint256 bd = pool.denominators()[baseTokenIndex];
uint256 qd = pool.denominators()[quoteTokenIndex];
return internalPrice.mul(ABDKMath64x64.divu(bd, qd));
return internalPrice.mul(ABDKMath64x64.divu(qd, bd));
}
/// @notice Price of one LP token denominated in `quote` as Q64.64.