@carrot-protocol/clend-rpc 0.0.3 → 0.1.0-data-fixes-dev-0cb7240
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/math.d.ts +1 -1
- package/dist/math.js +1 -1
- package/package.json +3 -2
package/dist/math.d.ts
CHANGED
|
@@ -204,7 +204,7 @@ export declare function computeWithdrawLeverageAmounts(currentCollateral: number
|
|
|
204
204
|
newLeverage: number;
|
|
205
205
|
};
|
|
206
206
|
/**
|
|
207
|
-
* Calculates the health factor and leverage of a
|
|
207
|
+
* Calculates the health factor and leverage of a Clend account using weighted maintenance values.
|
|
208
208
|
*
|
|
209
209
|
* Standard Health Factor = Total Weighted Assets (Maintenance) / Total Weighted Liabilities (Maintenance)
|
|
210
210
|
* Interpretation:
|
package/dist/math.js
CHANGED
|
@@ -406,7 +406,7 @@ function computeWithdrawLeverageAmounts(currentCollateral, currentDebt, withdraw
|
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
408
|
/**
|
|
409
|
-
* Calculates the health factor and leverage of a
|
|
409
|
+
* Calculates the health factor and leverage of a Clend account using weighted maintenance values.
|
|
410
410
|
*
|
|
411
411
|
* Standard Health Factor = Total Weighted Assets (Maintenance) / Total Weighted Liabilities (Maintenance)
|
|
412
412
|
* Interpretation:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carrot-protocol/clend-rpc",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0-data-fixes-dev-0cb7240",
|
|
4
4
|
"description": "rpc client and libs for carrot lend",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"build": "npm i && tsc && npm pack",
|
|
10
10
|
"fmt": "prettier --write src/",
|
|
11
11
|
"fmt:check": "prettier --check src/",
|
|
12
|
-
"test": "for file in test/*.test.ts; do npx ts-mocha -p ./tsconfig.json -t 1000000 \"$file\" || exit 1; done"
|
|
12
|
+
"test": "for file in test/*.test.ts; do npx ts-mocha -p ./tsconfig.json -t 1000000 \"$file\" || exit 1; done",
|
|
13
|
+
"version-check": "current_version=$(node -p -e \"require('./package.json').version\") && if npm view @carrot-protocol/clend-rpc@$current_version > /dev/null 2>&1; then echo \"Version $current_version already exists. Please bump it in package.json\"; exit 1; fi"
|
|
13
14
|
},
|
|
14
15
|
"files": [
|
|
15
16
|
"dist",
|