Get token
Get token

Values · Reads onchain state

Holds a token as a named value that later steps reference. The token address is echoed into a slot, so it is declared once and coiled into every action that operates on it. Reach for it to give a strategy one place to change its asset, so every swap, deposit, and balance read follows the same token.

Rebalance Holdings by Fixed Weights

values
evm
plug
13actions
  1. 1·Get address

    A specific address is held as a named value so later steps can point at one wallet, here 0x4844...3a88.

  2. 2·Set

    That address is written into the variable holder_wallet, wiring the value from the prior step so downstream steps read the wallet by name.

  3. 3·Get token

    WETH is held as a named token value, ready to be handed to the rebalance-token setup that follows.

  4. 4·Use

    The Set Rebalance Token plug is composed here, registering WETH from the step before as one of the tokens in the target basket.

  5. 5·Get token

    WBTC is held next as a named token value for the same registration pattern.

  6. 6·Use

    Composing Set Rebalance Token again registers WBTC as another basket token.

  7. 7·Get token

    USDC is held as a named token value to feed the next registration.

  8. 8·Use

    Running Set Rebalance Token once more adds USDC to the target set.

  9. 9·Get token

    AAVE is held as a named token value in turn.

  10. 10·Use

    The Set Rebalance Token plug is composed to register AAVE alongside the others.

  11. 11·Get token

    UNI is held as the final named token value.

  12. 12·Use

    A last composition of Set Rebalance Token adds UNI to the basket.

  13. 13·Use

    With the wallet and five tokens registered, the Rebalance Holdings to Target plug is composed to carry out the rebalance across WETH, WBTC, USDC, AAVE, and UNI.

Get
Set to
Get token
Use where
tokenis
weightis
indexis
Get token
Use where
tokenis
weightis
indexis
Get token
Use where
tokenis
weightis
indexis
Get token
Use where
tokenis
weightis
indexis
Get token
Use where
tokenis
weightis
indexis
Use where
holder_walletis
countis
  • Rebalance Holdings by Fixed Weights

    values
    evm
    plug