DelegatedGov tests: - exists✅ - allows staking✅ - allows withdraw✅ - allows delegation✅ - allows undelegation✅ - allows reward claim✅ - allows a sha to take an action✅
contracts:
- BinaryOptions✅
- update rewards system ✅
- replace AggregatorV3 with AggregatorProxy✅
- add/remove erc20 pools✅
- bet using pooled erc20s✅
- payout, exercise, expire from pooled erc20s✅
- BIOPToken✅
- v2->v3 token swap✅
- single rewards system✅
- launch reward bonus 4x✅
- BIOP/ETH bonding curve✅
- DelegratedGovernance✅
- stake BIOP tokens✅
- earn ETH for staked tokens✅
- unstake BIOP tokens✅
- delegrate voting power✅
- undelegate voting power✅
- voting power based guard functions✅
- only delegated voting power is used in guard tier calculations✅
- update settings based on voting power✅
- update voting power guard tiers✅
initial delgation tier ratios✅ #0(any%) - transfer bet fees from proxy✅ - enable pool✅ #1(50%)⭐️️️✅ - update max time✅ - update min time✅ #2(66%)⭐️️️ ⭐️️️✅ - update expire fee✅ - update exercise fee✅ - update proxy transfer fee✅ - remove trading pair/RateCalc✅ - add/update trading pair/RateCalc✅ - enable/disable BIOP reward distribution✅ #3(75%)⭐️️️ ⭐️️️ ⭐️️️✅ - disable pool✅ - update bet fee✅ - update pool lock time✅ - update staking rewards epoch length✅ #4(90%)⭐️️️ ⭐️️️ ⭐️️️ ⭐️️️✅ - close pool from new deposits✅ - change delegation tiers ratios✅
for testing uncomment the "development" network in truffle-config.js and set testing to true in the main migrations file. You have to put a private key in truffle-config.js for the migrations to work correctly. Depending on how long in the future your reading this you may also have to update the infura api keys in truffle-config.js.
deploy to kovan
truffle migrate —-network kovan --reset
also comment out the pool deployment, it's deployed internally by the BinaryOptions contract
after deploying the setPoolAddress function on BinaryOptions has to be called manually to set it