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

Dex swap fees #1

Open
wants to merge 10 commits into
base: polkadot-v0.9.37
Choose a base branch
from
Open

Dex swap fees #1

wants to merge 10 commits into from

Conversation

ghzlatarev
Copy link

@ghzlatarev ghzlatarev commented Aug 29, 2023

  • 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>
Copy link

@ferrell-code ferrell-code left a comment

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

zenlink-protocol/src/primitives.rs Outdated Show resolved Hide resolved
zenlink-protocol/src/swap/mod.rs Outdated Show resolved Hide resolved
@ghzlatarev
Copy link
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants