Deposit

Deposit on Snuggle

Base
Base

Acts onchain

Opens a Snuggle position with both of a pool's tokens and lets the vault keep its range centered. The vault takes both amounts, centers a range of the chosen width on the pool's time-weighted price, and mints the concentrated position through the pool's exchange, staking it in the pool's gauge where there is one; whatever the range does not take is refunded. The mint carries no minimum amounts: the vault's only guard is that the pool's spot tick sits within ten tick spacings of its time-weighted tick, and it refuses the deposit otherwise, so within that band the split between the two tokens is whatever the spot price is in the block the deposit lands. With rebalancing enabled the vault's keepers re-center the range once the price has been out of it for the delay, compounding the fees into the new range when compounding is enabled, and a performance fee is taken on fees and rewards. Every rebalance books the position under a fresh id; an exit finds it by its pool and the moment it was deposited. The position belongs to the account that sends the deposit and cannot be transferred: a deposit standing as a program's only write is the wallet's own transaction and the wallet holds the position; a deposit composed with other writes runs in the Plug account's program, funded by the steps before it, and the account holds the position, so every exit of it composes too. The deposit names no referrer: its referrer argument is the zero address, which the vault skips, so the deposit records none, and a referrer the depositing account recorded on an earlier deposit keeps its share of the performance fee. Reach for it to put a pair to work in a range that follows the price, coiling the position id into an exit later in the same program.

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 Snuggle Vault Auto Rebalance

snuggle
1action
  1. 1·Deposit

    Deposit into the Snuggle vault at 0xd3923beccb6e1ddb048ed00a0a9bd602d16b7470 for the WETH/USDC Uniswap V3 pool at the 0.05% fee tier, supplying 0.01 WETH and 40 USDC, opening the position across a 10% range with auto rebalancing enabled when the price sits out of range for 3600 seconds and compounding enabled.

Deposit into with and in a % range, rebalancing after out of range and compounding
  • WETH USDC Snuggle Vault Auto Rebalance

    snuggle

More on Snuggle · 4

On other protocols · 17