strategy argument
after the account’s first deposit.
Signature
Parameters
Chains already enabled for the asset are kept, so this parameter cannot be used
to disable a chain. Passing a chain the asset does not exist on throws
before anything is written.
What it does
- Resolves the protocols that support the asset, on the requested chains, under the requested strategy.
- Drops those with no pool available for that asset and strategy.
- Persists strategy, chains and protocols together.
Returns
The updated profile for that asset, same shape as getUserDetails.Example
Enable NVDAc
NVDAc lives only in protocols with delayed withdrawals, so it requiresyieldmaxxing. Chains default to Base, the only chain it exists on.
Recompute a protocol list without changing strategy
Useful after new pools or protocols go live.Related
- resumeAgent — the same operation for every asset at once, meant for resuming after pauseAgent
- updateUserProfile — for the settings that do not affect protocol selection