Approve Loan

Approve loan function sends an approval (True/False) request into the protocol.

function approveLoan(uint _loanID) external;
  • _loanID : The unique identifier of every loan emitted from Egoras Microfinance protocol.

Solidity

CEGORAS egoras = CEGORAS(0x7a24C....);
require(egoras.approveLoan(“20"), "unable to approve loan");

Web 3

const instance = await new web3.eth.Contract(abi, address)
await instance.methods.approveLoan("20").send({from: 0xMyAccount});