UNPKG

@kamino-finance/kliquidity-sdk

Version:

Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol

25 lines 1.03 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getEmptyShareData = getEmptyShareData; const decimal_js_1 = __importDefault(require("decimal.js")); function getEmptyShareData(prices) { return { price: new decimal_js_1.default(0), balance: { prices, tokenAAmounts: new decimal_js_1.default(0), tokenBAmounts: new decimal_js_1.default(0), computedHoldings: { available: { a: new decimal_js_1.default(0), b: new decimal_js_1.default(0) }, availableUsd: new decimal_js_1.default(0), investedUsd: new decimal_js_1.default(0), invested: { a: new decimal_js_1.default(0), b: new decimal_js_1.default(0) }, totalSum: new decimal_js_1.default(0), }, }, }; } //# sourceMappingURL=ShareData.js.map