Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.positions.finance/llms.txt

Use this file to discover all available pages before exploring further.

Repay borrowed assets to improve account health. Like deposits, approval is handled automatically if needed.
const repayAmount = 0.001;
const tx = await sdk.repayDebt(wbtcAddress, repayAmount);
console.log("Repayment transaction:", tx);