What this does
This plug computes a target token balance by taking a weighted portion of a total value and dividing it by a price. It asks the caller for weight as a percent, a total_value, and a price at execution time. It runs whenever it is invoked, producing target_balance as its output. Computing the weighted value and dividing by a stale price yields a target balance that no longer matches the value it was meant to represent.
Actions · 5





Related plugs · 8