EGORAS
Search…
Distribute Interest To Egr Holders
The distributeFee function transfers Ethereum into the EGR holders wallet according to their voting power.
1
function distributeFee() external;
Copied!

Solidity

1
CEGORAS egoras = CEGORAS(0x7a24C....);
2
require(egoras.distributeFee(), "unable to distribute Fee");
Copied!

Web 3

1
const instance = await new web3.eth.Contract(abi, address)
2
await instance.methods.distributeFee().send({from: 0xMyAccount});
Copied!
Last modified 1yr ago
Copy link