Giter Club home page Giter Club logo

og-points's People

Watchers

 avatar  avatar  avatar  avatar  avatar

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.