Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

implement an application process for one-off 1.0 payouts #3743

Closed
chadwhitacre opened this issue Sep 1, 2015 · 8 comments
Closed

implement an application process for one-off 1.0 payouts #3743

chadwhitacre opened this issue Sep 1, 2015 · 8 comments

Comments

@chadwhitacre
Copy link
Contributor

To complement the Team application process we already have. Let's get this before the 1.0 refund announcement (#3539).

@chadwhitacre
Copy link
Contributor Author

First pass:

screen shot 2015-09-01 at 8 45 52 pm

@chadwhitacre
Copy link
Contributor Author

Reopening for deployment.

@chadwhitacre
Copy link
Contributor Author

Code deployed and all.sql started.

@chadwhitacre
Copy link
Contributor Author

=> \i sql/1.0/all.sql
psql:sql/1.0/identify-receivers.sql:1: NOTICE:  table "receivers_1_0" does not exist, skipping
DROP TABLE
SELECT 2252
psql:sql/1.0/prep-numbers.sql:1: NOTICE:  table "numbers_1_0" does not exist, skipping
DROP TABLE
SELECT 2252
UPDATE 2
UPDATE 2252
UPDATE 2252
UPDATE 2164
UPDATE 5
UPDATE 154
UPDATE 207

@chadwhitacre
Copy link
Contributor Author

=> select status_of_1_0_payout, count(*) from participants
group by status_of_1_0_payout order by count desc;
┌──────────────────────┬────────┐
│ status_of_1_0_payout │ count  │
├──────────────────────┼────────┤
│ completed            │ 110848 │
│ pending-application  │   1952 │
│ too-little           │    207 │
│ pending-payout       │      5 │
└──────────────────────┴────────┘
(4 rows)

@chadwhitacre
Copy link
Contributor Author

=> select sum(balance) from participants where status_of_1_0_payout != 'completed';
┌───────────┐
│    sum    │
├───────────┤
│ 129113.10 │
└───────────┘
(1 row)

@chadwhitacre
Copy link
Contributor Author

I think we're good!

@chadwhitacre
Copy link
Contributor Author

=> select status_of_1_0_payout, count(*), sum(balance) from participants
group by status_of_1_0_payout order by sum desc;
┌──────────────────────┬────────┬───────────┐
│ status_of_1_0_payout │ count  │    sum    │
├──────────────────────┼────────┼───────────┤
│ pending-application  │   1952127447.47 │
│ completed            │ 11084810272.68 │
│ pending-payout       │      51622.64 │
│ too-little           │    20742.99 │
└──────────────────────┴────────┴───────────┘
(4 rows)

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

No branches or pull requests

1 participant