ArboreumDev / credit-union-frontend

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

Payment to period mapping #173

Closed djudjuu closed 3 years ago

djudjuu commented 3 years ago

Problem:

depending on whether a payment is too small, just right or too big. it is being disitributed differenlty amongst lenders & supporters. Consequently, we run into complications if we allow multiple repayments per period: The Scheduler assumes all payments arrived at once and will thus treat money from first & second payment the same way. As we currently distribute the money right after it comes in, this might not be possible.

Solutions

A) we just allow one repayment per period.

B) We keep the money in escrow until the end of the period and only release it then.

C) We do some math with the schedules and figure out how distribute the second tranche based on the previous ones

=> I say we go with A for now & C down the road