/GHOCC

GHOCC is a peg stability and cross-chain GHO Facilitator.

Primary LanguageSolidity

GHO Peg Stability and Cross Chain Facilitator

GHOCC is a GHO Facilitator that is pegged to USDC on Mainnet (Sepolia for the demo), and that also functions as a cross-chain facilitator using Chainlink CCIP.

The following capabilities are available in the GHOCC smart contracts:

  1. paying USDC and receiving an equivalent amount of GHO in return
  2. redeeming the GHO for USDC
  3. transferring the GHO cross-chain using Chainlink CCIP
  4. transferring the GHO back to the source chain (Mainnet or Sepolia)

A fee is charged for swapping USDC for GHO, and for sending GHO cross-chain. The fees are distributable only to the Aave Treasury.

Since only pre-deployed token pools are available at the moment for CCIP on testnets, GHOCC uses a simple message send, with the details of the transfer. It verifies that it came from the approved Facilitator on Sepolia, and if it did, it mints wrapped GHO on Polygon Mumbai.

It is only deployed between Sepolia and Polygon Mumbai for the demo, but if there is demand it could be deployed to any other chain.

Addresses:
Sepolia demo USDC: 0xd702baC2f43eB7B9aAD73b965210b241d873154C
Sepolia demo GHO: 0x57F324D62E8fCfCD64c3dc254a04f7a84363F9ef
Sepolia Facilitator: 0x6eF0D6F8714C570eBc575B39137662bfD8a913CA
Mumbai Receiver: 0x16ffa647315b5c83234c1e3ff0814cf9ea3a7ef9
Mumbai demo GHO: 0xa08690e2d701306A230C3A87551F5542d6c0B988

The code for the UI is available here:
https://github.com/lajosdeme/ghocc-ui