Skip to content

GhoSavingStrategy

Source: src/strategies/GhoSavingStrategy.sol — deployed at 0xC539fDB4028c3899D6200BcD7805c5D30e7Abc1c for AAVE GHO Saving.

Legacy adapter

Since October 2026 GHO Saving's primary adapter is GhoSavingFluidStrategy, which swaps USDC ↔ GHO on the Fluid DEX pool. This GSM-route strategy remains attached to the vault and still holds part of the position; the Controller's liquidity waterfall uses every attached strategy pro rata. The description below is unchanged and still applies to this contract.

GhoSavingStrategy extends BaseERC4626Strategy with the target vault set to Aave sGHO. Because sGHO is denominated in GHO while the King's Vault is denominated in USDC, the strategy wraps every entry and exit in a conversion route through Aave V3 and the GHO Stability Module (GSM). Users never hold GHO or sGHO; they hold King's Vault shares.

Before integration or administration, verify the listed signatures and permissions against the deployed implementation and its verified source. See Documentation scope and verification.

Dependencies (Ethereum Mainnet)

Role in route Contract Address
Target ERC-4626 vault (ERC4626_VAULT) Aave sGHO 0xE1753F2e00940cC31213dd92013cF019DFE4ca1d
GHO ↔ waEthUSDC swap (GSM) Aave GSM (USDC, ERC-4626 variant) 0x3A3868898305f04beC7FEa77BecFf04C13444112
aEthUSDC wrapper (STAT_ATOKEN) Aave waEthUSDC (static aToken) 0xD4fa2D31b7968E448877f69A96DE69f5de8cD23E
USDC supply / withdraw (POOL) Aave V3 Pool 0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2
GHO GHO token (read from GSM.GHO_TOKEN()) —

All of these are returned by the AddressBook library (aaveSavingGho(), aaveGsmUsdc(), waEthUsdc(), aavev3()); see Interfaces & Libraries.

Conversion Route

Invest (USDC → sGHO) — _swapToGho then BaseERC4626Strategy.invest:

  1. Pool.supply(USDC) → aEthUSDC
  2. StataToken.depositATokens(aEthUSDC) → waEthUSDC
  3. GSM.sellAsset(waEthUSDC) → GHO (GSM sell fee applies; currently 0)
  4. sGHO.deposit(GHO) → sGHO shares held by the strategy

Divest / Replenish / Exit (sGHO → USDC) — _trySwapToUsdc:

  1. sGHO.withdraw(gho) → GHO to the strategy
  2. GSM.buyAsset(waEthUSDC) — pays GHO, receives waEthUSDC (GSM buy fee applies, currently 15 bps, borne by the vault)
  3. StataToken.redeemATokens(waEthUSDC) → aEthUSDC
  4. Pool.withdraw(USDC, max, receiver) → USDC directly to the vault

Single exit route

Step 2 of the exit route requires the GSM to hold enough waEthUSDC to sell back. The strategy has no alternative route (no DEX fallback) and no slippage parameter. If the GSM cannot fill the order, divest and replenish revert with ExitFailed, and a synchronous user withdrawal that needs the liquidity waterfall fails with InsufficientStrategyAssets. For the share of the position held by this adapter, a withdrawal that needs it therefore depends on GSM inventory; the Controller's waterfall serves the rest through the Fluid adapter, and the Keeper can restore liquidity for this share by pre-filling the GSM in the same transaction as Controller.fundDivest (the GhoGsmLiquidityHelper). See GHO Saving withdrawals.

Functions

Constructor: (address asset_, address receiver_, address owner_, address vault_, address pool_, address statatoken_, address gsm_). The base constructor is called with GSM.GHO_TOKEN() as the ERC-4626 asset (GHO), while asset() is overridden to return USDC.

Function Access Description
POOL(), STAT_ATOKEN(), GSM(), GHO(), ERC4626_VAULT() public view Immutable route dependencies.
asset() public view Returns USDC (not GHO).
totalAssets() public view sGHO shares → GHO (previewRedeem) → waEthUSDC (GSM.getAssetAmountForBuyAsset, net of GSM buy fee) → USDC (StataToken.previewRedeem). Reports the net USDC recoverable through the GSM route, not gross GHO value. Loose GHO / waEthUSDC balances held by the strategy are not counted.
invest(uint256 amount) Keeper Converts amount USDC to GHO via the invest route and deposits into sGHO.
divest(uint256 amount) Keeper amount in USDC. Quotes the GHO needed via GSM.getGhoAmountForBuyAsset, withdraws that GHO from sGHO, runs the exit route to the vault. Returns min(amount, usdcReceived).
replenish(uint256 amount) Keeper Same as divest; used by the Controller liquidity waterfall.
exit(bool ignore) Keeper Redeems all sGHO to GHO and runs the exit route. With ignore = true conversion failures are swallowed and GHO / waEthUSDC may remain in the strategy; recover them with harvest.
harvest(IERC20 asset_) Keeper Inherited. Sweeps any token except sGHO shares (e.g. stranded GHO or waEthUSDC) to receiver().

The strategy emits no events of its own.

Accounting Notes

  • Yield comes from the sGHO share-to-GHO exchange rate; it is reflected in totalAssets() and therefore in the King's Vault NAV after settlement.
  • GSM fees (sell on entry, buy on exit) and any GHO/USDC price difference inside the GSM are borne by the vault and shared by all share holders; they are separate from the King's Vault performance fee (see Fees).
  • Merit / Merkl rewards accruing to sGHO holders are King's Vault protocol income and are excluded from user NAV and APY.