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

launchpad: start add creator fee fix #486

Merged
merged 16 commits into from
Feb 19, 2025

Conversation

MSghais
Copy link
Member

@MSghais MSghais commented Feb 13, 2025

Description

We want the user to be able to add a creator fee in the tx for the Treasury.
The admin can setup a storage if the fee can be directly sent at each transaction, or at the end of the graduation ( if the pool reaches the threshold and launches on a DEX).
We add all required storage, changes and functions to enable this.

Changelog:

  • Add creator_fee_percent and creator_fee_destination as inputs for users

  • Add storage for if the fees is distributed at each time or can be claimed if the token is graduated

  • Check is_creator_fee_enabled

  • Substract creator_fee in buy_coin and sell_coin

  • Distribute the fees directly or after graduation: can be received before graduate, or accumulate in the state of creator_amount_to_distribute and can be distributed is the pool is graduated

  • distribute_creator_fee function

  • Set fees admin

  • Creator fees substraction in Buy and Sell

  • Add state for creator fee and distribution address

@MSghais MSghais changed the title start add creator fee fix launchpad: start add creator fee fix Feb 19, 2025
@MSghais MSghais merged commit 6fb915a into AFK-AlignedFamKernel:main Feb 19, 2025
1 of 3 checks passed
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.

1 participant