Add Glo Dollar as a gas token?

Hi Celo Community,

Garm here from Glo Dollar.

We would like to get feedback on the idea of adding Glo Dollar as a gas token for Celo.

We’re increasingly getting DMs suggesting we should have this feature, and we agree this would be highly beneficial for our userbase. In particular for the non-crypto-native individuals that are onboarding onto crypto solely to buy and hold Glo Dollar, who currently need to also understand and invest in gas tokens. Removing this point of friction would make Celo the natural chain of choice for Glo Dollar users who are interacting with crypto for the first time.

Now that the Celo builder ecosystem is increasingly embracing Glo Dollar we think the timing is right to start a discussion on adding Glo Dollar as a gas token for Celo.

Before we invest in the technical requirements we’d love to first get a sense for if the community is supportive.

Aside from this, we would appreciate some guidance on the best approach regarding price oracles:

  1. Is the GoodDollar approach to an oracle still viable? Seems like G$ is not a whitelisted fee currency at the moment
  2. Can we replicate Mento’s oracle strategy for stables such as cCOP and PUSO which rely on FX based oracles rather than onchain metrics
  3. Are there other methods we should consider?

Looking forward to hearing what the community thinks!

5 Likes

Hi everyone,

As a follow-up to this post please find a draft proposal for adding Glo Dollar as a gas token below. Note that we have not yet added the creditGasFees and debitGasFees methods to the current smart contracts - these will be deployed after a positive initial discussion with the community.

Overview

This proposal seeks support for adding Glo Dollar as a gas fee currency on Celo.

Proposed Changes

  1. Mapping CELO/cUSD rate to CELO/USDGLO
  • Destination: SortedOracles.setEquivalentToken
  • Data: address token = USDGLO address (0x4f604735c1cf31399c6e711d5962b2b3e0225ad3), address equivalentToken = cUSD address (0x765DE816845861e75A25fCA122bb6898B8B1282a)
  • Value: 0
  1. Enable USDGLO as gas currency
  • Destination: FeeCurrencyWhitelist.addToken
  • Data: address token = USDGLO tokenAddress = USDGLO address (0x4f604735c1cf31399c6e711d5962b2b3e0225ad3)
  • Value: 0

Useful Links

1 Like