Commit 44bc734
Enable teleport of native token to Assethub (#553)
* Adjust xcm_config.rs for Pendulum and allow teleport of PEN to assethub
* Implement xcm-teleport pallet
* Add xcm-teleport pallet to pendulum runtime
* Adjust xcm-teleport pallet to deposit leftover DOT back into sovereign account
* Adjust config in pendulum runtime
* Implement teleport check-in and check-out logic in custom transactor
* Implement teleport destination validation in custom transactor
* Rename variables
* Address review comments: remove unused deps, fix imbalance handling, update comments (#554)
* Initial plan
* Address review comments: remove unused deps, fix comment, handle imbalance properly
Co-authored-by: ebma <6690623+ebma@users.noreply.github.com>
* Clarify comment about refund limitations
Co-authored-by: ebma <6690623+ebma@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ebma <6690623+ebma@users.noreply.github.com>
* Revert UnitWeightCost change
* Add minimum teleport amount to prevent griefing attacks
* Add logic to convert between PEN and DOT price using onchain prices
* Fix `vec!` missing
* Deposit leftover DOT to beneficiary
* Reduce MaxDotFeeAmount to 0.5
* Adjust stale code
---------
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ebma <6690623+ebma@users.noreply.github.com>1 parent 5904510 commit 44bc734
9 files changed
Lines changed: 736 additions & 11 deletions
File tree
- pallets/xcm-teleport
- src
- runtime
- common
- src
- pendulum
- src
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
0 commit comments