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

Handle the initial protocol fees correctly, and add a 'pool creation fee' for additional protocol revenue #34

Merged
merged 2 commits into from
Jan 16, 2024

Conversation

Quantumplation
Copy link
Member

We had a hard-coded constant of 2 ADA that we subtracted off the reserves; This was cludgy, and also didn't account for what happened if someone set the protocol_fees in the output datum to some weird number.

Here, we subtract off the initial protocol fees, so that the LP token amounts get calculated correctly.

We also take the opportunity to add a protocol setting for the minimum initial value for this parameter; this effectively lets the DAO vote to institute an initial fee for each opened pool, which could limit spam and/or serve as another source of protocol revenue.

@Quantumplation Quantumplation merged commit 2921f06 into main Jan 16, 2024
1 check passed
@Quantumplation Quantumplation deleted the pi/pool-creation-fee branch January 16, 2024 23:26
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