integritee-network / parachain

Integritee parachain
GNU General Public License v3.0
10 stars 8 forks source link

implement proper XCM fee handling #272

Closed brenzi closed 9 months ago

brenzi commented 9 months ago

We currently burn XCM fees as we don't define the fee handler here:

https://github.com/integritee-network/parachain/blob/7ecd5bb7f5db4f466fbae66c4e70f7adfc445544/polkadot-parachains/integritee-runtime/src/xcm_config.rs#L400-L407

leaving the ()will cause the default to burn: https://github.com/paritytech/polkadot-sdk/blob/5fc7622cb312f2d32ec8365012ee0a49622db8c8/polkadot/xcm/xcm-builder/src/weight.rs#L124-L127

(and total issuance isn't even correctly adjusted AFAIU

brenzi commented 9 months ago

get inspiration here: https://github.com/AcalaNetwork/Acala/blob/2023da03e2fc977ffcdf48e27a0781fe5b39a755/runtime/common/src/xcm_config.rs#L97-L121