Comments (5)
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.
Nice to have thing.
Low priority, but easy fix on the back end.
Keep old functions as wrappers.
from dev.
Please make sure to update the relevant sections in the Readme once the new API is in place.
from dev.
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.
๐ 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)
- how to show the redeem part in the dev env
- the ability to use the Avalanche C-Chain.
- Hi can u explain n edit this to true where its false and how can I add this file to the trading app HOT 1
- Typo in file name LSUDUsdToLUSDEth.sol HOT 1
- Unable to access https://liquity.app/
- Prerequisites not properly defined
- Repository for "concat-stream" missing
- Deployment requires discontinued testnets
- yarn install fail HOT 1
- `SortedTroves. insert` is vulnerable to developer error
- Liquidity
- Liquidity/dev
- Errors when running test HOT 11
- Uniswap doesn't have the required data to calculate yield HOT 9
- Test bug - a lib-ethers test calls getLQTYBalance instead of getLUSDBalance HOT 1
- docs: private development chain link is broken
- Docs: AdjustTrove documentation seem outdated
- Okan
- Chickenbond front end does not work with Ankr RPC HOT 3
- Fix UI layout for Mobile Browsers
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.
from dev.