celo-monorepo icon indicating copy to clipboard operation
celo-monorepo copied to clipboard

Create a script to automate Oracle provider payment

Open martinvol opened this issue 2 years ago • 0 comments

Give our current epic to decentalize the oracles, we need a way to pay the operators in a monthly basis.

We need an script to deploy ReleaseGold for each for each node, the script would do the following:

  1. Query the current price of Celo in a CEX (i.e. Coinbase)
  2. Divide the monthly amount in USD by the price of CELO
  3. Deploy a RG contract and initialize it with the right parameters for the monthly payment and total duration
  4. Transfer ownership and set refund address to the GovernanceProxy.
  5. Output the governance proposal that'd fund this contract (with total amount + 2 CELO for gas)

Inputs: Monthly payment in USD Dollars Number of months the contract is deployed for.

Open question, who should be the owner of the proxy be?

martinvol avatar Aug 08 '22 17:08 martinvol