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

[Swaps] Updates to the Asset Swaps fees rationale and specification #63

Open
wants to merge 15 commits into
base: asset_swaps
Choose a base branch
from

Conversation

vivek-arte
Copy link

@vivek-arte vivek-arte commented Sep 8, 2024

This PR makes clearer the Fees section of ZIP 228, and also adds a rationale section for the fees.
It also changes the specification of the computation of the spend authorization signature

Copy link

netlify bot commented Sep 8, 2024

Deploy Preview for zcash-zips-qedit ready!

Name Link
🔨 Latest commit a35f1c5
🔍 Latest deploy log https://app.netlify.com/sites/zcash-zips-qedit/deploys/6714e1f304d21100085d4354
😎 Deploy Preview https://deploy-preview-63--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.

zips/zip-0228.rst Outdated Show resolved Hide resolved
zips/zip-0228.rst Outdated Show resolved Hide resolved
zips/zip-0228.rst Outdated Show resolved Hide resolved
zips/zip-0228.rst Outdated Show resolved Hide resolved
zips/zip-0228.rst Outdated Show resolved Hide resolved
zips/zip-0228.rst Outdated Show resolved Hide resolved
@vivek-arte vivek-arte changed the title Updates to the Asset Swaps fees rationale and specification [Swaps] Updates to the Asset Swaps fees rationale and specification Oct 6, 2024
Copy link

@PaulLaux PaulLaux left a comment

Choose a reason for hiding this comment

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

very nice, added important comments.

zips/zip-0228.rst Outdated Show resolved Hide resolved
zips/zip-0228.rst Outdated Show resolved Hide resolved
zips/zip-0228.rst Outdated Show resolved Hide resolved
+-----------------------------+--------------------------+--------------------------------------------------+---------------------------------------------------------------------+
|``sizeProofsOrchard`` |``proofsOrchard`` |``byte[sizeProofsOrchard]`` |The aggregated zk-SNARK proof for all Actions in the Action Group. |
+-----------------------------+--------------------------+--------------------------------------------------+---------------------------------------------------------------------+
|``4`` |``timeLimit`` |``uint32`` |The block number (in the future) after which the Actions of the |
Copy link

Choose a reason for hiding this comment

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

Please consult @ConstanceBeguier on whether timeLimit should be here or at the actionGroup level.

Copy link

Choose a reason for hiding this comment

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

moving it to actionGroup we require less changes and I don't see a case where we might need different limit for each action.

Copy link
Author

Choose a reason for hiding this comment

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

This already is at the Action Group level. The Actions are inside the vActionsOrchard field in this table, so all the Actions in this Action Group have the same timeLimit value.

Copy link
Author

Choose a reason for hiding this comment

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

Simplified the table format, it should now be clearer.

zips/zip-0228.rst Outdated Show resolved Hide resolved
zips/zip-0228.rst Outdated Show resolved Hide resolved
zips/zip-0228.rst Outdated Show resolved Hide resolved
zips/zip-0228.rst Outdated Show resolved Hide resolved
zips/zip-0228.rst Outdated Show resolved Hide resolved
zips/zip-0228.rst Outdated Show resolved Hide resolved
@vivek-arte vivek-arte force-pushed the swaps_fees_reword branch 4 times, most recently from 927ae9d to 7d2576a Compare October 16, 2024 13:00
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