og-points's People
og-points's Issues
The failing Farms Deposit MAX button bug due to Borrow Position
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.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.