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
AnsAsset and AssetEntry when cw_asset uses Asset and AssetInfo. Shouldn't we use similare naming, AnsAsset and AnsAssetInfo ?
- 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, |
|
) |
- 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?
Here are some issues I have with the Dex Adapter
abstract/framework/packages/standards/dex/src/command.rs
Line 23 in 8882b7a
AnsAssetandAssetEntrywhen cw_asset usesAssetandAssetInfo. Shouldn't we use similare naming,AnsAssetandAnsAssetInfo?abstract/modules/contracts/adapters/dex/src/adapter.rs
Lines 41 to 50 in 8882b7a
Defaulttrait to be able to identify them. Shouldn't be add theDefaulttrait as a requirement for theIdentify trait?