Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulate a Settlement #1329

Open
Tymmmy opened this issue Apr 25, 2024 · 0 comments
Open

Simulate a Settlement #1329

Tymmmy opened this issue Apr 25, 2024 · 0 comments
Assignees
Labels
package: wallet/backend Wallet backend implementations package: wallet/frontend Wallet frontend implementations

Comments

@Tymmmy
Copy link
Contributor

Tymmmy commented Apr 25, 2024

Context

We should simulate a settlement between two peering agreements.
For example we could generate a pdf or send an email/invoice to the peer that needs to settle, with the amount that they need to send to the other peer.
After invoice is 'paid' the liquidity in Rafiki should be topped up.

  • Cluj workshop discussions on this diagramm
image

Basically there is a settlement between providers, and sometimes one end of the settlement is in minus, so they need to top up their liquidity in order for the settlement to be correct.

Example - there is a settlememnt between Rafiki.money and Gatehub, a peer agreement of 5000$.
There could be a weekly settlement reminder email, to settle the agreed amount. How would this work?
If Gatehub is receiving liquidity, and the settlement is down to 1000$, then Rafiki.Money needs to generate invoice for $4000 and then deposit the received amount.
If Gatehub is sending liquidity and the settlement is up to 8000$, there is no need to generate invoice, but we need to withdraw $3000 from peer liquidity.

More info should be discussed with team.

@Tymmmy Tymmmy added package: wallet/frontend Wallet frontend implementations package: wallet/backend Wallet backend implementations labels Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: wallet/backend Wallet backend implementations package: wallet/frontend Wallet frontend implementations
Projects
Status: Backlog
Development

No branches or pull requests

2 participants