Leveraging
1. Initial Deposit and Leverage
// Approve the position management contract to spend your tokens if depositing and leveraging in one transaction
const underlyingContract = new ethers.Contract(
underlyingAsset,
UNDERLYING_ABI,
signer
);
const depositAmount = ethers.utils.parseUnits('1000', 18); // Adjust amount and decimals
await underlyingContract.approve(POSITION_MANAGEMENT, depositAmount);2. Leveraging an Existing Position
Important Considerations
Last updated
Was this helpful?