ArboreumDev / credit-union-frontend

Frontend in Next.js + Typescript + GraphQL
https://frontend-two-sandy.vercel.app
1 stars 0 forks source link

create transaction table & adapt lender balances upon loan creation #44

Open djudjuu opened 4 years ago

djudjuu commented 4 years ago

actions that change balances need to create a transaction record, which could then be passed to financepeer or someone who would actually iniitiate the shift of money between accounts.

specifically, the startLoan-mutation needs to be adapted to change the lender balances accordingly

the tx-table should for each tx tell what loan it was related to and have an extra boolean that will be initially set to 'initiated' and then set to 'confirmed' once we can be sure that the transfer went trough... alternatively ti should be set to 'failed' in which case we need to manually look into the matter