Skip to content

Commit 6039ea7

Browse files
committed
Update check balance flow diagram
1 parent 4e57495 commit 6039ea7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • contracts/contracts/strategies/crosschainV3

contracts/contracts/strategies/crosschainV3/FLOWS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,8 @@ sequenceDiagram
805805
AdapterEth->>Remote: receiveMessage(Remote, 0, 0, payload)
806806
Note over AdapterEth,Remote: params: sender = Remote, token = address(0), amountReceived = 0<br/>payload = packPayload(BALANCE_CHECK_REQUEST, N, body)
807807
Remote->>Remote: _yieldOnlyBaseline()
808-
Note over Remote: yieldBaseline = _viewCheckBalance() - bridgeAdjustment, clamped to 0<br/>clamp only covers tiny 4626 rounding dust
808+
Note over Remote: viewCheckBalance = value of held wOETH shares + idle OETH + idle WETH scaled to OETH + queued withdrawal value
809+
Note over Remote: yieldBaseline = viewCheckBalance - bridgeAdjustment, clamped to 0<br/>clamp only covers tiny 4626 rounding dust
809810
Note over Remote: srcTimestamp = timestamp from request body<br/>body = encode(yieldBaseline, srcTimestamp)<br/>payload = packPayload(BALANCE_CHECK_RESPONSE, N, body)
810811
Remote->>SuperEth: quoteFee(address(0), 0, payload)
811812
SuperEth-->>Remote: fee, feeToken = native, requiresExternalPayment = true

0 commit comments

Comments
 (0)