Solidity contract for a delegated Arbius miner that enables Liquid Staking AIUS, self-repaying AIUS loans (lending & borrowing), etc
In the MiningConfig.json file for Arbius Miner, add keys for use_delegated_validator and delegated_validator_address
"blockchain": {
"use_delegated_validator": true,
"delegated_validator_address": '...'
}
yarn start:dev MiningConfig.json
To claim rewards for stakers and the miner, simply call the claim() function on the Delegated Miner contract.
- Majority credit to Kasumi from Arbius for creating the Delegated Miner contract
- Credit to vdallco for completing the Delegated Miner contract (added claim() rewards calculation logic, submitSolution() fix, submitTask() function)