Setting WETH oracle for gas pricing

Proposal Key Aspects

  • Receiver Entity: Celo Governance

  • Status: FINAL

  • Title: Updating WETH oracle contract

  • Author(s): Martín Volpe (@martinvol)

  • **Type of Proposal: **Smart Contract Changes

Summary / Current Status & Motivation

In CGP 203, WETH was enabled as gas currency. However, the oracle address had not been set correctly. This proposals sets it to the well-known SortedOracles contract. All other parameters remain the same.

Specification

Proposed Changes

1. Set WETH parameters

  • Destination: FeeCurrencyDirectory

- Data: address token=0xD221812de1BD094f35587EE8E174B07B6167D9Af, address oracle=0xefB84935239dAcdecF7c5bA76d8dE40b077B7b33, uint256 intrinsicGas=90000

- Value: 0

Verification

`$ celocli governance:view --proposalID TODO -n https://forno.celo.org`

Team or Multisign (Optional)

N/A

Risks

As this is a setting to a well known contract, risk of this proposal is very low.

Additional Support/Resources or Useful Links

1. [Adding Gas Currencies to Celo]( Introduction - Celo Docs )

2. [Paying for Gas with Tokens]( Introduction - Celo Docs )

3. [CGP 203](./cgp-0203.md)

2 Likes