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

[Payments V2] Discount House Revamp #220

Open
wants to merge 2 commits into
base: ml/new-payments-design
Choose a base branch
from

Conversation

manolisliolios
Copy link
Collaborator

Revamp the Discount House (object-based discount) for both free claims & percentage off sales to use the new payments design, simplifying the process.

Copy link

changeset-bot bot commented Dec 2, 2024

⚠️ No Changeset found

Latest commit: 3a61ba9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Dec 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
suins-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 6:04pm

@manolisliolios manolisliolios changed the title Discounts house re-design to new payments flow [Payments V2] Discount House Revamp Jan 7, 2025
packages/discounts/sources/discounts.move Show resolved Hide resolved
packages/discounts/sources/discounts.move Show resolved Hide resolved
packages/discounts/sources/discounts.move Outdated Show resolved Hide resolved
packages/discounts/sources/discounts.move Show resolved Hide resolved
packages/discounts/sources/free_claims.move Outdated Show resolved Hide resolved
packages/discounts/sources/free_claims.move Outdated Show resolved Hide resolved
public fun assert_version_is_valid(self: &DiscountHouse) {
assert!(self.version == VERSION, ENotValidVersion);
public(package) macro fun discount_house_key(): String {
b"object_discount".to_string()
Copy link
Contributor

Choose a reason for hiding this comment

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

is this a constant?

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't feel strongly between making this a constant or returning the string directly cc: @manolisliolios

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.

3 participants