morkeltry / GAP-microfinance

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

hasLoanOffer() #23

Open morkeltry opened 6 years ago

morkeltry commented 6 years ago

Interrogates blockchain to find if borrowerEthAddr has a loan offered.

Takes ( borrowerEthAddr, callback ) as params.

If loan offer exists, calls callback with (amount, duration, lenderEthAddr). Otherwise does nothing.

If short of time will be mocked using an endpoint