Skip to content

Commit 44e20da

Browse files
authored
docs: Add docs for remote facilitator setup (#12)
* docs: Add docs for remote facilitator setup * fix: lint * fix: update docs * fix: update docs
1 parent e7acb6b commit 44e20da

File tree

3 files changed

+72
-3
lines changed

3 files changed

+72
-3
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ out/
77
/broadcast/*/31337/
88
/broadcast/**/dry-run/
99

10-
# Docs
11-
docs/
12-
1310
# Dotenv file
1411
.env
1512

docs/gho-stewards.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## Overview
2+
3+
These contracts each control different parameters related to GHO and its facilitators. They allow the Aave DAO and an approved Risk Council to change these parameters, according to set rules and configurations.
4+
5+
Each Steward is designed to have a specific set of segregated responsibilities in an effort to avoid having to redeploy the entire original Steward. Instead, only the specific steward whose responsibilities are affected will have to be redeployed.
6+
7+
### [GhoAaveSteward](/src/contracts/misc/GhoAaveSteward.sol)
8+
9+
This Steward manages parameters related to the GHO token. Specifically, it allows the Risk Council to change the following parameters:
10+
11+
- Borrow Rate
12+
- Borrow Cap
13+
- Supply Cap
14+
15+
In addition, the Aave DAO is allowed to change the configuration for the GHO Borrow Rate. This puts restrictions on how much the Risk Council is allowed to change parameters related to the borrow rate. There are 4 parameters that comprise the borrow rate:
16+
17+
- `optimalUsageRatio`
18+
- `baseVariableBorrowRate`
19+
- `variableRateSlope1`
20+
- `variableRateSlope2`
21+
22+
For example, the Aave DAO can specify that the optimalUsageRatio variable may only be changed by 3% at a time.
23+
24+
### [GhoBucketSteward](/src/contracts/misc/GhoBucketSteward.sol)
25+
26+
This Steward allows the Risk Council to set the bucket capacities of controlled facilitators. Additionally, it allows the Aave DAO to add or remove controlled facilitators.
27+
28+
### [GhoCcipSteward](/src/contracts/misc/GhoCcipSteward.sol)
29+
30+
This Steward allows the management of parameters related to CCIP token pools. It allows the Risk Council to update the CCIP bridge limit, and to update the CCIP rate limit configuration.
31+
32+
### [GhoGsmSteward](/src/contracts/misc/GhoGsmSteward.sol)
33+
34+
This Steward allows the Risk Council to update the exposure cap of the GSM, and to update the buy and sell fees of the GSM.
35+
36+
### [RiskCouncilControlled](/src/contracts/misc/RiskCouncilControlled.sol)
37+
38+
This is a helper contract to define the approved Risk Council and enforce its authority to call permissioned functions.

docs/remote-facilitator.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
## Overview
2+
3+
The following section explains how remote facilitators for GHO operate and outlines the contracts involved in the setup.
4+
5+
### [OwnableFacilitator](/src/contracts/facilitators/gsm/OwnableFacilitator.sol)
6+
7+
A minimal facilitator contract with minting and burning capabilities, controlled by a single entity. It must be granted the `Facilitator` role on the GHO token with a defined bucket capacity.
8+
9+
This contract can represent a remote minting strategy: it can mint any amount of GHO liquidity on Ethereum, which is then bridged to a remote chain for future use.
10+
11+
### [GhoReserve](/src/contracts/facilitators/gsm/GhoReserve.sol)
12+
13+
It holds GHO liquidity and allows authorized entities to use it up to a defined limit. It is intended for use on remote chains, where GHO is bridged from Ethereum, locked in this reserve, and later distributed by authorized entities through various strategies.
14+
15+
Instead of granting facilitator rights directly on the GHO token to remote facilitators, they are registered as entities in the `GhoReserve`. This indirection is necessary because GHO can only be minted on Ethereum.
16+
17+
A single `GhoReserve` instance can be shared across multiple remote faciltiators, or each remote facilitator can have a dedicated one. Both setups are functionally equivalent, though the shared approach is simpler.
18+
19+
### Remote Facilitators
20+
21+
Remote facilitators function similarly to those on Ethereum, but the way GHO is brought into circulation differs (since GHO can only be minted on Ethereum). Existing minting strategies such as `GhoDirectMinter` (for distribution via Aave V3 Pools) and GSM (for swapping GHO with exogenous assets) can be adapted as remote facilitators using the following setup:
22+
23+
[On Ethereum]
24+
25+
1. An `OwnableFacilitator` contract is deployed to represent the minting strategy on the remote chain. It is granted the `Facilitator` role on the Ethereum `GhoToken` contract, with a defined bucket capacity X.
26+
2. An amount X of GHO is minted via the `OwnableFacilitator` and bridged to the remote chain (typically via `CCIP`).
27+
28+
[On the Remote Chain]
29+
30+
1. A `GhoReserve` contract is deployed to hold the X GHO bridged from Ethereum. The remote minting strategy is registered as an entity in the `GhoReserve`, granting it permission to use and restore GHO liquidity.
31+
2. The strategy operates using GHO from the `GhoReserve`, following its internal logic and collateralization rules.
32+
3. Unused GHO remains in the `GhoReserve`. If the strategy is deprecated or idle for an extended period, the GHO can be transferred out and bridged back to Ethereum for burning.
33+
34+
Note: A `GhoReserve` can support multiple minting strategies concurrently. It's up to the configuration whether to deploy a dedicated `GhoReserve` per strategy or share a single instance among several.

0 commit comments

Comments
 (0)