Virtual currency non-logical behaviour?

Hey everyone,

I got really far into my app with quite complex functionalities and setups (also thanks to a few members of this community that helped me on another issue I had)

For my amateur soccer league app, every player has his own wallet with a virtual currency called “UNO points” . It is of course at the basis just a “number” field from user’s data on which I put worfklows.

One of the functions is the “transfer” , players can transfer their uno points to any other user, workflow looks quite simple for that :

when “confirm” button is clicked => makes changes to a thing
=> thing to change " current user"
Field to change => solde UNO = current user’s solde UNO - input transfers amount’s value

Right? this one works like a charm, but for some reason I don’t get, for the user that must receives this transfer, it doesnt work

Workflow (on the same “when confirm button is clicked”)
Makes changes to a thing : “search input’s value” or “search for user:first item” with “same ID” as the only constraint
Field to change => solde UNO = this user’s solde UNO + input transfert’s value

this user is well targeted, but his wallet always become the value of “input transfer’s value” without taking in account the value already present in “solde UNO” for this user

That means if I send him 500 points, my account goes from 1000 to 500 points and that’s correct, but the user that receives this transfer will have a wallet of “500 points” , whatever was his wallet’s amount.

If I press multiple times “confirm” for these 500 points, the sender’s wallet will keep subtracting 500 points, which is the correct behaviour I am expecting

But the receiver will stay at 500 points, so I guess the behaviour for the receiver is “replace this wallet’s amount with input transfer’s value” and this is not the correct behaviour

I really tried to see this from different angles but I really am lost here on what am I doing wrong. This is frustrating because it is one of the last steps for me to 100% finish this app which I am so proud of…

Thank u in advance if you read it all and a major thank u if u have a solution for me
Cheers guys

Screenshots :



This should be Solde UNO = Search for Users:first item + input value no?

Hey @jefeoliveira22 thanks for the reply, I tried it already (and tried once again right now to be sure) but behaviour stays the same… This user (receiver)'s wallet amount always becomes “input value” while the sender’s wallet is updated the right way :frowning:

Thats weird… well first of all i whould add a conditional to your confirm button to check if the sender has points first, also change conditional from is 0 to < 1
Then i whould execute these changes without conditionals, i dont think you need to check twice.
Also on your input field, make sure to add a minimum amout cap to 0 or greater, negative numbers in input fields can register positive values in a database calculation lol

I have tried all of this and had no changes, then I don’t know why I tought about “privacy” settings and “auto-binding” option

I chose “auto-binding” on “input transfer” as shown on the screenshot, then on privacy settings I allowed autobinding for “solde UNO” (the wallet points) and now it f**** works, such a pain to solve :smiling_face_with_tear: Thank you very much @jefeoliveira22 for your help !! I hope this can help other people

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.