Skip to content
Merged
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/oethBaseValueFlows-bridging.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/oethBaseValueFlows.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 30 additions & 24 deletions contracts/docs/plantuml/oethBaseValueFlows.puml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ participant "Dripper" as drip <<Origin>> #DeepSkyBlue
participant "SuperOETH /\nWETH" as aeroPool <<Aerodrome>>
end box

box Mainnet
box Ethereum
participant "Strategist" as mainStrategist <<Origin>> #DeepSkyBlue
participant "OETH\nVault" as mainVault <<Origin>> #DeepSkyBlue
participant "Wrapper OETH" as woeth <<Origin>><<WOETH>> #DeepSkyBlue
Expand Down Expand Up @@ -80,11 +80,29 @@ note left : user claims WETH
end


group Strategist moves WETH from Base to Mainnet
group Strategist moves WETH from Base to Ethereum

strategist -> mainStrategist : ETH
note left : Bridge WETH to\nMainnet using\nStargate or Jumper
group BaseBridgeHelperModule.depositWOETHAndBridgeWETH
strategist -> woethStrat : WOETH
note left : deposit bridged WOETH
woethStrat o-> strategist : SuperOETH


' alt redeem from vault
strategist ->x vault : SuperOETH
note left : redeem SuperOETH\nfor WETH
vault -> strategist : WETH
' else swap using Aero pool
' strategist -> aeroPool : SuperOETH
' note left : swap SuperOETH for WETH\nusing Aerodrome Pool
' aeroPool -> strategist : WETH
' end

strategist -> mainStrategist : WETH
note left : Bridge WETH to\nEthereum using CCIP
end group

group EthereumBridgeHelperModule.mintWrapAndBridgeToBase
mainStrategist -> mainVault : WETH
note left : mint OETH using WETH
mainVault o-> mainStrategist : OETH
Expand All @@ -95,29 +113,14 @@ woeth o-> mainStrategist : WOETH

mainStrategist -> strategist : WOETH
note left : bridge WOETH to\nBase using CCIP
end group

strategist -> woethStrat : WOETH
note left : deposit bridged WOETH
woethStrat o-> strategist : SuperOETH

alt redeem from vault
strategist ->x vault : SuperOETH
note left : redeem
vault -> strategist : WETH
else swap using Aero pool
strategist -> aeroPool : SuperOETH
note left : swap SuperOETH for WETH\nusing Aerodrome Pool
aeroPool -> strategist : WETH
end

strategist ->x weth : WETH
note left : unwrap WETH for ETH
weth -> strategist : ETH
end


group Strategist moves WETH from Mainnet to Base
group Strategist moves WETH from Ethereum to Base

group BaseBridgeHelperModule.depositWETHAndBridgeWOETH
strategist -> vault : WETH
note left : mint SuperOETH\nusing WETH
vault o-> strategist : SuperOETH
Expand All @@ -127,8 +130,10 @@ note left : withdraw bridged WOETH
woethStrat -> strategist : WOETH

strategist -> mainStrategist : WOETH
note left : bridge WOETH to\nMainnet using CCIP
note left : bridge WOETH to\nEthereum using CCIP
end group

group EthereumBridgeHelperModule.unwrapRedeemAndBridgeToBase
mainStrategist -> woeth : WOETH
note left : unwrap WOETH for OETH
woeth -> mainStrategist : OETH
Expand All @@ -138,7 +143,8 @@ note left : redeem OETH for WETH
mainVault -> mainStrategist : WETH

mainStrategist -> strategist : WETH
note left : bridge WETH to Base\nusing Superbridge
note left : bridge WETH to Base\nusing CCIP
end group

end

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.
10 changes: 5 additions & 5 deletions contracts/docs/plantuml/ousdContracts.puml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ object "Vault" as vault <<Origin>><<Proxy>> #DeepSkyBlue {
}

' Strategies
object "Morpho Steakhouse USDC\nStrategy" as steakUSDC <<Origin>><<Proxy>> #DeepSkyBlue {
object "Morpho Gauntlet Prime USDC\nStrategy" as gtUSDC <<Origin>><<Proxy>> #DeepSkyBlue {
asset: USDC
Morpho vault: steakUSDC
Morpho vault: gtUSDC
rewards: MORPHO
}
object "Morpho Gauntlet Prime USDC\nStrategy" as gtUSDC <<Origin>><<Proxy>> #DeepSkyBlue {
object "Morpho OUSD v2\nStrategy" as musd <<Origin>><<Proxy>> #DeepSkyBlue {
asset: USDC
Morpho vault: gtUSDC
Morpho vault: mUSD
rewards: MORPHO
}
object "Curve USDC AMO\nStrategy" as curveAmoStrat <<Origin>><<Proxy>> #DeepSkyBlue {
Expand All @@ -51,8 +51,8 @@ ousd <.> vault
vault ..> oracle

' Strategies
vault <...> steakUSDC
vault <...> gtUSDC
vault <...> musd
vault <...> curveAmoStrat


Expand Down
Loading