SommelierTurboGHOStrategy
Overview
The SommelierTurboGHOStrategy contract is a strategy that supplies tokens into a Sommelier Vault to earn yield, with specific handling for GHO token conversions through Uniswap V3.
Constants
Functions
Initialization Functions
initialize
Initializes the strategy with required components.
Parameters:
_vault
: MaxApy vault address_keepers
: Array of keeper addresses_strategyName
: Name of the strategy_strategist
: Strategist address_cellar
: Sommelier cellar address
Core Functions
liquidateExact
Withdraws exactly amountNeeded to vault.
Parameters:
amountNeeded
: Amount to withdraw
Returns:
loss
: Amount of realized loss
Internal Core Functions
_divest
Withdraws assets from Cellar Vault.
Parameters:
shares
: Amount of shares to withdraw
Returns:
withdrawn
: Amount of assets received
_swapGho
Swaps GHO tokens to underlying using Uniswap V3.
Parameters:
amountIn
: Amount of GHO to swap
Returns:
Amount received after swap
Internal View Functions
_ghoBalance
Returns the contract's GHO balance.
Returns:
Current GHO balance
Last updated