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

[ZSA][Fees] Refactoring the ZSA Fees #71

Open
wants to merge 1 commit into
base: zsa_fees
Choose a base branch
from

Conversation

vivek-arte
Copy link

This PR rewrites ZIP 317 in order to specify which are the revisions made for the ZSA Protocol.

It also rewrites the issuance_fee as a multiple of the marginal_fee for easier analysis.

… the issuance_fee as a multiple of the marginal_fee
Copy link

netlify bot commented Oct 4, 2024

Deploy Preview for zcash-zips-qedit ready!

Name Link
🔨 Latest commit 27f84b5
🔍 Latest deploy log https://app.netlify.com/sites/zcash-zips-qedit/deploys/6700566776b6620008a3a7ac
😎 Deploy Preview https://deploy-preview-71--zcash-zips-qedit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@vivek-arte vivek-arte changed the title Refactoring the ZSA Fees [ZSA][Fees] Refactoring the ZSA Fees Oct 6, 2024
Comment on lines +315 to +316
:math:`issuance\_fee` :math:`100 \cdot marginal\_fee` zatoshis per issuance action (as defined below)
:math:`finalize\_fee` :math:`20 \cdot marginal\_fee` zatoshis per issuance action (as defined below)
Copy link

Choose a reason for hiding this comment

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

marginal_fee is already denominated in zatoshi, no need to repeat again

@@ -310,7 +325,7 @@ calculated in zatoshis per the following formula:
zsa\_logical\_actions &=& logical\_actions \;+ \\
& & nTotalOutputsZsaIssuance \\
zsa\_conventional\_fee &=& marginal\_fee \cdot \mathsf{max}(grace\_actions, zsa\_logical\_actions) \;+ \\
& & issuance\_fee \cdot nIssueActions \;+ \\
& & issuance\_fee \cdot nIssueActions \;- \\
Copy link

Choose a reason for hiding this comment

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

why - ?
need to provide rationale for this.

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