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

Solidity

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

Web 3

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