Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified contracts/docs/plantuml/oethContracts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 10 additions & 15 deletions contracts/docs/plantuml/oethContracts.puml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ object "OETHFixedRateDripper" as drip <<Origin>><<Proxy>> #$originColor {
asset: WETH
}

' object "OETHVaultValueChecker" as checker <<Origin>> #$originColor {
' }
object "OETHVaultValueChecker" as checker <<Origin>> #$originColor {
}

object "WOETH" as woeth <<Origin>><<Proxy>> #$originColor {
asset: OETH
Expand All @@ -51,12 +51,12 @@ object "OETHHarvesterSimple" as harv <<Origin>><<Proxy>> #$originColor {
}

' Strategies
object "ConvexEthMetaStrategy" as cvxStrat <<Origin>><<Proxy>> #$originColor {
asset: WETH
Curve metapool: OETHCRV-f
Convex pool: cvxOETHCRV-f
Rewards: CRV, CVX
}
'object "ConvexEthMetaStrategy" as cvxStrat <<Origin>><<Proxy>> #$originColor {
' asset: WETH
' Curve metapool: OETHCRV-f
' Convex pool: cvxOETHCRV-f
' Rewards: CRV, CVX
'}

object "CurveAMOStrategy" as amoStrat <<Origin>><<Proxy>> #$originColor {
asset: WETH
Expand Down Expand Up @@ -180,8 +180,8 @@ arm ..> oethv
' drip .....> weth
oethv <.> drip

' checker ..> oeth
' checker ..> oethv
checker ..> oeth
checker ..> oethv

oethv <.. harv
drip <.. harv
Expand All @@ -194,11 +194,6 @@ oeth <.> oethv
' oethv ..> oracle
' oracle ...> chain

' Convex ETH Metapool Strategy
harv <..> cvxStrat
oethv <...> cvxStrat
oeth <... cvxStrat

' Curve AMO Strategy
harv <..> amoStrat
oethv <...> amoStrat
Expand Down
Binary file modified contracts/docs/plantuml/ousdContracts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 1 addition & 49 deletions contracts/docs/plantuml/ousdContracts.puml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

title "Origin USD Contract Dependencies"

object "Dripper" as drip <<Origin>><<Proxy>> #DeepSkyBlue {
asset: USDT
}

object "VaultValueChecker" as checker <<Origin>> #DeepSkyBlue {
}

Expand All @@ -21,24 +17,10 @@ object "OUSD" as ousd <<Origin>><<Proxy>> #DeepSkyBlue {
}

object "Vault" as vault <<Origin>><<Proxy>> #DeepSkyBlue {
assets: USDS, USDC, USDT
}

object "Harvester" as harv <<Origin>><<Proxy>> #DeepSkyBlue {
rewards: CRV
}

object "Buyback" as buy <<Origin>><<Proxy>> #DeepSkyBlue {
swap OUSD for OGV
assets: USDC
}

' Strategies
' object "ConvexStrategy" as cvxStrat <<Origin>><<Proxy>> #DeepSkyBlue {
' asset: DAI, USDC, USDT
' Curve pool: 3Pool (3CRV)
' Convex pool: DAI+USDC+USDT
' rewards: CRV, CVX
' }
object "Morpho Steakhouse USDC\nStrategy" as steakUSDC <<Origin>><<Proxy>> #DeepSkyBlue {
asset: USDC
Morpho vault: steakUSDC
Expand All @@ -49,59 +31,29 @@ object "Morpho Gauntlet Prime USDC\nStrategy" as gtUSDC <<Origin>><<Proxy>> #Dee
Morpho vault: gtUSDC
rewards: MORPHO
}
object "Morpho Gauntlet Prime USDT\nStrategy" as gtUSDT <<Origin>><<Proxy>> #DeepSkyBlue {
asset: USDT
Morpho vault: gtUSDT
rewards: MORPHO
}
object "Curve USDC AMO\nStrategy" as curveAmoStrat <<Origin>><<Proxy>> #DeepSkyBlue {
asset: USDC
Curve pool: OUSD/USDC
rewards: CRV
}

object "Sky Saving Rate (SSR)\nStrategy" as ssrStrat <<Origin>><<Proxy>> #DeepSkyBlue {
asset: USDS
vault: sUSDS
}

' Oracle
object "OracleRouter" as oracle <<Origin>> #DeepSkyBlue {
pairs:
USDT/USD
USDC/USD
USDS/USD
CRV/USD
}

vault <. drip

checker ..> ousd
checker ..> vault

vault <.. harv

wousd ..> ousd
ousd <.> vault
vault ..> oracle

buy .> ousd

' Strategies
' vault <...> aaveStrat
' vault <...> amoStrat
vault <...> ssrStrat
vault <...> steakUSDC
vault <...> gtUSDC
vault <...> gtUSDT
vault <...> curveAmoStrat

drip <.. harv
' harv <..> amoStrat
harv <...> ssrStrat
harv <...> steakUSDC
harv <...> gtUSDC
harv <...> gtUSDT
harv <...> curveAmoStrat

@enduml
Loading