Skip to content

General Distribution Agreement

Miao ZhiCheng edited this page Oct 3, 2023 · 19 revisions

Overview

GDA (General Distribution Agreement) generalizes the Instant Distribution Agreement by offering many-to-many constant flow distribution in addition to the one-to-many instant distribution.

GDA is implemented using the Superfluid agreement framework, however it does not currently provide #Lack-of Callback Support unlike the IDA.

Major Design Choices

Code base Style

Usage of Semantic Money Library (Limited Functional Programming)

(miao)

Code Structure

(vincent)

Superfluid Pool

(vincent)

Separation of Superfluid Pool

(Comparing to IDA's embedded index design)

Many-to-many Distribution Support

Superfluid Pool is Token-Specific

Lack-of Cascading Superfluid Pool Support

Edge case:

  • Generally, there exist a nanny-rule that one cannot update units of pool A for another existing pool. However, one can still create some units of pool A for pool B before the pool B is created.

Solvency Mechanism

Lack-of 3P Support

Misc

Adjustment Flow

(miao)

Lack-of Callback Support

(miao)

References

Clone this wiki locally