Skip to content

Commit

Permalink
remove assetTypeUnitsPerSecond function since it is not used now
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaurello committed Sep 23, 2024
1 parent 6b69eab commit 59925ef
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions mkdocs/docs/contribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Follow these steps:
3. Add your asset to the `assetsList` array at the end of the file

!!! note
Assets are listed in alphabetical order. Please make sure you follow this order when adding new assets.
Assets are listed in alphabetical order. Please make sure you follow this order when adding new assets.

## Add a Chain

Expand Down Expand Up @@ -120,7 +120,7 @@ To add a chain, take the following steps:
4. Add the newly created chain to the `chainsList` array at the end of the file

!!! note
Chains are listed in alphabetical order. Please make sure you follow this order when adding new chains.
Chains are listed in alphabetical order. Please make sure you follow this order when adding new chains.

Now that you've added the chain, you can continue to the next section to add the assets that this chain supports.

Expand Down Expand Up @@ -242,7 +242,7 @@ Assuming that all of the required pallets and methods are already supported, you
4. Add the newly created chain configurations to the `chainsConfigList` in the `xcm-sdk/blob/main/packages/config/src/configs/index.ts` file

!!! note
Chain configurations are listed in alphabetical order. Please follow this order when adding new chain configurations.
Chain configurations are listed in alphabetical order. Please follow this order when adding new chain configurations.

For example, to add support to transfer USDT from the Polkadot Asset Hub to Moonbeam, the Polkadot Asset Hub configuration file is as follows:

Expand All @@ -267,7 +267,9 @@ export const polkadotAssetHubConfig = new ChainConfig({
balance: BalanceBuilder().substrate().assets().account(),
destination: moonbeam,
destinationFee: {
amount: FeeBuilder().assetManager().assetTypeUnitsPerSecond(),
amount: FeeBuilder()
.xcmPaymentApi()
.xcmPaymentFee({ isAssetReserveChain: false }),
asset: usdt,
balance: BalanceBuilder().substrate().assets().account(),
},
Expand Down

0 comments on commit 59925ef

Please sign in to comment.