Signature
Returns
APromise that resolves to an UpdateUserProfileResponse containing the updated user configuration.
Return Type
Example
How it Works
TheresumeAgent method performs the following logic internally:
- Fetches User Profile: Retrieves the user’s current chains and strategy (e.g.,
conservative). - Discovery: Fetches the complete list of supported protocols from the Zyfai infrastructure.
- Filtering: Matches protocols that:
- Operate on at least one of the user’s active chains.
- Support the user’s selected strategy.
- Registration: Updates the user profile with the discovered
protocolIds, re-enabling automated yield optimization.
Notes
- Requires SIWE authentication (via
connectAccount()). - This is the inverse of
pauseAgent(). - If no protocols match the current strategy/chain combination, the protocol list will remain empty.
- To manually specify protocols, use
updateUserProfile()instead.