Get token

Get token on Values

Ethereum
Ethereum
Base
Base

Reads onchain state

Ready to run on Base

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.

Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.

Rebalance Holdings by Fixed Weights

values
evm
plug
13actions
  1. 1·Get address

    Your Wallet is fetched and held as a named address so later steps reference this account by name.

  2. 2·Set

    The literal address 0x4844...3a88 is written into the variable holder_wallet, wiring the wallet whose holdings this plug will rebalance.

  3. 3·Get token

    WETH at 0xc02a...6cc2 is held as a named token value for the registration step that follows.

  4. 4·Use

    Composing the Set Rebalance Token plug registers WETH into the token set with its target weight.

  5. 5·Get token

    WBTC at 0x2260...c599 is held as a named token value for the next registration.

  6. 6·Use

    Running Set Rebalance Token again registers WBTC into the token set with its target weight.

  7. 7·Get token

    USDC at 0xa0b8...eb48 is held as a named token value for the next registration.

  8. 8·Use

    Composing Set Rebalance Token once more registers USDC into the token set with its target weight.

  9. 9·Get token

    AAVE at 0x7fc6...dae9 is held as a named token value for the next registration.

  10. 10·Use

    Invoking Set Rebalance Token again registers AAVE into the token set with its target weight.

  11. 11·Get token

    UNI at 0x1f98...f984 is held as a named token value for the final registration.

  12. 12·Use

    Calling Set Rebalance Token a fifth time registers UNI into the token set with its target weight.

  13. 13·Use

    Composing the Rebalance Holdings to Target plug runs the routing that moves holder_wallet's holdings toward each registered token's target and verifies the post-routing balances clear those targets.

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

More plugs on Base

Bridge from Base · 6 plugs

Posts · 2

More on Values · 6