-
Notifications
You must be signed in to change notification settings - Fork 70
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
Add collateral you redeem #428
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…pynfinance/squeeth-monorepo into feat/partical-close-target-eth
@adam5909099 Can you explain what has been done clearly? PRs like this might have to go through @alexisgauba and user story should be documented! |
@alexisgauba, Can you please review this PR for allowing users to enter collateral? I kept the Spend card for now because I'm not sure how to label the two values contained in the Card. |
…into feat/partical-close-target-eth
@adam5909099 Can you take a look at this? |
@alexisgauba For different collateral value between this PR and production isn't an issue. It's related to the time when the website is loaded. The above screenshots are from production when closing two oSQTH in short. They show different values because they were loaded at other times. Maybe we can implement polling for all values to get the latest date in real-time, but it might cause performance issues. So I don't think a slight value difference is an issue. CC @KMKoushik |
Ok gotcha, then in that case I think the main think would just be adding "New liquidation price" as a row right above "Current collateral ratio" @adam5909099 |
@alexisgauba, I got it, thank you. I added a new liquidation price, but I don't think it's calculated correctly. Can you or @KMKoushik provide me the formula for calculating it in a short close or a notion doc that I can reference? |
…into feat/partical-close-target-eth
…pynfinance/squeeth-monorepo into feat/partical-close-target-eth
…into feat/partical-close-target-eth
@KMKoushik I updated PR as you mentioned. When I set 0.2869 collateral eth, the new liquidation price was 4866.64, like in the following screenshot. |
…into feat/partical-close-target-eth
…pynfinance/squeeth-monorepo into feat/partical-close-target-eth
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KMKoushik I add a restriction to the slider to ensure eth is bigger than 0. Can you please review it again? |
…into feat/partical-close-target-eth
@KMKoushik |
Task:
This PR involves refactoring the existing logic of ShortClose so needs a detailed review.
Description
Add collateral Eth input and refactored dependency logic
Fixes #370
Type of change
How Has This Been Tested
Please describe how to test to verify the changes. Provide instructions so we can reproduce.
Checklist