
Snuggle · 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.
On other protocols · 13