Get max weeks
Get max weeks

Virtuals · Reads onchain state

Reads the longest term a veVIRTUAL lock takes, in weeks. The veVIRTUAL contract's maxWeeks bounds every stake and extend, is the term a renewing lock holds, and is the term a lock's VIRTUAL is weighed against; Virtuals can change it. Reach for it to stake or extend to the full term without naming a number.

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