Open 5-mark opened 2 years ago
Assumption that GameDAO Treasury is 3YmHCgQ3dNa1jib4fidr3bZxZshfnPMCsQYkoijCW65EG4bt
Before creating a DAO: | ||||
---|---|---|---|---|
WALLET | TOTAL | TRANSFERRABLE | LOCKED | RESERVED |
ZERO1 (Controller) | 29.9899 | 18.9889 | 0 | 11.0010 |
ZERO2 (Treasury) | 13.9999 | 7.9999 | 0 | 5.9999 |
ZERO3 (Member) | 15.9999 | 0 | 0 | 15.9999 |
POLKA (Not a member) | 505.9195 | 348.2122 | 10.0000 | 147.7073 |
GameDAO Treasury | 7,047.1273 | 115.7480 | 6,196.2777 | 735.1014 |
After creating a DAO: | ||||
---|---|---|---|---|
WALLET | TOTAL | TRANSFERRABLE | LOCKED | RESERVED |
ZERO1 (Controller) | 28.9799 | 17.9789 | 0 | 11.0010 |
ZERO2 (Treasury) | 14.9999 | 8.9999 | 0 | 5.9999 |
ZERO3 (Member) | 15.9999 | 15.9999 | 0 | 0 |
POLKA (Not a member) | 505.9195 | 348.2122 | 10.0000 | 147.7073 |
GameDAO Treasury | 7,047.1273 | 115.7480 | 6,196.2777 | 735.1014 |
1 ZERO was taken from Controller and transferred as a fee to the Treasury.
After joining with ZERO3 | ||||
---|---|---|---|---|
WALLET | TOTAL | TRANSFERRABLE | LOCKED | RESERVED |
ZERO1 (Controller) | 28.9799 | 17.9789 | 0 | 11.0010 |
ZERO2 (Treasury) | 15.9999 | 9.9999 | 0 | 5.9999 |
ZERO3 (Member) | 14.9999 | 14.9999 | 0 | 0 |
POLKA (Not a member) | 505.9195 | 348.2122 | 10.0000 | 147.7073 |
GameDAO Treasury | 7,047.1273 | 115.7480 | 6,196.2777 | 735.1014 |
1 ZERO was taken from Member (ZERO3) and transferred as a fee to the Treasury.
After creating Campaign: | ||||
---|---|---|---|---|
WALLET | TOTAL | TRANSFERRABLE | LOCKED | RESERVED |
ZERO1 (Controller) | 28.9799 | 17.9789 | 0 | 11.0010 |
ZERO2 (Treasury) | 15.9999 | 9.9999 | 0 | 5.9999 |
ZERO3 (Member) | 14.9999 | 14.9999 | 0 | 0 |
POLKA (Not a member) | 505.9195 | 348.2122 | 10.0000 | 147.7073 |
GameDAO Treasury | 7,047.1273 | 115.7480 | 6,196.2777 | 735.1014 |
no changes
After funding Campaign: | ||||
---|---|---|---|---|
WALLET | TOTAL | TRANSFERRABLE | LOCKED | RESERVED |
ZERO1 (Controller) | 28.9799 | 17.9789 | 0 | 11.0010 |
ZERO2 (Treasury) | 15.9999 | 9.9999 | 0 | 5.9999 |
ZERO3 (Member) funds 5.0 | 14.9999 | 9.9999 | 0 | 5.0000 |
POLKA (Not a member) funds 5.0 | 505.9195 | 343.2122 | 10.0000 | 152.7073 |
GameDAO Treasury | 7,047.1273 | 115.7480 | 6,196.2777 | 735.1014 |
ZERO3 & POLKA are funding 5 ZERO and 5 ZERO get reserved for each wallet and are deducted from transferrable.
After Campaign expired & successful: | ||||
---|---|---|---|---|
WALLET | TOTAL | TRANSFERRABLE | LOCKED | RESERVED |
ZERO1 (Controller) | 38.9799 | 27.9789 | 0 | 11.0010 |
ZERO2 (Treasury) | 25.9999 | 9.9999 | 0 | 15.9999 |
ZERO3 (Member) funded 5.0 | 4.9999 | 4.9999 | 0 | 0 |
POLKA (Not a member) funded 5.0 | 495.9195 | 343.2122 | 10.0000 | 142.7073 |
GameDAO Treasury | 7,047.1273 | 115.7480 | 6,196.2777 | 735.1014 |
This is very odd:
Controller gets +10ZERO transferrable
Treasury gets +10ZERO transferrable
(in total 20 instead of 10)
ZERO3 gets 10 away from transferrable and 5 away from reserved (in total 10)
POLKA gets 10 away from transferrable and 10 aware from reserved (in total 10)
Error is that ZERO3 & POLKA funded each 5 but get deducted each 10 and Controller account gets +10 and Treasury also gets +10. Only Treasury should get +10 and ZERO3 & POLKA should get -5 each.
After proposal for withdrawal is voted yes and before expiry | ||||
---|---|---|---|---|
WALLET | TOTAL | TRANSFERRABLE | LOCKED | RESERVED |
ZERO1 (Controller) | 38.9799 | 27.9789 | 0 | 11.0010 |
ZERO2 (Treasury) | 25.9999 | 9.9999 | 0 | 15.9999 |
ZERO3 (Member) funded 5.0 | 4.9999 | 4.9999 | 0 | 0 |
POLKA (Not a member) funded 5.0 | 495.9195 | 343.2122 | 10.0000 | 142.7073 |
GameDAO Treasury | 7,047.1273 | 115.7480 | 6,196.2777 | 735.1014 |
no changes
After proposal voted with yes is expired | ||||
---|---|---|---|---|
WALLET | TOTAL | TRANSFERRABLE | LOCKED | RESERVED |
ZERO1 (Controller) | 38.9799 | 27.9789 | 0 | 11.0010 |
ZERO2 (Treasury) | 25.9999 | 9.9999 | 0 | 15.9999 |
ZERO3 (Member) funded 5.0 | 4.9999 | 4.9999 | 0 | 0 |
POLKA (Not a member) funded 5.0 | 495.9195 | 343.2122 | 10.0000 | 142.7073 |
GameDAO Treasury | 7,047.1273 | 115.7480 | 6,196.2777 | 735.1014 |
Nothing has changed compared to last step:
The money in the treasury stays RESERVED but should have been unlocked and transferrable.
The Controller has still the wrongly assigned +10 ZERO which are Transferrable.
No GameDAO treasury received any fees.
super comprehensive overview, but a bit confusing. "gets transferrable" means unreserved? i would strongly recommend to start with fresh accounts, otherwise confusing to determine what really happens. what is locked vs reserved? do you mean contributed which gets reserved?
when you test this locally with a dev chain you also get 10 accounts with prefilled balance and no passwords, makes testing and checking balances much easier for you.
at least we should really test with untainted fresh accounts so the results become easier to comprehend :)
Thanks for the feedback @2075. "gets transferrable" means unreserved? --> that depends if the amount was reserved before. In our case tranfers happened without being reserved before. In the case of amount reserved for the treasury, yes I meant unreserved.
what is locked vs reserved? --> in our case no amounts were locked as we seem to not work with locking up amounts within this process.
For me setting up a dev chain and/or setting up fresh accounts is a huge manual task which I dont even know how I would do that. I would love to have the test results easier to read but I would need support to set up a proper testing environment. How is everyone else testing? (@soundyogi , @DarkNebula0 , @Persqual , @vovacha). You must be much faster than I with testing having a local dev chain. Maybe someone can help me setting this up so I can also be fast and clean in testing?
I am writing/automating this test for the local dev chain. This also should be a good guide how to test / automate e2e locally.
last Version upgrade 1.46.0 and corresponding manual test showed:
User Story
As user I want to create a DAO, create a campaign, raise funds and withdraw them to spend it so I can reach my objective to build sth nice the community wants
Acceptance Criteria
Additional Information
Wallets before Funding:
Campaign created
After funding each contributor had the funding amount shown as reserved in their own wallet.
Campaign funded
After the campaign runtime expired and was declared successful the funds went to the DAO treasury account and were reserved (+10.000 ZERO)
Proposal was created and Zero1 & Zero2 voted yes and the proposal was closed. Zero3 who also funded but is not a DAO member was not able to vote. This was logged:
There are now 8 ZERO more on this account even though it should at least be 9.75 ZERO (10 minus GameDAO fee)