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

Negative quantities of a resource #59

Open
pral2a opened this issue Sep 7, 2021 · 3 comments
Open

Negative quantities of a resource #59

pral2a opened this issue Sep 7, 2021 · 3 comments

Comments

@pral2a
Copy link

pral2a commented Sep 7, 2021

After transferring the totality of an economicResource to a new agent it is still possible to perform further economicEvent (i.e. transfer something it doesn't exist) even if the economicResource has 0 units.

The qty. goes negative but the user is not informed during the creation of the economicEvent.

If this needs to be understood as a form of debt in Value Flows I think the implementation should be more explicit.

@fosterlynn
Copy link

Hi, Lynn from Valueflows here, hoping to be helpful. :)

Speaking from a general point of view, not for your specific requirements: This could be valid for 2 possible reasons:

  1. In some use cases, like mutual credit, negative balance is valid. But of course not all use cases.
  2. In distributed technologies especially, there might be some race conditions where events come through in the wrong order, but actually don't create a negative balance in real life.

But, your point about documentation is well taken, thank you.

@sbocconi
Copy link

sbocconi commented Sep 8, 2021

Hi @fosterlynn, should not a economicResource that becomes negative be represented by something like a debt or a commitment?

It sounds as if the concept resource is not compatible with negative quantities? Especially in a track and trace scenario, this might lead to the wrong path for a resource, or to a split (the same resource existing in different situations, such as owner, location, etc.)

@pral2a
Copy link
Author

pral2a commented Sep 8, 2021

Hi, @fosterlynn thanks for your answer!

We perfectly understand the reasoning behind it from the Value Flows vocabulary point of view. Our comment is more on the line we think Zen Pub should be more explicit in the way it enforces the vocabulary as a way to facilitate and not only record a particular transaction. In particular when it involves two parties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants