Skip to content

Commit

Permalink
docs: move status manager state diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
0xpatrickdev committed Nov 22, 2024
1 parent ea6b768 commit fadbf2e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
26 changes: 26 additions & 0 deletions packages/fast-usdc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,29 @@ sequenceDiagram
A->>TF: notify(evidence)
```

# Status Manager

### Contract state diagram

*Transactions are qualified by the OCW and EventFeed before arriving to the Advancer.*

```mermaid
stateDiagram-v2
[*] --> Advanced: Advancer .advance()
Advanced --> Settled: Settler .settle() after fees
[*] --> Observed: Advancer .observed()
Observed --> Settled: Settler .settle() sans fees
Settled --> [*]
```

### Complete state diagram (starting from OCW)

```mermaid
stateDiagram-v2
Observed --> Qualified
Observed --> Unqualified
Qualified --> Advanced
Advanced --> Settled
Qualified --> Settled
```
26 changes: 0 additions & 26 deletions packages/fast-usdc/src/exos/README.md

This file was deleted.

0 comments on commit fadbf2e

Please sign in to comment.