Skip to content

Some Nits and Issues on the Dex adapter and variable naming #240

@Kayanski

Description

@Kayanski

Here are some issues I have with the Dex Adapter

  1. The error type shouldn't be a generic but rather a type in
    pub trait DexCommand<E: Error = DexError>: Identify {
  2. We are using AnsAsset and AssetEntry when cw_asset uses Asset and AssetInfo. Shouldn't we use similare naming, AnsAsset and AnsAssetInfo ?
  3. We provide replies here but they don't seem to be used anywhere else, is that normal ?
    (
    self.resolve_provide_liquidity(
    deps,
    sender,
    assets,
    exchange.as_mut(),
    max_spread,
    )?,
    PROVIDE_LIQUIDITY,
    )
  4. All dex/staking adapters need to implement the Default trait to be able to identify them. Shouldn't be add the Default trait as a requirement for the Identify trait?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions