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

The failing Farms Deposit MAX button bug due to Borrow Position #3

Closed
githubdaryl opened this issue Sep 12, 2023 · 0 comments
Closed
Assignees

Comments

@githubdaryl
Copy link

Describe the bug
The failing Farms deposit MAX button bug

Egomaniac — Today at 3:59 PM
understood my issue.. what i did was provide X eth, I then borrowed X/2 eth. after this i tried to wrap the X eth. Which was wrong as the X/2 was still being borrowed so the transaction failed.
i dont have access to that channel
after this when i tried to wrap X/6 eth estimated it worked as that was the spare sweth

===
Proposed Solution:
Have the users manually lower their deposit size so it is sufficiently below the liquidation threshold and doesn't fail. This would be in the form of changing the hardcoded text from After wrapping is completed, go to the Stake button to finish staking.

Replace with:
NOTE: Depositing sTokens into the Farms will decrease your collateral health factor. If you are borrowing on Seamless, be careful when staking sTokens, in order to avoid unnecessary liquidations.

For example, only stake 50% of your max sToken balance (the transaction will fail if you choose MAX). Read more about collateral health factor here.

After wrapping is completed, go to the Stake button to finish staking.

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

No branches or pull requests

3 participants