fn simulate_reverse_swap(
        &mut self,
        ask: u128,
        asset: AssetInfo,
    ) -> Result<ReverseSimulationResponse> {
        self.app
            .wrap()
            .query_wasm_smart(
                self.pair.clone(),
                &QueryMsg::ReverseSimulation {
                    ask_asset: Asset {
                        info: asset,
                        amount: Uint128::new(ask),
                    },
                },
            )
            .map_err(|err| anyhow!(err))
    }
/// Helper for reverse swap simulation
///
/// Queries with `QueryMsg::ReverseSimulation` and returns `ReverseSimulationResponse`
Helper for reverse swap simulation
Queries with `QueryMsg::ReverseSimulation` and returns `ReverseSimulationResponse`
Helper for reverse swap simulation Queries with ` QueryMsg :: ReverseSimulation ` and returns ` ReverseSimulationResponse `
fn simulate_reverse_swap(
        &mut self,
        ask: u128,
        asset: AssetInfo,
    ) -> Result<ReverseSimulationResponse> {
        self.app
            .wrap()
            .query_wasm_smart(
                self.pair.clone(),
                &QueryMsg::ReverseSimulation {
                    ask_asset: Asset {
                        info: asset,
                        amount: Uint128::new(ask),
                    },
                },
            )
            .map_err(|err| anyhow!(err))
    }
fn simulate_reverse_swap ( & mut self , ask : u128 , asset : AssetInfo , ) -> Result < ReverseSimulationResponse > { self . app . wrap ( ) . query_wasm_smart ( self . pair . clone ( ) , & QueryMsg :: ReverseSimulation { ask_asset : Asset { info : asset , amount : Uint128 :: new ( ask ) , } , } , ) . map_err ( | err | anyhow ! ( err ) ) }
Helper for reverse swap simulation
Queries with `QueryMsg::ReverseSimulation` and returns `ReverseSimulationResponse`
Helper for reverse swap simulation Queries with ` QueryMsg :: ReverseSimulation ` and returns ` ReverseSimulationResponse `
&mut self
ask
u128
asset
AssetInfo
&mut self
ask
u128
asset
AssetInfo