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

[STK-233][FIX] - Bug in UI order amount calcs #185

Closed

Conversation

ElRodrigote
Copy link
Collaborator

@ElRodrigote ElRodrigote commented Jul 5, 2024

Fixes: STK-233

Context

After @berteotti investigation on the SC side, he found out that we were not executing a trade on the end date, so we were displaying different computation values in the UI and the SC.

Description

  • Removes the INITIAL_ORDER value (= 1) from the estimatedNumberOfOrders calculation to mimic the current logic in the Smart Contract side.

Copy link

vercel bot commented Jul 5, 2024

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

Name Status Preview Comments Updated (UTC)
stackly-landing ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2024 9:56am

@ElRodrigote ElRodrigote changed the title [STK-233][FIX] - bug in UI order amount calcs [STK-233][FIX] - Bug in UI order amount calcs Jul 5, 2024
Copy link

cloudflare-workers-and-pages bot commented Jul 5, 2024

Deploying stackly-ui with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1cee850
Status: ✅  Deploy successful!
Preview URL: https://4afe683b.stackly-ui.pages.dev
Branch Preview URL: https://fix-stk-233-bug-in-ui-order.stackly-ui.pages.dev

View logs

packages/app/components/stackbox/Stackbox.tsx Outdated Show resolved Hide resolved
packages/app/components/stackbox/Stackbox.tsx Outdated Show resolved Hide resolved
packages/app/components/DatePicker.tsx Outdated Show resolved Hide resolved
@ElRodrigote
Copy link
Collaborator Author

Closing this PR for now, as the production code as-is displays the same information we get from the SC. In the future we will re-visit the logic we use to handle the stack slots.

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