pub trait Exchange: Dependency {
    fn swap(
        &self,
        deps: Deps<'_>,
        dex: String,
        offer_asset: OfferAsset,
        ask_asset: AssetEntry
    ) -> StdResult<CosmosMsg> { ... } fn custom_swap(
        &self,
        deps: Deps<'_>,
        dex: String,
        offer_assets: Vec<OfferAsset>,
        ask_assets: Vec<AskAsset>,
        router: Option<SwapRouter>
    ) -> StdResult<CosmosMsg> { ... } }
Expand description

Perform actions on an exchange API. WIP

Provided Methods

Implementors