What this does
This plug reads the token and weight stored at a given index in the socket's tokens and weights maps, fetches the token's Chainlink USD price, and composes Get Target Balance to compute the token's target. It asks the caller for the index to resolve and a total_value figure. It runs whenever it is called or composed by another plug during a rebalance. Resolving these values by hand or against a stale Chainlink price yields a target balance that no longer matches the token's current market value.
Actions · 8








Related plugs · 8