@aurigami/sdk 1.19.5 → 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 +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
|
@@ -2935,7 +2935,7 @@ var MoneyMarketRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
2935
2935
|
}
|
|
2936
2936
|
_context13.t0 = helpers;
|
|
2937
2937
|
_context13.next = 9;
|
|
2938
|
-
return fetchValuation(TokenAmount.fromAddressAndAmount(networkAddresses.tokens.META, '
|
|
2938
|
+
return fetchValuation(TokenAmount.fromAddressAndAmount(networkAddresses.tokens.META, '500000', false), this._networkConnection.provider);
|
|
2939
2939
|
case 9:
|
|
2940
2940
|
_context13.t1 = _context13.sent;
|
|
2941
2941
|
_context13.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
|
}
|