diff --git a/solana/spl/programs/meteora_dbc/client.go b/solana/spl/programs/meteora_dbc/client.go index 0c715f22..cf0fb564 100644 --- a/solana/spl/programs/meteora_dbc/client.go +++ b/solana/spl/programs/meteora_dbc/client.go @@ -73,7 +73,7 @@ func (c *Client) GetQuotePrice(ctx context.Context, poolAccount solana.PublicKey sqrtPriceSquared := new(big.Int).Mul(sqrtPrice, sqrtPrice) decimalsFactor := new(big.Int).Exp(big.NewInt(10), big.NewInt(int64(tokenBaseDecimals-tokenQuoteDecimals)), nil) - numerator := new(big.Int).Mul(sqrtPriceSquared, decimalsFactor) + numerator := new(big.Int).Div(sqrtPriceSquared, decimalsFactor) divisor := new(big.Int).Exp(big.NewInt(2), big.NewInt(128), nil) quotient := new(big.Rat).SetFrac(numerator, divisor)