@aurigami/sdk 1.19.6 → 1.20.1
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 +11 -19
- 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 +11 -19
- package/dist/sdk.esm.js.map +1 -1
- package/dist/types/index.d.ts +0 -1
- package/package.json +1 -1
- package/src/interactors/MoneyMarket.ts +1 -1
- package/src/interactors/misc.ts +0 -4
- package/src/types/index.ts +0 -1
package/dist/sdk.esm.js
CHANGED
|
@@ -2983,7 +2983,7 @@ var MoneyMarketRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
2983
2983
|
}
|
|
2984
2984
|
_context14.t0 = helpers;
|
|
2985
2985
|
_context14.next = 13;
|
|
2986
|
-
return fetchValuation(TokenAmount.fromAddressAndAmount(networkAddresses.tokens.STADER, '
|
|
2986
|
+
return fetchValuation(TokenAmount.fromAddressAndAmount(networkAddresses.tokens.STADER, '40', false), this._networkConnection.provider);
|
|
2987
2987
|
case 13:
|
|
2988
2988
|
_context14.t1 = _context14.sent;
|
|
2989
2989
|
_context14.t2 = underlyingPrice.multipliedBy(totalDeposited.formattedAmount());
|
|
@@ -5196,26 +5196,18 @@ var MiscRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
5196
5196
|
maxWithdrawCap = borrowLimitMargin.div(userMarketDetails[i].collateralRatio).div(userMarketDetails[i].underlyingPrice);
|
|
5197
5197
|
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());
|
|
5198
5198
|
}
|
|
5199
|
-
_context2.t1 = userMarketDetails;
|
|
5200
|
-
_context2.t2 = {
|
|
5201
|
-
currency: 'USD',
|
|
5202
|
-
amount: bufferedBorrowLimit.toFixed(DECIMAL_PRECISION)
|
|
5203
|
-
};
|
|
5204
|
-
_context2.next = 48;
|
|
5205
|
-
return new PapermillRead(this._networkConnection).getLockingDetails(userAddress);
|
|
5206
|
-
case 48:
|
|
5207
|
-
_context2.t3 = _context2.sent;
|
|
5208
|
-
_context2.t4 = {
|
|
5209
|
-
currency: 'USD',
|
|
5210
|
-
amount: borrowableAmount.toFixed(DECIMAL_PRECISION)
|
|
5211
|
-
};
|
|
5212
5199
|
return _context2.abrupt("return", {
|
|
5213
|
-
markets:
|
|
5214
|
-
borrowLimit:
|
|
5215
|
-
|
|
5216
|
-
|
|
5200
|
+
markets: userMarketDetails,
|
|
5201
|
+
borrowLimit: {
|
|
5202
|
+
currency: 'USD',
|
|
5203
|
+
amount: bufferedBorrowLimit.toFixed(DECIMAL_PRECISION)
|
|
5204
|
+
},
|
|
5205
|
+
borrowableAmount: {
|
|
5206
|
+
currency: 'USD',
|
|
5207
|
+
amount: borrowableAmount.toFixed(DECIMAL_PRECISION)
|
|
5208
|
+
}
|
|
5217
5209
|
});
|
|
5218
|
-
case
|
|
5210
|
+
case 45:
|
|
5219
5211
|
case "end":
|
|
5220
5212
|
return _context2.stop();
|
|
5221
5213
|
}
|