UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

13 lines 482 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.unwrapAccount = unwrapAccount; exports.unwrapAccounts = unwrapAccounts; /** Unwrap codama MaybeAccount to match old T | null pattern */ function unwrapAccount(account) { return account.exists ? account.data : null; } /** Unwrap array of MaybeAccounts */ function unwrapAccounts(accounts) { return accounts.map((a) => (a.exists ? a.data : null)); } //# sourceMappingURL=codamaHelpers.js.map