Advertisement
Guest User

ZAI INFINITE EXPANSION BUG INFORMATION

a guest
Jan 8th, 2021
1,579
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. ------------------------------------------------------------------------------
  2. 1/7/2021 ZAI INCIDENT REPORT
  3. ------------------------------------------------------------------------------
  4. As you all know, the system is currently bugged as we are continuously expanding whilst we should be in debt. A few community members have deciphered the problem and believe it is due to a very small error (1 line of code) with the price oracle.
  5.  
  6. Analysis:
  7. "oracle was copy pasted from DSD-USDC oracle code
  8. usdc has 6 decimals while dsd has 18. therefore the oracle multiplied the ratio by 10^12
  9. however dai has 18 decimals and dsd has 18 decimals so no multiplication is required
  10. but the copy pasted code still multiplied by 10^12
  11. therefore the updated proposal dao code divides the result by 12^12 to cancel that out and report the correct price"
  12.  
  13. The developer has seemed to notice right away and worked on a fix. A new contract was deployed and a new governance proposal was launched. A community member has checked the code and found that the new code had fixed the problem AND was the only thing different.
  14.  
  15. Resolution:
  16. We need everyone in DAO to go and vote YES on the proposal. We require 66% approval for the new contract to deploy and we are almost there (65. 70 %). Once approved, the new contract will takeover in 2 days.
  17.  
  18. Note: In order to vote, you must be in DAO, be UNLOCKED, and BONDED. Also, when voting, it will show as "STAKED ZAIS" as "0". Ignore this as it is a UI glitch.
  19.  
  20. The developer is still unknown, however, he/she/they are always quick to respond to the community by working in the background. Let's keep our faith in this project!
  21.  
  22. CREDITS:
  23. @aliev224, @gibsatoshii, @airdroppered
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement