EGORAS
Search…
Reward Voters
The rewardHolderByVotePower function transfers an asset into the EGR holders wallet according to their voting power.
function rewardHoldersByVotePower() external;

Solidity

CEGORAS egoras = CEGORAS(0x7a24C....);
require(egoras.rewardHoldersByVotePower(), "unable to reward holders");

Web 3

const instance = await new web3.eth.Contract(abi, address)
await instance.methods.rewardHoldersByVotePower().send({from: 0xMyAccount});
Copy link