mStable-contracts icon indicating copy to clipboard operation
mStable-contracts copied to clipboard

Emissions Controller: update with Linear function and upgrade contract

Open dimsome opened this issue 2 years ago • 3 comments

  • [x] Adjust the function topLineEmission in the EmissionController.sol to reflect the linear emissions function: https://forum.mstable.org/t/mccp-24-reduce-weekly-mta-emissions/912
  • [x] Update tests
  • [x] Update hardhat tasks
  • [x] Let MCCP 24 pass in governance
  • [x] Propose contract upgrade
  • [ ] Accept contract upgrade

dimsome avatar Jul 27 '22 10:07 dimsome

Hi @jkusne , could you please attach the expected emission details to double check the calculations ? It could be a sample of emissions like [1, 8, 100, 306, 611, 612]

doncesarts avatar Aug 15 '22 16:08 doncesarts

The actual total number of epochs is 624, not 612 as it is wrongly stated in the MCCP. I made a mistake when typing the MCCP. The current number of total epochs es 312, which corresponds to 6 years, so the new number of epochs should be the double of that, which is 624. This way, we would have exactly 12 years of emissions, and the last epoch would emit 0 (as it is supposed to be).

0xnesk avatar Aug 16 '22 11:08 0xnesk

  • [x] New implementation deployed https://etherscan.io/address/0x48A91EB6D623bBc1b9c350dC40a671E72e1D4cdd
yarn task --network mainnet deploy-emissions --deploy-proxy "false"
  • [x] Contract Verified
npx hardhat verify --network mainnet 0x48A91EB6D623bBc1b9c350dC40a671E72e1D4cdd 000000000000000000000000afce80b19a8ce13dec0739a1aab7a028d6845eb3000000000000000000000000a3bed4e1c75d00fa6f4e5e6922db7261b5e9acd2fffffffffffffffffffffffffffffffffffffffffffffffffffff329c7bb8194000000000000000000000000000000000000000000000000001f4a2926f42816000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000270
  • [x] Tx Proposing upgrade

Admin Proxy 0x5C8eb57b44C1c6391fC7a8A0cf44d26896f92386 proposeUpgrade proxy: 0xBa69e6FC7Df49a3b75b565068Fb91ff2d9d91780 implementation: 0x48A91EB6D623bBc1b9c350dC40a671E72e1D4cdd data: []

doncesarts avatar Aug 17 '22 10:08 doncesarts

@jkusne please update the MCCP in GitHub and forum with the correct number

dimsome avatar Aug 22 '22 08:08 dimsome

Proposal accepted https://etherscan.io/tx/0x0047e5229d0839b697a86334476d6c2f4bd0e037b31ab51ae96792ae55f3075e

doncesarts avatar Aug 24 '22 14:08 doncesarts