Set Rebalance Token
0x484428507A212cA56D71baa27Ca6089a6dB63a88

What this does

This plug sets a rebalance entry by writing a token and its weight into the tokens and weights maps in the socket's persistent storage at a chosen slot. It asks the caller for the token, the weight, and the index slot to write to. It runs when the caller executes it, storing both values under the same index. Editing these maps by hand risks writing a token and weight to mismatched slots, leaving the rebalance configuration inconsistent.

Actions · 2

  • Set map value
    Set map value of in in to
    Writes a value into a keyed map in the socket's persistent storage.
  • Set map value
    Set map value of in in to
    Writes a value into a keyed map in the socket's persistent storage.

Related plugs · 8