get_pair expects (token0, token1) but receives unordered (tokenA, tokenB), and thus has to make two queries to retrieve the pair in case (tokenA, tokenB) doesnt yield a result.
It's confusing to use the notation token0 / token1 when the function actually receives (tokenA, tokenB): the parameters should be renamed
https://github.com/jediswaplabs/JediSwap/blob/31-upgrade-to-cairo-10/src/FactoryC1.cairo#L160
get_pair expects (token0, token1) but receives unordered (tokenA, tokenB), and thus has to make two queries to retrieve the pair in case (tokenA, tokenB) doesnt yield a result.
It's confusing to use the notation token0 / token1 when the function actually receives (tokenA, tokenB): the parameters should be renamed