yearn / yBuyback

https://buyback.yearn.finance/
GNU General Public License v3.0
4 stars 16 forks source link

update to a new contract #6

Closed banteg closed 2 years ago

banteg commented 2 years ago

updates

  1. the buyback contract changes from 0xdf5e4E54d212F7a01cf94B3986f40933fcfF589F to 0x6903223578806940bd3ff0c51f87aa43968424c8 everywhere, all calls go to the new contract, it has the same api
  2. when the contract rate is non-zero, it means the buyback contract receives a stream of funds. we can show a changing amount for "our piggybank has" using the new total_dai function. it should be either updated each block or, better, updated and animated using the combination of total_dai and rate.
  3. the rate is measured in dai per second scaled to 1e20. to convert to a monthly value, do rate * 30 * 86400 / 1e20. it can appear in the text as "We stream 420,000 DAI per month to the piggybank to be used for buybacks."

team

context