Skip to content

About App Credit

Miao ZhiCheng edited this page Jun 15, 2022 · 10 revisions
  • objective: zero balance super app requirement for reasonable cases.
  • benchmark case: 1to1 flow forwarding.

App Credit Logic in CFA

  • It is called appAllowanceBase.

App Credit Lending Rule A

The same as the flow buffer.

Problem: 1:N flow forwarding issue

  • when N > 1, app may not have enough app credit to create those flows

  • :Possible fix 1: new App Credit Lending Rule B

    • Each time app create a flow, an additional minimum buffer could be borrowed form the user in addition to the rule A.
    • This way it ensures the app can always create a flow.
    • It abandons the objective that the app now could shoot itself in the foot even in a 1to1 flow forwarding case.
  • :Possible fix 2: Tweak Rule A

    • App created streams use round-down clipping for calculating flow buffer.
    • Need a Math proof that, the rounded-up-clipped flow buffer can be used by N-split input flow with rounded-down-clipped flow buffers.
    • Need to solve the minimum buffer economic cost case.
Clone this wiki locally