
Plug · Acts onchain
Composes another plug inside this one. The referenced plug's Takes become this step's inputs and its Bubbles become its outputs. Composition is expanded into the referenced plug's real steps before compilation, so the result is one atomic transaction. Reach for it to reuse a tested building block, such as a rebalance or a harvest routine, inside a larger strategy without duplicating its steps.
Get Chainlink Token Value (USD)


1·Take
Step one declares a parameter named token, whose value the caller supplies when the plug runs.
2·Take
Next comes a second parameter named amount, also filled in by the caller at execution time.
3·Use
This step composes another plug, Get Chainlink Price (USD), pulling its price result into this transaction.
4·Calculate
Multiplying the composed price from slot 3 by the caller supplied amount from slot 2 produces the total value.
5·Bubble
Finally the product from slot 3 of the math step is surfaced as this plug's output.