morkeltry / GAP-microfinance

GAP microfinance frontend and Solidity prototype
0 stars 1 forks source link

Loan flow: repayments page #16

Open morkeltry opened 6 years ago

morkeltry commented 6 years ago

GET from endpoint /retrieve in #6 (liase with @Parissai ), passing ethAddr as params

Render all elements constant height - no text in Repayments and Repayment Instructions until populated.

Repayments will be populated with response of GET, which will include repayments: an array of objects {date, amount} (Amount is in QI so 25 -> 'QI 25') Refresh links back to loans flow branch logic Repayment Instructions will be populated with a button named 'Send to X' where X is the property tx.to from the result of the GET. This button calls a function repay (tx);

Write mock repay function : setTimeout ( {\\ link back to loans flow branch logic as if Refresh was clicked}, 500)