Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.

Conversation

@jmoreira-valory
Copy link
Collaborator

@jmoreira-valory jmoreira-valory commented Aug 6, 2024

Choose new staking contracts.

Specification:

  • User will be presented with a choice of staking contracts for their Predict agent.
  • Upon selecting that choice, the script should unstake from any other staking contract and use the indicated one.
  • User will be able to select a different staking program by executing cd trader; poetry run python ./scripts/choose_staking.py --reset; cd ..

Pending to implement (in future PRs)

  • Read current staking program from registry getOwner.
  • Remove dependency on Blockscout.
  • Determine implementation address from proxy contract.

Comment on lines +651 to +656

# export CUSTOM_SERVICE_REGISTRY_ADDRESS="0x9338b5153AE39BB89f50468E608eD9d764B755fD" # Set up in .env file
# export CUSTOM_STAKING_ADDRESS="0x43fB32f25dce34EB76c78C7A42C8F40F84BCD237" # Set up in .env file
# export CUSTOM_OLAS_ADDRESS="0xcE11e14225575945b8E6Dc0D4F2dD4C570f79d9f" # Set up in .env file
# export CUSTOM_SERVICE_REGISTRY_TOKEN_UTILITY_ADDRESS="0xa45E64d13A30a51b91ae0eb182e88a40e9b18eD8" # Set up in .env file
# export MECH_CONTRACT_ADDRESS="0x77af31De935740567Cf4fF1986D04B2c964A786a" # Set up in env file
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kupermind Please validate the following:

  1. The parameters commented correspond to addresses that depend/can be inferred from the staking contract.
  2. The remaining addresses not commented should remain constant for all staking contracts, for the time being.
  3. Please suggest a more appropriate name for any of these variables from point 1 and 2 above.

Copy link
Collaborator

@kupermind kupermind Aug 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CUSTOM_GNOSIS_SAFE_PROXY_FACTORY_ADDRESS => CUSTOM_GNOSIS_SAFE_MULTISIG_ADDRESS

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These commented variables will be removed before merging to main.

@jmoreira-valory jmoreira-valory changed the base branch from main to develop August 9, 2024 14:58
@dagacha dagacha merged commit af5aa44 into develop Aug 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants