Skip to content

Dex swap fees#1

Open
ghzlatarev wants to merge 10 commits into
polkadot-v0.9.37from
ghzlatarev/v0937
Open

Dex swap fees#1
ghzlatarev wants to merge 10 commits into
polkadot-v0.9.37from
ghzlatarev/v0937

Conversation

@ghzlatarev

@ghzlatarev ghzlatarev commented Aug 29, 2023

Copy link
Copy Markdown
  • Add a configurable fee that is only when, in a swap, the asset supplied by the user is the native asset of the chain, then there's a fee that gets collected in a pot account
  • Fix tests

Signed-off-by: Georgi Zlatarev <georgi.zlatarev@manta.network>
Signed-off-by: Georgi Zlatarev <georgi.zlatarev@manta.network>
Signed-off-by: Georgi Zlatarev <georgi.zlatarev@manta.network>
Signed-off-by: Georgi Zlatarev <georgi.zlatarev@manta.network>

@ferrell-code ferrell-code left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Also a lot of the tests fail for zenlink-protocol

Comment thread zenlink-protocol/src/primitives.rs Outdated
Comment thread zenlink-protocol/src/swap/mod.rs Outdated
@ghzlatarev

Copy link
Copy Markdown
Author

Also a lot of the tests fail for zenlink-protocol

ah good catch, my second to alst commit included some extra stuff that wasnt supposed to be committed.

Signed-off-by: Georgi Zlatarev <georgi.zlatarev@manta.network>
Signed-off-by: Georgi Zlatarev <georgi.zlatarev@manta.network>
Signed-off-by: Georgi Zlatarev <georgi.zlatarev@manta.network>
Signed-off-by: Georgi Zlatarev <georgi.zlatarev@manta.network>
Signed-off-by: Georgi Zlatarev <georgi.zlatarev@manta.network>
Signed-off-by: Georgi Zlatarev <georgi.zlatarev@manta.network>
Comment thread zenlink-protocol/src/lib.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants