price() view bugfix
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user