AstarNetwork / astar-frame

Core frame modules for Astar & Shiden network.
Other
58 stars 38 forks source link

TakeRevenue implementation #66

Closed Dinonard closed 2 years ago

Dinonard commented 2 years ago

Pull Request Summary

Added XcmFungibleFeeHandler into xcm-primitives. This can be used to deposit paid fees into a destination account instead of just burning them.

Tested locally with Shibuya:

2022-06-29 11:54:48.022 TRACE tokio-runtime-worker xcm::execute_xcm_in_credit: [Parachain] result: Ok(())    
2022-06-29 11:54:48.022 TRACE tokio-runtime-worker xcm::weight: [Parachain] XcmFeeHandler::take_revenue took 40000000000 of asset Id 300 

Check list