Formula DerivationVariables related to price:PRICE_SIZE:256/(3-1) = 128 PRICE_MASK: 128 binary 1s, bitwise_and operations with any number x is still x PRECISIONS: 1, 1, 1 packed_prices In the initial state:# Packing prices packed_prices: uint256 = 0 for k in range(N_COINS-1): packed_prices = shift(packed_prices, PRICE_SIZE) p: uint256 = initial_prices[N_COINS-2 - k] # / PRICE_PRECISION_MUL assert p < PRICE_MASK packed_prices = bitwise_or(p, packed_prices) self.price_scale_packed = packed...