What this does
This plug sets the stored weight for one token slot by deriving it from a moving-average target and writing the result into the socket's weights map. It asks the caller for an index naming the token slot and an sma_window setting the moving-average window. It fires on execution, reading the tokens map at the index, composing the Get Weight Target plug, and recording the derived weight. Running this by hand or against a stale window records a weight that misprices the slot for later rebalancing.
Actions · 3



Related plugs · 8