EGORAS
Search…
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.
1
function voteinCompany(address _company, uint _votePower, bool _accept) external;
Copied!
  • _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.

Solidity

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

Web 3

1
const instance = await new web3.eth.Contract(abi, address)
2
await instance.methods.approveLoanCompany("0x44a2C....”, 20 in wei, true/false).send({from: 0xMyAccount});
Copied!
Last modified 1yr ago
Copy link