//! This code was AUTOGENERATED using the Codama library.
use {carbon_core::graphql::primitives::U64, juniper::GraphQLObject};

#[derive(Debug, Clone, GraphQLObject)]
#[graphql(name = "ConstantPriceCurve")]
pub struct ConstantPriceCurveGraphQL {
    pub token_b_price: U64,
}

impl From<crate::types::ConstantPriceCurve> for ConstantPriceCurveGraphQL {
    fn from(original: crate::types::ConstantPriceCurve) -> Self {
        Self {
            token_b_price: carbon_core::graphql::primitives::U64(original.token_b_price),
        }
    }
}
