Giter VIP home page Giter VIP logo

Comments (5)

cvalkan avatar cvalkan commented on September 15, 2024

Should we remove the other ones?

Is there a big difference in gas costs between the calling adjustLoan with 0/+, 0/-, +/0 or -/0 and calling the 4 specific functions? If not, I'm fine with removing the latter and just leave adjustLoan.

Do we expect it to be called with the 8 possible combinations? (+/+, +/-, -/+, -/-, 0/+, 0/-, +/0, -/0) Otherwise, we should prevent the undesired ones with requireโ€™s

I'd assume that for now. It would also be a bit strange to disallow certain combinations from UX perspective.

from dev.

cvalkan avatar cvalkan commented on September 15, 2024

Nice to have thing.

Low priority, but easy fix on the back end.
Keep old functions as wrappers.

from dev.

cvalkan avatar cvalkan commented on September 15, 2024

Please make sure to update the relevant sections in the Readme once the new API is in place.

from dev.

bingen avatar bingen commented on September 15, 2024

Some helpful comments by @cvalkan :
โ€œShouldn't L359 BorrowerOperations:
_requireNewTCRisAboveCCR(L.collChange, L.isCollIncrease, L.rawDebtChange, _isDebtIncrease, L.price);
be
if (isDebtIncrease) {_requireNewTCRisAboveCCR(L.collChange, L.isCollIncrease, L.rawDebtChange, _isDebtIncrease, L.price);}
?
To make sure it works the same way as withdrawColl(). Collateral withdrawal should be possible even if the system would enter Recovery Mode.
I think we also need to change L330 to make sure that adjustLoan() exactly replicates the 4 base functionsโ€

from dev.

github-actions avatar github-actions commented on September 15, 2024

๐ŸŽ‰ This issue has been resolved in version @liquity/lib-ethers-v1.0.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€

from dev.

Related Issues (20)

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.