galacticcouncil / warehouse

Collection of reusable pallets and crates used in Basilisk and HydraDX projects.
Apache License 2.0
21 stars 6 forks source link

muilti tx payment - allow to add native currency as accepted fee currency #157

Open enthusiastmartin opened 1 year ago

enthusiastmartin commented 1 year ago

Consider to allow native currency to be added to list of accepted currencies.

AcceptedCurrencies are also used in XCM trader, so sufficient tests are needed to ensure that having HDX in this list would not have any side effect.

this storage is also used to populate prices in on_initialize, so for HDX it needs to be handled explicitly, because you would not get price of HDX from spot price provider.

Fallback price should be always set to 1 regardless of price provided.

jak-pan commented 1 year ago

Regarding your comment on HDX price - something to think about during this change is if we want to use stable price instead of HDX price as part of this change.