What this does
This plug computes a weight target from a token's simple moving average scaled by WAD (1e18). It asks the caller for a token and a window defining the lookback period. It fires when invoked, composing the Get Simple Moving Average plug and then running a fixed-point multiply-divide rounded down. Computing this by hand or against a stale moving average produces a weight target that misstates the token's current position.
Actions · 4




Related plugs · 8