import { positionUpdate, priceId } from "@exponent-labs/exponent-sdk/client/vaults";
// Add a Kamino obligation entry
const ix = vault.ixWrapperManagerUpdatePosition({
manager: wallet.publicKey,
update: positionUpdate("AddKaminoObligationEntry", [{
obligationAddress: kaminoObligation,
lendingMarket: kaminoLendingMarket,
priceIdDeposit: priceId("Simple", { priceId: 0n }),
priceIdBorrow: priceId("Simple", { priceId: 1n }),
}]),
});
const tx = new Transaction().add(ix);
await sendAndConfirmTransaction(connection, tx, [wallet]);