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

feat: add fee to AMMTransfer #270

Merged
merged 3 commits into from
Jun 7, 2021
Merged

feat: add fee to AMMTransfer #270

merged 3 commits into from
Jun 7, 2021

Conversation

Roznovjak
Copy link
Contributor

The AMMTransfer struct is extended to contain two new fields: fee_assetID and fee_amount.

Description

The fee amount is subtracted from the amount_in variable in the AMMTransfer struct.

Motivation and Context

This change is required in LBP pallet because we need a way to access the fee in execute_buy/sell(transfer: AMMTransfer) functions and send it to corresponding fee_receiver account.

@auto-add-label auto-add-label bot added the enhancement New feature or request label Jun 1, 2021
@Roznovjak Roznovjak linked an issue Jun 3, 2021 that may be closed by this pull request
@Roznovjak Roznovjak merged commit 3cf0799 into master Jun 7, 2021
@Roznovjak Roznovjak deleted the feat/amm_transfer_fee branch June 10, 2021 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add fee amount to amm transfer events.
2 participants