Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Fee in WETH #132

Closed
wants to merge 5 commits into from
Closed

Fee in WETH #132

wants to merge 5 commits into from

Conversation

yrong
Copy link

@yrong yrong commented Apr 1, 2024

Context

#128 (comment)

Comment on lines +440 to +459
let assets = vec![
Asset {
id: AssetId(Location::new(
2,
[
GlobalConsensus(Ethereum { chain_id: CHAIN_ID }),
AccountKey20 { network: None, key: WETH },
],
)),
fun: Fungible(WETH_FEE_AMOUNT),
},
Asset {
id: AssetId(Location::new(
2,
[
GlobalConsensus(Ethereum { chain_id: CHAIN_ID }),
AccountKey20 { network: None, key: WETH },
],
)),
fun: Fungible(WETH_AMOUNT),
Copy link
Author

@yrong yrong Apr 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two kinds of assets with the first as the fee in WETH and the second as the transferred token(happens to be also WETH here, maybe an example for ERC20-USDT is better).

@yrong yrong changed the title Multiple fees Fee in WETH Apr 1, 2024
@yrong yrong closed this Apr 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant