Skip to content

Commit

Permalink
last one
Browse files Browse the repository at this point in the history
  • Loading branch information
dianakocsis committed Oct 31, 2024
1 parent 81ab148 commit 1d1156d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PositionDescriptor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ contract PositionDescriptor is IPositionDescriptor {
address currency0 = Currency.unwrap(poolKey.currency0);
address currency1 = Currency.unwrap(poolKey.currency1);

// If possible, flip currencies to get the larger currency as the base, so that the price (quote/base) is more readable
// If possible, flip currencies to get the larger currency as the base currency, so that the price (quote/base) is more readable
// flip if currency0 priority is greater than currency1 priority
bool _flipRatio = flipRatio(currency0, currency1);

Expand Down Expand Up @@ -103,7 +103,7 @@ contract PositionDescriptor is IPositionDescriptor {
// Currencies in order of priority on mainnet: USDC, USDT, DAI, (ETH, WETH), TBTC, WBTC
// wrapped native is different address on different chains. passed in constructor

// native address
// native currency
if (currency == address(0) || currency == wrappedNative) {
return CurrencyRatioSortOrder.DENOMINATOR;
}
Expand Down

0 comments on commit 1d1156d

Please sign in to comment.