Skip to content

Commit

Permalink
Updated OETH contracts diagram with new Harvester
Browse files Browse the repository at this point in the history
Updated OETH process diagram with new Harvester
  • Loading branch information
naddison36 committed Jan 30, 2025
1 parent b1fa829 commit 5462d22
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
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.
10 changes: 3 additions & 7 deletions contracts/docs/plantuml/oethContracts.puml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,8 @@ object "OETH Vault" as oethv <<Origin>><<Proxy>> #$originColor {
asset: WETH
}

object "OETHHarvester" as harv <<Origin>><<Proxy>> #$originColor {
rewards: WETH
}

object "OETHHarvesterSimple" as harvSimple <<Origin>> #$originColor {
rewards: CRV, CVX
object "OETHHarvesterSimple" as harv <<Origin>> #$originColor {
rewards: WETH, CRV, CVX
}

' Strategies
Expand Down Expand Up @@ -182,7 +178,7 @@ oeth <.> oethv
' oracle ...> chain

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

Expand Down
Binary file modified contracts/docs/plantuml/oethProcesses-rewards.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified contracts/docs/plantuml/oethProcesses.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion contracts/docs/plantuml/oethProcesses.puml
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ end group

group Harvester collects ETH rewards

sender -> harv : harvestAndSwap(\nstrtaegy)
sender -> harv : harvestAndTransfer(\nstrategy)
activate harv
harv -> nativeStrat : collectRewardTokens()
activate nativeStrat
Expand All @@ -334,6 +334,12 @@ note left : transfer rewards as WETH\nfrom Native Staking Strategy\nto Harvester
return

return

harv -> weth : transfer(\nDripper,\nETH rewards)
activate weth
note left : transfer WETH rewards\nfrom Harvester\nto Dripper
return

return

end group
Expand Down

0 comments on commit 5462d22

Please sign in to comment.