Loan Company Application

The Loan company application function sends an application request into the protocol,this application request consists of the name of the microfinance banks, NGOs or the lending partner and also the functions contains the msg.sender address.

function registerLoanCompany(string calldata companyName) external;
  • companyName : The name of the microfinance banks or NGOs applying to partner with EgorasMicrofinance protocol.

  • msg.sender : The msg.sender becomes the owner of the company, if approved.

Solidity

CEGORAS egoras = CEGORAS(0x7a24C....);
require(egoras.registerLoanCompany(“Storaji”), "unable to create company");

Web3

const instance = await new web3.eth.Contract(abi, address)
await instance.methods.registerLoanCompany("storaji").send({from: 0xMyAccount});
Contents
Solidity
Web3