-
Notifications
You must be signed in to change notification settings - Fork 237
About Real Time Balance
Miao ZhiCheng edited this page Jun 15, 2022
·
7 revisions
(NB!! This is a work in progress notes)
- Real-time balance: vector of liquidity.
- Current vector components:
- transferable liquidity (TBA, CFA, GDA, DFA),
- buffer (CFA),
- withheld liquidity (GDA),
- app credit (Buffer Based Solvency).
- Current vector components:
- Sum of all agreement provided real-time balances.
- TBA (Transferable Balance Agreement) is not an agreement
- "Settled balance" is a shared storage for:
- TBA:
C
, - and all constant components of agreement provided real-time balances
- CFA account:
flowRate * time + C
- IDA subscriber:
for s in subs: (s.index.indexValue - s.indexValue) * s.units + C
- IDA publisher:
for i in indexes: i.indexValue * i.totalUnits + C
- CFA account:
- TBA:
- Buffer Logic:
- :Current Logic
- Clipping is used to store 96 bits as 64 bits
- CFA: round-up clipping for calculating flow buffer.
CLIPPED_MINIMUM_BUFFER = 2**32
Ba = bufferAmount(Fa)
App Credit Rule a:
AppCredit/AppAllowance <= Ba
App Credit Rule b:
## Case 1
Fb + Fc = Fa
Bb = bufferAmount(Fb)
Bc = bufferAmount(Fc)
Worst case:
Bb + Bc = Ba + 2 * (CLIPPED_MINIMUM_BUFFER-1)
## Case 2
Fb + Fc < Fa
- Governance Overview
- For Contributors
- Development Process
- Protocol EVMv1 Operations
- Protocol EVMv1 Technical Notes
- Protocol EVMv1 Core Subgraph