Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lower USDC fee #99

Merged
merged 3 commits into from
Dec 28, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/pretty-peaches-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@galacticcouncil/xcm-cfg': minor
---

lowers usdc fee
12 changes: 6 additions & 6 deletions examples/xcm-transfer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ const wallet = new Wallet({
configureExternal(externals, configService);

// Define transfer
const srcChain = configService.getChain('ethereum');
const destChain = configService.getChain('hydration');
const asset = configService.getAsset('eth');
const srcChain = configService.getChain('hydration');
const destChain = configService.getChain('assethub');
const asset = configService.getAsset('usdc');

const configBuilder = ConfigBuilder(configService);
const { sourceChains } = configBuilder.assets().asset(asset);
Expand All @@ -71,8 +71,8 @@ logDestChains(asset.key, destinationChains);
logSrcChains(asset.key, sourceChains);

// Define source & dest accounts
const srcAddr = 'INSERT_ADDRESS';
const destAddr = 'INSERT_ADDRESS';
const srcAddr = '7NPoMQbiA6trJKkjB35uk96MeJD4PGWkLQLH7k7hXEkZpiba';
const destAddr = '7NPoMQbiA6trJKkjB35uk96MeJD4PGWkLQLH7k7hXEkZpiba';

// Subscribe source chain token balance
const balanceObserver = (balances: AssetAmount[]) => console.log(balances);
Expand Down Expand Up @@ -101,7 +101,7 @@ const feeInfo = [
fee.toDecimal(fee.decimals),
fee.originSymbol,
].join(' ');
const call: XCall = await xTransfer.buildCall('0.1');
const call: XCall = await xTransfer.buildCall('1');

// Dump transfer info
console.log(xTransfer);
Expand Down
2 changes: 1 addition & 1 deletion packages/xcm-cfg/src/configs/polkadot/hydration/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ const toAssetHub: AssetRoute[] = [
chain: assetHub,
asset: usdc,
fee: {
amount: 0.7,
amount: 0.07,
asset: usdc,
},
},
Expand Down
Loading