KyberNetwork / smart-contracts

Main smart contracts for Kyber Network, including the main platform contract, reserve contracts etc.
https://kyber.network
MIT License
378 stars 340 forks source link

Fuzz kyber dao #993

Closed ducquangkstn closed 4 years ago

ducquangkstn commented 4 years ago

This PR depends on https://github.com/KyberNetwork/smart-contracts/pull/963 about generate functions for staking-contract We want to test the correctness of kyberDao, so this PR will assume that kyberStaking is implemented correctly and only check the state of kyberDao

Checklist

ducquangkstn commented 4 years ago

best to organise so only high level errors are printed to screen

the result of each epoch and the summary info are printed other info is at debug.log

warn: No campaign to checkWinningCampaign epoch=100

this is mostly config issue. the epoch size may be too short or the possibility to create an epoch is too low Therefore, no campaign is created at that epoch