Supply & withdraw
Deposit the settlement token and receive shares in a House’s net assets.
On this page
Deposit
const house = termbook.house(house_address);
const deposit = await house.deposit({
amount: 10_000_000n,
minShares: reviewed_minimum_shares,
deadline: Math.floor(Date.now() / 1000) + 300,
});
console.log(deposit.status, deposit.shares);minShares is the minimum share amount from the reviewed exchange rate, expressed in the vault’s share units. deadline is Unix seconds. The SDK verifies approval, deposit and the confirmed share mint. A remote deposit requires an admitted Aurora route and completes only after settlement allocation.
LP account
const account = house.account(wallet.address);
const summary = await account.summary();
await account.withdraw({
amount: 1_000_000n,
to: wallet.address,
});
const withdrawals = await account.withdrawals();Withdrawal amount is in the settlement asset’s smallest unit. The vault converts it to shares at the current accounting price. Rounding affects the actual amount; the SDK returns that amount.
Withdrawal queue
await account.claim(withdrawal_id);
await account.cancel_withdrawal(withdrawal_id);These are alternatives for an eligible queue record, not sequential steps for one record. If free cash is sufficient, the withdrawal can use the immediate path. Otherwise it queues under the vault’s liquidity rules. Queued requests preserve the owner, recipient, shares and claim state.
Share value & lending risk
Shares represent House net assets, not a guaranteed USDC balance. Lending returns, fees and losses change share price. Illiquid receivables can delay cash withdrawals. Pending inbox funds create no LP shares until a valid deposit is applied.