Deposit single-sided
Deposit single-sided

Snuggle · Acts onchain

Opens a Snuggle position with one of a pool's tokens, without swapping any of it into the other. The vault places a range of the chosen width just beside the pool's price on the deposited token's side, reading the more conservative of the time-weighted and spot prices, and mints the concentrated position through the pool's exchange with a minimum of the deposited amount less the vault's slippage allowance, staking it in the pool's gauge where there is one. The token converts into the other as the price moves through the range. Rebalancing, compounding, the performance fee and the fresh id every rebalance books the position under work as for a two-sided deposit. 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 work a single token into a pool, such as the proceeds of a swap, a withdrawal or a claim, coiling the amount straight in and the position id into the next step.