Get withdrawal queue metadata

Get withdrawal queue metadata on Origin

Base
Base

Reads onchain state

Reads the totals of Origin's vault withdrawal queue. withdrawalQueueMetadata returns the cumulative amount queued, the cumulative amount made claimable, the cumulative amount claimed, and the next request id; a request becomes claimable once the claimable total reaches the queued figure its request returned. Reach for it in a scheduled plug that compares a stored request's queued figure with the claimable total and claims the moment it is covered.

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.

Takes nothing — it reads the caller's own position.

More on Origin · 8