Take
Take

Plug · Acts onchain

Declares a named parameter whose value the caller supplies at execution time. The slot stays open at compile time and is reported as a parameter of the plug; downstream steps coil it like any other value. When another plug composes this one through Use, its Takes become that step's inputs. Reach for it to make a plug reusable: take an amount, a token, or a recipient rather than hardcoding it, and let each caller bind its own value.

Get Chainlink Token Value (USD)

plug
math
5actions
  1. 1·Take

    Step one declares a parameter named token, whose value the caller supplies when the plug runs.

  2. 2·Take

    Next comes a second parameter named amount, also filled in by the caller at execution time.

  3. 3·Use

    This step composes another plug, Get Chainlink Price (USD), pulling its price result into this transaction.

  4. 4·Calculate

    Multiplying the composed price from slot 3 by the caller supplied amount from slot 2 produces the total value.

  5. 5·Bubble

    Finally the product from slot 3 of the math step is surfaced as this plug's output.

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

    plug
    math
  • Get Chainlink Price (USD)

    plug
    chainlink
  • Card: Buy an 18 Dec Token With X% of USDC

    plug
    evm
    math
  • Card: Sell X% of an 18 Dec Token for USDC

    plug
    evm
    math
  • Card: Sell 18 Dec Token for USDC

    plug
    chainlink
    math
  • Card: Sell 8 Dec Token for USDC

    plug
    chainlink
    math
  • Card: Buy 8 Dec Token With USDC

    plug
    chainlink
    values
  • Card: Buy 18 Dec Token With USDC

    plug
    chainlink
    values
  • Transfer Token X Times an Hour

    plug
    time
    evm
  • Transfer Token X Times a Fortnight

    plug
    time
    evm
  • Transfer Token Once a Quarter

    plug
    time
    evm
  • Transfer Token Once a Month

    plug
    time
    evm
  • Transfer Token Once a Fortnight

    plug
    time
    evm
  • Transfer Token Once a Day

    plug
    time
    evm
  • Transfer Token Once an Hour

    plug
    time
    evm
  • Transfer Token Once a Year

    plug
    time
    evm
  • Transfer Token X Times a Month

    plug
    time
    evm
  • Transfer Token X Times a Year

    plug
    time
    evm
  • Transfer USDC Once a Year

    plug
    time
    evm
  • Transfer USDC Once a Day

    plug
    time
    evm
  • Transfer USDC Once a Quarter

    plug
    time
    evm
  • Transfer USDC Once a Month

    plug
    time
    evm
  • Transfer USDC Once a Fortnight

    plug
    time
    evm
  • Transfer USDC Once an Hour

    plug
    time
    evm
  • Transfer Token X Times a Quarter

    plug
    time
    evm
  • Transfer Token X Times a Day

    plug
    time
    evm
  • Transfer Token X Times a Week

    plug
    time
    evm
  • Dust Guard

    plug
    boolean
  • Transfer Token Weekly

    plug
    time
    evm
  • Expected Amount to Minimum Received

    plug
    math
    values
  • Revoke Spending Approval

    plug
    evm
  • Approve Spending

    plug
    evm
  • Unwrap WETH to ETH

    plug
    evm
  • Wrap ETH to WETH

    plug
    evm
  • Set SMA Weight

    plug
    database
  • Raw Weights to Percents

    plug
    evm
    boolean
  • Get Simple Moving Average

    plug
    time
    chainlink
  • Get Weight Target

    plug
    values
    math
  • Get Price Running Total

    plug
    values
    math
  • Rebalance Holdings to Target

    plug
    values
    evm
  • Get Token Target

    plug
    database
    evm
  • Get Total Holdings Value

    plug
    evm
    boolean
  • Set Rebalance Token

    plug
    database
  • Get Target Balance

    plug
    math
    evm
  • Get Holding Value

    plug
    evm
    math
  • Swap at Floor

    plug
    evm
    values
  • Morpho: Auto Leverage Trigger

    plug
    morpho
    math
  • Swap

    plug
    values
    evm
  • 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: Get Market Liquidity

    plug
    morpho
    math
  • Check Minimum Threshold

    plug
    boolean
    evm
  • Morpho: Get Borrow APR

    plug
    values
    math
  • Find Value Delta

    plug
    boolean
    evm
  • Morpho: Get Health Factor

    plug
    boolean
    evm
  • Morpho: Collateral Value to Borrow Capacity

    plug
    math
    evm
  • Morpho: Collateral Amount to Collateral Value

    plug
    math
  • Morpho: Borrow Shares to Borrow Assets

    plug
    math
    evm
  • Aave: Wind or Unwind Position

    plug
    boolean
    aave
  • Value to Token Amount

    plug
    aave
    math
  • Target Debt to Debt Delta

    plug
    aave
    boolean
  • Wind

    plug
    aave
    evm
  • Unwind

    plug
    aave
    evm
  • Dust Guard

    plug
    boolean
    evm
  • Wind or Unwind to Maintain Target HF

    plug
    aave
    math
  • Supply if a Token Balance Is 0

    plug
    aave
    evm