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

feat(feeZero): deliver fee zero only to 10% of users #3614

Merged
merged 1 commit into from
Jan 25, 2024
Merged

Conversation

anxolin
Copy link
Contributor

@anxolin anxolin commented Jan 11, 2024

Summary

To launch the fee=0 feature, we already have a feature flag, but we want to delivery it progressively to be able to monitor it

This PR adds a const that allows us to select the % of users we want to see affected by the feature.
It just decides based on the wallet address

Note

This have a effect which is, unless the user is connected, we won't show if the fee=zero is activated

We have to try it out. In principle, i don't think is a big problem, but we have to see if this becomes a bit weird UX

Test

to test it we need to find a wallet that its "selected" to receive the feature.

You can check which of your wallets fits the criteria by running this in the console:

parseInt('add-here-your-address', 16) % 100 < 10

If you have a wallet that matches the criteria, you can verify that once connected, you will have the feature on.

If you struggle to find one, I can help to make a script so you get an account that fits the criteria.

Copy link

vercel bot commented Jan 11, 2024

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

Name Status Preview Updated (UTC)
cosmos ✅ Ready (Inspect) Visit Preview Jan 11, 2024 5:37pm
explorer ❌ Failed (Inspect) Jan 11, 2024 5:37pm
swap-dev ✅ Ready (Inspect) Visit Preview Jan 11, 2024 5:37pm
widget-configurator ✅ Ready (Inspect) Visit Preview Jan 11, 2024 5:37pm

@anxolin anxolin added the DONT_MERGE Indicates the PR should not be merged. Probably a WIP or PoC. label Jan 12, 2024
@anxolin
Copy link
Contributor Author

anxolin commented Jan 12, 2024

Please do not merge until we want to enable the flag in prod (after kaffekranchen)

@anxolin anxolin merged commit 4e5f17b into develop Jan 25, 2024
12 of 13 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 25, 2024
@alfetopito alfetopito deleted the ab-testing branch January 26, 2024 11:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
DONT_MERGE Indicates the PR should not be merged. Probably a WIP or PoC.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants