- Date: 2020-07-2
- Author(s): @nategraf (Victor | cLabs)
- Status: PROPOSED
- Governance Proposal ID #: 1
Add cUSD to the list of stabilized assets in the Reserve contract.
During deployment of the Baklava network on June 24th, a change in configuration resulted in cUSD not being added to the list of assets stabilized by the Reserve. As a result, the isReserveLow
call, used in the rewards distribution code of the Celo blockchain client, reverts with a divide-by-zero error and rewards do not get distributed to voters or validators. Adding the cUSD contract to the Reserve's list of stabilized assets will correct this issue and allow for rewards to be distributed.
- Add StableToken (cUSD) smart contract address to the Reserve
- Destination: Reserve (0x68Dd816611d3DE196FDeb87438B74A9c29fd649f),
- Function: addToken
- Arguments: StableToken Address (0x62492A644A588FD904270BeD06ad52B9abfEA1aE)
- Confirm proposal steps: run
celocli governance:view --proposalID 1
- Confirm StableToken address: run
celocli network:contracts
- Check that
EpochRewards.isReserveLow()
does not revert by callingweb3.eth.call({to: '0xfdc7D3da53Ca155dDCE793B0de46f4c29230EecD', data: '0x9ad0cce7'})
and ensuring the result does not start with0x08c379a
. - On the next Epoch boundary, ensure that rewards are distributed correctly.