Use
Use

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)

plug
math
5actions
  1. 1·Take

    Opening with a declared parameter, token is left for the caller to supply at execution time, naming the asset to be valued.

  2. 2·Take

    A second parameter, amount, is declared as caller-supplied, giving the quantity that the price will be applied to.

  3. 3·Use

    Composing the Get Chainlink Price (USD) plug pulls its price-reading logic into this one, returning the token's USD rate.

  4. 4·Calculate

    Multiplying the composed price by amount converts the supplied quantity into its USD value.

  5. 5·Bubble

    Surfacing that product returns the computed USD value as the output of this plug.

Take
Take
Use where
tokenis
Calculate
Bubble
  • Get Chainlink Token Value (USD)

    plug
    math
  • Get Chainlink Price (USD)

    plug
    chainlink
  • Set SMA Weight

    plug
    database
  • Get Simple Moving Average

    plug
    time
    chainlink
  • Get Weight Target

    plug
    values
    math
  • Rebalance Holdings by Fixed Weights

    values
    evm
    plug
  • Rebalance Holdings to Target

    plug
    values
    evm
  • Get Token Target

    plug
    database
    evm
  • Get Total Holdings Value

    plug
    evm
    boolean
  • Morpho: Leverage Manager

    values
    morpho
    evm
  • Morpho: Auto Leverage Trigger

    plug
    morpho
    math
  • Morpho: Refinance to Cheaper Borrow Market

    morpho
    plug
    boolean
  • Morpho: Check Refinancing Constraints

    plug
    morpho
    evm
  • Morpho: Check Market Liquidity Vs. Required Amount

    plug
    evm
  • Morpho: Check Health Factor Vs. Min Threshold

    plug
    evm
  • Morpho: Find Borrow Rate Delta

    plug
    morpho
    evm
  • Morpho: Check Borrow Rate Delta Vs. Min Threshold

    plug
    evm
    boolean
  • Check Required Amount

    plug
    math
    evm
  • Morpho Pendle Expiry Deleveraging

    pendle
    time
    boolean
  • Strategy: Loop WETH/USDC at Target HF + Stop Loss

    boolean
    aave
    evm