What this does
This plug computes a target balance from a weighted proportion of a total value divided by a supplied price. It asks the caller for three parameters: weight, total_value, and price. It fires whenever a caller runs it with those three values supplied at execution time. Computing this by hand or against a stale price yields a target balance that no longer matches the intended proportion of the total value.
Actions · 5





Related plugs · 8