Skip to content

AB for high leverage #1816

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

Closed
wants to merge 7 commits into from
Closed

AB for high leverage #1816

wants to merge 7 commits into from

Conversation

midas-myth
Copy link
Contributor

@midas-myth midas-myth commented Aug 12, 2025


@midas-myth midas-myth self-assigned this Aug 12, 2025
Copy link

netlify bot commented Aug 12, 2025

Deploy Preview for vigilant-albattani-df38ec ready!

Name Link
🔨 Latest commit 8666bb2
🔍 Latest deploy log https://app.netlify.com/projects/vigilant-albattani-df38ec/deploys/68a734ecced4cf0008506fc3
😎 Deploy Preview https://deploy-preview-1816--vigilant-albattani-df38ec.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 project configuration.

Copy link

cloudflare-workers-and-pages bot commented Aug 12, 2025

Deploying gmx-interface with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8666bb2
Status: ✅  Deploy successful!
Preview URL: https://1170270f.gmx-interface.pages.dev
Branch Preview URL: https://ab-high-leverage-warning.gmx-interface.pages.dev

View logs

@midas-myth midas-myth force-pushed the ab-high-leverage-warning branch from 77a992a to 1d39861 Compare August 20, 2025 11:11
@midas-myth midas-myth force-pushed the ab-high-leverage-warning branch from 3baaf84 to e61e8d7 Compare August 20, 2025 11:23
@midas-myth midas-myth requested a review from divhead August 21, 2025 11:46
[BOTANIX]: ["BTC"],
};

const MAX_MAJOR_TOKEN_LEVERAGE = 15n * BASIS_POINTS_DIVISOR_BIGINT;
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe let's move to config?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved to AB config

src/config/ab.ts Outdated
// Config for deterministic ab flags based on address

export const AB_HIGH_LEVERAGE_WARNING_GROUP = "alert-high-leverage";
export const AB_HIGH_LEVERAGE_WARNING_PROBABILITY = 50n;
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe make it a normal number like 0.5?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

const prefferedProbabilities = [1, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100];
for (const probability of prefferedProbabilities) {
const count = 50_000;
let yesses = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

please create a normal name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

@midas-myth midas-myth force-pushed the ab-high-leverage-warning branch from 6d7b892 to 029f5d3 Compare August 21, 2025 12:54
@midas-myth midas-myth requested a review from divhead August 21, 2025 12:54
@midas-myth midas-myth closed this Aug 21, 2025
@midas-myth midas-myth deleted the ab-high-leverage-warning branch August 21, 2025 15:42
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