Back to Contract Explorer

AerodromeFacet

dex

Manages Aerodrome DEX LP positions from within the Smart Loan. Supports adding/removing liquidity, staking in gauges, and claiming rewards.

Functions (4)

Usage Example

typescript
const poolAddress = "0x..."; // Aerodrome pool address
const amount0 = parseEther("1");   // Amount of token0
const amount1 = 1000n * 10n ** 6n; // Amount of token1

// Add liquidity
await wrappedContract.addLiquidityAerodrome(
  poolAddress,
  amount0,
  amount1,
);

// Stake LP tokens in gauge
const lpBalance = await contract.getOwnedAerodromeLpBalance(poolAddress);
await wrappedContract.stakeInAerodromeGauge(gaugeAddress, lpBalance);