@aurigami/sdk 1.19.6 → 1.20.0
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/sdk.cjs.development.js +10 -18
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +10 -18
- package/dist/sdk.esm.js.map +1 -1
- package/dist/types/index.d.ts +0 -1
- package/package.json +1 -1
- package/src/interactors/misc.ts +0 -4
- package/src/types/index.ts +0 -1
|
@@ -5199,26 +5199,18 @@ var MiscRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
5199
5199
|
maxWithdrawCap = borrowLimitMargin.div(userMarketDetails[i].collateralRatio).div(userMarketDetails[i].underlyingPrice);
|
|
5200
5200
|
userMarketDetails[i].maxWithdrawableAmount = userMarketDetails[i].isCollateral && maxWithdrawCap.lt(userMarketDetails[i].depositBalance.formattedAmount()) ? new TokenAmount(moneyMarket.underlying, maxWithdrawCap.toFixed(24), false) : new TokenAmount(moneyMarket.underlying, userMarketDetails[i].depositBalance.rawAmount());
|
|
5201
5201
|
}
|
|
5202
|
-
_context2.t1 = userMarketDetails;
|
|
5203
|
-
_context2.t2 = {
|
|
5204
|
-
currency: 'USD',
|
|
5205
|
-
amount: bufferedBorrowLimit.toFixed(DECIMAL_PRECISION)
|
|
5206
|
-
};
|
|
5207
|
-
_context2.next = 48;
|
|
5208
|
-
return new PapermillRead(this._networkConnection).getLockingDetails(userAddress);
|
|
5209
|
-
case 48:
|
|
5210
|
-
_context2.t3 = _context2.sent;
|
|
5211
|
-
_context2.t4 = {
|
|
5212
|
-
currency: 'USD',
|
|
5213
|
-
amount: borrowableAmount.toFixed(DECIMAL_PRECISION)
|
|
5214
|
-
};
|
|
5215
5202
|
return _context2.abrupt("return", {
|
|
5216
|
-
markets:
|
|
5217
|
-
borrowLimit:
|
|
5218
|
-
|
|
5219
|
-
|
|
5203
|
+
markets: userMarketDetails,
|
|
5204
|
+
borrowLimit: {
|
|
5205
|
+
currency: 'USD',
|
|
5206
|
+
amount: bufferedBorrowLimit.toFixed(DECIMAL_PRECISION)
|
|
5207
|
+
},
|
|
5208
|
+
borrowableAmount: {
|
|
5209
|
+
currency: 'USD',
|
|
5210
|
+
amount: borrowableAmount.toFixed(DECIMAL_PRECISION)
|
|
5211
|
+
}
|
|
5220
5212
|
});
|
|
5221
|
-
case
|
|
5213
|
+
case 45:
|
|
5222
5214
|
case "end":
|
|
5223
5215
|
return _context2.stop();
|
|
5224
5216
|
}
|