Deposit

Deposit on vfat

Base
Base

Acts onchain

Adds both of an Aerodrome stable or volatile pool's tokens through vfat and stakes the LP in the pool's gauge. The socket's Sickle, deployed on its first deposit, pulls both amounts, adds them through the Aerodrome Router at the pool's reserve ratio under the min floors, stakes the LP minted in the pool's gauge, and returns whatever of either token the add did not take. No swap means no deposit fee. A Sickle that already exists keeps every automation setting its owner chose on vfat; any automator that is not vfat's own is removed in the same transaction. Reach for it to farm a pool's emissions through vfat with both tokens in hand, coiling them from swaps or withdrawals in the steps before it.

Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.

WETH USDC Volatile LP on Vfat

aerodrome
math
vfat
4actions
  1. 1·Quote add liquidity

    Quoting first, this reads what depositing 0.01 WETH and 40 USDC into the Aerodrome WETH/USDC volatile pool would settle at right now, returning the expected WETH and USDC amounts.

  2. 2·Multiply then divide

    Taking the quoted WETH amount, this multiplies it by 995 and divides by 1000 rounding down, trimming it to 99.5 percent as a minimum floor.

  3. 3·Multiply then divide

    Similarly, the quoted USDC amount is multiplied by 995 and divided by 1000 rounding down to set its 99.5 percent floor.

  4. 4·Deposit

    Depositing finally adds the quoted WETH and USDC into the same Aerodrome volatile pool through vfat and stakes the LP, requiring at least the two 99.5 percent floors to settle.

Quote adding and to
Calculate times divided by rounded
Calculate times divided by rounded
Deposit and into on vfat for at least and
  • WETH USDC Volatile LP on Vfat

    aerodrome
    math
    vfat

More on vfat · 13

On other protocols · 17