Get cooldown

Get cooldown on Kaito

Base
Base

Reads onchain state

Reads an account's Kaito unstake cooldown: when it ends and how much KAITO waits behind it. The vault's cooldowns entry returns the timestamp from which a claim pays and the KAITO held in the aging pool for the account, at 18 decimals; both are zero while nothing cools down. Reach for it to gate claim from aging pool behind the cooldown's end with a predicate against the current timestamp, or to size what the claim will pay into the next step.

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 Kaito · 6