From 70b729f0d3648843847c751bc98b7b09e45f6152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Volpe?= Date: Mon, 18 Mar 2024 18:07:19 +0100 Subject: [PATCH] Proposal to enable USDC as gas currency --- CGPs/cgp-0127.md | 53 ++++++++++++++++++++++++++++++++++++++ CGPs/cgp-0127/mainnet.json | 19 ++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 CGPs/cgp-0127.md create mode 100644 CGPs/cgp-0127/mainnet.json diff --git a/CGPs/cgp-0127.md b/CGPs/cgp-0127.md new file mode 100644 index 00000000..1001b56e --- /dev/null +++ b/CGPs/cgp-0127.md @@ -0,0 +1,53 @@ +--- +cgp: 127 +title: Enable USDC as Gas Currency +date-created: 0000-00-00 - +author: Martín Volpe (@martinvol), Pavel Hornak (@pahor167) +status: Proposed +Discussions-to: https://forum.celo.org/t/path-towards-making-usdc-a-gas-currency/7385/2 +governance-proposal-id: 168 +date-executed: TBD +--- + +## Overview + +This proposal adds support of USDC on Celo as a gas fee currency. + +Recently, Circle (announced)[https://www.circle.com/blog/what-you-need-to-know-native-usdc-is-launching-on-celo] their plan to deploy native USDC on Celo. USDC is a fully reserved digital dollar, also known as a stablecoin, that’s 100% backed by cash and cash-equivalent assets so that it’s always redeemable 1:1 for US dollars. USDC is one of the largest and most widely used stablecoins with over $24B in circulation as of November 2023.1 + +One of the key features of Celo is the support for users to use stablecoins to pay gas fees. This simplifies the transaction experience by eliminating the need for the user to acquire and hold specific tokens in order to pay for gas. Therefore, in addition to bringing native USDC to Celo, Celo would like to propose enabling USDC as a gas currency for the Celo blockchain. We believe that USDC as a gas currency represents a great opportunity to onboard new users to Celo, by having a simplified user experience for payments and financial transactions powered by one of the most trusted stablecoins as a gas token. With this, users would be able to use their USDC to start transacting right away, without having to get another token. + + +## Proposed Changes + +Fill out the following template for each transaction in the proposal. + +1. Mapping CELO/cUSD rate to CELO/USDC + - Destination: SortedOracles.setEquivalentToken + - Data: address token = USDC Adpter address (`0x2F25deB3848C207fc8E0c34035B3Ba7fC157602B`), address equivalentToken = cUSD address (`0x765DE816845861e75A25fCA122bb6898B8B1282a`) + - Value: 0 +2. Enable USDC as gas currency + - Destination: FeeCurrencyWhitelist.addToken + - Data: address token = adpter tokenAddress = USDC Adpter address (`0x2F25deB3848C207fc8E0c34035B3Ba7fC157602B`) + - Value: 0 + +## Verification + +To fetch che proposal on-chain, query the proposal with the latest Celo CLI version: + +`$ celocli governance:show --proposalID 168 --node https://forno.celo.org` + +The two key addresses to verify are: +* USDC adapter address: This is a contract deployed by Circle that enables compatibility with Celo 18 decimals standard. +* cUSD address: Can be queried with `celocli network:contracts -n https://forno.celo.org`. It is called "StableToken". The contract is verified on CeloScan: https://celoscan.io/address/0x2F25deB3848C207fc8E0c34035B3Ba7fC157602B#code + +## Risks + +This proposal is considered low risk as USDC is considered a very stable token with deep liquidity. Additionally, there is precedent for dollar stablecoins being used as gas currencies in Celo, with cUSD (which is backed by bridged USDC among other tokens). + + +## Useful Links + +* Circle website: https://www.circle.com/en/ +* Circle USDC announcement: https://www.circle.com/blog/what-you-need-to-know-native-usdc-is-launching-on-celo +* Forum post: https://forum.celo.org/t/path-towards-making-usdc-a-gas-currency/7385/2 \ No newline at end of file diff --git a/CGPs/cgp-0127/mainnet.json b/CGPs/cgp-0127/mainnet.json new file mode 100644 index 00000000..e965857f --- /dev/null +++ b/CGPs/cgp-0127/mainnet.json @@ -0,0 +1,19 @@ +[ + { + "contract": "SortedOracles", + "function": "setEquivalentToken", + "args": [ + "0x2F25deB3848C207fc8E0c34035B3Ba7fC157602B", + "0x765DE816845861e75A25fCA122bb6898B8B1282a" + ], + "value": "0" + }, + { + "contract": "FeeCurrencyWhitelist", + "function": "addToken", + "args": [ + "0x2F25deB3848C207fc8E0c34035B3Ba7fC157602B" + ], + "value": "0" + } +] \ No newline at end of file