Withdraw max

Withdraw max on Sablier

Ethereum
Ethereum
Base
Base

Acts onchain

Withdraws everything a Sablier stream has vested and not yet paid out, to an address. The socket reads what the stream can pay out now and, when that is not zero, the Lockup transfers all of it in the stream's token; the action returns what the address received, zero when nothing had vested since the last withdrawal. Anyone may withdraw a stream to its recipient; only the recipient, or an operator it approved, may send the tokens anywhere else. Standing alone, a stream the wallet receives is withdrawn by the wallet sending the call itself. Beside other steps the Plug account makes the withdrawal: paying the wallet as anyone may, or paying the Plug account so the next steps can spend it, as the operator the wallet approves for the stream in the same confirmation. Reach for it in a scheduled plug that sweeps a vesting stream every week and swaps, deposits or bridges what it paid in the same run.

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.

More on Sablier · 11