-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Here are some issues I have with the Dex Adapter
- The error type shouldn't be a generic but rather a type in
pub trait DexCommand<E: Error = DexError>: Identify { - We are using
AnsAssetandAssetEntrywhen cw_asset usesAssetandAssetInfo. Shouldn't we use similare naming,AnsAssetandAnsAssetInfo? - We provide replies here but they don't seem to be used anywhere else, is that normal ?
abstract/modules/contracts/adapters/dex/src/adapter.rs
Lines 41 to 50 in 8882b7a
( self.resolve_provide_liquidity( deps, sender, assets, exchange.as_mut(), max_spread, )?, PROVIDE_LIQUIDITY, ) - All dex/staking adapters need to implement the
Defaulttrait to be able to identify them. Shouldn't be add theDefaulttrait as a requirement for theIdentify trait?
Metadata
Metadata
Assignees
Labels
No labels