You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the replicator agent (Terraform definition here) uses a private_key to execute transactions on-chain.
On #200 we added support for Safe, and the way to make an agent execute its transactions via its Safe is by adding the environment variable SAFE_ADDRESS to the runtime.
However, specifically in the replicator case, once we add the SAFE_ADDRESS, previous markets created by the replicator won't be accessed anymore, since creator will now be the safe_address instead of the public_key associated to the replicators private_key`. Hence there will be a transition period for the replicator agent.
We decided to split market creation from market solving - hence 2 steps:
Create a new replicator agent (without a SAFE_ADDRESS but with the same private_key from the current replicator) that simply checks for markets created by it and solves them (removes funding, closes them, etc) however DOES NOT replicate new markets. Call this REPLICATOR_AGENT_EOA
Refactor the replicator (with a SAFE_ADDRESS) so that the same logic is executed, but it uses the SAFE_ADDRESS as creator.
In order to avoid re-replicating markets, it also checks if a market with that title already exists on Omen, and if so, does not create the market.
Call this replicator REPLICATOR_AGENT_SAFE.
The text was updated successfully, but these errors were encountered:
Currently, the replicator agent (Terraform definition here) uses a
private_key
to execute transactions on-chain.On #200 we added support for Safe, and the way to make an agent execute its transactions via its Safe is by adding the environment variable SAFE_ADDRESS to the runtime.
However, specifically in the replicator case, once we add the SAFE_ADDRESS, previous markets created by the replicator won't be accessed anymore, since
creator
will now be thesafe_address
instead of thepublic_key
associated to the replicators
private_key`. Hence there will be a transition period for the replicator agent.We decided to split market creation from
market solving
- hence 2 steps:Create a new replicator agent (without a SAFE_ADDRESS but with the same private_key from the current replicator) that simply checks for markets created by it and solves them (removes funding, closes them, etc) however DOES NOT replicate new markets. Call this REPLICATOR_AGENT_EOA
Refactor the replicator (with a SAFE_ADDRESS) so that the same logic is executed, but it uses the SAFE_ADDRESS as creator.
In order to avoid re-replicating markets, it also checks if a market with that title already exists on Omen, and if so, does not create the market.
Call this replicator REPLICATOR_AGENT_SAFE.
The text was updated successfully, but these errors were encountered: