Approve Company

The voteinCompany function consists of the company address, the votePower and the _accept(true/false). The functions also sends an approval /declinal request to the protocol.
function voteinCompany(address _company, uint _votePower, bool _accept) external;
  • _company : The address "companyaddress" used by Egoras partners in the Loan company application process.
  • _votePower: The amount of Egoras token locked during the governance process.
  • _accept : Egoras token holders vote either in approval "True" or declining "False" of the Loan company.


CEGORAS egoras = CEGORAS(0x7a24C....);
require(egoras.approveLoanCompany(“0x44a2C....”, 20 in wei, true/false), "unable to vote company");

Web 3

const instance = await new web3.eth.Contract(abi, address)
await instance.methods.approveLoanCompany("0x44a2C....”, 20 in wei, true/false).send({from: 0xMyAccount});