Time
Time
Utility · Time

Time is the one input every strategy onchain shares. Every block carries a timestamp the whole network agrees on, every rate accrues against it, every vesting cliff and epoch and funding interval is denominated in it, and no position of any kind exists outside it.

A plug reads the current moment and reasons about it the way a person would, except precisely. It splits a timestamp into its calendar parts, finds the boundaries of the day it sits in, snaps to the start of the hour, week, month, quarter, or year that contains it, measures the seconds between now and any moment past or future, judges whether a moment has already happened, and tells whether two events landed on the same day. It also governs cadence: an execution can be capped to a fixed number of runs per interval, so a plan fires on a rhythm rather than on every block that happens to qualify.

A buy that lands every week at the boundary, not roughly weekly whenever someone remembers. A claim swept the moment a cliff passes instead of days later. A cooldown enforced by consensus time rather than by discipline. Calendar based strategies are the easiest ones to describe and the hardest ones to actually keep, because keeping them means being present on schedule forever. A plug is present on schedule forever.

  • Card: Buy $50 WBTC With USDC Once a Week

    time
    values
    math
  • Transfer Token X Times an Hour

    plug
    time
    evm
  • Transfer Token X Times a Fortnight

    plug
    time
    evm
  • Transfer Token Once a Quarter

    plug
    time
    evm
  • Transfer Token Once a Month

    plug
    time
    evm
  • Transfer Token Once a Fortnight

    plug
    time
    evm
  • Transfer Token Once a Day

    plug
    time
    evm
  • Transfer Token Once an Hour

    plug
    time
    evm
  • Transfer Token Once a Year

    plug
    time
    evm
  • Transfer Token X Times a Month

    plug
    time
    evm
  • Transfer Token X Times a Year

    plug
    time
    evm
  • Transfer USDC Once a Year

    plug
    time
    evm
  • Transfer USDC Once a Day

    plug
    time
    evm
  • Transfer USDC Once a Quarter

    plug
    time
    evm
  • Transfer USDC Once a Month

    plug
    time
    evm
  • Transfer USDC Once a Fortnight

    plug
    time
    evm
  • Transfer USDC Once an Hour

    plug
    time
    evm
  • Transfer Token X Times a Quarter

    plug
    time
    evm
  • Transfer Token X Times a Day

    plug
    time
    evm
  • Transfer Token X Times a Week

    plug
    time
    evm
  • Transfer Token Weekly

    plug
    time
    evm
  • Supply Idle Balance Weekly

    time
    evm
    boolean
  • Borrow + Weekly Repayments

    time
    aave
    evm
  • Borrow + Term Repayment Schedule

    time
    database
    boolean
  • Get Simple Moving Average

    plug
    time
    chainlink
  • Exit Morpho at Epoch End

    pendle
    time
    boolean

Posts · 3