What this does
This plug computes a weight target by reading the simple moving average for a token and scaling it against a WAD constant. It asks the caller for the token to measure and the window length used for the moving average. It fires whenever it is executed, taking the average over the supplied window as its basis. Computing this by hand or on a stale moving average risks returning a target that no longer reflects the token's recent price.
Actions · 4




Related plugs · 8